:root {
    --ink: #15130f;
    --paper: #fbfaf7;
    --muted: #7f776b;
    --line: rgba(21, 19, 15, .14);
    --gold: #c69a54;
    --green: #26473d;
    --red: #8c3328;
    --white: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea {
    font: inherit;
}

.topbar {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 20px;
    padding: 18px clamp(18px, 4vw, 56px);
    color: var(--white);
    background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0));
}
.topbar-solid {
    background: var(--ink);
    box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.brand {
    font-family: Georgia, serif;
    font-size: clamp(22px, 3vw, 34px);
}
.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    font-size: 14px;
}
.nav-link {
    position: relative;
    padding-bottom: 6px;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--gold);
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .2s ease, transform .2s ease;
}
.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}
.nav-book.nav-link {
    padding-bottom: 10px;
}
.nav-book.nav-link::after {
    left: 14px;
    right: 14px;
    bottom: 6px;
    background: #17120b;
}
.language-menu {
    position: relative;
    z-index: 40;
}
.language-menu summary {
    display: grid;
    place-items: center;
    width: 48px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    list-style: none;
    cursor: pointer;
    backdrop-filter: blur(12px);
}
.language-menu summary::-webkit-details-marker {
    display: none;
}
.language-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(3, 42px);
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(21, 19, 15, .88);
    box-shadow: 0 18px 45px rgba(0,0,0,.26);
}
.language-options a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
}
.language-options a.active,
.language-options a:hover {
    border-color: var(--gold);
    background: rgba(255,255,255,.16);
}
.language-globe {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.65));
}
.language-globe svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav-book,
.primary,
button {
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 999px;
    padding: 10px 15px;
    background: rgba(255,255,255,.1);
    color: inherit;
    cursor: pointer;
}
.primary {
    border-radius: 8px;
}
.primary,
button[type="submit"],
.next-step {
    border-color: transparent;
    background: var(--gold);
    color: #17120b;
    font-weight: 800;
}
.danger-button {
    background: var(--red);
    color: white;
}

