/* ============================================
   DON INACIO — MENÚ
   Design system unificado con index.html
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --gold: #c8962a;
    --gold-light: #e8b84b;
    --gold-pale: #f5e6c0;
    --cream: #faf6ee;
    --dark: #1a1208;
    --dark-mid: #2c1e0a;
    --text: #3a2e1a;
    --text-muted: #7a6a50;
    --white: #ffffff;
    --header-h: 64px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--cream);
    color: var(--text);
    /* Remove overflow-x: hidden to allow position: sticky to work correctly on iOS Safari */
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* ============================================
   HEADER SIMPLE
   ============================================ */
.menu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(36px, env(safe-area-inset-right)) 0 max(36px, env(safe-area-inset-left));
    z-index: 900;
    background: rgba(20, 12, 3, 0.0);
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.menu-header.scrolled {
    background: rgba(20, 12, 3, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* Botón atrás */
.menu-header-back {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px 8px 10px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}

.menu-header-back .material-symbols-outlined {
    font-size: 1.1rem;
}

.menu-header-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Logo centrado */
.menu-header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-header-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(200, 150, 42, 0.35));
    transition: transform 0.3s var(--ease-spring);
}

.menu-header-logo:hover img {
    transform: scale(1.06);
}

/* ---- Header right group ---- */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- Language Switcher ---- */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.lang-current:hover,
.lang-switcher.open .lang-current {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    font-size: 0.72rem;
}

.lang-arrow {
    font-size: 1rem !important;
    transition: transform 0.25s ease;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(20, 12, 3, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 150, 42, 0.25);
    border-radius: 12px;
    padding: 6px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.18s ease;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    width: 100%;
    text-align: left;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lang-option.active {
    background: rgba(200, 150, 42, 0.15);
    color: var(--gold-light);
}


/* Botón reservar */
.menu-header-reservar {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 40px;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.menu-header-reservar .material-symbols-outlined {
    font-size: 1rem;
}

.menu-header-reservar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 150, 42, 0.45);
}

/* ============================================
   HERO
   ============================================ */
.menu-hero {
    position: relative;
    height: 62vh;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.menu-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(15, 8, 2, 0.93) 0%, rgba(15, 8, 2, 0.55) 55%, rgba(15, 8, 2, 0.2) 100%),
        url('../extern-arch/collagev3.webp') center / cover no-repeat;
    animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1.0);
    }

    to {
        transform: scale(1.06);
    }
}

.menu-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 8%;
    padding-top: var(--header-h);
    max-width: 640px;
}

.menu-hero-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.menu-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 20px;
}

.menu-hero-title em {
    font-style: italic;
    color: var(--gold-light);
}

.menu-hero-desc {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.93rem;
    line-height: 1.85;
    margin-bottom: 32px;
}

.menu-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 13px 26px;
    border-radius: 40px;
    margin-bottom: 20px;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.menu-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200, 150, 42, 0.45);
}

.menu-hero-cta .material-symbols-outlined {
    font-size: 1.1rem;
}

.menu-hero-scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.45);
    animation: bounce 2.2s ease-in-out infinite;
    z-index: 2;
}

.menu-hero-scroll .material-symbols-outlined {
    font-size: 2rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(9px);
    }
}

/* ============================================
   FILTROS
   ============================================ */
.menu-filters-section {
    position: sticky;
    top: var(--header-h);
    z-index: 100;
    background: rgba(250, 246, 238, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(200, 150, 42, 0.14);
}

.menu-filters-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 14px max(6%, env(safe-area-inset-left));
    max-width: 1200px;
    margin: 0 auto;
    scroll-snap-type: x mandatory;
    scroll-padding: max(6%, env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
}

.menu-filters-wrap::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 40px;
    border: 1.5px solid transparent;
    transition: all 0.22s ease;
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.filter-btn .material-symbols-outlined {
    font-size: 1rem;
}

.filter-btn:hover {
    color: var(--gold);
    background: rgba(200, 150, 42, 0.08);
    border-color: rgba(200, 150, 42, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(200, 150, 42, 0.3);
}

/* ============================================
   CATEGORÍAS
   ============================================ */
/* .menu-main uses default block layout */

.menu-category {
    padding: 84px 6%;
    background: var(--cream);
}

.menu-category--dark {
    background: var(--dark);
}

.menu-category--postres {
    background: linear-gradient(160deg, #f5ede0 0%, var(--cream) 100%);
}

.menu-category.hidden {
    display: none;
}

/* Header de categoría */
.category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 52px;
    gap: 16px;
}

.category-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 14px;
}

.category-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 420px;
}

.category-ornament {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 700;
    font-style: italic;
    color: rgba(200, 150, 42, 0.07);
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
    letter-spacing: -0.04em;
}

