
      .filtro {
        width: 280px;
        max-width: 100%;
      }

      /* ---- Título principal + flecha (solo visible/funcional en mobile) ---- */
      .filtro-titulo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: default;background: #f9f9f9;
      }

      .filtro-titulo h2 {
        padding: 10px 20px;
        font-size: 40px;
        font-weight: 400;
        letter-spacing: 0.5px;
        margin: 0;
        color: var(--blue);
        font-family: var(--font-BebasNeue), 'Arial', sans-serif;
      }

      .filtro-titulo-flecha {
        display: none; /* solo aparece en mobile */
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        line-height: 0;
      }

      .filtro-titulo-flecha i {
        /*width: 18px;
        height: 18px;*/
        font-size: 18px;
        transition: transform 0.25s ease;
      }

      /* ---- Contenedor de todas las categorías (lo que se colapsa en mobile) ---- */
      .filtro-body {
        display: flex;
        flex-direction: column;
        /*gap: 14px;*/
      }

      /* ---- Cada categoría (acordeón individual, funciona en desktop y mobile) ---- */
      .categoria {
        border: 1px solid var(--border);
        /*border-radius: 6px;*/
        overflow: hidden;
        background: #fff;
      }

      .categoria-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 20px;
        background: var(--Gris-humo-suave);
        border: none;
        cursor: pointer;
        font-size: 18px;
        font-weight: 400;
        letter-spacing: 0.3px;
        color: var(--text-secondary);
        text-align: left;
        font-family: var(--font-BebasNeue), 'Arial', sans-serif;
      }

      .categoria-header .flecha {
        transition: transform 0.25s ease;
        flex-shrink: 0;
        margin-left: 8px;
      }

      .categoria.abierta .categoria-header .flecha {
        transform: rotate(180deg);
      }

      .categoria-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0px 20px;
      }

      .categoria.abierta .categoria-content {
        max-height: 500px; /* suficiente para el contenido */
        background-color: var(--Blanco-ahumado);
        padding: 10px 20px;
      }

      .categoria-lista {
        list-style: none;
        margin: 0;
        /*padding: 10px 14px 4px;*/
      }

      .categoria-lista li {
        display: flex;
        align-items: center;
        gap: 8px;
        /*padding: 6px 0;*/
         padding: 6px 20px;      /* antes: padding: 6px 0; */
        margin: 0 -20px;         /* compensa el padding del contenedor padre */
        font-family: var(--font-BebasNeue), 'Arial', sans-serif;
        font-weight: 400;
        font-size: 18px;
        color: var(--text-secondary);
        transition: all ease .3s;
        cursor: pointer;
      }
      .categoria-lista li:hover{
        background-color: var(--Gris-humo-suave);
      }

      .categoria-lista input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border: 1.5px solid #999;

        flex-shrink: 0;
        cursor: pointer;
        position: relative;
        background: #fff;
      }

      .categoria-lista input[type="checkbox"]:checked {
        background: var(--check-fill);
        border-color: var(--check-fill);
        box-shadow: inset 0 0 0 3px #fff; /* <-- esto crea el "padding" blanco */
      }

      /* Ya NO hay ::after con el checkmark */

      /*.categoria-lista input[type="checkbox"]:checked::after{
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }*/

      .categoria-lista label {
        cursor: pointer;
        line-height: 1.3;
      }

      .ver-todos {
        display: block;
        padding: 20px;
        background: none;
        border: none;
        color: var(--text-secondary);
        font-family: var(--font-BebasNeue), 'Arial', sans-serif;
        font-weight: 400;
        font-size: 18px;

        letter-spacing: 0.3px;
        cursor: pointer;
        text-align: left;
      }





      .selector{
    position: relative;
    width: 220px;
    margin-left: auto;
  }

  .selector-btn{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border:1px solid var(--borde-ligth);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-Poppins);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    cursor: pointer;
  }

  .selector-btn .flecha{
    transition: transform .2s ease;
    flex-shrink: 0;
    margin-left: 8px;
    color: var(--text-dark);
  }

  .selector.abierto .selector-btn .flecha{
    transform: rotate(180deg);
  }

  .selector.abierto .selector-btn{
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
  }

  .selector-lista{
    list-style: none;
    margin: 0;
    padding: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,.06);

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .25s ease, opacity .2s ease;
    z-index: 20;
  }

  .selector.abierto .selector-lista{
    max-height: 320px;
    opacity: 1;
  }

  .selector-lista li{
    padding: 9px 10px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-Poppins);
    cursor: pointer;
    border-radius: 6px;
  }

  .selector-lista li:hover{
    background: #f3f3f3;
  }

  .selector-lista li.seleccionado{
    background-color: #f3f3f3;;

    font-weight: 700;
  }


      .container-flex-productos{
        display: flex;
        gap: 30px;
        justify-content: space-between;

      }
      .container-flex-producto{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: flex-start;
}

      .container-flex-producto .productos{
        border: 2px solid var(--borde-ligth);
        border-radius: 10px;
        overflow: hidden;
      }
      .container-flex-producto .container-img-producto{
        width: 100%;
        overflow: hidden;
      }
      .container-flex-producto .container-img-producto img{
        width: 100%;
         transition: transform 0.6s ease;
      }

      .productos:hover .container-img-producto img {
          transform: scale(1.05);
      }

      .container-flex-producto .productos .container-flex-texto{
        margin-top: 10px;
        line-height: 1.2;
        padding: 15px;
        padding-bottom: 5px;
      }

      .container-flex-producto .ver-producto-detalle{
        padding: 10px 15px;
        padding-bottom: 15px;
      }
      .container-flex-producto .productos .container-flex-texto h2{
        font-family: var(--font-BebasNeue), 'Arial', sans-serif;
        font-size: 25px;
        font-weight: 400;
        color: var(--color-carbon);
      }
      .container-flex-producto .productos .container-flex-texto p{
        font-family: var(--font-BebasNeue), 'Arial', sans-serif;
        font-size: 20px;
        font-weight: 400;
        color: var(--gris-oscuro);
      }

      .ver-producto-detalle button{
        width: 100%;
        border: none;
        padding: 8px 10px ;
        font-family: var(--font-BebasNeue), 'Arial', sans-serif;
        font-weight: 400;
        background-color: var(--blue);
        color: var(--white);
        font-size: 25px;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        transition: all ease .3s;
        cursor: pointer;
      }

      .ver-producto-detalle button:hover{
        background-color: var(--blue-fuerte);
      }
      .ver-producto-detalle button p{
        margin-top: -3px;
      }

      .container-flex-video-productos{
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 80%;
      }
   .container-video {
    position: relative !important;
    width: 100% !important;
    background: #000 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 300px !important;
}

