/* =========================================
   1. VARIABLES, RESET Y TIPOGRAFÍA
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-cream: #FDFBF7;      
    --bg-beige: #F2E8D5;      
    --wood-dark: #4A3B32;     
    --wood-light: #8D7465;    
    --gold: #C5A059;          
    --white: #FFFFFF;
    --gray-light: #eeeeee;
    --white-pink: #FDF1F1;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--wood-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { 
    flex: 1; 
    margin-top: 100px; /* Compensa el header fijo */
}

h1, h2, h3, .nav-link, .btn-main, .headline, .promo-text { 
    font-family: 'Playfair Display', serif; 
}

a { text-decoration: none; color: inherit; }

/* =========================================
   2. UI KIT (BOTONES Y UTILIDADES)
   ========================================= */
.btn-main {
    padding: 15px 35px;
    background-color: var(--gold);
    color: var(--white);
    border: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    display: inline-block;
    font-weight: 700;
}
.btn-main:hover { background-color: var(--wood-dark); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--wood-dark); /* Ajuste de legibilidad */
}
.btn-outline:hover { background-color: var(--gold); color: var(--white); }

.section-title { font-size: 3rem; color: var(--wood-dark); margin-bottom: 10px; }
.section-subtitle { font-size: 1.1rem; color: var(--wood-light); font-style: italic; margin-bottom: 50px; }
.text-center { text-align: center; }

/* =========================================
   3. HEADER Y NAVEGACIÓN
   ========================================= */
header {
    background-color: var(--bg-cream);
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(74, 59, 50, 0.1);
}

.logo-container img { height: 70px; width: auto; }

nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }

