/* =========================================================
   CERNUNNOS – RESTAURANTE MEXICANO · restaurant.css
   Paleta: amarillo #F7C948 · rojo #CC2936 · verde #2DC653
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--mx-dark);
    background: var(--mx-white);
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ── Reveal animation ─────────────────────────────────────── */
.mx-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
}
.mx-reveal.is-visible { opacity: 1; transform: none; }
.mx-reveal.delay-1 { transition-delay: 0.1s; }
.mx-reveal.delay-2 { transition-delay: 0.22s; }
.mx-reveal.delay-3 { transition-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
    .mx-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Shared ───────────────────────────────────────────────── */
.mx-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.mx-section {
    padding: 80px 0;
}

.mx-eyebrow {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mx-red);
    display: block;
    margin-bottom: 12px;
}

.mx-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--mx-dark);
    margin-bottom: 16px;
}

.mx-section-title span { color: var(--mx-red); }

.mx-section-lead {
    font-size: 17px;
    color: #555;
    max-width: 52ch;
    line-height: 1.7;
}

/* Botones */
.mx-btn {
    display: inline-block;
    padding: 13px 30px;
    background: var(--mx-red);
    color: var(--mx-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    border-radius: 4px;
    border: 2px solid var(--mx-red);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s var(--ease-out-expo), box-shadow 0.2s ease;
    text-transform: uppercase;
}
.mx-btn:hover {
    background: #a8202c;
    border-color: #a8202c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}
.mx-btn-outline {
    background: transparent;
    color: var(--mx-red);
}
.mx-btn-outline:hover {
    background: var(--mx-red);
    color: var(--mx-white);
}
.mx-btn-yellow {
    background: var(--mx-yellow);
    border-color: var(--mx-yellow);
    color: var(--mx-dark);
}
.mx-btn-yellow:hover {
    background: #e5b530;
    border-color: #e5b530;
    box-shadow: 0 8px 28px rgba(247,201,72,0.45);
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.mx-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--mx-red);
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.mx-nav--scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.mx-nav-inner {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mx-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mx-nav-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--mx-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.mx-nav-wordmark {
    font-family: var(--font-heading);
    font-weight: 900;
    font-style: italic;
    font-size: 20px;
    color: var(--mx-white);
    letter-spacing: -0.01em;
    line-height: 1;
}

.mx-nav-wordmark span {
    color: var(--mx-yellow);
}

.mx-nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.mx-nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    transition: color 0.18s ease;
}

.mx-nav-links a:hover { color: var(--mx-yellow); }

.mx-nav-cta {
    background: var(--mx-yellow) !important;
    color: var(--mx-dark) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 12px !important;
}

.mx-nav-cta:hover { opacity: 0.9; }

.mx-nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.mx-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--mx-white);
    border-radius: 1px;
    transition: var(--transition);
}

/* ── HERO ─────────────────────────────────────────────────── */
.mx-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 66px;
}

.mx-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center 35%;
    z-index: 0;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.mx-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 5, 0, 0.52) 0%,
        rgba(10, 3, 0, 0.72) 60%,
        rgba(10, 3, 0, 0.88) 100%
    );
}

.mx-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
}

.mx-hero-badge {
    display: inline-block;
    background: var(--mx-yellow);
    color: var(--mx-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.mx-hero h1 {
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 900;
    font-style: italic;
    color: var(--mx-white);
    letter-spacing: -0.02em;
    line-height: 0.95;
    text-wrap: balance;
    margin-bottom: 8px;
}

.mx-hero h1 span {
    color: var(--mx-yellow);
    display: block;
}

.mx-hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 36px;
}

.mx-hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.mx-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: mx-bounce 2s ease infinite;
}

@keyframes mx-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

.mx-hero-scroll svg { opacity: 0.5; }

/* ── NOSOTROS ──────────────────────────────────────────────── */
.mx-nosotros {
    background: var(--mx-yellow);
    overflow: hidden;
}

.mx-nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.mx-nosotros-text .mx-section-title { color: var(--mx-dark); }
.mx-nosotros-text .mx-section-lead  { color: rgba(26,26,26,0.75); }

.mx-nosotros-text blockquote {
    border-left: 4px solid var(--mx-red);
    padding-left: 20px;
    margin: 28px 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    font-style: italic;
    color: var(--mx-red);
    line-height: 1.3;
}