.container-video video {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}
/* ============================================================ */
/* IFRAMES (YouTube y TikTok) */
/* ============================================================ */
.container-video iframe {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    border: 0 !important;
    display: block !important;
}

/* ============================================================ */
/* TIKTOK - Formato vertical */
/* ============================================================ */
.container-video:has(.tiktok-iframe) {
    aspect-ratio: 9 / 16 !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================================ */
/* RESPONSIVE */
/* ============================================================ */
@media (max-width: 768px) {
    .container-video {
        aspect-ratio: 16 / 9 !important;
        min-height: 200px !important;
        border-radius: 10px !important;
    }

    .container-video:has(.tiktok-iframe) {
        max-width: 300px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 480px) {
    .container-video {
        aspect-ratio: 16 / 9 !important;
        min-height: 180px !important;
        border-radius: 8px !important;
    }

    .container-video:has(.tiktok-iframe) {
        max-width: 260px !important;
        border-radius: 10px !important;
        min-height: 450px !important;
    }
}


     .product-container {
            display: flex;
            flex-wrap: wrap;
            overflow: hidden;
           margin: 50px 0px;
            gap:25px;

        }

        .product-gallery {
            flex: 1;
            min-width: 300px;
            padding-right:25px;
            border-right: 1px solid var(--graylight);
        }
        .product-container .main-image-container{
            border: 1px solid var(--borde-ligth);
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 30px;
        }

        .product-details {
            flex: 1;
            min-width: 300px;
        }
        .product-details .texto-detallle-prod {
            line-height: 1.1;
        }
        .product-details .texto-detallle-prod h2{
            font-family: var(--font-BebasNeue), 'Arial', sans-serif;
            font-weight: 400;
            font-size: 40px;
            color: var(--blue);
        }
        .product-details .texto-detallle-prod  p{
            font-family: var(--font-BebasNeue), 'Arial', sans-serif;
            font-size: 25px;
            color: var(--gris-oscuro);

        }

        .product-details .btn-detalle a{
            width: 100%;
            display: flex;
            background-color: var(--green-fuerte);
            justify-content: center;
            padding: 8px 10px ;
            align-items: center;
            font-family: var(--font-BebasNeue), 'Arial', sans-serif;
            font-weight: 500;
            color: var(--white);
            font-size: 24px;
            border-radius: 15px;
            margin: 30px 0px;
            transition: all ease .3s;
        }

        .product-details .btn-detalle a:hover{
            background-color: var(--color-WhatsApp);
        }
        .product-details .btn-detalle a span{
            margin-top: 3px;
        }
        .product-details .btn-detalle a i{
            font-size: 32px;
        }

        .product-details .btn-dowloand a{
            /**width: 300px;*/
            border: 1px solid var(--blue);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 30px;
            font-family: var(--font-BebasNeue), 'Arial', sans-serif;
            font-weight: 400;
            color: var(--blue);
            font-size: 20px;
            gap: 8px;
            border-radius: 10px;
            margin-top: 30px;
            transition: all ease .3s;
        }

        .product-details .btn-dowloand a:hover{
            background-color: var(--blue);
            color: var(--white);
            border: 1px solid var(--blue);
        }

        .product-details .contenedor-texto-detalle-prod{
            font-size: 14px;
            font-family: var(--font-Poppins);
            color: var(--color-texto);
            font-weight: 400;
            line-height: 1.3;
        }

          .main-image {
            max-width: 100%;
            max-height: 500px;
            object-fit: contain;
        }

        .thumbnail-container {
            display: flex;
            align-items: center;
            position: relative;
        }

        .thumbnails {
            display: flex;
            overflow: hidden;
            scroll-behavior: smooth;
            gap: 10px;
            padding: 5px 0;
            width: calc(100% - 0px);
            margin: 10px auto;
        }

        .thumbnail {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 4px;
            cursor: pointer;
            border: 1px solid transparent;
            transition: all 0.3s ease;
            background-color: transparent;
            padding: 5px;
            flex-shrink: 0;
        }

        .thumbnail:hover {
            border-color: var(--borde-ligth);
        }

        .thumbnail.active {
            border-color: var(--borde-ligth);
        }

        .thumbnail-nav {
            background: var(--white);
            border: 1px solid var(--borde-ligth);
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            position: absolute;
            z-index: 2;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            font-size: 12px;
        }

        .thumbnail-nav:hover {
            background: var(--graylight);
        }

        .thumbnail-nav.prev {
            left: 0;
        }

        .thumbnail-nav.next {
            right: 0;
        }



        /* Lightbox styles */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.92);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            opacity: 0;backdrop-filter: blur(4px);
            transition: opacity 0.3s;
        }

        .lightbox.active {
            display: flex;
            opacity: 1;
        }

        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-img {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
            animation: lightboxFadeIn 0.3s;
        }

        @keyframes lightboxFadeIn {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }

        .lightbox-nav {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
              background: rgba(255, 255, 255, 0.08);
    color: #fff;
            border-radius: 50%;
            width: 56px;
            height: 56px;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
            transition: all 0.3s;
            backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .lightbox-nav:hover {
               background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.08);
    border-color: rgba(255, 255, 255, 0.25);
        }

        .lightbox-nav.prev {
            left: 30px;
        }

        .lightbox-nav.next {
            right: 30px;
        }

        .lightbox-close {
            position: fixed;
            top: 0px;
            right: 40px;
            color: white;
            font-size: 100px;
            cursor: pointer;
            z-index: 1001;
            opacity: 0.8;
            transition: opacity 0.3s;
        }

        .lightbox-close:hover {
            opacity: 1;
        }