.nav-link {
    color: var(--wood-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

/* Dropdown Menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top: 4px solid var(--gold);
    padding: 10px 0;
}
.dropdown-content a {
    color: var(--wood-dark);
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.dropdown-content a:hover { background-color: var(--bg-cream); }
.dropdown:hover .dropdown-content { display: block; }

/* =========================================
   4. HERO SECTION (PORTADA)
   ========================================= */
.hero {
    /* CAMBIO 1: Altura reducida para que se vea la sección de abajo */
    height: 85vh; /* Antes era calc(100vh - 100px) */
    
    /* Estas propiedades ya no son necesarias para la imagen de fondo, pero las dejamos para el centrado */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    /* Importante: oculta cualquier parte del video que sobresalga */
    overflow: hidden; 
}

/* Overlay oscuro para mejorar lectura de texto */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* CAMBIO 2: Tono cálido traslúcido en lugar de negro */
    /* Usamos un color dorado/madera con 50% de opacidad para el efecto cálido */
    background: rgba(160, 130, 90, 0.5); 
    z-index: 1; /* Por encima del video (z-0) pero debajo del texto (z-2) */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 { font-size: 4rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 2px; text-transform: uppercase; }

/* Estilos para el Video de Fondo */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video cubra todo el área sin deformarse */
    z-index: 0; /* Lo mandamos al fondo de todo */
}

.scroll-indicator {
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; 
    opacity: 0.8;
}

.scroll-indicator span {
    display: block;
    width: 25px;
    height: 25px;
    border-bottom: 3px solid var(--gold); 
    border-right: 3px solid var(--gold);
    transform: rotate(45deg); 
    margin: -12px auto; 
    /* CORRECCIÓN AQUÍ: Quitamos la palabra "Animation" */
    animation: scrollDown 2s infinite; 
}

.scroll-indicator span:nth-child(2) { animation-delay: -0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: -0.4s; }

/* Definición de la animación de caída (CORREGIDO) */
@keyframes scrollDown {
    0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

/* Variaciones de Hero por página (Clases opcionales para limpiar el HTML) */
.hero-home { background-image: url('../images/cafeteria-bg.jpg'); background-color: #333; }

/* =========================================
   5. SECCIÓN HISTORIA & GRIDS (HOME Y SUCURSALES)
   ========================================= */
.history-section { 
    padding: 60px 10% 80px 10%;
    text-align: center; 
    background-color: var(--bg-cream); 
}

.history-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
    text-align: left; 
    margin-top: 40px;
}

.history-text h3 { font-size: 2rem; color: var(--wood-dark); margin-bottom: 20px; }
.history-text p { margin-bottom: 15px; color: var(--wood-light); }

.history-img-container {
    width: 100%;
    height: 400px; /* Altura fija para consistencia */
    position: relative;
}

.history-img, .placeholder-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border: 8px solid var(--white); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

/* Sección de Características (Home - Fondo oscuro) */
.features-section {
    background-color: var(--wood-dark);
    color: var(--bg-cream);
    padding: 80px 10%;
    text-align: center;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0;
}

.feature-item {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
}

.feature-item.bordered {
    border-left: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}

.feature-item h3 { color: var(--gold); margin-bottom: 15px; font-size: 1.5rem; }

/* =========================================
   6. PÁGINA: GASTRONOMÍA
   ========================================= */
.promo-bar-flex {
    background-color: var(--wood-dark);
    padding: 40px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--gold);
}

.promo-text {
    color: var(--bg-cream);
    font-size: 1.6rem;
    font-style: italic;
}

.promo-action { display: flex; align-items: center; gap: 20px; }
.promo-arrow { color: var(--gold); font-size: 1.5rem; animation: bounceRight 2s infinite; }

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.cookbook-section { padding: 80px 10%; max-width: 1200px; margin: 0 auto; }

.paper-header { text-align: center; margin-bottom: 80px; }
.headline { font-size: 3.5rem; letter-spacing: 5px; color: var(--wood-dark); margin-bottom: 10px; }

.cookbook-article {
    display: flex;
    gap: 60px;
    margin-bottom: 100px;
    align-items: center;
}

.cookbook-article.reverse { flex-direction: row-reverse; }

.article-text { flex: 1; }
.article-text h3 { font-size: 2.2rem; margin-bottom: 20px; color: var(--gold); }
.article-text p { font-size: 1.05rem; margin-bottom: 15px; color: #555; }

.drop-cap::first-letter {
    font-size: 3.5rem;
    color: var(--wood-dark);
    float: left;
    margin-right: 10px;
    line-height: 0.8;
    font-family: 'Playfair Display', serif;
}

.article-image { flex: 1; height: 350px; }
.article-placeholder {
    width: 100%; height: 100%;
    background-color: var(--gray-light);
    border: 4px solid var(--bg-beige);
}

.divider-gold {
    border: 0; 
    border-top: 1px solid var(--gold); 
    margin: 50px auto; 
    width: 50%; 
    opacity: 0.5;
}

/* =========================================
   7. PÁGINA: CONTACTO
   ========================================= */
.contact-section { background-color: var(--bg-beige); padding: 80px 5%; }

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.map-container, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.map-container iframe { width: 100%; height: 100%; min-height: 500px; }

.contact-form-container { padding: 50px; }
.contact-form-container h2 { color: var(--wood-dark); margin-bottom: 20px; font-size: 2rem; }
.contact-form-container p { margin-bottom: 30px; color: var(--wood-light); }

.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; margin-bottom: 20px; } /* Ajustado para funcionar en flex y bloque */

.form-group label { display: block; margin-bottom: 8px; color: var(--wood-dark); font-weight: bold; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; background: var(--bg-cream);
    font-family: 'Lato', sans-serif; transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--gold); outline: none; background: #fff;
}

/* =========================================
   8. FOOTER (ACTUALIZADO)
   ========================================= */
footer {
    background-color: #2e241e;
    color: var(--bg-beige);
    border-top: 5px solid var(--gold);
    /* 1. Reducimos el padding superior e inferior */
    padding: 40px 0 15px; 
}

.footer-container {
    display: flex;
    /* 2. Centramos las columnas en el medio de la pantalla */
    justify-content: center; 
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* 3. Agregamos un GAP fijo para separarlas prolijamente */
    gap: 60px; 
    /* 4. Centramos el texto dentro de cada columna */
    text-align: center; 
}

.footer-col { 
    flex: 1; 
    min-width: 250px; 
    /* Opcional: limitar el ancho máximo para que no se estiren demasiado */
    max-width: 300px; 
}

