/* GENERAL STYLES */
body {
    font-family: var(--site-font); /* Fuente moderna y amigable */
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #fefefe; /* Un blanco ligeramente cálido */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4 {
    font-family: var(--site-font); /* Fuente para encabezados */
    color: #005A9C; /* Azul corporativo principal */
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.2em; color: #E83E8C; } /* Rosa como color de acento */

p {
    margin-bottom: 1em;
    color: #555;
}

a {
    color: #E83E8C; /* Rosa para enlaces */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* HEADER */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: 100%; /* Asegura que ocupe todo el ancho */
    transition: transform 0.3s ease-in-out; /* ¡NUEVO! Para la animación suave */
}


.main-header.header-hidden {
    transform: translateY(-100%); /* Mueve el header completamente fuera de la vista hacia arriba */
}


.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.logo {
    font-size: 2em;
    font-weight: 700;
    color: #005A9C;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo-placeholder { /* Para el texto si no hay imagen de logo */
    width: 150px; /* Ajustar según el logo real */
    height: auto;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.8em; /* Ajustar */
    color: #005A9C;
}
.logo-placeholder img {
    max-height: 50px; /* Ajustar según el logo real */
}


.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: #005A9C;
    font-weight: 600;
    font-size: 0.95em;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #E83E8C;
    border-bottom-color: #E83E8C;
}