/* ===== CATEGORÍA ACTIVA (con más especificidad) ===== */
.categoria.activa > .categoria-header {
    background: #052F89 !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 400 !important;
    border-color: #052F89 !important;
}

.categoria.activa > .categoria-header i {
    color: #ffffff !important;
    transform: rotate(180deg);
}

.categoria.activa > .categoria-header:hover {
    background: #062f6e !important;
    color: #ffffff !important;
}


/* ===== SUBCATEGORÍA ACTIVA ===== */
.categoria-lista li.activo {
    background: #e8f0fe !important;
    border-radius: 4px;
    border-left: 3px solid #052F89;
    padding-left: 8px;
}

.categoria-lista li.activo label {
    color: #052F89 !important;
    font-weight: 400 !important;
}

.categoria-lista li.activo input[type="checkbox"] {
    accent-color: #052F89 !important;
    border-color: #052F89 !important;
}


.titulo-seccion h1{
    font-family: var(--font-BebasNeue), 'Arial', sans-serif;
    color:var(--blue);
    font-weight:400;
}


/*PRODUCTO DETALLE*/


      @media (max-width: 1200px){
  .container-flex-producto{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:900px ) {
 .container-flex-productos{
    flex-direction: column;
    gap: 40px;
 }
 .filtro{
    width: 100%;
 }
 .container-flex-video-productos{
    width: 100%;
 }
 /**/
 .filtro-titulo {
          cursor: pointer;
        }

        .filtro-titulo-flecha {
          display: inline-flex;
          align-items: center;
        }

        .filtro-titulo-flecha i{
            margin-right:17px;
        }

        /* Rota la flecha principal cuando el bloque está abierto */
        .filtro.abierto .filtro-titulo-flecha svg {
          transform: rotate(180deg);
        }

        /* Colapsa TODO el listado de categorías */
        .filtro-body {
          display: none;
          margin-top: 14px;
        }

        .filtro.abierto .filtro-body {
          display: flex;
        }
}

@media (max-width: 560px){
  .container-flex-producto{
    grid-template-columns: 1fr;
  }

  /*.container-flex-video-productos{
    width: 95%;
  }*/
}

/*MQ DETALLE PRODUCTO */
@media (max-width: 768px) {
            .product-gallery, .product-details {
                flex: 100%;
                border-right: none;
                border-bottom: 1px solid var(--medium-gray);
                padding-right:0px;
            }
            .product-container{
                gap: 40px;
            }
            .whatsapp-button{margin-bottom:0px;}

            .main-image {
                max-height: auto;
            }

            .thumbnail{
                width:80px;
                height:80px;
            }

            .lightbox-nav {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }

            .lightbox-close {
                font-size: 25px;
            }
        }
        /*FIN DETALLE PRODUCTO MQ*/
      /* ---------------- MOBILE ---------------- */
      @media (max-width: 640px) {

      }

      @media (max-width: 500px) {
       .filtro-titulo h2{
        font-size: 35px;
       }
       .product-details .texto-detallle-prod h2{
        font-size: 35px;
    }
      }
