[data-theme="light"], :root {
    --primary: #D0AC00;
    --primary-light: #e6c533;
    --primary-dark: #b08a00;
    --dark: #000000; /* Color de texto principal cambiado a negro */
    --darker: color-mix(in srgb, #F1EDDC 45%, white);
    --light: #FFFFFF;
    --gray: #e0e0e0;
    --border-light: #e0e0e0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark);
    background-color: var(--light); /* Set the base background to white */
    overflow-x: hidden; /* Prevents horizontal scroll */
    position: relative;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Contenedor principal */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.8rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    padding: 1.2rem 0;
    background: var(--light);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
}

header.scrolled nav ul li a {
    color: var(--dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05) rotate(-3deg);
}

.logo img {
    height: 65px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2.2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light);
    transition: var(--transition);
    z-index: 1002; /* Above nav menu overlay */
}

/* Cambia el color del ícono de hamburguesa a negro cuando el header es sticky */
header.scrolled .mobile-menu-btn {
    color: var(--dark);
}

.nav-controls-mobile {
    display: none;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 1.5rem;
}

.lang-switcher {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.3rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 6px;
}

.lang-switcher:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.theme-switcher {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-switcher:hover {
    color: var(--primary);
    transform: rotate(15deg);
}

header.scrolled .theme-switcher {
    color: var(--dark);
}

header.scrolled .lang-switcher {
    color: var(--dark); /* Cambia el color del texto del botón de idioma a oscuro */
    border-color: var(--dark); /* Opcional: cambia el borde para que coincida */
}

[data-theme="dark"] header.scrolled {
    background: rgba(26, 26, 26, 0.85);
}

/* Hero Section */
.hero {
    height: 800px;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    color: var(--light);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    text-align: center; /* Centra todo el contenido (título, párrafo, botones) */
}

.hero h1 {
    font-family: 'Playfair Display', serif;            
    font-size: 5.2rem;
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.hero h1, .hero h1 span {
    color: white; /* Asegura que todo el título sea blanco */
}

.hero p {
    font-size: 1.4rem;
    max-width: 65ch; /* Usa unidades de caracteres para un ancho más adaptable al contenido */
    margin-bottom: 2.8rem;
    margin-left: auto; /* Centra el párrafo */
    margin-right: auto; /* Centra el párrafo */
    line-height: 1.7;
    color: #FFFFFF; /* Asegura que el color sea blanco */
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;            
    font-family: 'Lato', sans-serif;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(208, 172, 0, 0.25);
}

.btn-outline {
    background: white;
    color: var(--primary);
    margin-left: 1.2rem;
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(208, 172, 0, 0.25);
}

/* Secciones */
section {
    padding: 7rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;            
    font-size: 3.2rem;            
    color: var(--primary); /* Títulos de sección a color primario (dorado) */
    display: inline-block;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 1px;
    background: var(--primary);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary);
    transform: translateX(-50%) rotate(45deg);
}

.dark-section .section-title h2::before,
.dark-section .section-title h2::after {
    background: var(--primary);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;            
    font-size: 2.4rem;
    margin-bottom: 1.8rem;
    color: var(--primary); /* Título a color primario (dorado) */
    letter-spacing: -0.5px;
}

.about-text p {
    margin-bottom: 1.8rem;
    line-height: 1.9;
    color: var(--dark); /* Slightly darker for better contrast */
    font-weight: 400;
    font-size: 1.1rem;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    height: 500px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
    border-radius: 8px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 8px;
    z-index: -1;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Dark Section General Styles */
.dark-section {
    background: var(--darker);
    color: var(--dark);
}

.dark-section .section-title h2 {
    color: var(--primary); /* Títulos de sección a color primario (dorado) */
}

.dark-section .section-title h2::after {
    background: var(--primary); /* Mantener dorado */
}


/* Manifesto Section */
.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
}

.manifesto-card,
.dark-section .manifesto-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#manifesto:not(.dark-section) .manifesto-card {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.manifesto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.manifesto-card h3, .dark-section .manifesto-card h3 {
    font-family: 'Playfair Display', serif;            
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;            
    color: var(--primary); /* Título a color primario (dorado) */
    letter-spacing: -0.5px;
}