/* HERO SECTION */
.hero {
    background: url('../images/isalin-tres-generaciones-v4-1200.webp') no-repeat center 60%/cover; /* Reemplazar con imagen real */
    background-color: #e6f7ff; /* Color de fondo si la imagen no carga o es semitransparente */
    color: #fff; /* Cambiar si la imagen de fondo es clara */
    padding: 80px 0;
    text-align: center;
    position: relative;
}
.hero-overlay { /* Opcional para mejorar legibilidad del texto sobre imagen */
    background-color: rgba(0, 90, 156, 0.5); /* Azul corporativo con transparencia */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #fff; /* Ajustar si el fondo es claro */
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p {
    color: #f0f0f0; /* Ajustar si el fondo es claro */
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: #E83E8C; /* Rosa */
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 30px; /* Botones redondeados */
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(232, 62, 140, 0.3);
}

.cta-button:hover {
    background-color: #c42a72; /* Rosa más oscuro */
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-button-secondary {
    background-color: transparent;
    color: #005A9C;
    border: 2px solid #005A9C;
    padding: 13px 33px;
}
.cta-button-secondary:hover {
    background-color: #005A9C;
    color: white;
}


/* SECTIONS */
.section {
    padding: 60px 0;
}

.section-light-bg {
    background-color: #f9f9f9; /* Gris muy claro para alternar fondos */
}

/* FEATURES / BENEFITS SECTION */
.features-grid, .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item, .benefit-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover, .benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-item img, .benefit-item img { /* Para iconos de beneficios */
    width: 60px; /* Ajustar tamaño de icono */
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.benefit-item:hover img {
    transform: scale(1.5); /* Agranda la imagen al 150% de su tamaño original */
}

.feature-item h3, .benefit-item h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #005A9C;
}

/* PRODUCT SECTION */
.product-showcase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.product-image {
    flex: 1 1 400px; /* Crece y se encoge, base de 400px */
    text-align: center;
}

.product-image img {
    max-width: 80%; /* Ajustar para que no sea demasiado grande */
    border: 1px solid #eee;
    padding: 10px;
}
/* Slideshow images shouldn't get borders/padding at all */
.product-image .isalin-slideshow img {
    max-width: 100%;
    border: 0;
    padding: 0;
}

.product-details {
    flex: 1 1 500px;
}

.product-details ul {
    list-style: none; /* O usar 'disc' o 'check' con ::before */
    padding-left: 0;
}
.product-details ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}
.product-details ul li::before { /* Icono de check para listas */
    content: '✓';
    color: #28a745; /* Verde para check */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* INGREDIENTS SECTION */
.ingredient-card {
    text-align: center;
}
.ingredient-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Imágenes circulares para ingredientes */
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #e6f7ff;
}

/* TESTIMONIALS */
.testimonial-slider { /* Se necesitaría JS para un slider real */
    /* Estilos básicos si no hay JS */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.testimonial-item {
    background-color: #e6f7ff; /* Azul claro de fondo */
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #005A9C;
}
.testimonial-item p {
    font-style: italic;
    margin-bottom: 10px;
}
.testimonial-item .author {
    font-weight: bold;
    color: #005A9C;
    text-align: right;
}

/* BLOG PREVIEW SECTION */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.blog-post-preview {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    overflow: hidden; /* Para que el borde redondeado afecte a la imagen */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-post-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.blog-post-preview img {
    width: 100%;
    height: 200px; /* Altura fija para las imágenes de preview */
    object-fit: cover;
    border-radius: 0; /* Sin borde redondeado arriba si es parte del card */
    border-bottom: 1px solid #eee;
}
.blog-post-content {
    padding: 20px;
}
.blog-post-content h3 a {
    color: #005A9C;
}
.blog-post-content p {
    font-size: 0.9em;
    color: #666;
}
.read-more-link {
    display: inline-block;
    margin-top: 10px;
    color: #E83E8C;
    font-weight: bold;
}

/* WHERE TO BUY / CALL TO ACTION SECTION */
.cta-section {
    background-color: #005A9C; /* Fondo azul corporativo */
    color: white;
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}
.cta-section p {
    color: #f0f0f0;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left:auto;
    margin-right:auto;
}

/* FOOTER */
.main-footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 0 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 200px; /* Para que no se compriman demasiado */
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #E83E8C;
    text-decoration: none;
}

.social-links a {
    margin: 0 10px;
    display: inline-block; /* Para que el margen funcione */
}
.social-links img { /* Asumiendo que son SVGs o PNGs pequeños */

    transition: filter 0.3s ease, transform 0.3s ease;
}
.social-links a:hover img {
    filter: none; /* Color original al pasar el mouse */
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9em;
    color: #aaa;
}
.footer-bottom a {
    color: #ccc;
}


/* BLOG PAGE SPECIFIC */
.blog-page .container {
    max-width: 900px; /* Contenido del blog más centrado */
}
.blog-list {
    margin-top: 40px;
}
.blog-list-item {
    display: flex;
    flex-wrap: wrap; /* Para móviles */
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.blog-list-item:last-child {
    border-bottom: none;
}
.blog-list-item-image {
    flex: 0 0 250px; /* Ancho fijo para la imagen */
}
.blog-list-item-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.blog-list-item-content {
    flex: 1;
}
.blog-list-item-content h3 { margin-top: 0; }
.blog-list-item-content h3 a { color: #005A9C; }
.blog-list-item-content .meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
}

/* ARTICLE PAGE SPECIFIC */
.article-header {
    text-align: center;
    margin-bottom: 30px;
}
.article-header .meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}
.article-content {
    font-size: 1.05em;
}
.article-content img.full-width-image { /* Para imágenes destacadas en artículos */
    width: 100%;
    margin: 20px 0;
    border-radius: 10px;
}
.article-content p {
    margin-bottom: 1.5em;
}
.article-content h3 { /* Subtítulos dentro del artículo */
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    font-size: 1.4em;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.5em;
    padding-left: 30px;
}
.article-content blockquote {
    border-left: 4px solid #005A9C;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #f0f8ff;
    font-style: italic;
}


/* DONDE COMPRAR PAGE */
.store-category {
    margin-bottom: 40px;
}
.store-list {
    list-style: none;
    padding-left: 0;
}
.store-list li {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.store-list li strong { color: #005A9C; }
.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e9e9e9;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    border-radius: 8px;
    margin-top: 20px;
}

/* CONTACT PAGE */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #005A9C;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px); /* Para padding interno */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-info {
    text-align: center;
    margin-top: 40px;
}
.contact-info p {
    font-size: 1.1em;
}


/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        align-items: center;
    }
    .main-nav ul {
        margin-top: 15px;
        flex-direction: column; /* O implementar menú hamburguesa con JS */
        text-align: center;
        width: 100%;
    }
    .main-nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%; /* Para que ocupen todo el ancho en menú columna */
    }
    .main-nav ul li a {
        display: block; /* Para que el padding y borde funcionen bien */
        padding: 10px;
    }

    .hero h1 { font-size: 2.2em; }
    .hero p { font-size: 1.1em; }

    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .product-showcase {
        flex-direction: column;
    }
    .product-image, .product-details {
        flex-basis: auto; /* Resetea la base para que ocupen el ancho */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-column {
        margin-bottom: 20px;
    }
    .social-links {
        margin-bottom: 20px;
    }
    .blog-list-item {
        flex-direction: column;
    }
    .blog-list-item-image {
        flex-basis: auto;
        margin-bottom:15px;
    }
    .store-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Utilidades */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Estilos para la alerta de cookies (si se añade) */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.95); /* #333 con transparencia */
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-consent p {
    margin: 0 0 10px 0;
    color: #f0f0f0;
    font-size: 0.9em;
}
.cookie-consent button {
    background-color: #E83E8C;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}
.cookie-consent button:hover {
    background-color: #c42a72;
}

.icono-social-instagram { 
    position: relative;
    top: 4px;
    width: 52px; 
    height: 52px;

}

.icono-social-facebook { 
    width: 45px; 
    height: 45px;

}

/* --- Estilos para el carrusel (Imágenes siempre con zoom) --- */

/* 1. Contenedor principal del carrusel (sin cambios) */
.isalin-slideshow {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

/* 2. Estilo base para TODAS las imágenes (diapositivas) */
.isalin-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;

  /*
   * CAMBIO CLAVE 1:
   * El zoom se aplica aquí, al estado base.
   * Ahora todas las imágenes son grandes por defecto.
  */
  transform: scale(1.2);

  /*
   * CAMBIO CLAVE 2:
   * La transición ahora SOLO afecta a la opacidad.
   * Hemos eliminado la transición para 'transform'.
  */
  transition: opacity 1s ease-in-out;
}

/* 3. Estilo específico para la PRIMERA imagen */
.isalin-slideshow .slide:first-child {
  /*
   * CAMBIO CLAVE 3:
   * La transformación completa (zoom + movimiento) se aplica
   * aquí, en su estado base.
  */
  transform: scale(1.2) translateX(0px);
}

/* 4. Estilo para la imagen que esté activa (visible) */
.isalin-slideshow .slide.active {
  /*
   * Esta regla ahora es muy simple: solo se encarga
   * de hacer visible la imagen. El zoom ya está aplicado.
  */
  opacity: 1;

}



/* --- Estilos para la Galería de Producto (Actualizado) --- */

/* Contenedor principal para alinear la galería */
.galeria-producto {
  display: flex;
  /* CAMBIO 1: Las miniaturas siempre estarán en columna (debajo) */
  flex-direction: column; 
  align-items: center; /* Centra los elementos */
  gap: 15px; /* Espacio entre la imagen grande y las miniaturas */
}

.imagen-principal img {
  width: 100%;
  max-width: 400px; 
  height: auto;
  border-radius: 8px;
  border: 1px solid #eee;
  /* CAMBIO 2: La imagen principal siempre se verá un 5% más grande */
  transform: scale(1.2); 
  transition: transform 0.3s ease;
}

.miniaturas {
  display: flex;
  justify-content: center; /* Centra las miniaturas horizontalmente */
  flex-wrap: wrap; /* Permite que pasen a la siguiente línea si no caben */
  gap: 10px; /* Espacio entre miniaturas */
}

.miniatura {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.miniatura:hover {
  opacity: 1;
  border-color: #aaa;
}

.miniatura.active {
  opacity: 1;
  border-color: #0d6efd; 
  transform: scale(1.05); 
}

/* --- Regla específica para mover la miniatura pequeña --- */

.miniatura.isalin-pequena {
  /* Mueve la imagen 20px a la derecha. 
    Puedes cambiar este valor según lo necesites (ej: 15px, 25px, etc.).
  */
  transform: translateX(20px);
}

/* Ajuste para cuando la miniatura pequeña esté ACTIVA, 
  para que mantenga tanto el movimiento como el zoom.
*/
.miniatura.isalin-pequena.active {
  transform: scale(1.05) translateX(20px);
}

/* =========================================================
   NUESTRA ESTRELLA — SMARTPHONE FIX (≤ 768px)
   - En móviles, mostramos las 3 imágenes como grilla estática.
   - Se neutraliza 'absolute + opacity' que provocaba espacio en blanco.
   - Sin afectar escritorio: el slideshow se mantiene para >768px.
   ========================================================= */
@media (max-width: 768px) {
  /* Apunta solo a la sección de “Nuestra Estrella” */
  #nuestra-estrella .isalin-slideshow {
    /* Deja de comportarse como carrusel superpuesto */
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;   /* 2 columnas en móviles medianos */
    gap: 12px;
    overflow: visible;
  }

  /* En móviles, que cada imagen fluya en documento */
  #nuestra-estrella .isalin-slideshow .slide {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    display: block !important;
  }

  /* En móviles chicos, 1 por fila */
  @media (max-width: 420px) {
    #nuestra-estrella .isalin-slideshow {
      grid-template-columns: 1fr;
    }
  }
}