.footer-col h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    display: inline-block;
}

/* Ajuste para centrar los items de contacto (icono + texto) */
.contact-info-item { 
    display: flex; 
    align-items: center; 
    justify-content: center; /* Centrado horizontal */
    gap: 12px; 
    margin-bottom: 15px; 
}

.schedule-list { list-style: none; }
.schedule-list li { margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 5px; }

/* Ajuste para centrar los iconos de redes */
.socials { 
    display: flex; 
    gap: 15px; 
    margin-top: 15px; 
    justify-content: center; /* Centrado horizontal */
}

.social-icon {
    width: 45px; height: 45px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.social-icon svg { width: 22px; height: 22px; fill: var(--gold); }
.social-icon:hover { background-color: var(--gold); transform: translateY(-3px); }
.social-icon:hover svg { fill: var(--wood-dark); }

.copyright {
    text-align: center; 
    /* Reducimos este margen también */
    margin-top: 30px; 
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem; color: #aaa;
}

/* =========================================
   9. RESPONSIVE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
    /* Ajustes Generales */
    .section-title { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    
    /* Header Móvil Simple */
    header { padding: 0 20px; }
    nav ul { display: none; } /* Aquí deberías implementar un menú hamburguesa con JS después */
    
    /* Grids a Columnas */
    .history-grid, .features-grid, .promo-bar-flex, 
    .cookbook-article, .contact-wrapper {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    /* Reordenar elementos si es necesario */
    .cookbook-article.reverse { flex-direction: column; }
    .history-text { text-align: center; }

    /* Ajustes Específicos */
    .feature-item.bordered { border: none; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 20px 0; }
    .form-row { flex-direction: column; gap: 0; }
    .promo-action { flex-direction: column; }
    .promo-arrow { transform: rotate(90deg); margin-bottom: 10px; animation: none; }
}

/* =========================================
   ADD-ONS: SUCURSALES Y LISTAS
   ========================================= */

/* Fondos específicos para cada sucursal */
/* Ajuste de altura para sucursales (un poco más bajo que el home) */
.hero-balbin, .hero-tribulato {
    height: 60vh;
    color: var(--bg-cream); /* IMPORTANTE: Texto oscuro para contraste */
}

.hero-balbin {
    /* Si la imagen no carga, se verá este color Arena */
    background-color: var(--white-pink);     
    /* Si usas imagen, le ponemos un degradado SUAVE claro encima, no negro */
    background-image: linear-gradient(rgba(232, 220, 202, 0.3), rgba(232, 220, 202, 0.3)), url('../images/Prueba1.jpg');
}

.hero-tribulato {
    background-color: var(--white-pink); /* Mismo color arena base */
    background-image: linear-gradient(rgba(232, 220, 202, 0.3), rgba(232, 220, 202, 0.3)), url('../images/Prueba2.jpg');
}

/* Estilo para las listas de características */
.custom-list {
    margin-top: 20px;
    list-style: none; /* Quitamos el punto por defecto */
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--wood-light);
}

.custom-list li::before {
    content: '•'; /* O puedes usar '✓' */
    color: var(--gold);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* =========================================
   ADD-ONS: CONTACTO Y SCROLLBAR
   ========================================= */

/* 1. Ajuste de Margen Superior en Contacto */
/* Sobreescribimos el padding-top original de 80px a 40px */
.contact-section {
    padding-top: 20px; 
}

/* 2. Tarjeta de Contacto más redondeada */
.contact-wrapper {
    border-radius: 50px; /* Antes era 8px, ahora es mucho más suave */
    /* Opcional: Si quieres que el mapa también respete la curva, aseguramos esto: */
    overflow: hidden; 
}

/* 3. SCROLLBAR PERSONALIZADO (Elegante y Dorado) */
/* Ancho de la barra */
::-webkit-scrollbar {
    width: 12px;
}

/* El "carril" por donde corre la barra */
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

/* La "barra" en sí misma */
::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 6px;
    border: 3px solid var(--bg-cream); /* Crea un espacio blanco alrededor para que se vea flotante */
}

/* Color al pasar el mouse por la barra */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--wood-light);
}

