/* ========================================= */
/* LÚMEA FLOWERS - ESTILO FINAL (San Valentín) */
/* ========================================= */

/* Paleta de Colores */
:root {
    /* ... tus variables de colores ... */
    
    /* ESTO ES VITAL PARA XIAOMI/IPHONE */
    color-scheme: light;
    --primary: #41322b;
    --accent: #ca9547;
    --secondary: #4d4a21;
    --light: #f4f1ea;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: var(--light);
    overflow-x: hidden;
}

/* 1. EL CONTENEDOR */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 2. ALINEACIÓN Y TEXTOS */
.section {
    text-align: center;
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
}

.container p {
    margin: 0 auto 2rem auto;
    max-width: 800px;
    line-height: 1.8;
}

/* 3. COLORES DE FONDO */
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--primary); color: white; }


/* --- NAVBAR --- */
.navbar {
    background-color: rgba(65, 50, 43, 0);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(65, 50, 43, 1) !important;
    padding: 0.8rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.navbar .container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.navbar .logo img {
    height: 50px;
    display: block;
}

/* LINKS ESCRITORIO */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent);
}

/* --- BURGER --- */
.burger {
    display: none;
    cursor: pointer;
    z-index: 10001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- HERO (ACTUALIZADO SAN VALENTÍN) --- */
.hero {
    height: 100vh;
    /* ⚠️ ASEGÚRATE DE QUE LA IMAGEN EXISTA EN TU CARPETA */
    background: linear-gradient(rgba(65, 50, 43, 0.7), rgba(65, 50, 43, 0.5)),
        url('img/valentine_hero.webp') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* --- NUEVA SECCIÓN: SAN VALENTÍN SPOTLIGHT --- */
.valentine-spotlight {
    background-color: var(--white);
    padding: 80px 0;
}

.spotlight-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left; /* Alineamos texto a la izquierda para contraste */
}

.spotlight-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(65, 50, 43, 0.2);
    border: 3px solid var(--accent);
}

.spotlight-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.spotlight-content .accent-text {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- CERTIFICATIONS --- */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-top: 5px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

/* --- FORMULARIO --- */
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

form input, form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 1rem;
    color: var(--primary);
    background-color: var(--white);
}

