/* ==========================================================================
   VARIABLES GLOBALES - PALETA DE COLORES DEL MODELO
   ========================================================================== */
:root {
    --bg-crema: #FDF8F4;
    --texto-oscuro: #3A2318;
    --texto-terracota: #C28263;
    --texto-parrafo: #7A655B;
    --btn-fondo: #3A2318;
    --btn-hover: #24140D;
    
    --font-titulos: 'Playfair Display', serif;
    --font-textos: 'Inter', sans-serif;
    
    /* Variables de Animación */
    --transicion-suave: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transicion-rebote: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   RESET Y ANIMACIONES GLOBALES (KEYFRAMES)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en enlaces internos */
}

body {
    font-family: var(--font-textos);
    background-color: var(--bg-crema);
    color: var(--texto-parrafo);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titulos);
    color: var(--texto-oscuro);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicion-suave);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- LIBRERÍA DE ANIMACIONES --- */
@keyframes revelarArriba {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes revelarDerecha {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes revelarIzquierda {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes latidoSutil {
    0% { box-shadow: 0 0 0 0 rgba(194, 130, 99, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(194, 130, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(194, 130, 99, 0); }
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN (HEADER EFECTO CRISTAL)
   ========================================================================== */
.navbar {
    padding: 20px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 248, 244, 0.85);
    backdrop-filter: blur(12px); /* Efecto vidrio esmerilado premium */
    border-bottom: 1px solid rgba(58, 35, 24, 0.05);
    animation: revelarArriba 0.8s ease backwards;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transicion-rebote);
}

.brand:hover {
    transform: scale(1.05);
}

.brand img {
    height: 45px;
    width: auto;
    mix-blend-mode: multiply; 
}

.brand span {
    font-family: var(--font-titulos);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--texto-oscuro);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--texto-parrafo);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--texto-terracota);
    transition: var(--transicion-suave);
    transform: translateX(-50%);
}

.nav-links a:hover::after, .nav-links a.activo::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.activo {
    color: var(--texto-oscuro);
}

.btn-nav {
    background-color: var(--btn-fondo);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px; /* Bordes más redondeados y modernos */
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transicion-rebote);
}

.btn-nav:hover {
    background-color: var(--texto-terracota);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(194, 130, 99, 0.3);
}

/* ==========================================================================
   SECCIÓN HERO (PORTADA ANIMADA)
   ========================================================================== */
.hero {
    padding: 80px 0 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    padding-right: 40px;
    animation: revelarDerecha 1s cubic-bezier(0.25, 0.8, 0.25, 1) backwards;
    animation-delay: 0.2s;
}

.overline {
    display: block;
    color: var(--texto-terracota);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 4.8rem;
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero-content h1 .cursiva-terracota {
    color: var(--texto-terracota);
    font-style: italic;
    font-weight: 500;
}

.hero-content > p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 90%;
    color: #5A4A42;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary {
    background-color: var(--btn-fondo);
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transicion-suave);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--texto-terracota);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(194, 130, 99, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--texto-oscuro);
    padding: 15px 35px;
    border-radius: 8px;
    border: 1px solid rgba(58, 35, 24, 0.3);
    font-weight: 500;
    transition: var(--transicion-suave);
}

.btn-outline:hover {
    border-color: var(--texto-oscuro);
    background-color: var(--texto-oscuro);
    color: #fff;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 60px;
    border-top: 1px solid rgba(58, 35, 24, 0.1);
    padding-top: 30px;
}

.hero-image-wrapper {
    position: relative;
    height: 680px;
    border-radius: 300px 300px 20px 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(58, 35, 24, 0.15);
    animation: revelarIzquierda 1s cubic-bezier(0.25, 0.8, 0.25, 1) backwards;
    animation-delay: 0.4s;
    transition: var(--transicion-suave);
}

.hero-image-wrapper:hover {
    transform: translateY(-10px);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.05); /* Efecto Ken Burns suave */
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 40px 40px;
    background: linear-gradient(to top, rgba(26, 16, 12, 0.9) 0%, rgba(26, 16, 12, 0) 100%);
    color: #fff;
    transform: translateY(20px);
    opacity: 0.9;
    transition: var(--transicion-suave);
}

