/* ==========================================
   RESET & VARIABLES GENERALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Original & Dorados */
    --primary-gold: #c39252;
    --primary-gold-hover: #e0ab68;
    
    /* Nueva Identidad D'thiago (Fuego, Chifa & Brostería) */
    --primary-red: #E32626;     /* Rojo fuego intenso */
    --primary-orange: #FF5722;  /* Naranja llama */
    --accent-gold: #FF9800;     /* Dorado cálido */
    
    /* Fondos y Tipografía */
    --bg-dark: #0c0d0e;
    --bg-card: #141618;
    --text-light: #ffffff;
    --text-muted: #a5a5a5;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==========================================
   BOTONES ELEGANTES Y FUEGO
   ========================================== */
.btn {
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    background: var(--primary-gold);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(195, 146, 82, 0.4);
    transform: translateY(-2px);
}

/* Variante de Botón con Degradado Fuego */
.btn-fire {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(227, 38, 38, 0.3);
}

.btn-fire:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.5);
    transform: translateY(-2px);
}

/* ==========================================
   PANTALLA DE CARGA (PRELOADER)
   ========================================== */
#preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: var(--bg-dark) !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), 
                visibility 0.8s cubic-bezier(0.77, 0, 0.175, 1), 
                transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#preloader.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-100%) !important;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.preloader-logo {
    font-family: var(--font-title);
    font-size: 3.2rem;
    font-style: italic;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 2px;
    text-shadow: 0 0 25px rgba(195, 146, 82, 0.4);
    animation: pulseLogo 2s infinite ease-in-out;
}

/* Imagen de Logo en Preloader */
.preloader-logo-img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(227, 38, 38, 0.5));
    animation: pulseLogo 2s infinite ease-in-out;
}

.preloader-spinner {
    position: relative;
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(227, 38, 38, 0.15);
    border-top: 3px solid var(--primary-red);
    border-right: 3px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1.1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-icon {
    color: var(--primary-orange);
    font-size: 1.6rem;
    animation: glowIcon 1.5s infinite alternate ease-in-out;
}

.preloader-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    margin: 0;
    animation: fadeInOut 1.5s infinite alternate ease-in-out;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulseLogo { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 0 25px rgba(255, 87, 34, 0.8)); } }
@keyframes glowIcon { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 10px var(--primary-orange)); } }
@keyframes fadeInOut { 0% { opacity: 0.3; } 100% { opacity: 1; } }

/* ==========================================
   HEADER & NAVEGACIÓN
   ========================================== */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(12, 13, 14, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(227, 38, 38, 0.2);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 75px;
}

.logo {
    background-color: transparent;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo span {
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Imagen de Logo Oficial en Header */
.header-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.03);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    position: relative;
    padding: 8px 0;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--primary-orange); }

.header-actions { display: flex; align-items: center; gap: 28px; }

.social-links { display: flex; align-items: center; gap: 24px; }

.social-links a {
    color: var(--text-light);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.btn-reservation {
    border: 1px solid var(--primary-red);
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    color: var(--text-light);
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-reservation:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(227, 38, 38, 0.4);
    transform: translateY(-2px);
}

/* Botón Hamburguesa Móvil */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary-orange);
}

/* ==========================================
   1. HERO SECTION
   ========================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    padding: 60px 5%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--font-title);
    font-size: 3.8rem;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 35px;
    font-weight: 700;
}

.hero-image {
    flex: 1;
    height: 500px;
    background: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(227, 38, 38, 0.3);
}

/* ==========================================
   2. EXPERIENCIA SECTION
   ========================================== */
.experiencia {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 100px 30px;
}

.exp-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.exp-img-large {
    grid-column: span 2;
    height: 320px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(227, 38, 38, 0.2);
}

.exp-images img:not(.exp-img-large) {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(227, 38, 38, 0.2);
    transition: transform 0.3s ease;
}

.exp-images img:hover {
    transform: scale(1.03);
}

.exp-text h2 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.2;
}

.exp-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
    font-style: italic;
    border-left: 2px solid var(--primary-orange);
    padding-left: 15px;
}

/* ==========================================
   3. CHEF QUOTE SECTION
   ========================================== */
.chef-quote {
    display: flex;
    align-items: center;
    background: #121416;
    margin: 80px 0;
    border-top: 1px solid rgba(227, 38, 38, 0.15);
    border-bottom: 1px solid rgba(227, 38, 38, 0.15);
}

