@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --color-fondo: #F3EFE7;
    --color-texto: #333333;
    --color-salmon: #E5988F;
    --color-negro: #1A1A1A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER UNIFICADO */
.top-bar { 
    background-color: var(--color-salmon); 
    color: white; 
    text-align: center; 
    padding: 8px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: uppercase; 
}

.header { 
    background-color: var(--color-fondo); 
    padding: 15px 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100;
}

.logo-menu-wrapper { display: flex; align-items: center; gap: 40px; }
.logo img { height: 80px; width: auto; display: block; }

.main-nav { display: flex; gap: 20px; }
.main-nav a { 
    text-decoration: none; 
    color: var(--color-texto); 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    font-weight: 700; 
    transition: color 0.3s ease;
}

.main-nav a:hover { color: var(--color-salmon); }
.main-nav a.activo { color: var(--color-salmon); }

.cart-link { 
    text-decoration: none; 
    color: var(--color-negro); 
    font-size: 0.9rem; 
    font-weight: 700; 
}

/* HERO */
.hero { background-image: url('../img/producto-principal.png'); background-size: cover; background-position: center; height: 85vh; display: flex; align-items: center; justify-content: center; }
.hero-overlay { background: rgba(0, 0, 0, 0.25); width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero-text h1 { font-size: 4.5rem; color: #ffffff; font-weight: 700; line-height: 1; }
.subtitulo { display: block; color: #fff; font-size: 2rem; font-family: 'Times New Roman', serif; font-style: italic; font-weight: 300; }
.hero-p-grande { color: #ffffff; font-size: 1.2rem; margin-top: 15px; max-width: 600px; }
.btn-primary { background-color: var(--color-salmon); color: white; padding: 14px 40px; text-decoration: none; border-radius: 50px; font-weight: 600; margin-top: 40px; display: inline-block; }

/* SECCIÓN INFORMACIÓN */
.seccion-info-productos { padding: 80px 5%; background-color: #ffffff; }

.fila-beneficio { display: flex; align-items: center; gap: 40px; max-width: 1150px; margin: 0 auto 80px auto; }
.fila-invertida { flex-direction: row-reverse; }

/* Estilo Base (PC) */
.col-imagen { flex: 0 0 35%; height: 300px; overflow: hidden; border-radius: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.col-imagen img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; } 

.col-texto h2 { font-size: 1.8rem; margin-bottom: 20px; color: var(--color-negro); }
.enlace-filosofia { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--color-negro); color: var(--color-negro); text-transform: uppercase; font-size: 0.9rem; }

/* TIKTOK */
.seccion-tiktok { padding: 60px 20px; text-align: center; }
.titulo-seccion { 
    font-size: 1.8rem; 
    margin-bottom: 40px; 
    color: var(--color-negro); 
    font-weight: 700; 
    text-transform: uppercase; 
    text-align: center; 
}
.tiktok-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    max-width: 750px; 
    margin: 0 auto; 
}
.tiktok-item { display: flex; justify-content: center; }
blockquote.tiktok-embed { max-width: 325px !important; margin: 0 !important; }

/* CASOS DE ÉXITO */
.casos-exito { 
    padding: 60px 20px; 
    text-align: center;
    background-color: #ffffff; 
    border-top: 4px solid var(--color-salmon); 
    margin-top: 20px;
}
.casos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 1100px; margin: 0 auto; }
.caso-item { 
    background: var(--color-fondo); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    padding-bottom: 10px;
}
.caso-item img { 
    width: 60%; 
    aspect-ratio: 2/3; 
    object-fit: cover; 
    display: block; 
    margin: 20px auto 10px auto; 
    border-radius: 10px; 
}
.caso-info { padding: 5px 15px 15px; font-size: 0.85rem; color: #555; font-weight: 600; }

/* PRODUCTOS */
/* Estilo específico para el título de la página de productos */
.pagina-productos { padding-top: 20px; }

.titulo-pagina {
    text-align: center;      /* CENTRADO */
    font-size: 2.2rem;       /* TAMAÑO REDUCIDO (Más amigable) */
    margin-top: 20px;
    margin-bottom: 30px;
    color: var(--color-negro);
    font-weight: 700;
    text-transform: uppercase;
}

.nuestros-productos { padding: 60px 20px; }

.grid-productos, .grid-catalogo { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
    max-width: 1250px; 
    margin: 0 auto; 
}

.producto-item, .producto-card { text-align: center; }
.marco-imagen { width: 100%; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.marco-imagen img { width: 100%; height: 100%; object-fit: cover; }

.producto-item h3, .info-producto h3 { 
    font-size: 0.75rem; 
    margin-bottom: 4px; 
    font-weight: 700; 
    min-height: 35px; 
    display: flex;
    align-items: center; 
    justify-content: center; 
}

.precio { font-size: 0.9rem; color: var(--color-salmon); font-weight: 700; margin-bottom: 8px; }
.btn-agregar-carrito { background-color: var(--color-negro); color: white; border: none; width: 100%; padding: 10px; font-size: 0.7rem; font-weight: 700; cursor: pointer; text-transform: uppercase; }

/* LÍNEAS DE PRODUCTO (SUBTÍTULOS) */
.subtitulo-linea { 
    font-size: 1.2rem; /* REDUCIDO un poco (antes 1.4rem) */
    text-align: left; 
    max-width: 1250px; 
    margin: 30px auto 20px; 
    border-bottom: 2px solid var(--color-salmon); 
    padding-bottom: 8px; 
    color: #444; /* Un gris oscuro suave en vez de negro puro */
}

/* CARRITO LATERAL */
.carrito-panel { position: fixed; top: 0; right: -450px; width: 400px; height: 100%; background: #fff; z-index: 2000; transition: 0.4s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.carrito-panel.abierto { right: 0; }
.carrito-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1500; display: none; }
.carrito-overlay.visible { display: block; }
.carrito-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.carrito-body { flex: 1; overflow-y: auto; padding: 20px; }
.item-carrito { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid #f9f9f9; padding-bottom: 8px; }
.item-carrito img { width: 50px; aspect-ratio: 2/3; object-fit: cover; }
.btn-finalizar { width: 100%; background: #25D366; color: white; border: none; padding: 15px; font-weight: 700; cursor: pointer; border-radius: 5px; }

/* WHATSAPP */
.whatsapp-container { position: fixed; bottom: 20px; right: 10px; z-index: 1000; }
.whatsapp-container a { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; text-decoration: none; }
.whatsapp-container img { width: 50px; }
.whatsapp-container span { color: var(--color-negro); font-weight: 700; font-size: 0.75rem; border-bottom: 2px solid var(--color-negro); white-space: nowrap; }

/* FOOTER */
.footer { background-color: var(--color-negro); color: #fff; padding: 30px 20px; margin-top: 40px; }
.footer-container { display: flex; justify-content: space-around; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 40px; }
.footer-column { flex: 1; min-width: 250px; }
.footer-logo { height: 80px; filter: brightness(0) invert(1); margin-bottom: 20px; display: block; }
.footer-column h3 { color: var(--color-salmon); margin-bottom: 20px; font-size: 1.1rem; }
.footer-column a { color: #ccc; text-decoration: none; display: block; margin-bottom: 12px; }
.social-links { display: flex; gap: 15px; align-items: center; }
.social-links a { display: inline-block; margin-bottom: 0; }
.social-links img { height: 28px; filter: brightness(0) invert(1); display: block; }
.footer-bottom { text-align: center; border-top: 1px solid #333; margin-top: 20px; padding-top: 15px; font-size: 0.8rem; color: #777; }

/* =========================================
   RESPONSIVE (FORZADO PARA TODOS LOS MOVILES)
   ========================================= */

@media (max-width: 950px) { 
    
    /* 1. Header más pequeño */
    .header { padding: 10px 15px; }
    .logo img { height: 50px; }
    .logo-menu-wrapper { gap: 15px; }
    .main-nav a { font-size: 0.7rem; } 

    /* 2. Hero más corto */
    .hero { height: 50vh; min-height: 300px; } 
    .hero-text h1 { font-size: 2rem; } 
    .subtitulo { font-size: 1.2rem; }
    .hero-p-grande { font-size: 0.9rem; margin-top: 10px; }
    .btn-primary { margin-top: 20px; padding: 10px 25px; font-size: 0.8rem; }

    /* 3. Espacios reducidos */
    .seccion-info-productos, .nuestros-productos, .seccion-tiktok, .casos-exito {
        padding: 30px 15px; 
    }
    .footer { padding: 20px 15px; }

    .fila-beneficio { flex-direction: column; text-align: center; } 

    /* 4. Imágenes informativas (Banner 250px) */
    .col-imagen { 
        width: 100%; 
        height: 250px; 
        border-radius: 15px;
        margin: 0 auto 15px auto;
        flex: none; 
    }
    .col-imagen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center !important;
    }
    
    /* 5. Textos generales */
    .col-texto h2 { font-size: 1.2rem; margin-top: 0; line-height: 1.3; }
    .col-texto p { font-size: 0.85rem; line-height: 1.4; }

    /* 6. Títulos de Productos más pequeños en celular */
    .titulo-pagina { font-size: 1.5rem; margin-top: 10px; }
    .subtitulo-linea { font-size: 1rem; margin-top: 20px; }

    /* 7. Productos en 2 columnas */
    .grid-productos, .grid-catalogo { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    .titulo-seccion { font-size: 1.3rem; margin-bottom: 20px; }

    /* --- PRODUCTOS CUADRADOS --- */
    .marco-imagen { aspect-ratio: 1/1; }
    .btn-agregar-carrito {
        padding: 8px 5px;
        font-size: 0.65rem;
        margin-top: 5px;
    }
    .producto-item, .producto-card { margin-bottom: 15px; }
    /* ---------------------------------- */

    /* 8. TikTok (Zoom Out) */
    .tiktok-grid { grid-template-columns: 1fr; } 
    .tiktok-item {
        transform: scale(0.85); 
        width: 100%;
        margin-bottom: -60px; 
        margin-top: -20px;
        display: flex;
        justify-content: center;
    }

    /* 9. Casos de Éxito (Galería 2 columnas) */
    .casos-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    } 
    .caso-item { padding: 0; display: flex; flex-direction: column; }
    .caso-item img { 
        width: 100%; 
        aspect-ratio: 1/1; 
        margin: 0; 
        border-radius: 0; 
    }
    .caso-info { padding: 8px 5px; font-size: 0.7rem; line-height: 1.2; }

    /* 10. Carrito */
    .carrito-panel { width: 100%; right: -100%; } 
    
    /* --- FOOTER MÓVIL ULTRA COMPACTO --- */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px; 
    }
    .footer-logo { margin: 0 auto 10px auto; height: 60px; }
    .footer-column h3 { margin-bottom: 8px; font-size: 1rem; margin-top: 5px; }
    .footer-column a { margin-bottom: 6px; font-size: 0.85rem; }
    .social-links { justify-content: center; margin-top: 5px; } 
    .footer-bottom { margin-top: 15px; padding-top: 10px; }
}


/* --- ESTILOS PÁGINA CONTACTO --- */
.contenedor-contacto { padding: 40px 5%; max-width: 1200px; margin: 0 auto; }

.historia-grid { display: flex; gap: 60px; align-items: center; margin-top: 40px; }
.historia-imagen { flex: 1; text-align: center; }
.historia-imagen img { width: 100%; border-radius: 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.caption { display: block; margin-top: 15px; font-style: italic; color: var(--color-salmon); font-weight: 600; }

.historia-texto { flex: 1.5; }
.historia-texto h2 { font-size: 2rem; color: var(--color-negro); margin-bottom: 20px; }
.historia-texto p { margin-bottom: 20px; color: #555; font-size: 1.05rem; text-align: justify; }

.seccion-mision-vision { background-color: #fff; padding: 60px 40px; border-radius: 40px; margin: 60px 0; }
.mv-container { display: flex; gap: 30px; }
.mv-card { flex: 1; padding: 30px; background-color: var(--color-fondo); border-radius: 20px; text-align: center; border-bottom: 4px solid var(--color-salmon); }
.icono-mv { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.mv-card h3 { margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.mv-card p { font-size: 0.95rem; color: #444; }

.contacto-info { text-align: center; padding: 40px 0; }
.btn-whatsapp-contacto { background-color: #25D366; color: white; padding: 18px 40px; text-decoration: none; border-radius: 50px; font-weight: 700; display: inline-block; margin-top: 20px; transition: transform 0.3s ease; }
.btn-whatsapp-contacto:hover { transform: scale(1.05); }

/* Ajuste móvil para contacto */
@media (max-width: 950px) {
    .historia-grid { flex-direction: column; gap: 30px; }
    .mv-container { flex-direction: column; }
    .historia-texto p { text-align: center; }
}


/* --- ESTILOS DEL VISOR (LIGHTBOX) --- */
.modal-visor {
    display: none; 
    position: fixed;
    z-index: 3000; /* Por encima de todo */
    padding-top: 50px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.contenido-visor {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.cerrar-visor {
    position: absolute;
    top: 20px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#texto-visor {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
}