.hero-image-wrapper:hover .image-overlay {
    transform: translateY(0);
    opacity: 1;
}

.image-overlay .tag {
    font-family: var(--font-textos);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--texto-terracota);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-block;
    animation: latidoSutil 2s infinite;
}

.image-overlay p {
    font-family: var(--font-titulos);
    font-size: 2.2rem;
    color: #fff;
    line-height: 1.2;
}

/* ==========================================================================
   DISEÑO PREMIUM DEL MENÚ (TARJETAS GRANDES Y ANIMACIONES)
   ========================================================================== */
.menu-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.premium-card {
    background: #ffffff;
    border-radius: 24px; /* Bordes más modernos */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(58, 35, 24, 0.04);
    border: 1px solid rgba(58, 35, 24, 0.05);
    position: relative;
    animation: revelarArriba 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) backwards;
    transition: var(--transicion-rebote);
}

/* Retrasos dinámicos simulados para el efecto cascada */
.premium-card:nth-child(1) { animation-delay: 0.1s; }
.premium-card:nth-child(2) { animation-delay: 0.2s; }
.premium-card:nth-child(3) { animation-delay: 0.3s; }
.premium-card:nth-child(4) { animation-delay: 0.4s; }
.premium-card:nth-child(5) { animation-delay: 0.5s; }
.premium-card:nth-child(6) { animation-delay: 0.6s; }

.premium-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(58, 35, 24, 0.12);
}

.premium-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px; 
    overflow: hidden;
}

.premium-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-card:hover .premium-img {
    transform: scale(1.12) rotate(2deg); /* Zoom y ligera rotación dinámica */
}

/* Capa de brillo sobre la imagen al hacer hover */
.premium-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(58,35,24,0.4) 100%);
    opacity: 0;
    transition: var(--transicion-suave);
}

.premium-card:hover .premium-img-wrapper::after {
    opacity: 1;
}

.premium-price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(253, 248, 244, 0.9);
    color: var(--texto-oscuro);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-textos);
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    z-index: 2;
    transition: var(--transicion-rebote);
}

.premium-card:hover .premium-price-tag {
    background: var(--texto-terracota);
    color: #fff;
    transform: scale(1.1);
}

.premium-content {
    padding: 35px 30px;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

.premium-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--texto-oscuro);
    transition: var(--transicion-suave);
}

.premium-card:hover .premium-title {
    color: var(--texto-terracota);
}

.premium-desc {
    font-size: 1rem;
    color: var(--texto-parrafo);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   ESTILOS DEL FOOTER ELEGANTE
   ========================================================================== */
.footer-elegante {
    background-color: #1A100C; 
    color: #E8D8CE; 
    padding: 80px 0 0 0;
    margin-top: 100px;
    border-top: 5px solid var(--texto-terracota);
}

.footer-elegante .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 75px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.15)); 
    transition: var(--transicion-suave);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-brand p {
    max-width: 380px;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-elegante h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
    position: relative;
}

.footer-elegante h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background: var(--texto-terracota);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--texto-terracota);
    transform: translateX(8px); /* Animación de flecha sutil */
}

.footer-contact p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    background: #110A08;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}
/* ==========================================
   ESTILOS RESPONSIVOS: HEADER Y FOOTER (MÓVILES)
   ========================================== */
@media (max-width: 768px) {
    /* --- Encabezado (Header) --- */
    .navbar .container {
        flex-direction: column !important;
        text-align: center;
        gap: 15px;
        padding: 15px 10px;
    }
    
    .navbar nav .nav-links {
        display: flex;
        flex-wrap: wrap; /* Permite que los enlaces bajen de línea si no caben */
        justify-content: center;
        gap: 15px;
        padding: 0;
    }
    
    /* --- Pie de página (Footer) --- */
    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Fuerza 1 sola columna */
        text-align: center;
        gap: 35px;
    }
    
    .footer-brand img.footer-logo {
        margin: 0 auto 15px auto !important; /* Centra el logo del pie */
        display: block;
    }
}