/* ================= 1. DESIGN SYSTEM & VARIABLES ================= */
:root {
    /* Paleta de Colores */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-card-hover: #252525;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    
    /* Sistema Dorado Premium */
    --gold: #d4af37;
    --gold-light: #f3cf55;
    --gold-dark: #8a6e2f;
    --gold-gradient: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    
    /* Sistema de Sombras (Elevación) */
    --shadow-soft: 0 5px 15px rgba(0,0,0,0.3);
    --shadow-strong: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-lift: 0 20px 40px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    
    /* Bordes Especiales */
    --border-premium: 2px solid transparent;
    --bg-gradient-border: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, var(--gold-gradient) border-box;

    /* Tipografía */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Roboto', sans-serif;
}

/* ================= 2. RESET & BASE ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Transiciones Globales Optimizadas */
a, button, .menu-item, .special-card, img, .highlight-box, .menu-item-compact {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= 3. COMPONENTES DE UI ================= */

/* Botones */
.btn-gold {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--gold);
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    background: transparent;
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-gold:active { transform: scale(0.98); }

/* Títulos de Sección */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: var(--gold);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 20px auto 0;
}

/* ================= CORRECCIÓN TÍTULOS CATEGORÍAS ================= */
.category-group h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--gold);
    margin-top: 40px;
    margin-bottom: 30px;
    border-left: 4px solid var(--gold); 
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= 4. NAVBAR & MENU ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.nav-links { display: flex; gap: 30px; }

.nav-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
    font-weight: 700;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

/* Logo pequeño de la barra de navegación */
.nav-logo-small {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo-small:hover {
    transform: scale(1.1);
}

/* Hamburguesa (Modificado para incluir texto MENÚ) */
.hamburger {
    display: none; /* Se oculta en PC */
    background: none;
    border: none;
    cursor: pointer;
    
    /* Mantenemos las líneas en columna */
    flex-direction: column;
    gap: 6px;
    
    /* Aumentamos el padding izquierdo para hacer hueco al texto */
    padding: 10px 10px 10px 60px; 
    z-index: 1002;
    position: relative; /* Necesario para colocar el texto */
}

/* El texto "MENÚ" fantasma (No rompe la animación) */
.hamburger::before {
    content: "MENÚ";        /* El texto que queremos */
    position: absolute;     /* Lo colocamos a la fuerza */
    left: -5px;             /* Pegado a la izquierda */
    top: 50%;
    transform: translateY(-50%); /* Centrado vertical exacto */
    
    color: var(--gold);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.2rem;      /* Tamaño discreto pero legible */
    letter-spacing: 1px;
}

/* Las líneas siguen igual */
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* La animación de la X sigue funcionando perfecta */
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================= 5. HEADER / HERO ================= */
header {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 4px solid var(--gold);
    background: #000;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    will-change: opacity;
    animation: fadeSlide 10.5s infinite;
}

.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: 3.5s; }
.hero-slider .slide:nth-child(3) { animation-delay: 7s; }

@keyframes fadeSlide {
    0% { opacity: 0; } 
    10% { opacity: 1; transform: scale(1); }
    33% { opacity: 1; transform: scale(1.05); }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 2;
}

.hero-content { position: relative; z-index: 3; padding: 0 20px; }

.hero-logo {
    width: 600px;
    max-width: 90vw;
    height: auto;
    display: block;
    margin: 0 auto 40px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.hero-logo:hover { transform: scale(1.02); }

header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.slogan {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 30px;
    font-style: normal;
    letter-spacing: 1px;
}

.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
    margin-top: 40px; 
}

/* ================= 6. LAYOUT MENÚ & CARDS ================= */
.menu-section {
    padding: 80px 0;
    border-bottom: 1px solid #333;
    scroll-margin-top: 70px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

/* UNIFICACIÓN DE LISTAS (MAKI, TEMAKI, ETC) */
.menu-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.menu-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px dashed #333;
    border-radius: 8px;
    margin-bottom: 0;
}

.menu-item-compact:hover {
    background-color: rgba(255,255,255,0.03);
    transform: translateX(5px);
}

.menu-item-compact span:first-child {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.menu-item-compact span:last-child {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

.menu-item-compact::after { content: none; display: none; }

/* Menu Item (Standard) */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px dashed #333;
    gap: 20px;
    border-radius: 8px;
}

.menu-item:hover {
    background-color: rgba(255,255,255,0.03);
    transform: translateX(5px);
}

.menu-header .title { font-weight: 700; font-size: 1.1rem; }
.menu-header .price { color: var(--gold); font-weight: 700; font-size: 1.2rem; white-space: nowrap; margin-left: 10px; }
.desc { font-size: 0.9rem; color: var(--text-muted); margin-top: 5px; font-style: italic; }

.menu-img {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #444;
}

/* Cards Premium (Menu del día / Compartir) */
.special-card-container { display: flex; justify-content: center; margin-top: 40px; }

.special-card, .highlight-box {
    background: var(--bg-card);
    border: var(--border-premium);
    background: var(--bg-gradient-border);
    box-shadow: var(--shadow-strong);
}

.special-card {
    padding: 40px;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
}

.special-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}