/* Variante clara (sección oscura) */
.category-header--light .category-title {
    color: var(--white);
}

.category-header--light .category-desc {
    color: rgba(255, 255, 255, 0.5);
}

.menu-category--dark .category-ornament {
    color: rgba(200, 150, 42, 0.05);
}

/* ============================================
   GRID DE PLATOS
   ============================================ */
.dishes-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── TARJETA ── */
.dish-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(58, 46, 26, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.32s var(--ease-out), box-shadow 0.32s ease;
}

.dish-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(58, 46, 26, 0.14);
}

/* Dark variant */
.dish-card--dark {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.dish-card--dark:hover {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Wide: ocupa 2 columnas en desktop */
.dish-card--wide {
    grid-column: span 2;
}

.dish-card--wide .dish-card-image {
    height: 220px;
}

/* Imagen */
.dish-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--dark-mid);
}

.dish-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.dish-card:hover .dish-card-image img {
    transform: scale(1.06);
}

/* Badge sobre imagen */
.dish-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.dish-card-badge--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

/* Cuerpo */
.dish-card-body {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.dish-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.dish-card--dark .dish-name {
    color: var(--white);
}

.dish-name-pt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.86rem;
    font-style: italic;
    color: var(--text-muted);
    display: block;
}

.dish-card--dark .dish-name-pt {
    color: rgba(255, 255, 255, 0.45);
}

.dish-desc {
    font-size: 0.81rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.dish-card--dark .dish-desc {
    color: rgba(255, 255, 255, 0.42);
}

/* Footer de tarjeta */
.dish-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid rgba(200, 150, 42, 0.14);
}

.dish-card--dark .dish-card-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.dish-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gold);
}

.dish-price--consultar {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-muted);
}

.dish-card--dark .dish-price--consultar {
    color: rgba(255, 255, 255, 0.4);
}

/* Badges inline */
.dish-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 6px;
}

.dish-badge--outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

/* ============================================
   BANDA RESERVA
   ============================================ */
.reserva-band {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
    padding: 80px 6%;
    position: relative;
    overflow: hidden;
}

.reserva-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 75% 50%, rgba(200, 150, 42, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.reserva-band-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.reserva-band-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.reserva-band-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.1;
}

.reserva-band-text p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
}

.reserva-band-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.reserva-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: 40px;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.reserva-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(200, 150, 42, 0.45);
}

.reserva-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 150, 42, 0.1);
    border: 1px solid rgba(200, 150, 42, 0.35);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: 40px;
    transition: all 0.25s ease;
}

.reserva-btn-secondary:hover {
    background: rgba(200, 150, 42, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    padding: 60px max(6%, env(safe-area-inset-right)) 0 max(6%, env(safe-area-inset-left));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.footer-brand img {
    height: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(200, 150, 42, 0.25));
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.7;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.footer-nav ul li,
.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.86rem;
    margin-bottom: 10px;
}

.footer-nav ul li a {
    transition: color 0.2s;
}

.footer-nav ul li a:hover {
    color: var(--gold-light);
}

.footer-contact ul li .material-symbols-outlined {
    font-size: 1rem;
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.22);
}

/* ============================================
   SCROLL TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 26px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 150, 42, 0.92);
    color: var(--dark);
    border-radius: 50%;
    z-index: 800;
    box-shadow: 0 4px 16px rgba(200, 150, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease-spring);
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-3px) scale(1.08);
}

.scroll-top .material-symbols-outlined {
    font-size: 1.2rem;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes filterReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BEBIDAS — SUBSECCIONES
   ============================================ */

/* Contenedor de subsección */
.bebidas-subsection {
    max-width: 1200px;
    margin: 0 auto 56px;
}

.bebidas-subsection:last-child {
    margin-bottom: 0;
}

/* Encabezado de subsección */
.bebidas-subsection-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(200, 150, 42, 0.18);
}

.bebidas-subsection-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 600;
    font-style: italic;
    color: var(--gold-light);
    white-space: normal;
    text-align: center;
    letter-spacing: 0.03em;
}