/* Accesibilidad: si el usuario prefiere menos movimiento, evita cambios de opacidad */
@media (prefers-reduced-motion: reduce) {
  .isalin-slideshow .slide { transition: none; }
}
/* ========================================================================== 
   ISALIN® - Ajuste profesional de navegación móvil
   Objetivo: evitar que el encabezado y el menú bloqueen la pantalla en smartphones.
   ========================================================================== */

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 90, 156, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #005A9C;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 90, 156, 0.08);
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-backdrop {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --isalin-mobile-header-height: 72px;
    }

    .main-header {
        padding: 8px 0;
        will-change: transform;
        transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .main-header .container {
        width: 92%;
        min-height: var(--isalin-mobile-header-height);
        padding-top: 0;
        padding-bottom: 0;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .main-header .logo {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .main-header .logo img {
        height: 52px !important;
        width: auto !important;
        max-width: 58vw;
        object-fit: contain;
        border-radius: 0;
    }

    .main-header .logo img + img {
        max-width: 54px;
        flex: 0 0 auto;
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .main-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--isalin-mobile-header-height, 72px);
        background: #fff;
        border-top: 1px solid rgba(0, 90, 156, 0.10);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
        max-height: calc(100dvh - var(--isalin-mobile-header-height, 72px));
        overflow: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 1001;
        -webkit-overflow-scrolling: touch;
    }

    .main-header.nav-open .main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav ul {
        width: 100%;
        margin: 0 !important;
        padding: 8px 0 16px !important;
        display: flex;
        flex-direction: column !important;
        text-align: left;
    }

    .main-nav ul li {
        width: 100%;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 90, 156, 0.08);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 26px !important;
        font-size: 1rem;
        line-height: 1.25;
        border-bottom: 0 !important;
        color: #005A9C;
    }

    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        color: #E83E8C;
        background: rgba(232, 62, 140, 0.06);
        text-decoration: none;
    }

    .main-nav ul li a.active {
        border-left: 4px solid #E83E8C !important;
        padding-left: 22px !important;
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: var(--isalin-mobile-header-height, 72px) 0 0;
        background: rgba(18, 24, 38, 0.34);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 1000;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open .mobile-nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-header.header-hidden {
        transform: translateY(calc(-100% - 8px));
    }

    body.mobile-menu-open .main-header,
    .main-header.nav-open {
        transform: translateY(0) !important;
    }
}