/* === DESTACADOS MENÚ COMPARTIR (ESTILO TARJETA) === */
.highlight-box {
    padding: 25px; /* Un poco más de espacio interno */
    border-radius: 8px;
    margin-bottom: 0;
    
    /* Layout vertical: Texto arriba, foto abajo */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 1. TRANSFORMACIÓN DEL ENCABEZADO (Estilo Menú del Día) */
.highlight-box .menu-header {
    display: flex; /* Asegura que es flex */
    justify-content: space-between; /* ESTA ES LA CLAVE: Empuja el precio a la derecha del todo */
    align-items: flex-end; /* Alinea la base del texto */
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 5px;
    width: 100%; /* Asegura que ocupa todo el ancho */
}

.highlight-box .menu-header .title {
    font-family: var(--font-serif); /* Tipografía Playfair Display */
    font-size: 1.6rem; /* Grande y elegante (antes 1.1rem) */
    color: var(--gold);
    letter-spacing: 0;
}

.highlight-box .menu-header .price {
    font-size: 1.8rem; /* Precio Grande (antes 1.2rem, Menú día es 2.5rem) */
    color: #fff; /* Blanco para destacar (como en Menú del Día) */
    font-weight: 700;
}
.order-note {
    margin-top: -8px;
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #b91c1c;
}

/* 2. IMAGEN GRANDE Y SIN CORTES */
.highlight-box .menu-img {
    width: 100%;        
    height: auto;       
    max-height: none;   
    object-fit: contain; 
    
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.highlight-box .menu-text { width: 100%; }
/* === FIN DESTACADOS === */

.card-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #444; padding-bottom: 20px; margin-bottom: 20px;
}
.card-header h3 { font-family: var(--font-serif); font-size: 2rem; color: var(--gold); }
.card-price { font-size: 2.5rem; font-weight: 700; }

.card-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.list-col h4 { color: var(--gold); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.list-col ul li { margin-bottom: 8px; color: #ccc; list-style: disc inside; }

/* ================= ALINEACIÓN PRECIOS (FIX) ================= */

/* 1. Hacemos que el contenedor de texto ocupe todo el ancho de la tarjeta */
.menu-item .menu-text {
    flex: 1; 
    width: 100%;
}

/* 2. Separamos Título y Precio a los extremos */
.menu-header {
    display: flex;
    justify-content: space-between; /* Magia: Uno a cada lado */
    align-items: baseline;          /* Alinea el texto por la base */
    width: 100%;
}

/* 3. Quitamos el margen izquierdo antiguo del precio (ya no hace falta) */
.menu-header .price {
    margin-left: 0;
}

/* ================= 7. GALERIA & CONTACTO ================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 0 10px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    filter: brightness(1.1) saturate(1.2);
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
    z-index: 10;
}

.contact-section { 
    background: #151515; 
    padding: 80px 0; 
}

.contact-container {
    display: flex;
    flex-direction: column; /* 1. Apilamos verticalmente: Info arriba, Mapa abajo */
    gap: 40px; 
    max-width: 1000px; 
    margin: 0 auto;
    padding: 0 20px; /* Margen de seguridad para móviles */
}

/* PARTE SUPERIOR: Detalles de contacto */
.contact-details { 
    display: flex; 
    flex-wrap: wrap; /* Se ponen en fila en PC y una bajo otra en móvil */
    gap: 20px; 
    width: 100%;
}

.contact-row {
    flex: 1; /* Ocupan el mismo ancho cada una */
    min-width: 300px; /* Si la pantalla es pequeña, baja una debajo de la otra */
    
    display: flex; 
    align-items: center;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.contact-row:hover { 
    transform: translateY(-5px); 
    background: var(--bg-card-hover); 
}

.contact-icon { 
    font-size: 2.2rem; 
    margin-right: 20px;
    
    /* ESTO ES LO NUEVO PARA ALINEAR: */
    width: 50px;         /* Obliga a los 3 iconos a ocupar el mismo espacio */
    text-align: center;  /* Centra el dibujo dentro de ese espacio */
    display: inline-block;
    
    /* IMPORTANTE: No hay filtros de color aquí */
}

/* PARTE INFERIOR: Mapa Ancho Completo */
.map-wrapper {
    width: 100%; /* Ocupa todo el contenedor */
    height: 400px; /* Un poco más alto para que luzca bien */
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-strong);
}

footer {
    text-align: center; padding: 40px 20px; color: #666; font-size: 0.9rem;
    background: #0a0a0a; border-top: 1px solid #222;
}

/* ================= 8. RESPONSIVE AVANZADO & FIXES ================= */
@media (max-width: 768px) {
    .menu-grid, .card-lists { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 20px auto; }
    
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: #1a1a1a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -10px 0 30px rgba(0,0,0,0.9);
        z-index: 1001;
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    /* FIX DEFINITIVO MÓVIL (Logo y Alineación) */
    .hero-logo {
        max-width: 75vw; 
        margin-bottom: 20px;
    }

    header {
        align-items: flex-start;
        padding-top: 130px; 
        height: auto;
        min-height: 80vh;
    }
    
    .slogan {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* FIX PANTALLA NEGRA: Desactiva animación reveal en móvil */
    .reveal, .reveal.active {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 2rem; }
    .special-card { padding: 20px; }
    .card-header { flex-direction: column; text-align: center; gap: 10px; }
    .menu-img { width: 60px; height: 60px; }
    /* Re-override para highlight box en móviles muy pequeños si es necesario */
    .highlight-box .menu-img { width: 100%; height: auto; } 
}

/* ================= UTILIDADES EXTRA ================= */
::selection { background-color: var(--gold); color: #000; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover { background-color: var(--gold); }

/* Solo cambia la frase de la sección Galería */
#galeria .section-note {
    font-family: var(--font-serif); /* Pone la fuente del eslogan (Playfair) */
    font-size: 1.2rem;              /* Un pelín más grande para que luzca */
}