.chef-img {
    flex: 1;
    height: 480px;
    background: url('https://images.unsplash.com/photo-1577219491135-ce391730fb2c?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
    min-width: 320px;
}

.chef-text {
    flex: 1.2;
    padding: 60px;
    position: relative;
}

.quote-mark {
    font-family: var(--font-title);
    font-size: 6rem;
    color: var(--primary-orange);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -30px;
}

.chef-text p {
    font-size: 1.25rem;
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 25px;
    line-height: 1.8;
}

.chef-text span {
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* ==========================================
   4. MENÚ SECTION
   ========================================== */
.menu-section {
    padding: 100px 30px;
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
}

.menu-subtitle {
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.menu-section h2 {
    font-family: var(--font-title);
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 50px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.menu-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(227, 38, 38, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(227, 38, 38, 0.2);
    border-color: var(--primary-orange);
}

.menu-image-container {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.menu-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-image-container img {
    transform: scale(1.1);
}

.menu-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 13, 14, 0.92);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: left;
}

.menu-card:hover .menu-info-overlay {
    opacity: 1;
}

.menu-info-overlay h4 {
    color: var(--primary-orange);
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.menu-info-overlay p {
    color: #cccccc;
    font-size: 0.88rem;
    line-height: 1.6;
}

.menu-dish-name {
    padding: 20px;
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
}

/* ==========================================
   5. TESTIMONIAL
   ========================================== */
.testimonial {
    background: linear-gradient(rgba(12,13,14,0.88), rgba(12,13,14,0.88)), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1200&q=80') center/cover fixed;
    padding: 100px 20px;
    text-align: center;
    max-width: 900px;
    margin: 80px auto;
    border-radius: 12px;
    border: 1px solid rgba(227, 38, 38, 0.2);
}

.testimonial .quote-mark {
    font-size: 5rem;
    margin-bottom: -20px;
}

.testimonial p {
    font-size: 1.25rem;
    font-style: italic;
    color: #f0f0f0;
    max-width: 750px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

.test-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.test-author img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    object-fit: cover;
}

/* ==========================================
   6. VIDEO BANNER
   ========================================== */
.video-banner {
    position: relative;
    height: 380px;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(227, 38, 38, 0.2);
    border-bottom: 1px solid rgba(227, 38, 38, 0.2);
}

.video-text {
    font-family: var(--font-title);
    font-size: 3.8rem;
    font-style: italic;
    color: #ffffff;
    letter-spacing: 4px;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.play-btn {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(227, 38, 38, 0.6);
    padding-left: 4px;
}

.play-btn:hover {
    transform: scale(1.15);
    background: #ffffff;
    color: var(--primary-orange);
}

/* ==========================================
   FOOTER (DISEÑO PERSONALIZADO TRES COLUMNAS)
   ========================================== */
.main-footer {
    background-color: #06080b;
    color: var(--text-light);
    border-top: 1px solid rgba(227, 38, 38, 0.2);
    padding-top: 60px;
}

.footer-top-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    padding: 0 30px 60px 30px;
}

.footer-col {
    padding: 0 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* Íconos Dorados y Fuego */
.icon-gold, .icon-flame {
    color: var(--primary-orange);
    font-size: 1.1rem;
    min-width: 20px;
}

/* Elementos de Lista (Información y Horarios) */
.info-item, .hours-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Columna Central */
.footer-col-center {
    justify-content: center;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 2.6rem;
    font-style: italic;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.footer-logo-img {
    max-width: 170px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
}

.footer-slogan {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 25px;
}

/* Redes Sociales en Círculos */
.social-circles {
    display: flex;
    gap: 12px;
}

.social-circles a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.social-circles a:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 38, 38, 0.4);
}

/* ==========================================
   BARRA INFERIOR Y ACCIONES
   ========================================== */
.footer-bottom-bar {
    background-color: #030405;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
}

.footer-bottom-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    color: #777777;
    font-size: 0.85rem;
}

.footer-bottom-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Insignia Libro de Reclamaciones */
.libro-reclamaciones-badge {
    background-color: #ffffff;
    color: #000000;
    padding: 6px 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.libro-reclamaciones-badge i {
    font-size: 1.4rem;
}

/* Botón Ovalado Contacto */
.btn-contacto-pill {
    background-color: #ffffff;
    color: #000000;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-contacto-pill:hover {
    background-color: var(--primary-orange);
    color: #ffffff;
}

/* Botón Flotante Chat / WhatsApp */
.chat-float-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(227, 38, 38, 0.4);
    transition: transform 0.3s ease;
}

.chat-float-btn:hover {
    transform: scale(1.1);
}

/* ==========================================
   RESPONSIVO Y MENÚ DESPLEGABLE MÓVIL
   ========================================== */
@media (max-width: 992px) {
    /* Header Móvil & Menú Desplegable */
    .mobile-menu-btn {
        display: block;
    }

    .header-actions {
        display: none; /* Oculta acciones complejas para dar espacio al logo */
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: rgba(12, 13, 14, 0.98);
        backdrop-filter: blur(15px);
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 50px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        z-index: 999;
    }

    .nav-menu.nav-active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .nav-menu a {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-image {
        width: 100%;
        height: 350px;
    }

    /* Experiencia */
    .experiencia {
        grid-template-columns: 1fr;
    }

    /* Chef Quote */
    .chef-quote {
        flex-direction: column;
    }

    .chef-img {
        width: 100%;
        height: 300px;
    }

    .chef-text {
        padding: 40px 20px;
    }

    /* Footer */
    .footer-top-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col {
        border-right: none !important;
        padding: 0;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .header-logo-img {
        height: 48px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .menu-section h2 {
        font-size: 2.2rem;
    }

    .footer-bottom-actions {
        flex-direction: column;
        gap: 15px;
    }
}