/* =========================================
   NUEVOS ESTILOS: GRILLA GASTRONÓMICA
   ========================================= */

/* Título intermedio decorativo */
.middle-title {
    text-align: center;
    margin: 80px 0 50px;
    font-size: 2.5rem;
    color: var(--wood-dark);
}

/* Contenedor de la grilla (3 columnas) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* Cada tarjeta individual */
.menu-card {
    text-align: center;
    background: var(--white);
    padding: 20px;
    border-radius: 8px; /* Un toque sutil */
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px); /* Pequeño efecto al pasar el mouse */
}

/* Contenedor de imagen cuadrado (mantiene la estética del sitio) */
.card-image-box {
    width: 100%;
    height: 300px; /* Cuadrado perfecto */
    margin-bottom: 25px;
    border: 4px solid var(--bg-beige); /* El borde beige que ya usas */
    overflow: hidden;
    position: relative;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.5s ease;
}

.menu-card:hover .card-image-box img {
    scale: 1.05; /* Zoom suave en la foto */
}

.menu-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.menu-card p {
    font-size: 0.95rem;
    color: var(--wood-light);
}

/* Sección especial para Brunch (Ancho completo) */
.brunch-feature {
    background-color: var(--wood-dark);
    color: var(--bg-cream);
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
    border-radius: 4px;
}

.brunch-text { flex: 1; }
.brunch-text h3 { color: var(--gold); font-size: 2.5rem; margin-bottom: 20px; }
.brunch-img { flex: 1; height: 400px; border: 4px solid var(--gold); }
.brunch-img img { width: 100%; height: 100%; object-fit: cover; }

/* Responsive para el Brunch */
@media (max-width: 768px) {
    .brunch-feature { flex-direction: column; text-align: center; padding: 40px 20px; }
    .brunch-img { width: 100%; height: 300px; }
}

/* =========================================
   ADD-ONS: SECCIÓN REGALOS (MODIFICADO)
   ========================================= */

/* 1. Tarjetas con Borde Arriba y Abajo */
.card-silver { 
    border-top: 4px solid #C0C0C0; 
    border-bottom: 4px solid #C0C0C0;
}
.card-gold { 
    border-top: 4px solid #D4AF37; 
    border-bottom: 4px solid #D4AF37;
}
.card-platinum { 
    border-top: 4px solid #797979; /* Un gris más oscuro para que se note en fondo blanco */
    border-bottom: 4px solid #797979;
}

/* 2. Imágenes "Ciegas" (Solo color de fondo opaco) */
.img-placeholder-silver {
    width: 100%; height: 100%;
    background-color: #C0C0C0; /* Plata */
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.2rem;
}
.img-placeholder-gold {
    width: 100%; height: 100%;
    background-color: #D4AF37; /* Oro */
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.2rem;
}
.img-placeholder-platinum {
    width: 100%; height: 100%;
    background-color: #5a5a5a; /* Platino oscuro */
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.2rem;
}

/* 3. Botones Gift Card (Efecto Hover Negro/Dorado) */
.btn-gift {
    width: 100%;
    display: inline-block;
    padding: 15px 35px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    
    /* Estado Normal (Hereda estilos base o definimos uno neutro) */
    background-color: var(--gold); 
    color: var(--white);
    border: 1px solid var(--gold);
}

/* Estado Hover (Lo que pediste: Fondo negro, letras doradas) */
.btn-gift:hover {
    background-color: #000000;
    color: var(--gold);
    border-color: #000000;
}

/* Estilos de lista y precios */
.gift-price {
    display: block;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    margin: 15px 0;
    color: var(--wood-dark);
    font-weight: bold;
}
.gift-details {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}
.gift-details li { margin-bottom: 5px; }

/* Sección personalizada */
.custom-gift-section {
    background-color: var(--bg-beige);
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
    border: 1px solid var(--gold);
}
@media (max-width: 768px) {
    .custom-gift-section { flex-direction: column; text-align: center; padding: 30px; }
}