:root {
    /* Paleta de Colores - Whitexican / Lujo Moderno */
    --bg-body: #F9F7F2;       /* Crema muy claro */
    --bg-white: #FFFFFF;
    --bg-card: #FDFCFB;
    
    --text-primary: #2C2C2C;  /* Carbón suave */
    --text-secondary: #66605B;
    --text-accent: #6c6c6c;   /* Taupe */
    
    --gold-primary: #C5A059;  /* Dorado marca */
    --gold-light: #E5D5B0;
    
    /* Tipografía */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Lato', sans-serif;
    
    /* Layout */
    --container-width: 1240px;
    --section-padding: 100px 0;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Títulos */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
}
.subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.gold-text { color: var(--gold-primary); font-style: italic; }
.center { text-align: center; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Botones */
.btn-primary {
    display: inline-block;
    padding: 14px 34px;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.3s;
    margin-top: 1.5rem;
    background: transparent;
}
.btn-primary:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #fff;
}
.btn-primary.dark-btn {
    background: var(--text-primary);
    color: #fff;
}
.btn-primary.dark-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}
.btn-link:hover { border-bottom: 1px solid var(--gold-primary); }

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 20px 0; background: transparent; transition: 0.4s;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { width: 130px; transition: 0.3s; filter: invert(1) brightness(0.2); } /* Logo oscuro */
.nav-links { display: flex; list-style: none; gap: 40px; }
.nav-links a { text-decoration: none; color: var(--text-primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; transition: 0.3s; }
.nav-links a:hover { color: var(--gold-primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.hamburger { width: 25px; height: 2px; background: var(--text-primary); position: relative; }
.hamburger::before, .hamburger::after { content:''; width: 25px; height: 2px; background: var(--text-primary); position: absolute; left: 0; transition: 0.3s; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* --- HERO (BOTELLA PROTAGONISTA) --- */
.hero {
    min-height: 100vh;
    padding-top: 100px; /* Para el navbar */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FDFBF8 0%, #F2EFE9 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    z-index: 2;
    padding-right: 40px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin: 1rem 0;
    color: var(--text-primary);
}

.hero-visual {
    position: relative;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Círculo decorativo sutil detrás de la botella */
.visual-circle {
    position: absolute;
    width: 60vh;
    height: 60vh;
    background-color: #EBE6DC;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.5;
}
.image-footer{
    width: 40px;
}

.hero-bottle {
    position: relative;
    z-index: 2;
    height: 100%; /* La botella ocupa todo el alto del contenedor */
    max-height: 85vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(10px 20px 30px rgba(0,0,0,0.15)); /* Sombra realista */
}

/* --- CATA --- */
.notas-cata { padding: var(--section-padding); background: var(--bg-white); }
.grid-cata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}
.cata-item {
    background: var(--bg-card);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.3s;
}
.cata-item:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.05); }
.cata-item h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--gold-primary); }
.divider-small { width: 50px; height: 1px; background: var(--gold-primary); margin: 0 auto 20px; }

/* --- PROCESO (CARRUSEL) --- */
.proceso { padding: var(--section-padding); background: var(--bg-body); overflow: hidden; }
.intro-text { max-width: 700px; margin: 20px auto 40px; text-align: center; }

/* Controles */
.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    max-width: var(--container-width);
    margin: 0 auto 20px auto;
    padding: 0 24px;
}
.slider-btn {
    width: 50px; height: 50px;
    border: 1px solid var(--text-primary);
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: var(--text-primary); color: #fff; }

/* Track y Cards */
.slider-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.slider-container::-webkit-scrollbar { display: none; }

.slider-track {
    display: flex;
    gap: 30px;
    padding: 20px 0px 60px 0px; /* Padding bottom para sombra */
    /* Ancho dinámico basado en contenido */
    width: max-content; 
}

.slide-card {
    width: 380px; /* Ancho fijo para escritorio */
    flex-shrink: 0;
    background: var(--bg-white);
    transition: 0.3s;
    position: relative;
    border-bottom: 3px solid transparent;
}
.slide-card:hover { border-bottom: 3px solid var(--gold-primary); transform: translateY(-5px); }

.slide-img {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
}
.slide-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.slide-card:hover .slide-img img { transform: scale(1.05); }

.slide-number {
    position: absolute;
    bottom: 0; left: 0;
    background: var(--bg-white);
    color: var(--gold-primary);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    padding: 10px 20px;
    font-weight: 600;
}

.slide-content { padding: 30px; }
.slide-content h4 { font-size: 1.2rem; margin-bottom: 10px; }
.slide-content p { font-size: 0.95rem; color: var(--text-secondary); }

/* --- EXPERIENCIA --- */
.experiencia-sentidos { padding: var(--section-padding); background: var(--bg-white); }
.experiencia-grid { display: flex; gap: 40px; margin-top: 60px; }
.experiencia-item { flex: 1; text-align: center; padding: 20px; }
.icon-wrapper img { width: 60px; filter: invert(0.7) sepia(1) saturate(1) hue-rotate(10deg); opacity: 0.7; margin-bottom: 20px; }
.experiencia-item h3 { margin-bottom: 1rem; }

/* --- PUNTOS VENTA --- */
.puntos-venta { padding: 60px 0; background: var(--bg-body); border-top: 1px solid rgba(0,0,0,0.05); }
.logos-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-bottom: 40px; align-items: center;}
.tienda img { height: 45px; filter: grayscale(100%) opacity(0.5); transition: 0.3s; mix-blend-mode: multiply; }
.tienda:hover img { filter: grayscale(0%) opacity(1); }