.mx-nosotros-img {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 12px 12px 0 var(--mx-red);
}

.mx-nosotros-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mx-nosotros-img:hover img { transform: scale(1.04); }

/* ── MENÚ ─────────────────────────────────────────────────── */
.mx-menu {
    background: var(--mx-white);
}

.mx-menu-header {
    text-align: center;
    margin-bottom: 52px;
}

.mx-menu-header .mx-section-lead {
    margin: 0 auto;
}

.mx-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.mx-menu-card {
    background: var(--mx-white);
    border: 2px solid rgba(26,26,26,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease, border-color 0.25s ease;
}

.mx-menu-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--mx-yellow);
}

.mx-menu-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.mx-menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mx-menu-card:hover .mx-menu-card-img img { transform: scale(1.06); }

.mx-menu-card-body {
    padding: 20px 22px;
}

.mx-menu-card-tag {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mx-green);
    margin-bottom: 6px;
    display: block;
}

.mx-menu-card-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--mx-dark);
    margin-bottom: 6px;
    line-height: 1.2;
}

.mx-menu-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.55;
    margin-bottom: 14px;
}

.mx-menu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding-top: 14px;
}

.mx-menu-card-price {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 20px;
    color: var(--mx-red);
}

.mx-menu-card-badge {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--mx-green);
    color: var(--mx-white);
    padding: 3px 9px;
    border-radius: 999px;
}

.mx-menu-cta {
    text-align: center;
    margin-top: 44px;
}

/* ── GALERÍA ──────────────────────────────────────────────── */
.mx-galeria {
    background: var(--mx-dark);
    padding: 64px 0;
    overflow: hidden;
}

.mx-galeria-header {
    text-align: center;
    margin-bottom: 40px;
}

.mx-galeria-header .mx-section-title { color: var(--mx-white); }
.mx-galeria-header .mx-eyebrow       { color: var(--mx-yellow); }

.mx-galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 240px;
    gap: 6px;
}

.mx-galeria-item {
    overflow: hidden;
    position: relative;
}

.mx-galeria-item:first-child {
    grid-row: 1 / 3;
}

.mx-galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.85) saturate(1.1);
}

.mx-galeria-item:hover img {
    transform: scale(1.07);
    filter: brightness(1) saturate(1.2);
}

.mx-galeria-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(204,41,54,0.35) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mx-galeria-item:hover::after { opacity: 1; }

/* ── RESERVAS CTA ─────────────────────────────────────────── */
.mx-reservas {
    background: var(--mx-red);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mx-reservas::before {
    content: '🌮';
    position: absolute;
    font-size: 220px;
    opacity: 0.06;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    pointer-events: none;
}

.mx-reservas h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    font-style: italic;
    color: var(--mx-white);
    margin-bottom: 14px;
}

.mx-reservas p {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    margin-bottom: 36px;
    max-width: 44ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.mx-reservas-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.mx-reservas .mx-btn-outline {
    color: var(--mx-white);
    border-color: rgba(255,255,255,0.5);
}
.mx-reservas .mx-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: var(--mx-white);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.mx-footer {
    background: #111;
    color: rgba(255,255,255,0.8);
    padding: 56px 0 28px;
}

.mx-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.mx-footer-brand .mx-nav-wordmark {
    font-size: 24px;
    margin-bottom: 14px;
}

.mx-footer-brand p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    max-width: 30ch;
}

.mx-footer h4 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mx-yellow);
    margin-bottom: 16px;
}

.mx-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mx-footer ul li {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

.mx-footer ul li strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.mx-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.mx-footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

.mx-footer-bottom a {
    color: var(--mx-yellow);
    font-size: 12px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .mx-nosotros-grid { grid-template-columns: 1fr; gap: 40px; }
    .mx-nosotros-img  { aspect-ratio: 16 / 9; box-shadow: none; }
    .mx-galeria-grid  { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
    .mx-galeria-item:first-child { grid-row: auto; }
    .mx-footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .mx-section { padding: 56px 0; }
    .mx-nav-links { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: var(--mx-red); padding: 16px 24px 24px; gap: 18px; }
    .mx-nav-links.is-open { display: flex; }
    .mx-nav-toggle { display: flex; }
    .mx-galeria-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 220px); }
    .mx-footer-grid  { grid-template-columns: 1fr; gap: 32px; }
    .mx-footer-bottom { flex-direction: column; text-align: center; }
}