.notice {
    position: fixed;
    z-index: 30;
    top: 86px;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, calc(100% - 32px));
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--green);
    color: white;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: var(--white);
}
.hero-slides,
.hero-slides img,
.hero-shade {
    position: absolute;
    inset: 0;
}
.hero-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 7s ease;
}
.hero-slides img.active {
    opacity: 1;
    transform: scale(1);
}
.hero-shade {
    background:
        linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.2) 52%, rgba(0,0,0,.52)),
        linear-gradient(0deg, rgba(0,0,0,.42), transparent 45%);
}
.hero-content {
    position: relative;
    z-index: 2;
    width: min(1500px, calc(100% - 34px));
    padding: clamp(150px, 23vh, 230px) 0 150px clamp(18px, 6vw, 90px);
}
.kicker,
.section-head p,
.booking-copy p {
    margin: 0 0 14px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 900;
}
.hero-content .kicker {
    color: #fff;
    margin-bottom: 50px;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.4;
}
.hero-content .kicker a {
    color: inherit;
    text-decoration: none;
}
.hero-content .kicker a:hover,
.hero-content .kicker a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}
h1, h2, h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}
h1 {
    font-size: clamp(56px, 11vw, 140px);
    line-height: .88;
    max-width: 680px;
}
.hero-content h1 {
    width: max-content;
    max-width: 100%;
    margin-bottom: 50px;
    font-family: var(--restaurant-name-font, Georgia, "Times New Roman", serif);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
.hero-content h1.restaurant-name-medium { font-size: clamp(48px, 9vw, 125px); }
.hero-content h1.restaurant-name-long { font-size: clamp(38px, 7vw, 98px); }
.hero-content h1.restaurant-name-xlong { font-size: clamp(30px, 5.3vw, 74px); }
.hero-content > p:not(.kicker) {
    width: min(560px, 100%);
    margin: 0 0 64px;
    font-size: clamp(22px, 2.5vw, 32px);
    line-height: 1.35;
    text-align: justify;
    text-justify: inter-word;
}
.scroll-cue {
    position: absolute;
    z-index: 2;
    right: 34px;
    bottom: 28px;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
}

.section {
    padding: clamp(64px, 10vw, 130px) clamp(18px, 5vw, 72px);
}
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 34px;
}
.section-head h1,
.section-head h2,
.booking-copy h2 {
    font-size: clamp(38px, 6vw, 84px);
    line-height: 1;
}
.menu-band {
    background: #f4efe6;
}
.menu-page .menu-band {
    padding-top: clamp(118px, 14vw, 170px);
    background: #070706;
    color: #f7f2e8;
}
.menu-page .section-head p {
    color: var(--gold);
}
.public-menu-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin: -8px 0 34px;
    padding: 18px;
    border: 1px solid rgba(198, 154, 84, .34);
    border-radius: 8px;
    background: #15130f;
    box-shadow: 0 18px 50px rgba(0,0,0,.32);
}
.public-menu-search label {
    flex: 1 1 320px;
}
.public-menu-search label span {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}
.public-menu-search input {
    border-color: rgba(198, 154, 84, .34);
    background: #0d0c0a;
    color: #f7f2e8;
}
.public-menu-search input::placeholder {
    color: rgba(247, 242, 232, .5);
}
.public-menu-search button,
.public-menu-search a {
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    font-weight: 900;
}
.public-menu-search button {
    background: var(--gold);
    color: #17120b;
    cursor: pointer;
}
.public-menu-search a {
    display: inline-grid;
    place-items: center;
    background: transparent;
    color: #f7f2e8;
}
.menu-section-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -18px 0 28px;
}
.menu-section-shortcuts a {
    display: inline-grid;
    min-height: 40px;
    place-items: center;
    padding: 9px 13px;
    border: 1px solid rgba(247, 242, 232, .2);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: #f7f2e8;
    font-size: 13px;
    font-weight: 900;
}
.menu-section-shortcuts a.active,
.menu-section-shortcuts a:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: #17120b;
}
.menu-results,
.menu-empty {
    margin: -14px 0 24px;
    color: rgba(247, 242, 232, .68);
    font-weight: 800;
}
.menu-results {
    scroll-margin-top: 92px;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.menu-panel {
    min-height: 360px;
    padding: 26px;
    border: 1px solid rgba(247, 242, 232, .16);
    border-radius: 8px;
    background: #11100d;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.menu-panel-head {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(247, 242, 232, .14);
}
.menu-panel-head span {
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
}
.menu-panel h3 {
    margin-top: 7px;
    font-size: 31px;
}
.dish {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(247, 242, 232, .12);
}
.dish p {
    margin: 7px 0 0;
    color: rgba(247, 242, 232, .64);
    line-height: 1.45;
}
.dish span {
    color: var(--gold);
    font-weight: 900;
}

.booking {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
    gap: clamp(28px, 6vw, 80px);
    padding: clamp(70px, 11vw, 140px) clamp(18px, 5vw, 72px);
    background: var(--green);
    color: white;
}
.booking-copy span {
    display: block;
    max-width: 520px;
    margin-top: 20px;
    color: rgba(255,255,255,.72);
    line-height: 1.6;
}
.booking-form {
    border-radius: 8px;
    background: white;
    color: var(--ink);
    padding: clamp(20px, 4vw, 42px);
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.step {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.step.active { display: grid; }
.step > button { grid-column: 1 / -1; }
.date-field,
.choice-field,
.wide-field {
    grid-column: 1 / -1;
}
.booking-warning {
    grid-column: 1 / -1;
    margin: -4px 0 0;
    padding: 11px 13px;
    border: 1px solid rgba(140, 51, 40, .28);
    border-radius: 8px;
    background: #fff1ee;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}
.availability-warning > span:first-child {
    display: block;
}
.availability-change-time {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 11px;
    border: 1px solid var(--red);
    border-radius: 999px;
    background: #fff;
    color: var(--red);
    font-weight: 900;
    cursor: pointer;
}
.availability-change-time:hover,
.availability-change-time:focus-visible {
    background: var(--red);
    color: #fff;
}
.choice-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.choice-field legend {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}
.time-choices .choice-button[hidden],
.shift-button[hidden] {
    display: none;
}
.choice-grid {
    display: grid;
    gap: 8px;
}
.time-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shift-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
}
.zone-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice-button {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #faf8f2;
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.choice-button.selected {
    border-color: var(--gold);
    background: var(--green);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.choice-button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 12px;
    background: #fff;
    color: var(--ink);
}
textarea {
    min-height: 110px;
    resize: vertical;
}

.gallery-band { background: #000; color: white; }
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.gallery figure {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #070706;
    grid-row: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease;
}
.gallery figure:nth-child(odd) {
    grid-column: 1;
}
.gallery figure:nth-child(even) {
    grid-column: 2;
}
.gallery figure.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.gallery-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
}
.gallery figure.zooming img {
    animation: gallery-kenburns 5.2s ease forwards;
}
.gallery figcaption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(0,0,0,.54);
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
    height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(5, 5, 4, .94);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.gallery-lightbox.open { opacity: 1; pointer-events: auto; }
.gallery-lightbox-top { display: flex; align-items: center; justify-content: space-between; }
.gallery-lightbox-stage { position: relative; display: grid; min-height: 0; place-items: center; padding: 0 58px; }
.gallery-lightbox-image { max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.gallery-lightbox-close,
.gallery-lightbox-nav {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}
.gallery-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.gallery-lightbox-prev { left: 0; }
.gallery-lightbox-next { right: 0; }
.gallery-lightbox-caption { margin: 0; text-align: center; }
body.gallery-lock { overflow: hidden; }

@keyframes gallery-kenburns {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}

.reviews-band { background: #fbfaf7; }
.reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.reviews > :not(.active) {
    display: none;
}
.reviews article,
.reviews a {
    display: block;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    animation: review-enter .45s ease both;
}
@keyframes review-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.reviews a:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.reviews span { color: var(--gold); }
.reviews p {
    line-height: 1.55;
    color: #39342c;
}
footer {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 26px clamp(18px, 5vw, 72px);
    background: var(--ink);
    color: white;
}
footer .footer-item {
    display: flex;
    justify-content: center;
}
footer .footer-admin-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 17px;
    border: 1px solid rgba(255, 224, 130, .7);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe59a, #f4b942);
    color: #242016;
    font-size: 1.02rem;
    font-weight: 850;
    letter-spacing: .025em;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .55);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
footer .footer-admin-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .65);
}
footer .footer-admin-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
footer .footer-location a {
    display: grid;
    gap: 4px;
}
footer .footer-social {
    flex: 0 0 100%;
    gap: 12px;
    justify-content: center;
    order: 99;
}
footer .footer-social a {
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    transition: border-color .2s ease, background .2s ease;
}
footer .footer-social a:hover {
    background: rgba(255, 255, 255, .12);
    border-color: white;
}
footer .footer-social svg {
    width: 20px;
    height: 20px;
}

.whatsapp-float {
    position: fixed;
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(18px, 3vw, 34px);
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: linear-gradient(145deg, #2fe279, #159447);
    color: #fff;
    box-shadow: 0 12px 28px rgba(8, 73, 35, .30), 0 3px 10px rgba(0, 0, 0, .18);
    isolation: isolate;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -7px;
    z-index: -1;
    border: 1px solid rgba(37, 211, 102, .32);
    border-radius: inherit;
    animation: whatsapp-ring 2.8s ease-out infinite;
}
.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 36px rgba(8, 73, 35, .34), 0 4px 12px rgba(0, 0, 0, .16);
    filter: saturate(1.08);
}
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.whatsapp-float img { width: 46px; height: 46px; object-fit: contain; }
.whatsapp-tooltip {
    position: absolute;
    right: 76px;
    width: max-content;
    padding: 10px 14px;
    border-radius: 9px;
    background: #17231b;
    color: #fff;
    font-size: .83rem;
    font-weight: 750;
    letter-spacing: .01em;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .20);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}
.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    width: 12px;
    height: 12px;
    background: #17231b;
    transform: translateY(-50%) rotate(45deg);
}
.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip { opacity: 1; visibility: visible; transform: translateX(0); }
.whatsapp-status {
    position: absolute;
    top: 1px;
    right: 2px;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #8ff0ad;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
@keyframes whatsapp-ring {
    0%, 55% { opacity: 0; transform: scale(.92); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.18); }
}
@media (max-width: 520px) {
    .whatsapp-float { width: 58px; height: 58px; transition: opacity .18s ease, transform .18s ease, visibility .18s ease, box-shadow .22s ease, filter .22s ease; }
    .whatsapp-float img { width: 42px; height: 42px; }
    .whatsapp-tooltip { display: none; }
    .whatsapp-float.is-footer-visible { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(18px) scale(.88); }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::before { animation: none; }
}

/* Navegación hamburguesa del administrador */
.admin-menu-toggle { display: none; }
@media (max-width: 760px) {
    .admin-top {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
    }
    .admin-menu-toggle {
        display: grid;
        grid-template-columns: 22px auto;
        align-items: center;
        gap: 0 9px;
        min-width: 0;
        padding: 9px 11px;
        border: 1px solid rgba(255, 255, 255, .28);
        background: rgba(255, 255, 255, .08);
        color: #fff;
    }
    .admin-menu-toggle span {
        grid-column: 1;
        display: block;
        width: 22px;
        height: 2px;
        margin: 2px 0;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }
    .admin-menu-toggle b {
        grid-column: 2;
        grid-row: 1 / span 3;
        font-size: .82rem;
    }
    .admin-menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .admin-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
    .admin-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .admin-top nav,
    .admin-top nav:not(.is-open) {
        display: none;
        overflow: visible;
    }
    .admin-top nav.is-open {
        grid-column: 1 / -1;
        display: grid;
        gap: 4px;
        width: 100%;
        max-width: none;
        padding: 8px 0 2px;
        overflow: visible;
    }
    .admin-top nav.is-open a {
        display: block;
        width: 100%;
        padding: 11px 12px;
        white-space: normal;
        font-size: .92rem;
        border-radius: 7px;
    }
}

.admin-body {
    background: #f3f1ec;
}
.site-selector-body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(circle at top, #1b3d6d 0%, #0b1220 45%, #05070d 100%);
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1f2937;
}
.site-selector {
    width: 100%;
    max-width: 480px;
    padding: 30px;
}
.site-selector-logo {
    display: block;
    width: 260px;
    margin: 0 auto 35px;
}
.site-selector form {
    background: rgba(255,255,255,.97);
    border-radius: 22px;
    padding: 30px;
    box-shadow:
        0 20px 60px rgba(0,0,0,.35),
        0 8px 20px rgba(0,0,0,.12);
    backdrop-filter: blur(12px);
}
.site-selector h1 {
    margin: 0 0 10px;
    font-size: 40px;
    font-weight: 700;
    color: #111827;
    background: linear-gradient(135deg, #111827, #1d4ed8 58%, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
    text-align: center;
}
.site-selector p {
    margin: 0 0 35px;
    padding: 11px 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    color: #475569;
    font-size: 15px;
    text-align: center;
}
.site-selector label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
}
.site-selector input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 17px;
    transition: .25s;
    margin-top: 8px;
    margin-bottom: 30px;
    background: #fff;
}
.site-selector input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 5px rgba(37,99,235,.15);
}
.site-selector button {
    width: 100%;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg,#1d4ed8,#3b82f6);
    transition: .25s;
}
.site-selector button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37,99,235,.35);
}
.site-selector button:active {
    transform: translateY(0);
}
.developer-link {
    display: inline-block; /* O 'block' si quieres que ocupe todo el ancho */
    margin-top: 15px;
    display: grid;
    place-items: center;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    color: #1d4ed8;
    font-weight: 700;
    background: #f8fafc;
    transition: .25s;
}
.developer-link:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    transform: translateY(-1px);
}
.admin-body button,
.admin-body .reservation-filter a,
.admin-body .menu-search a,
.admin-body .admin-pagination a {
    border-radius: 6px;
    margin: 3px;
}
.admin-body form + form {
    margin-top: 8px;
}
.login {
    width: min(430px, calc(100% - 30px));
    margin: 12vh auto;
    padding: 30px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,.13);
}
.login h1 {
    margin-bottom: 24px;
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.hint { color: var(--muted); font-size: 13px; }
.admin-top {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    background: var(--ink);
    color: white;
}
.admin-top nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.admin-top nav a {
    padding: 7px 9px;
    border-radius: 6px;
}
.admin-top nav a.active {
    background: var(--gold);
    color: #17120b;
    font-weight: 900;
}
.admin {
    width: 100%;
    margin: 0;
    padding: 18px clamp(10px, 2vw, 24px) 80px;
}
.admin-card {
    margin: 18px 0;
    padding: 24px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.admin-card[hidden] {
    display: none;
}
.admin-card h2 { margin-bottom: 18px; font-size: 34px; }
.admin-card h3 { margin: 0 0 14px; font-size: 22px; }
.admin-grid,
.admin-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.admin-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-grid .wide { grid-column: 1 / -1; }
.admin-fieldset {
    border: 1px solid #dfd7c8;
    border-radius: 8px;
    padding: 18px;
    background: #fbfaf7;
}
.admin-fieldset .admin-grid {
    margin-top: 14px;
}
.file-drop {
    display: flex;
    min-height: 120px;
    padding: 20px;
    border: 2px dashed rgba(26, 94, 77, .4);
    border-radius: 8px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: #173b31;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.file-drop:hover,
.file-drop.is-dragging {
    border-color: #1a5e4d;
    background: #edf7f3;
}
.file-drop small {
    color: var(--muted);
}
.file-drop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.admin-message {
    padding: 12px 14px;
    border-radius: 8px;
    background: #e9f4ef;
    color: #173b31;
}
.admin-subtitle {
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.admin-create-panel {
    margin: 0 0 16px;
    border: 1px solid rgba(26, 94, 77, .2);
    border-radius: 8px;
    background: #fbfdfc;
}
.admin-create-toggle {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #173b31;
    cursor: pointer;
    font-weight: 900;
    text-align: left;
}
.admin-create-toggle::before {
    content: "+";
    display: inline-block;
    width: 18px;
    font-weight: 900;
}
.admin-create-toggle[aria-expanded="true"] {
    border-bottom: 1px solid rgba(26, 94, 77, .16);
    border-radius: 8px 8px 0 0;
    background: #edf7f3;
}
.admin-create-toggle[aria-expanded="true"]::before {
    content: "-";
}
.admin-create-panel form {
    display: grid;
    gap: 10px;
    padding: 16px;
}
.admin-create-panel form[hidden] {
    display: none;
}
.admin-create-panel .admin-grid {
    display: grid;
}
.reservation-filter,
.menu-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-bottom: 8px;
}
.reservation-filter label,
.menu-search label {
    min-width: 220px;
}
.reservation-filter select {
    min-width: 135px;
}
.menu-search label {
    flex: 1 1 320px;
}
.menu-search-featured {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid rgba(26, 94, 77, .24);
    border-radius: 8px;
    background: #edf7f3;
}
.menu-search-featured label {
    color: #173b31;
}
.menu-search-featured input {
    border-color: rgba(26, 94, 77, .34);
}
.menu-search-featured button {
    background: var(--green);
    color: white;
}
.menu-search-featured a {
    background: white;
}
.admin-menu-block {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.admin-menu-sections {
    border-left: 5px solid var(--green);
    background: #f4faf7;
}
.admin-menu-dishes {
    border-left: 5px solid var(--gold);
    background: #fffaf0;
}
.admin-menu-block-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.admin-menu-block-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.admin-menu-block-head h3 {
    margin: 0;
}
.admin-menu-block-head .admin-subtitle {
    margin: 8px 0 0;
}
.reservation-filter a,
.menu-search a,
.admin-pagination a,
.admin-pagination span {
    display: inline-grid;
    min-height: 44px;
    place-items: center;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fafafa;
    font-size: 13px;
    font-weight: 900;
}
.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}
.admin-pagination a.active {
    border-color: var(--gold);
    background: var(--green);
    color: white;
}
.admin-pagination span {
    border-color: transparent;
    background: transparent;
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.reservation-note {
    display: inline-block;
    max-width: 280px;
    margin-top: 7px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #fff7e6;
    color: #6b4a15;
    font-size: 12px;
    line-height: 1.35;
}
.inline {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.reservation-action {
    min-width: 220px;
    margin-bottom: 8px;
}
.reservation-action select {
    min-width: 125px;
    width: auto;
}
.reservation-actions-cell {
    min-width: 245px;
    text-align: center;
}
.reservation-actions-cell .inline {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
}
.reservation-actions-cell > form:last-child {
    justify-content: center;
}
.reservation-create-panel { margin: 18px 0; }
.admin-message-error { background: #fff0ed; color: var(--red); border-color: rgba(140,51,40,.25); }
.table-free-time { display: block; margin-top: 5px; color: var(--green); font-weight: 800; white-space: nowrap; }
.reservation-editor { width: max-content; min-width: 110px; margin: 0 auto 8px; }
.reservation-editor > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--gold) !important;
    color: #17120b !important;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}
.reservation-editor:not([open]) > summary:hover,
.reservation-editor:not([open]) > summary:focus-visible {
    background: #d7ad69 !important;
    transform: translateY(-1px);
}
.reservation-editor > summary::-webkit-details-marker { display: none; }
.reservation-edit-close { display: none; }
.reservation-editor[open] {
    position: fixed;
    z-index: 80;
    top: 50%;
    left: 50%;
    width: min(880px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    padding: clamp(20px, 3vw, 34px);
    overflow: auto;
    transform: translate(-50%, -50%);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 100vmax rgba(10,8,6,.62), 0 28px 100px rgba(0,0,0,.4);
}
.reservation-editor[open] > summary {
    position: absolute;
    top: 20px;
    right: 20px;
    border-color: var(--line);
    background: #f4f1eb !important;
    color: var(--ink) !important;
}
.reservation-editor[open] .reservation-edit-open { display: none; }
.reservation-editor[open] .reservation-edit-close { display: inline; }
.reservation-editor h3 {
    padding-right: 110px;
    color: var(--ink);
    font-size: clamp(27px, 4vw, 38px);
}
.reservation-edit-subtitle {
    margin: 8px 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}
.reservation-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.reservation-edit-form label {
    display: grid;
    align-content: start;
    gap: 7px;
    color: #4f493f;
    font-size: 13px;
    font-weight: 850;
}
.reservation-edit-form input,
.reservation-edit-form select,
.reservation-edit-form textarea {
    min-height: 46px;
    border-color: #d8d0c4;
    background: #fcfbf8;
}
.reservation-edit-form textarea { min-height: 96px; }
.reservation-edit-form .wide { grid-column: 1 / -1; }
.reservation-edit-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}
.reservation-edit-actions button {
    min-width: 190px;
    min-height: 48px;
}
body.reservation-modal-open {
    overflow: hidden;
}
.restaurant-font-preview {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 92px;
    margin: 0;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #17130f, #3a3025);
    color: #fff;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
}
.restaurant-font-row {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    gap: 14px;
    align-items: stretch;
}
.restaurant-font-row label {
    align-self: center;
}
.compact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}
.compact-list span,
.compact-list form {
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fafafa;
}
.inactive-zones {
    margin-top: 18px;
}
.inactive-zones summary {
    cursor: pointer;
    font-weight: 900;
}
.inactive-zones .compact-list form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.inactive-zones .compact-list span {
    padding: 0;
    border: 0;
    background: transparent;
}
.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.checks label {
    display: flex;
    align-items: center;
    gap: 5px;
}
.checks input { width: auto; }
.schedule-editor {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.schedule-editor article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafafa;
}
.table-editor {
    margin-top: 20px;
}
.schedule-form {
    display: grid;
    gap: 10px;
}
.schedule-form strong {
    color: var(--green);
}
.review-editor {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.menu-section-editor,
.menu-item-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 14px;
    margin: 12px 0 22px;
}
.review-editor article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafafa;
}
.menu-section-editor article,
.menu-item-editor article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafafa;
}
.review-form {
    display: grid;
    gap: 10px;
}
.menu-admin-form {
    display: grid;
    gap: 10px;
}
.menu-admin-form strong {
    color: var(--green);
}
.admin-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.admin-photos figure {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.admin-photos img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.admin-photos figcaption {
    padding: 10px;
}
.photo-edit-form {
    display: grid;
    gap: 8px;
    padding: 10px;
}
.photo-edit-form label {
    font-size: 12px;
}
.photo-edit-form input,
.photo-edit-form select {
    padding: 9px 10px;
}
.admin-photos form {
    display: inline-block;
    margin: 6px 0 10px 10px;
}
.admin-photos .photo-edit-form {
    display: grid;
    margin: 0;
}

.stats-body {
    margin: 0;
    min-height: 100svh;
    background: #f3f1ec;
    color: #241f1a;
}
.stats-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 22px clamp(18px, 4vw, 48px);
    background: var(--ink);
    color: white;
}
.stats-top span,
.stats-card-head span,
.stats-summary span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.stats-top h1,
.stats-card h2,
.stats-card h3 {
    margin: 0;
}
.stats-top a {
    color: white;
}
.stats-page {
    display: grid;
    gap: 18px;
    padding: 24px clamp(14px, 4vw, 48px) 60px;
}
.stats-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.stats-summary article,
.stats-card {
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.stats-summary article {
    padding: 20px;
}
.stats-summary strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(30px, 4vw, 52px);
}
.stats-card {
    padding: 22px;
}
.stats-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.stats-card-head strong {
    white-space: nowrap;
}
.stats-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.stats-mini span {
    border-radius: 999px;
    background: #f3f1ec;
    padding: 8px 12px;
    font-weight: 800;
}
.stats-inline-form {
    margin: 0 0 16px;
}
.stats-ip-form {
    display: grid;
    gap: 12px;
}
.stats-ip-form textarea {
    margin-top: 8px;
    min-height: 96px;
    resize: vertical;
}
.stats-danger-card {
    border: 1px solid rgba(154, 47, 47, .24);
}
.stats-danger-card .danger {
    background: #9a2f2f;
    color: white;
}
.stats-danger-card .danger:hover {
    background: #7d2424;
}
.stats-card h3 {
    margin-top: 18px;
    margin-bottom: 10px;
}
.stats-table-wrap {
    overflow-x: auto;
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}
.stats-table th,
.stats-table td {
    border-bottom: 1px solid #eee7dc;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}
.stats-table th {
    color: #6f6557;
    font-size: 12px;
    text-transform: uppercase;
}

@media (max-width: 920px) {
    .admin-top {
        align-items: center;
    }
    .admin-top nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 4px;
    }
    .admin-top nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .topbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .topbar nav {
        grid-column: 1 / -1;
        padding-bottom: 5px;
    }
    .hero-content {
        padding-left: 18px;
    }
    .menu-grid,
    .reviews,
    .booking,
    .admin-grid,
    .admin-columns,
    .schedule-editor,
    .menu-section-editor,
    .menu-item-editor,
    .review-editor,
    .admin-photos {
        grid-template-columns: 1fr;
    }
    .restaurant-font-row {
        grid-template-columns: 1fr;
    }
    .reservation-editor[open] {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        padding: 20px 16px;
        border-radius: 10px;
    }
    .reservation-editor[open] > summary {
        top: 13px;
        right: 13px;
    }
    .reservation-editor h3 {
        padding-right: 90px;
        font-size: 27px;
    }
    .reservation-edit-form {
        grid-template-columns: 1fr;
    }
    .reservation-edit-form .wide {
        grid-column: 1;
    }
    .reservation-edit-actions button {
        width: 100%;
    }
    .stats-summary {
        grid-template-columns: 1fr;
    }
    .stats-card-head {
        flex-direction: column;
    }
    .gallery {
        grid-template-columns: 1fr;
        width: calc(100% - 28px);
        margin-inline: auto;
    }
    .gallery figure {
        grid-column: 1 !important;
        aspect-ratio: 4 / 3;
    }
    .gallery img {
        object-fit: contain;
    }
    .section-head {
        display: block;
    }
}

@media (max-width: 560px) {
    .site-selector {
        padding: 20px;
    }
    .site-selector form {
        padding: 30px;
    }
    .site-selector h1 {
        font-size: 32px;
    }
    .site-selector-logo {
        width: 220px;
    }
    .topbar {
        padding: 14px;
    }
    .topbar nav {
        font-size: 13px;
        gap: 10px;
    }
    .language-menu summary {
        width: 44px;
        height: 38px;
    }
    .language-options {
        position: fixed;
        top: 96px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        grid-template-columns: repeat(3, 42px);
        width: max-content;
        max-width: calc(100vw - 24px);
    }
    .hero-content {
        width: calc(100% - 28px);
        padding-top: 168px;
    }
    .hero-content h1 {
        width: auto;
        font-size: clamp(34px, 10vw, 54px);
        line-height: .92;
        white-space: normal;
    }
    .hero-content h1.restaurant-name-long,
    .hero-content h1.restaurant-name-xlong {
        font-size: clamp(27px, 8.5vw, 43px);
    }
    .gallery-lightbox-stage {
        padding: 0;
    }
    .gallery-lightbox-nav {
        top: auto;
        bottom: 10px;
        transform: none;
    }
    .step {
        grid-template-columns: 1fr;
    }
    .time-choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .zone-choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-card {
        padding: 14px;
    }
    .admin-top {
        display: grid;
        gap: 10px;
        padding: 12px;
    }
    .admin-top nav {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .admin-top nav a {
        flex: 0 0 auto;
        padding: 8px 10px;
        white-space: nowrap;
        font-size: 13px;
    }
    .stats-top {
        align-items: flex-start;
        flex-direction: column;
    }
}