.bebidas-subsection-ornament {
    color: rgba(200, 150, 42, 0.35);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

/* Fila de precios en la tarjeta de bebida */
.bebidas-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.bebidas-price-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

.bebidas-price-sep {
    color: rgba(200, 150, 42, 0.4);
    font-size: 0.9rem;
}

/* Etiqueta de tipo de presentación (Copa, Jarra, Lata, Botella) */
.bebidas-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    padding: 3px 9px;
    border-radius: 20px;
    vertical-align: middle;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dish-card--wide {
        grid-column: span 2;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .reserva-band-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .reserva-band-actions {
        justify-content: center;
    }

    .category-ornament {
        font-size: 6rem;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-h: 56px;
    }

    .menu-header {
        padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    }

    /* Botón atrás: solo el ícono */
    .menu-header-back span:last-child {
        display: none;
    }

    .menu-header-back {
        padding: 8px 10px;
        gap: 0;
        border-radius: 50%;
    }

    /* Logo: reducir tamaño en móvil */
    .menu-header-logo img {
        height: 28px;
    }

    /* Lang switcher: solo la bandera, sin código ni flecha */
    .lang-code {
        display: none;
    }

    .lang-arrow {
        display: none;
    }

    .lang-current {
        padding: 8px 10px;
        border-radius: 50%;
    }

    /* Botón reservar: oculto en móvil */
    .menu-header-reservar {
        display: none;
    }

    .menu-hero {
        height: 72vh;
    }

    .menu-hero-bg {
        background:
            linear-gradient(to bottom, rgba(15, 8, 2, 0.75) 0%, rgba(15, 8, 2, 0.88) 100%),
            url('../extern-arch/MENUv2/3.webp') center / cover no-repeat;
    }

    .menu-hero-content {
        padding: 0 6%;
        padding-top: calc(var(--header-h) + 16px);
    }

    .menu-filters-section {
        padding: 0;
    }

    .menu-filters-wrap {
        padding: 12px max(4%, env(safe-area-inset-left));
        gap: 8px;
        scroll-padding: max(4%, env(safe-area-inset-left));
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.72rem;
    }

    .filter-btn .material-symbols-outlined {
        display: none;
    }

    .menu-category {
        padding: 56px 4%;
    }

    .category-header {
        flex-direction: column;
        gap: 0;
        margin-bottom: 36px;
    }

    .category-ornament {
        display: none;
    }

    .dishes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .dish-card--wide {
        grid-column: span 2;
    }

    .dish-card-image {
        height: 160px;
    }

    .dish-card--wide .dish-card-image {
        height: 180px;
    }

    .dish-card-body {
        padding: 14px 14px 12px;
        gap: 5px;
    }

    .dish-name {
        font-size: 0.9rem;
    }

    .dish-desc {
        font-size: 0.76rem;
    }

    .dish-price {
        font-size: 1.2rem;
    }

    .reserva-band {
        padding: 56px max(5%, env(safe-area-inset-left));
    }

    .reserva-band-title {
        font-size: 1.8rem;
    }

    .reserva-band-actions {
        flex-direction: column;
        width: 100%;
    }

    .reserva-btn-primary,
    .reserva-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .dishes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dish-card {
        flex-direction: row;
        height: 130px;
        align-items: stretch;
    }

    .dish-card.dish-card--wide {
        flex-direction: column;
        height: auto;
    }

    .dish-card.dish-card--wide .dish-card-image {
        width: 100%;
        height: 200px;
    }

    .dish-card-image {
        width: 120px;
        height: 100%;
        flex-shrink: 0;
    }

    .dish-card-body {
        padding: 12px 14px;
        justify-content: center;
        flex: 1;
        gap: 4px;
    }

    .dish-name {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .dish-name-pt {
        font-size: 0.78rem;
    }

    .dish-desc {
        font-size: 0.72rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: auto;
    }

    .dish-card-footer {
        padding-top: 6px;
        margin-top: 2px;
        border-top: none;
    }

    .dish-price {
        font-size: 1.2rem;
    }

    .dish-card-badge {
        font-size: 0.55rem;
        padding: 3px 10px;
        top: 8px;
        left: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ============================================
   DISH DETAIL MODAL
   ============================================ */

/* Overlay */
.dish-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 6, 2, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.dish-modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Modal container */
.dish-modal {
    position: relative;
    display: flex;
    flex-direction: row;
    width: max-content;
    height: max-content;
    max-width: 94vw;
    max-height: 90vh;
    background: var(--dark);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(200, 150, 42, 0.18);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(200, 150, 42, 0.06);
    transform: translateY(28px) scale(0.97);
    transition: transform 0.4s var(--ease-out), opacity 0.35s ease;
    opacity: 0;
}

.dish-modal-overlay.is-open .dish-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.dish-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
    cursor: pointer;
}

.dish-modal-close:hover {
    background: rgba(200, 150, 42, 0.2);
    border-color: rgba(200, 150, 42, 0.4);
    color: var(--gold-light);
    transform: rotate(90deg);
}

.dish-modal-close .material-symbols-outlined {
    font-size: 1.15rem;
}

.dish-modal-image-panel {
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
}

.dish-modal-image-wrap {
    display: flex;
    width: auto;
    max-height: 90vh;
}

.dish-modal-image-wrap img {
    height: 100%;
    width: auto;
    max-width: 55vw;
    max-height: 90vh;
    object-fit: cover;
    display: block;
    border-radius: 22px 0 0 22px;
    background: transparent;
}

.dish-modal-overlay.is-open .dish-modal-image-wrap img {
    transform: scale(1.04);
}

.dish-modal-img-overlay {
    display: none;
}

/* No-image fallback pattern */
.dish-modal-image-panel.no-image {
    background:
        linear-gradient(135deg, var(--dark-mid) 0%, #1e1108 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    min-height: 300px;
}

.dish-modal-image-panel.no-image::after {
    content: 'restaurant_menu';
    font-family: 'Material Symbols Outlined';
    font-size: 5rem;
    color: rgba(200, 150, 42, 0.14);
}

/* Badge on image */
.dish-modal-badge-wrap {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 2;
}

.dish-modal-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
}

/* ── INFO PANEL (right) ── */
.dish-modal-info-panel {
    display: flex;
    flex-direction: column;
    padding: 44px 40px 36px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 150, 42, 0.3) transparent;
    width: 440px;
    max-width: 50vw;
}

.dish-modal-info-panel::-webkit-scrollbar {
    width: 4px;
}

.dish-modal-info-panel::-webkit-scrollbar-thumb {
    background: rgba(200, 150, 42, 0.3);
    border-radius: 2px;
}

/* Category label */
.dish-modal-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

/* Dish name */
.dish-modal-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 8px;
}

/* Subtitle / sub-name */
.dish-modal-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.42);
    min-height: 1.4em;
}