.manifesto-card h3 span {
    color: var(--primary);
}

.manifesto-card p, .dark-section .manifesto-card p {
    line-height: 1.8;
    color: var(--dark);
    font-weight: 400;
    font-size: 1.05rem;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.process-step {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.process-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(208, 172, 0, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.process-step h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary); /* Título a color primario (dorado) */
}

.process-step p {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.7;
}

/* Products Section (Dark by default) */
#products {
    background: var(--darker); /* Fondo claro #F9F6EE */
}

.product-showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 8rem;
}

.product-showcase-item:last-child {
    margin-bottom: 0;
}

.product-showcase-item.reverse .product-showcase-image {
    order: 2;
}

.product-showcase-image {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-showcase-image img {
    max-height: 110%;
    transition: var(--transition);
    filter: drop-shadow(0 20px 35px rgba(0,0,0,0.15));
}

.product-showcase-image:hover img {
    transform: scale(1.05) translateY(-10px);
}

.product-showcase-content h3, .dark-section .product-showcase-content h3 {
    font-family: 'Playfair Display', serif;            
    font-size: 2.8rem;
    margin-bottom: 1rem;            
    color: var(--primary); /* Título a color primario (dorado) */
    letter-spacing: -0.5px;
}

.product-showcase-content .tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: block;
}

.product-showcase-content p, .dark-section .product-showcase-content p {
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 400;
    font-size: 1.05rem;
}

.tasting-notes {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    position: relative;
    transition: var(--transition);
}

.tasting-notes:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.tasting-notes h4, .dark-section .tasting-notes h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; /* Reducido para un look más refinado */
    margin-bottom: 0.8rem;            
    color: var(--primary); /* Título a color primario (dorado) */
}

.tasting-notes p, .dark-section .tasting-notes p {
    font-style: italic;
    font-size: 0.95rem; /* Reducido para mejorar la legibilidad del texto largo */
    color: var(--dark);
    margin-bottom: 0;
}

/* Video Splash Section */
.video-splash-section {
    height: 70vh; /* 70% de la altura de la ventana */
    min-height: 500px;
    position: relative;
    overflow: hidden;
    padding: 0;
    background-color: #000; /* Color de fondo mientras carga el video */
}

.video-splash-section .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-splash-section .splash-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact-container {
    background: white;
    padding: 4rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden; /* This is crucial to contain the animated pseudo-element */
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.contact-header h3 {
    font-family: 'Playfair Display', serif;            
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary); /* Cambiado a color dorado principal */
    letter-spacing: -0.5px;            
}

.contact-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #000000; /* Cambiado a negro */
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ajustado a 3 columnas */
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.contact-detail-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border-light);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-detail-card:hover {
    transform: translateY(-5px) scale(1.03); /* Añadido efecto de escala */
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-detail-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark); /* Usar variable de color negro */
}