/* --- BOTONES --- */
.btn-primary {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    padding: 16px 32px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    text-align: center;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(202, 149, 71, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover {
    background-color: #b0813e;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(202, 149, 71, 0.5);
}

/* --- GALERÍA (AUTO-FILL + MAX WIDTH) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 40px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #eee;
    cursor: pointer;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    transition: all 0.4s ease, transform 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(57, 92, 54, 0.55);
    color: var(--white);
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item.hidden {
    display: none;
}

/* --- FILTROS DE COLOR (DISEÑO PREMIUM) --- */
.filter-container {
    text-align: center;
    margin-bottom: 40px;
    padding: 10px;
}

.filter-label {
    display: block;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Ocultamos el checkbox nativo */
.checkbox-group input {
    display: none;
}

/* Botones Estilizados */
.checkbox-group label {
    padding: 10px 25px;
    border: 1px solid var(--accent);
    border-radius: 30px;
    color: var(--accent);
    background-color: transparent;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.checkbox-group label:hover {
    background-color: rgba(202, 149, 71, 0.1);
    transform: translateY(-2px);
}

/* Estado Activo (:has support) */
.checkbox-group label:has(input:checked) {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(202, 149, 71, 0.4);
    border-color: var(--accent);
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(65, 50, 43, 0.95);
    overflow-y: auto;
    padding: 20px;
}

.lightbox-container {
    background-color: var(--white);
    margin: 40px auto;
    max-width: 900px;
    width: 95%;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: zoomIn 0.3s;
}

.lightbox-body {
    display: flex;
    flex-direction: row;
}

.lightbox-image-wrapper {
    flex: 1;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
}

.lightbox-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#lightbox-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spec-card {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.spec-card:hover { transform: translateY(-5px); }

.spec-card strong {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary);
    margin-top: 5px;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 0.8;
}

.close-lightbox:hover { color: var(--accent); }

footer { text-align: center; }

/* --- BOTÓN FLOTANTE WHATSAPP (CORREGIDO: DERECHA) --- */
.whatsapp-float {
    position: fixed;
    width: 90px;
    height: 90px;
    bottom: 30px;
    right: 30px; /* 👈 CORREGIDO: DERECHA */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.1);
    box-shadow: 2px 5px 15px rgba(0,0,0,0.4);
}

.whatsapp-float img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* --- RESPONSIVE GENERAL --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0px;
        background-color: var(--primary) !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 75%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 10000;
        box-shadow: -10px 0px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        width: 100%;
        text-align: center;
    }

    .burger { display: block; }
    .section { margin: 20px; }
    .hero .hero-content h1 { font-size: 1.5rem; }
    
    /* Responsive para la sección Spotlight */
    .spotlight-grid {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .spotlight-image { order: -1; }
    
    /* Responsive Lightbox */
    .lightbox-body { flex-direction: column; }
    .lightbox-image-wrapper img { max-height: 300px; }
    .lightbox-info { padding: 20px; }
}

/* ANIMACIONES NAVBAR */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

/* --- FIX VISUAL PARA PÁGINAS INTERNAS --- */
body.secondary-page .navbar {
    background-color: rgba(65, 50, 43, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.secondary-page {
    padding-top: 80px;
}


/* ========================================= */
/* ESTILOS REUTILIZABLES (SECCIONES DIVIDIDAS) */
/* ========================================= */
/* Esto replica el estilo de la sección de San Valentín para usarlo donde quieras */

.split-section {
    padding: 100px 0;
}

/* El contenedor flexible */
.split-grid {
    display: flex;
    align-items: center; /* Centra verticalmente texto e imagen */
    gap: 4rem; /* Espacio entre imagen y texto */
    text-align: left; /* Texto alineado a la izquierda para este diseño */
}

/* La imagen */
.split-image {
    flex: 1; /* Ocupa la mitad del espacio */
}

.split-image img {
    width: 100%;
    border-radius: 8px;
    /* Sombra café suave y borde dorado */
    box-shadow: 0 15px 35px rgba(65, 50, 43, 0.25);
    border: 2px solid var(--accent); 
    object-fit: cover;
    height: 450px; /* Altura fija para consistencia visual */
}

/* El contenido de texto */
.split-content {
    flex: 1; /* Ocupa la otra mitad */
}

.split-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--secondary); /* Color secundario (verde oliva/dorado oscuro) */
    margin-bottom: 1.5rem;
    text-align: left; /* Forza alineación izquierda */
}

.split-content p {
    margin: 0 0 2rem 0; /* Resetea márgenes para alineación izquierda */
    max-width: 100%; /* Usa todo el ancho disponible en su columna */
    font-size: 1.1rem;
}

/* VARIANTE: Imagen a la derecha (para alternar el diseño) */
.split-grid.reverse {
    flex-direction: row-reverse;
}

/* RESPONSIVE: Móvil */
@media (max-width: 968px) {
    .split-grid, .split-grid.reverse {
        flex-direction: column; /* Pone uno debajo del otro */
        gap: 3rem;
        text-align: center; /* Vuelve a centrar el texto en móvil */
    }

    .split-content h2 {
        text-align: center;
        font-size: 2.2rem;
    }
    
    .split-image img {
        height: auto; /* Deja que la altura sea automática en móvil */
        max-height: 400px;
    }
    
    /* Opcional: Si quieres que la imagen siempre vaya primero en móvil */
    .split-image {
        order: -1; 
    }
}

/* ========================================= */
/* FIX FINAL: OPTIMIZACIÓN MÓVIL (PEGAR AL FINAL) */
/* ========================================= */

@media (max-width: 768px) {
    
    /* 1. DOMAR LOS TÍTULOS GIGANTES */
    /* De 3rem pasamos a 2rem para que quepan en dos líneas elegantes */
    .section-title, 
    h1, h2 {
        font-size: 2rem !important; 
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }

    /* Ajuste específico para el Hero del inicio si es necesario */
    .hero h1 {
        font-size: 2.2rem !important;
    }

    /* 2. FILTROS: DE "LADRILLOS" A "CHIPS" */
    /* Reducimos el tamaño para que entren más en una sola fila */
    .checkbox-group {
        gap: 8px !important; /* Menos espacio entre botones */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .checkbox-group label {
        padding: 6px 14px !important; /* Botones más compactos */
        font-size: 0.8rem !important; /* Letra más fina */
        border-width: 1px !important; /* Borde sutil */
    }

    .filter-label {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    /* 3. CONTENEDOR: DAR AIRE A LOS LADOS */
    .container {
        padding: 0 20px !important; /* Evita que el texto toque los bordes */
    }

    /* 4. BOTÓN WHATSAPP MENOS INVASIVO */
    /* 90px es enorme en un celular, tapa contenido. Lo bajamos a 60px */
    .whatsapp-float {
        width: 60px !important;
        height: 60px !important;
        bottom: 20px !important;
        right: 20px !important; /* O left si lo dejaste a la izquierda */
    }

    .whatsapp-float img, 
    .whatsapp-float svg {
        width: 30px !important;
        height: 30px !important;
    }
    
    /* 5. MENÚ SUPERIOR */
    /* Ajuste para que el logo no se vea gigante o descentrado */
    .navbar .logo img {
        height: 40px !important; /* Un poco más pequeño en móvil */
    }
    
    .navbar {
        padding: 0.8rem 0 !important; /* Barra menos alta */
    }
}

/* ========================================= */
/* FIX: NOMBRES VISIBLES EN MÓVIL (NO HOVER) */
/* ========================================= */

@media (max-width: 1024px) { /* Aplica a Tablets y Celulares */
    
    .gallery-item .overlay {
        /* Forzamos que el texto suba y se vea siempre */
        transform: translateY(0) !important;
        
        /* Ajustes visuales para que no tape tanto la flor */
        background: linear-gradient(to top, rgba(65, 50, 43, 0.9), rgba(65, 50, 43, 0.6));
        padding: 10px 5px !important;
        font-size: 1rem !important; /* Texto un poco más pequeño para no estorbar */
    }
    
    /* Opcional: Si quieres que el texto esté siempre centrado y legible */
    .gallery-item h3 {
        margin: 0;
    }
}