/* Divider */
.dish-modal-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 22px 0;
    flex-shrink: 0;
}

/* Description */
.dish-modal-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.58);
    flex: 1;
}

/* Footer: price + CTA */
.dish-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(200, 150, 42, 0.14);
    flex-wrap: wrap;
}

.dish-modal-price-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dish-modal-price-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.dish-modal-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

/* CTA button */
.dish-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 40px;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.dish-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 150, 42, 0.45);
}

.dish-modal-cta .material-symbols-outlined {
    font-size: 1rem;
}

/* Cards: clickable cursor */
.dish-card {
    cursor: pointer;
}

/* ── MODAL RESPONSIVE — TABLET ── */
@media (max-width: 768px) {
    .dish-modal-overlay {
        padding: 16px;
        align-items: center;
    }

    .dish-modal {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 22px;
        transform: translateY(28px) scale(0.97);
        opacity: 0;
    }

    .dish-modal-overlay.is-open .dish-modal {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .dish-modal-image-panel {
        height: auto;
        min-height: unset;
        width: 100%;
        display: flex;
        justify-content: center;
        background: transparent;
        flex-shrink: 0;
    }

    .dish-modal-image-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .dish-modal-image-wrap img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 48vh;
        object-fit: cover;
        border-radius: 22px 22px 0 0;
        background: transparent;
    }

    .dish-modal-info-panel {
        flex: 1 1 auto;
        max-width: 100%;
        min-width: 100%;
        padding: 28px 24px 32px;
    }

    .dish-modal-name {
        font-size: 1.45rem;
    }

    .dish-modal-close {
        top: 14px;
        right: 14px;
    }
}

@media (max-width: 480px) {
    .dish-modal {
        max-height: 94vh;
    }

    .dish-modal-image-panel {
        max-height: 35vh;
    }

    .dish-modal-image-wrap img {
        width: 100%;
        height: auto;
        max-height: 40vh;
        object-fit: cover;
        border-radius: 22px 22px 0 0;
        background: transparent;
    }

    .dish-modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .dish-modal-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   TABLAS — NO DISPONIBLE
   ============================================ */

/* Aviso a nivel de sección */
.tablas-unavailable-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 640px;
    margin: 0 auto 36px;
    padding: 18px 28px;
    background: linear-gradient(135deg, rgba(200, 150, 42, 0.07) 0%, rgba(200, 150, 42, 0.03) 100%);
    border: 1px solid rgba(200, 150, 42, 0.22);
    border-radius: 14px;
    text-align: left;
}

.tablas-unavailable-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    filter: grayscale(0.2);
}

.tablas-unavailable-notice p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

/* Tarjeta no disponible */
.dish-card--unavailable {
    position: relative;
    pointer-events: none;
    cursor: default;
}

.dish-card--unavailable img,
.dish-card--unavailable .dish-card-body {
    opacity: 0.38;
    filter: grayscale(0.6);
}

/* Overlay semitransparente sobre la tarjeta */
.dish-unavailable-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 6, 2, 0.42);
    border-radius: inherit;
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

/* Badge "No disponible" */
.dish-unavailable-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 22px;
    background: rgba(15, 10, 4, 0.88);
    border: 1px solid rgba(200, 150, 42, 0.28);
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Punto pulsante rojo */
.dish-unavailable-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e05252;
    box-shadow: 0 0 0 0 rgba(224, 82, 82, 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(224, 82, 82, 0.45);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(224, 82, 82, 0);
    }
}