/*EneSushi - Estilos CSS Principales*/
:root {
    --primary-color: #B22222;
    --primary-dark: #8b0000;
    --bg-color: #050505;
    --bg-card: #121212;
    --text-color: #FFFFFF;
    --text-muted: #d0d0d0; /* Aclarado ligeramente para garantizar contraste accesible */
    
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 15px rgba(0,0,0,0.5);
    
    --nav-height: 70px;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- UTILITIES --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-red { color: var(--primary-color); }
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }
.section-padding { padding: 60px 0; }
.bg-darker { background-color: #0a0a0a; }

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: 1px; }
.text-outline { -webkit-text-stroke: 1px var(--text-color); color: transparent; }

/* --- SVG ICONS --- */
.icon {
    width: 1em; height: 1em; display: inline-block;
    fill: currentColor; vertical-align: -0.125em;
}
.icon-box .icon { width: 50px; height: 50px; }
.social-links .icon { width: 28px; height: 28px; }
.nav-toggle-icon { width: 24px; height: 24px; fill: white; }

/* Toggle Menú */
.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-bars { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* --- BUTTONS --- */
.btn {
    display: inline-block; padding: 12px 28px;
    font-family: var(--font-heading); text-transform: uppercase;
    font-size: 1rem; border: 2px solid transparent; cursor: pointer; text-align: center;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: transparent; border-color: var(--primary-color); color: var(--primary-color); }
.btn-outline { border-color: white; color: white; }
.btn-outline:hover { background-color: white; color: black; }
.btn-sm {
    padding: 8px 20px; background: transparent;
    border: 1px solid var(--primary-color); color: var(--primary-color);
    font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-sm:hover { background: var(--primary-color); color: white; }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--nav-height); background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid #222;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: 1px; }
.nav-logo-img { height: 40px; width: auto; border-radius: 50%; }

.nav-links {
    position: fixed; top: var(--nav-height); left: 0; width: 100%;
    background-color: black; flex-direction: column; align-items: center;
    padding: 2rem 0; gap: 2rem; border-bottom: 1px solid #333;
    transform: translateY(-150%); transition: transform 0.4s ease-in-out; display: flex;
}
.nav-links.active { transform: translateY(0); box-shadow: 0 10px 20px rgba(0,0,0,0.8); }
.mobile-menu-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 10px;}
.btn-nav { border: 1px solid var(--primary-color); padding: 10px 25px; color: var(--primary-color) !important; }

/* --- HERO --- */
.hero {
    height: 100vh; min-height: 600px; display: flex; align-items: center;
    position: relative; text-align: center;
    /* La imagen ya se precarga en HTML, esto es solo para mostrarla */
    background: url('../img/hero-bg.webp') center/cover no-repeat;
    background-color: #111; /* Fallback color */
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9)); }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: clamp(3rem, 10vw, 5.5rem); line-height: 1; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; flex-direction: column; gap: 15px; align-items: center; }

.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* --- GRID & CARDS --- */
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 25px; }
.menu-item {
    background: var(--bg-card); border: 1px solid #222; border-radius: 12px;
    overflow: hidden; transition: var(--transition);
}
.menu-item:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.menu-img-container { height: 220px; overflow: hidden; }
.menu-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.menu-item:hover .menu-img { transform: scale(1.1); }
.menu-info { padding: 20px; }
.menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.menu-header h3 { font-size: 1.2rem; }
.price { color: var(--primary-color); font-weight: bold; font-size: 1.2rem; }
.menu-desc { font-size: 0.9rem; color: #ccc; margin-bottom: 15px; }

.features-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.feature-card {
    background: #0f0f0f; padding: 30px; border-radius: 8px;
    text-align: center; border: 1px solid #1a1a1a;
}
.icon-box { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }

/* --- CTA & FOOTER --- */
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)),
                url('../img/sushi-variado.webp') center/cover;
    padding: 80px 0; text-align: center; background-color: #111;
}
.contact-info { display: flex; flex-direction: column; gap: 15px; margin: 30px 0; align-items: center; }
.info-item { display: flex; gap: 10px; color: #ccc; align-items: center; }
.info-item i { color: var(--primary-color); }

footer { background: black; padding: 50px 0 20px; border-top: 1px solid #222; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.footer-logo-img { width: 60px; border-radius: 50%; margin-bottom: 10px; }
.footer-name { font-family: var(--font-heading); font-size: 1.5rem; }
.social-links { margin-bottom: 25px; }
.social-links a { font-size: 1.5rem; margin: 0 10px; color: white; transition: var(--transition); }
.social-links a:hover { color: var(--primary-color); }
.copyright-section { font-size: 0.85rem; color: #FFFFFF; }
.highlight-link { color: #e91e8c; font-weight: 600; }
.highlight-link:hover { text-decoration: underline; }

/* --- ANIMACIONES & JS HELPERS --- */
.fade-in-up { animation: fadeInUp 1s forwards; opacity: 0; transform: translateY(20px); }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.reveal-hidden { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); will-change: opacity, transform; }
.reveal-visible { opacity: 1; transform: translateY(0); }
.menu-item:nth-child(2), .feature-card:nth-child(2) { transition-delay: 0.1s; }
.menu-item:nth-child(3), .feature-card:nth-child(3) { transition-delay: 0.2s; }

/* ACCESIBILIDAD: Respetar preferencias de movimiento */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .scroll-indicator { animation: none; }
}

/* DESKTOP */
@media (min-width: 768px) {
    .section-padding { padding: 100px 0; }
    .mobile-menu-btn { display: none; }
    .nav-links {
        position: static; transform: none; flex-direction: row;
        background: transparent; width: auto; padding: 0; border: none; box-shadow: none;
    }
    .nav-links li a { font-size: 0.95rem; text-transform: uppercase; font-weight: 500; }
    .nav-links li a:hover { color: var(--primary-color); }
    .hero-btns { flex-direction: row; justify-content: center; }
    .menu-grid, .features-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-info { flex-direction: row; justify-content: center; gap: 40px; }
}