.contact-detail-card p {
    color: var(--dark); /* Usar variable de color negro */
    font-size: 1rem;            
    margin: 0;
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-map {
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem 1.2rem 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;            
    font-family: 'Lato', sans-serif;            
    font-size: 1.05rem;
    transition: var(--transition);
    background: var(--darker);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(208, 172, 0, 0.2);
}

.contact-form label {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    color: #888;
    transition: var(--transition);
    pointer-events: none;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: 0.5rem;
    left: 1.2rem;
    font-size: 0.8rem;
    color: var(--primary);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
footer {
    background: #4A2511; /* Cambiado a un marrón oscuro rojizo */
    color: #aaa;
    padding: 5rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-column h3 {
    font-family: 'Playfair Display', serif;            
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
    position: relative;            
    padding-bottom: 0.8rem;
    color: white;
    letter-spacing: -0.5px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 2px;
    background: var(--primary);
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.footer-column p {
    margin-bottom: 1.8rem;
    line-height: 1.8;            
    font-weight: 400;
    font-size: 1.05rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.9rem;
}

.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
    font-size: 1.05rem;
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
    font-size: 1rem;
    font-weight: 400;
}

.copyright a {
    color: var(--light); /* Color blanco */
    font-weight: 700; /* "strong" o negrita */
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: var(--primary); /* Color dorado al pasar el mouse */
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 5px 15px rgba(208, 172, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --light: #242424; /* Fondo de tarjetas/secciones */
    --darker: #1A1A1A; /* Fondo principal */
    --dark: #EAEAEA; /* Texto principal */
    --border-light: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] header:not(.scrolled) nav ul li a,
[data-theme="dark"] header:not(.scrolled) .mobile-menu-btn,
[data-theme="dark"] header:not(.scrolled) .lang-switcher,
[data-theme="dark"] header:not(.scrolled) .theme-switcher i,
[data-theme="dark"] .hero p {
    color: #FFFFFF; /* Force white color in dark mode for hero and unscrolled header */
}

/* When scrolled in dark mode, the text should be light again */
[data-theme="dark"] header.scrolled .theme-switcher { color: var(--dark); }

[data-theme="dark"] body {
    background-color: var(--darker);
}

[data-theme="dark"] #products,
[data-theme="dark"] #manifesto {
    background: var(--darker);
}

[data-theme="dark"] .dark-section {
    background: var(--darker);
}

[data-theme="dark"] .contact-detail-card {
    background: rgba(36, 36, 36, 0.7);
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .manifesto-card,
[data-theme="dark"] .process-step,
[data-theme="dark"] .tasting-notes,
[data-theme="dark"] .contact-container { /* This rule is now more general */
    background: var(--light);
}

[data-theme="dark"] .section-title h2,
[data-theme="dark"] .about-text h3,
[data-theme="dark"] .process-step h4,
[data-theme="dark"] .manifesto-card h3,
[data-theme="dark"] .product-showcase-content h3,
[data-theme="dark"] .tasting-notes h4,
[data-theme="dark"] .contact-header h3 {
    color: var(--dark);
}

[data-theme="dark"] .about-text p,
[data-theme="dark"] .process-step p,
[data-theme="dark"] .manifesto-card p,
[data-theme="dark"] .product-showcase-content p,
[data-theme="dark"] .tasting-notes p,
[data-theme="dark"] .contact-header p,
[data-theme="dark"] .contact-detail-card p,
[data-theme="dark"] .contact-detail-card h4 {
    color: #A0A0A0;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: var(--darker);
    color: var(--dark);
}

[data-theme="dark"] .scroll-to-top {
    box-shadow: 0 5px 20px rgba(208, 172, 0, 0.2);
}

.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate.delay-1 { transition-delay: 0.1s; }
.animate.delay-2 { transition-delay: 0.2s; }
.animate.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }

    .contact-container {
        padding: 3rem;
    }
}

@media (max-width: 992px) {
    .hero h1, .manifesto-card h3 {
        font-size: 3.8rem;
    }
    
    .about-content,
    .manifesto-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 1.2rem;
        display: inline-block;
    }
    
    .about-image {
        height: 400px;
    }

    .about-image::before {
        display: none;
    }

    .product-showcase-item {
        grid-template-columns: 1fr;
        gap: 2rem; /* Reduce el espacio en móvil */
    }
    .product-showcase-item.reverse .product-showcase-image { 
        order: initial; /* Restablece el orden para que la imagen aparezca primero */
    }

    .product-showcase-image {
        height: 450px;
    }

    .contact-main,
    .contact-details-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        padding: 2.5rem;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 320px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        padding: 2rem;
        z-index: 1001;
    }

    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 1.8rem 0;
    }

    nav ul li a,
    header.scrolled nav ul li a {
        color: var(--dark);
        font-size: 1.3rem;
    }
    
    .nav-controls {
        display: none; /* Hide desktop controls */
    }

    .nav-controls-mobile {
        display: flex;
        margin-top: 2rem; /* Añade espacio sobre los botones */
        padding-top: 2rem; /* Añade más espacio */
        border-top: 1px solid var(--border-light); /* Línea divisoria opcional */
        gap: 2.5rem;
    }

    .lang-switcher, .theme-switcher,
    header.scrolled .lang-switcher,
    header.scrolled .theme-switcher {
        color: var(--dark);
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    .section-title h2 {
        font-size: 2.6rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
    }

    .product-showcase-image {
        height: 400px;
    }

    [data-theme="dark"] nav ul {
        background: rgba(26, 26, 26, 0.95);
    }

    [data-theme="dark"] nav ul li a {
        color: var(--dark);
    }

    [data-theme="dark"] .lang-switcher,
    [data-theme="dark"] .theme-switcher {
        color: var(--dark);
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 120px;
        height: auto;
        padding-bottom: 5rem;
    }
    
    .hero p {
        margin: 0 auto 2.5rem;
    }
    
    .btn-container {
        display: flex;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
        margin-bottom: 1.2rem;
    }
    
    .btn-outline {
        margin: 0 auto; /* Centra el botón si el contenedor es más ancho */
        width: 100%; /* Asegura que ocupe el ancho disponible */
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .product-showcase-image {
        height: 350px;
    }

    .contact-container {
        padding: 2.5rem;
    }

    .contact-form {
        /* Prevents form from being too wide on very small screens */
        overflow: hidden;
    }

    .flavor-tabs {
        flex-direction: column; /* Apila los botones verticalmente */
        align-items: center; /* Centra los botones en el layout vertical */
    }
}

/* --- Flavor Tabs for Locator --- */
.flavor-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.flavor-tab {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--border-light);
    background-color: transparent;
    color: var(--dark);
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
}