/* --- FOOTER --- */
.contacto { background: #1C1917; color: #fff; padding: 30px 0; text-align: center; }
.footer-quote { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold-primary); margin-bottom: 2rem; }
.contact-details{
    display: flex;
    justify-content: center;
    gap: 6rem;
}
.contact-details p { color: #888; margin-bottom: 5px; }
.contact-details a { color: var(--gold-primary); text-decoration: none; }
.legal-disclaimer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #333; font-size: 0.7rem; letter-spacing: 2px; opacity: 0.5; }

/* --- ANIMACIONES --- */
.fade-in, .fade-up { opacity: 0; transform: translateY(20px); transition: 1s ease; }
.fade-in.visible, .fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    /* Navbar */
    .nav-toggle { display: block; z-index: 1001; }
    .nav-toggle.active .hamburger { background: transparent; }
    .nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
    .nav-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--bg-body); flex-direction: column; justify-content: center; align-items: center;
        transition: 0.4s;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; }

    /* Hero */
    .hero { height: auto; padding: 120px 0 60px 0; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .hero-text { padding-right: 0; order: 2; } /* Texto abajo */
    .hero-visual { height: 50vh; order: 1; margin-bottom: 20px; } /* Imagen arriba */
    .hero h1 { font-size: 2.5rem; }
    .visual-circle { width: 40vh; height: 40vh; }
    
    /* Carrusel Responsive */
    .slide-card { width: 280px; } /* Cards más pequeñas en tablet */
    
    /* Experiencia */
    .experiencia-grid { flex-direction: column; gap: 60px; }
    
    /* Logos */
    .logos-grid { gap: 30px; }
    .logos-grid img { height: 35px; }
}

@media (max-width: 480px) {
    .slide-card { width: 85vw; } /* Card casi full width en móvil */
    .slider-track { gap: 15px; padding: 20px 15px; }
    .slider-controls { padding: 0 15px; }
}

/* --- ESTILOS DEL DROPDOWN (SUBMENÚ) --- */

/* Contenedor del item con submenú */
.dropdown {
    position: relative;
    padding-bottom: 0;
}

.arrow {
    font-size: 0.8em;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

/* El menú oculto por defecto */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Justo debajo del texto */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Centrado y bajado un poco */
    background-color: #FFFFFF;
    min-width: 180px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Sombra suave */
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0; /* Override del gap del nav-links padre */
}

/* Flechita decorativa arriba del menú (opcional, estilo premium) */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #FFFFFF;
}

/* Mostrar menú al hacer Hover en escritorio */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Enlaces dentro del dropdown */
.dropdown-menu li {
    width: 100%;
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: capitalize; /* Primera letra mayúscula, más elegante */
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: none; /* Quitar underline global si existe */
}

.dropdown-menu a:hover {
    background-color: #F9F7F2; /* Color crema muy suave al hover */
    color: var(--gold-primary);
    padding-left: 25px; /* Pequeño desplazamiento a la derecha */
}

.dropdown-menu a::after {
    display: none; /* Quitamos la línea dorada inferior del nav principal */
}

/* --- ESTILOS RESPONSIVOS PARA EL DROPDOWN (MÓVIL) --- */
@media (max-width: 968px) {
    .dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static; /* Ya no flota, se pone debajo */
        transform: none;
        box-shadow: none;
        background-color: #FAFAF9; /* Un tono gris muy claro para diferenciar */
        width: 100%;
        display: none; /* Oculto inicialmente, se activa con JS */
        opacity: 1;
        visibility: visible;
        padding: 0;
    }
    
    .dropdown-menu.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .dropdown-menu a {
        padding: 15px 0;
        font-size: 1rem;
    }

    .dropdown-toggle {
        cursor: pointer;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajuste visual para el botón link en Experiencia */
.btn-link {
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- BOTONES SECCIÓN EXPERIENCIA --- */

/* Estilo Base del Botón */
.btn-experiencia {
    display: inline-block;
    margin-top: 25px;            /* Espacio arriba del botón */
    padding: 12px 28px;          /* Tamaño del botón */
    border: 1px solid var(--gold-primary); /* Borde dorado fino */
    color: var(--gold-primary);  /* Texto dorado */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;          /* Letra pequeña y elegante */
    letter-spacing: 2px;         /* Espaciado entre letras */
    font-weight: 600;
    background-color: transparent;
    transition: all 0.4s ease;   /* Animación suave */
}

/* Efecto Hover (Al pasar el mouse) */
.btn-experiencia:hover {
    background-color: var(--gold-primary); /* Se rellena de dorado */
    color: #FFFFFF;              /* El texto se vuelve blanco */
    border-color: var(--gold-primary);
    transform: translateY(-2px); /* Se eleva ligeramente */
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.2); /* Sombra dorada suave */
}

/* Ajuste Responsive para móviles */
@media (max-width: 768px) {
    .btn-experiencia {
        width: 100%;             /* Botón ancho completo en celular */
        text-align: center;
        padding: 14px 0;
    }
    .contact-details{
        flex-direction: column;
        gap: 1rem;
    }
}