@media (max-width: 420px) {
    :root {
        --isalin-mobile-header-height: 66px;
    }

    .main-header {
        padding: 6px 0;
    }

    .main-header .container {
        min-height: var(--isalin-mobile-header-height);
    }

    .main-header .logo img {
        height: 46px !important;
        max-width: 60vw;
    }

    .main-header .logo img + img {
        max-width: 48px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
    }
}

@media (min-width: 769px) {
    .nav-toggle,
    .mobile-nav-backdrop {
        display: none !important;
    }

    .main-header .main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
}

/* ========================================================================== 
   ISALIN® - Corrección menú móvil: asegurar que las opciones sean clicables
   ========================================================================== */
@media (max-width: 768px) {
    .main-header {
        z-index: 3000;
    }

    .main-header .main-nav {
        z-index: 3002;
    }

    .mobile-nav-backdrop {
        z-index: 2990;
    }

    .main-header.nav-open .main-nav,
    .main-header.nav-open .main-nav ul,
    .main-header.nav-open .main-nav li,
    .main-header.nav-open .main-nav a {
        pointer-events: auto;
    }

    .main-header.nav-open .main-nav a {
        position: relative;
        z-index: 3003;
    }
}

/* ========================================================================== 
   ISALIN® - Corrección final mobile: header con altura fija profesional
   Mantiene siempre el tamaño compacto del encabezado, incluso después de abrir
   menú, hacer scroll o volver hacia arriba en navegadores móviles.
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --isalin-mobile-header-height: 96px !important;
    }

    .main-header {
        height: var(--isalin-mobile-header-height) !important;
        min-height: var(--isalin-mobile-header-height) !important;
        max-height: var(--isalin-mobile-header-height) !important;
        padding: 0 !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        background: #fff !important;
    }

    .main-header .container {
        width: 100% !important;
        max-width: none !important;
        height: var(--isalin-mobile-header-height) !important;
        min-height: var(--isalin-mobile-header-height) !important;
        max-height: var(--isalin-mobile-header-height) !important;
        padding: 0 18px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .main-header .logo {
        height: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        line-height: 1 !important;
    }

    .main-header .logo img {
        height: 58px !important;
        max-height: 58px !important;
        width: auto !important;
        max-width: 58vw !important;
        display: block !important;
        object-fit: contain !important;
        border-radius: 0 !important;
    }

    .main-header .logo img + img {
        height: 54px !important;
        max-height: 54px !important;
        max-width: 54px !important;
    }

    .nav-toggle {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }

    .main-header .main-nav {
        top: var(--isalin-mobile-header-height) !important;
        max-height: calc(100dvh - var(--isalin-mobile-header-height)) !important;
    }

    .mobile-nav-backdrop {
        inset: var(--isalin-mobile-header-height) 0 0 !important;
    }

    .main-header.header-hidden {
        transform: translateY(calc(-1 * var(--isalin-mobile-header-height) - 8px)) !important;
    }

    body.mobile-menu-open .main-header,
    .main-header.nav-open {
        height: var(--isalin-mobile-header-height) !important;
        min-height: var(--isalin-mobile-header-height) !important;
        max-height: var(--isalin-mobile-header-height) !important;
        transform: translateY(0) !important;
    }
}

@media (max-width: 420px) {
    :root {
        --isalin-mobile-header-height: 88px !important;
    }

    .main-header .container {
        padding: 0 16px !important;
    }

    .main-header .logo img {
        height: 52px !important;
        max-height: 52px !important;
        max-width: 60vw !important;
    }

    .main-header .logo img + img {
        height: 48px !important;
        max-height: 48px !important;
        max-width: 48px !important;
    }

    .nav-toggle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}


/* Consentimiento de cookies profesional */
.cookie-consent-modern[hidden], .cookie-preferences-modal[hidden] { display: none !important; }
.cookie-consent-modern {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000;
    max-width: 1120px; margin: 0 auto; padding: 0; background: #fff; color: #283044;
    border: 1px solid rgba(46,54,87,.18); border-radius: 18px;
    box-shadow: 0 18px 55px rgba(15,23,42,.25);
}
.cookie-consent-content { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 20px; }
.cookie-consent-content strong { color: #2E3657; font-size: 1.02rem; }
.cookie-consent-content p { margin: 5px 0 4px; line-height: 1.4; color: #4C5565; font-size: .92rem; }
.cookie-consent-content a { color: #2E3657; font-weight: 700; }
.cookie-consent-actions, .cookie-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-button { border: 1px solid #2E3657; border-radius: 999px; padding: 10px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.cookie-button-primary { background: #2E3657; color: #fff; }
.cookie-button-secondary { background: #fff; color: #2E3657; }
.cookie-preferences-modal { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.58); }
.cookie-preferences-dialog { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 24px 70px rgba(15,23,42,.35); }
.cookie-preferences-dialog h2 { margin: 0 0 8px; color: #2E3657; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(46,54,87,.12); }
.cookie-option span { display: grid; gap: 3px; }
.cookie-option small { color: #667085; line-height: 1.35; }
.cookie-option input { width: 20px; height: 20px; flex: 0 0 auto; }
.cookie-dialog-actions { margin-top: 18px; }
.cookie-settings-button {
    position: fixed; left: 12px; bottom: 12px; z-index: 9990;
    width: 26px; height: 26px; padding: 2px; display: inline-grid; place-items: center;
    border: 0; border-radius: 0; background: transparent; color: #2E3657; cursor: pointer;
    box-shadow: none; font-size: 0; line-height: 0;
    opacity: .78; transition: opacity .22s ease, transform .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.cookie-settings-button[hidden] { display: none !important; }
.cookie-settings-button svg { display: block; width: 20px; height: 20px; fill: currentColor; pointer-events: none; }
.cookie-settings-button.is-idle { opacity: .28; }
.cookie-settings-button:hover, .cookie-settings-button:focus-visible { opacity: 1; transform: translateY(-1px); box-shadow: none; }
.cookie-settings-button:focus-visible { outline: 2px solid rgba(46,54,87,.32); outline-offset: 3px; }

.cookie-modal-open { overflow: hidden; }
.field-help { display: block; margin-top: 2px; color: #667085; font-size: .78rem; line-height: 1.35; }
.product-regulatory, .article-regulatory { color: #556070; font-size: .9rem; }
@media (max-width: 760px) {
    .cookie-consent-modern { left: 10px; right: 10px; bottom: 10px; }
    .cookie-consent-content { align-items: stretch; flex-direction: column; padding: 16px; }
    .cookie-consent-actions { display: grid; grid-template-columns: 1fr; }
    .cookie-button { width: 100%; }
    .cookie-dialog-actions { display: grid; grid-template-columns: 1fr; }
}

/* Protección discreta del formulario de contacto */
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* ISALIN: aviso claro de cookies, noviembre de 2026 */
.cookie-consent-modern { width: auto; text-align: left; }
.cookie-consent-modern .cookie-consent-content { gap: 20px; padding: 18px 20px; }
.cookie-consent-modern .cookie-consent-content > div:first-child { flex: 1 1 620px; }
.cookie-consent-modern .cookie-consent-content p { max-width: 760px; line-height: 1.5; }
.cookie-consent-modern .cookie-consent-actions { flex: 0 1 380px; align-items: stretch; }
.cookie-consent-modern .cookie-button { min-height: 44px; white-space: nowrap; margin: 0; border: 1px solid #2e3657; border-radius: 999px; }
.cookie-consent-modern .cookie-button-primary { background: #2e3657; color: #fff; }
.cookie-consent-modern .cookie-button-secondary { background: #fff; color: #2e3657; }
.cookie-consent-modern .cookie-button:hover { background: #e9edf5; color: #2e3657; }
.cookie-consent-modern .cookie-button[data-cookie-action="accept"],
.cookie-consent-modern .cookie-button[data-cookie-action="reject"] { flex: 1 1 165px; }
.cookie-consent-modern .cookie-button[data-cookie-action="configure"] { flex: 1 1 100%; }
.cookie-button:focus-visible { outline: 3px solid #096bc2; outline-offset: 3px; }
.cookie-option input { min-width: 20px; min-height: 20px; accent-color: #2e3657; }
.cookie-preferences-dialog:focus { outline: none; }
.cookie-preferences-dialog #cookie-dialog-description { line-height: 1.5; color: #4c5565; }
.cookie-settings-button { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.cookie-settings-button.is-idle { opacity: .65; }
@media (max-width: 760px) {
    .cookie-consent-modern { max-height: calc(100dvh - 20px); overflow-y: auto; }
    .cookie-consent-modern .cookie-consent-content { gap: 14px; padding: 16px; }
    .cookie-consent-modern .cookie-consent-content > div:first-child,
    .cookie-consent-modern .cookie-consent-actions { flex: none; }
    .cookie-consent-modern .cookie-consent-actions { grid-template-columns: 1fr 1fr; }
    .cookie-consent-modern .cookie-button { white-space: normal; padding: 10px 8px; font-size: .85rem; }
    .cookie-consent-modern .cookie-button[data-cookie-action="configure"] { grid-column: 1 / -1; }
}

/* ISALIN · refinamiento del sitio público */
:root {
    --isalin-ink: #202944;
    --isalin-muted: #48546b;
    --isalin-cream: #fffaef;
    --isalin-rose: #a71350;
    --isalin-red: #b21433;
    --isalin-border: #e1e5ee;
}

.main-header .main-nav ul li a,
.main-header .main-nav ul li a:hover,
.main-header .main-nav ul li a.active,
.main-header .main-nav ul li a[aria-current="page"] {
    text-decoration: none;
    border-bottom: 0;
}
.main-header .main-nav ul li a:hover,
.main-header .main-nav ul li a.active,
.main-header .main-nav ul li a[aria-current="page"] {
    color: var(--isalin-red);
    background: transparent;
}
.main-header .main-nav a:focus-visible,
.cta-button:focus-visible,
.shop-button:focus-visible,
.shop-faq summary:focus-visible,
.shop-summary button:focus-visible,
.shop-summary input:focus-visible,
.shop-summary select:focus-visible,
.shop-summary textarea:focus-visible {
    outline: 3px solid #005a9c;
    outline-offset: 3px;
}
.main-footer { background-color: #202944; }
.main-footer a { color: #fff; }
.main-footer a:hover { color: #ffd5e4; }

.isalin-home .home-hero {
    background: var(--isalin-cream);
    color: var(--isalin-ink);
    border-bottom: 1px solid #f0e6d7;
}
.home-hero .home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(22px, 4vw, 56px);
    padding-block: clamp(32px, 5.3vw, 70px);
}
.home-hero h1 {
    color: var(--isalin-ink);
    font-size: clamp(2rem, 4.1vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 0 0 .35em;
}
.home-hero p {
    color: var(--isalin-muted);
    max-width: 44ch;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    margin: 0 0 1.3rem;
}
.home-hero .home-kicker {
    color: var(--isalin-rose);
    font-weight: 800;
    font-size: .95rem;
    margin: 0 0 .75rem;
}
.home-hero .home-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: 38% center;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(32, 41, 68, .14);
}
.home-hero .home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.home-actions .cta-button,
.isalin-home .home-buy .cta-button,
.isalin-shop .shop-hero .cta-button {
    background: var(--isalin-rose);
    color: #fff;
    text-shadow: none;
}
.home-actions .cta-button:hover,
.isalin-home .home-buy .cta-button:hover,
.isalin-shop .shop-hero .cta-button:hover {
    background: #83103c;
    color: #fff;
    text-decoration: none;
}
.home-actions .home-more { color: var(--isalin-ink); font-weight: 800; }
.home-hero .home-shipping { max-width: none; margin: 1rem 0 0; font-size: .94rem; font-weight: 800; }
.isalin-home .home-buy h2 { margin: 0 0 .45em; }
.home-buy .home-intro { max-width: 54ch; margin: 0 auto 24px; text-align: center; }
.home-buy .home-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
}
.home-product-grid .home-product {
    display: grid;
    justify-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--isalin-border);
    border-radius: 18px;
    padding: 20px;
    color: var(--isalin-ink);
    transition: border-color .18s, box-shadow .18s;
}
.home-product-grid .home-product:hover {
    border-color: var(--isalin-rose);
    box-shadow: 0 9px 25px rgba(32, 41, 68, .09);
    text-decoration: none;
}
.home-product img { width: 170px; aspect-ratio: 1; object-fit: contain; }
.home-product h3 { margin: .65rem 0 .2rem; font-size: 1.14rem; color: var(--isalin-ink); }
.home-product strong { font-size: 1.25rem; }
.home-product p { margin: .36rem 0 0; color: var(--isalin-muted); }

.isalin-shop .shop-hero {
    padding: 0;
    background: var(--isalin-cream);
    color: var(--isalin-ink);
    border-bottom: 1px solid #f0e6d7;
}
.isalin-shop .shop-hero-grid {
    max-width: 1100px;
    grid-template-columns: minmax(0, 1fr) minmax(235px, .52fr);
    gap: 24px;
    padding-block: clamp(24px, 4vw, 46px);
}
.isalin-shop .shop-hero h1 {
    color: var(--isalin-ink);
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 .3em;
    letter-spacing: -.025em;
}
.isalin-shop .shop-hero p { color: var(--isalin-muted); margin: 0 0 18px; }
.isalin-shop .shop-hero .shop-eyebrow {
    background: transparent;
    color: var(--isalin-rose);
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 0 .6rem;
}
.isalin-shop .shop-delivery {
    background: #fff;
    border: 1px solid #ecdfca;
    border-radius: 14px;
    padding: 16px 18px;
    color: var(--isalin-ink);
}
.isalin-shop .shop-delivery strong { display: block; margin-bottom: .35rem; }
.isalin-shop .shop-delivery p { font-size: .94rem; margin: 0; }
.isalin-shop .shop-catalog {
    padding-block: clamp(18px, 3.8vw, 42px);
}
.isalin-shop #productos-isalin,
.isalin-shop #preguntas-tienda {
    margin: 0 0 .42em;
    text-align: left;
    color: var(--isalin-ink);
    font-size: clamp(1.48rem, 3vw, 2.05rem);
    line-height: 1.2;
}
.isalin-shop .shop-intro { margin: 0 0 20px; }
.isalin-shop .product-card { border-radius: 18px; min-height: 0; }
.isalin-shop .product-card-media { min-height: 0; padding: 14px; aspect-ratio: 1; box-sizing: border-box; }
.isalin-shop .product-card-media img { width: 100%; height: 100%; min-height: 0; border-radius: 10px; filter: none; }
.isalin-shop .product-card-body { flex: 1; padding: clamp(12px, 1.6vw, 18px); }
.isalin-shop .product-actions { margin-top: auto; }
.isalin-shop .shop-summary { border-radius: 18px; }
.isalin-shop .shop-summary-header { background: var(--isalin-ink); }
.isalin-shop .shipping-message {
    margin: 10px 0;
    font-size: .9rem;
    color: var(--isalin-muted);
}
.isalin-shop #cart-shipping.is-free { color: #176542; }
.isalin-shop .shop-faq {
    margin: clamp(28px, 5vw, 62px) auto 0;
    max-width: 850px;
}
.isalin-shop .shop-faq .faq-item { padding: 0; margin: 8px 0; border-radius: 12px; }
.isalin-shop .shop-faq summary {
    padding: .85rem 1rem;
    cursor: pointer;
    color: var(--isalin-ink);
    font-weight: 800;
}
.isalin-shop .shop-faq .faq-item p { margin: 0; padding: 0 1rem 1rem; }
.isalin-shop #productos-isalin,
.isalin-shop #resumen-compra,
.isalin-shop .product-card { scroll-margin-top: 120px; }

.product-page .product-details h1 {
    margin: 0 0 .35em;
    color: var(--isalin-ink);
    font-size: clamp(1.85rem, 3.8vw, 2.95rem);
    line-height: 1.12;
}
.product-page .product-subtitle { margin-top: 0; color: var(--isalin-muted); }
.product-page .imagen-principal img {
    box-sizing: border-box;
    transform: none;
}
.product-page .tab-headers { flex-wrap: wrap; gap: 0 6px; }
.product-page .tab-header {
    background: transparent;
    border: 0;
    border-bottom: 4px solid transparent;
    color: var(--isalin-ink);
    font: inherit;
    font-weight: 800;
}
.product-page .tab-header:focus-visible { outline: 3px solid #005a9c; outline-offset: -3px; }

.order-status-wrap .order-status-card,
.confirmation-wrap .confirmation-card {
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: anywhere;
}
.order-status-wrap .status-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (max-width: 760px) {
    .order-status-wrap .status-form { grid-template-columns: minmax(0, 1fr); }
    .confirmation-wrap .confirmation-card { padding: 24px 18px; }
    .confirmation-wrap .confirmation-card h1 { font-size: clamp(1.55rem, 6vw, 2.35rem); }
}

@media (max-width: 740px) {
    .home-hero .home-hero-grid,
    .isalin-shop .shop-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .home-hero .home-hero-image { aspect-ratio: 16 / 10; }
    .home-buy .home-product-grid { grid-template-columns: minmax(0, 1fr); }
    .home-product-grid .home-product { padding: 14px; }
    .isalin-shop .shop-hero-grid { gap: 16px; }
    .isalin-shop .shop-hero .cta-button { padding: 11px 20px; }
    .isalin-shop .product-card-media { aspect-ratio: auto; width: 100%; }
    .isalin-shop .product-card-media img { height: auto; max-width: 165px; }
}
@media (min-width: 769px) and (max-width: 1110px) {
    .main-header .container { width: 94%; gap: 10px; }
    .main-header .logo { display: flex; flex-shrink: 0; align-items: center; }
    .main-header .logo img { max-height: 43px; width: auto; }
    .main-header .main-nav ul { flex-wrap: wrap; justify-content: flex-end; column-gap: 12px; }
    .main-header .main-nav ul li { margin-left: 0; }
    .main-header .main-nav ul li a { white-space: nowrap; }
}
@media (max-width: 768px) {
    .main-header .main-nav ul li a.active {
        border-left: 0 !important;
        padding-left: 26px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .main-header .main-nav a,
    .home-product-grid .home-product { transition: none; }
}