.flavor-tab:hover:not(:disabled) {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.flavor-tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.flavor-tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Locator Page Styles --- */
.locator-section {
    padding: 7rem 0;
    background-color: var(--light);
}

[data-theme="dark"] .locator-section {
    background-color: var(--darker);
}

.locator-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    min-height: 70vh;
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .locator-container {
    background: var(--light);
}

.locations-list {
    padding: 1.5rem;
    overflow-y: auto;
    height: 70vh;
}

.location-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.3s;
}

.location-item:hover {
    background-color: var(--darker);
}

[data-theme="dark"] .location-item:hover {
    background-color: #3a3a3a;
}

.location-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.location-item p {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 0.95rem;
}

.map-container {
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .locator-container {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 1.5rem; /* Reducir el espacio en móvil */
    }

    .locations-list {
        height: auto; /* Altura automática */
        max-height: 45vh; /* Limitar la altura máxima para que no ocupe toda la pantalla */
    }
    .map-container {
        height: 55vh; /* Asignar una altura visible al mapa */
    }

    .locator-section {
        padding-top: 5rem; /* Reducir el padding superior en móvil */
    }
}

/* Estilos para el Popup de OpenLayers */
.ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 280px;
}
.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}

/* Estilo para el enlace de Google Maps en el popup */
.gmaps-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #4285F4; /* Color azul de Google */
    color: white !important; /* Forzar color blanco */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.3s;
}
.gmaps-link:hover {
    background-color: #3578E5;
}
/* =================================================================
   Social Icons - Contact Section
   ================================================================= */

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacio entre los iconos */
    margin-top: 30px; /* Espacio sobre los iconos */
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary); /* Fondo con color primario */
    color: white; /* Icono en color blanco */
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(10px);
    opacity: 0;
}

/* Estilos para el hover */
.social-icons a:hover {
    background-color: var(--primary-dark); /* Fondo más oscuro en hover */
    color: white;
    transform: translateY(-2px) scale(1.05); /* Efecto de elevación y escala */
    box-shadow: 0 12px 25px rgba(208, 172, 0, 0.3);
}

/* Animación de entrada cuando es visible */
.social-icons a.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Age Verification Popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.age-popup.active {
    opacity: 1;
    visibility: visible;
}

.age-popup-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.age-popup.active .age-popup-content {
    transform: translateY(0);
}

.age-popup-logo img {
    height: 80px;
    margin-bottom: 1.5rem;
}

.age-popup-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.age-popup-content p {
    color: var(--dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.age-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Dark mode support for popup */
[data-theme="dark"] .age-popup-content {
    background: var(--darker);
    border-color: var(--primary);
}

[data-theme="dark"] .age-popup-content p {
    color: var(--light);
}
