/* ==========================================================================
   Web pública del restaurante
   Paleta: noche de puerto + azafrán sobre blanco cal.
   ========================================================================== */
:root {
  --ink: #1b1f23;
  --night: #13293d;
  --night-2: #1c3953;
  --saffron: #e3a21a;
  --saffron-d: #a87405;
  --cal: #fafaf7;
  --paper: #ffffff;
  --line: #e2ded5;
  --sage: #6e8b74;
  --ember: #c2412d;
  --muted: #676c70;
  --serif: 'Young Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 6px;
  --r: 12px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--ink); background: var(--cal); }
img { max-width: 100%; display: block; }
a { color: var(--night); text-underline-offset: .18em; }
a:hover { color: var(--saffron-d); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3, .h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--saffron); color: var(--night); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
[hidden] { display: none !important; }

/* Botones ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--sans); padding: .85em 1.3em; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; color: inherit; background: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-accent { background: var(--saffron); color: var(--night); }
.btn-accent:hover { background: #f0b232; color: var(--night); }
.btn-dark { background: var(--night); color: var(--cal); }
.btn-dark:hover { background: var(--night-2); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--night); }
.btn-ghost:hover { background: var(--night); color: var(--cal); border-color: var(--night); }
.btn-small { padding: .5em .95em; font-size: .9rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.08rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--night); text-decoration: underline; cursor: pointer; font: inherit; }

/* Cabecera ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--night); color: var(--cal); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { font-family: var(--serif); font-size: 1.45rem; color: var(--cal); text-decoration: none; }
.brand:hover { color: var(--saffron); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: rgba(250, 250, 247, .82); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: #fff; box-shadow: inset 0 -2px 0 var(--saffron); }
.site-nav .btn { padding: .65em 1.1em; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cal); transition: transform .2s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--night); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); box-shadow: none !important; }
  .site-nav .btn { margin-top: 1rem; }
}

/* Portada ------------------------------------------------------------------ */
.hero { background: var(--night); color: var(--cal); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-title { font-size: clamp(3rem, 8.5vw, 6.6rem); line-height: .95; margin-bottom: .35em; color: var(--cal); letter-spacing: -.02em; }
.hero-lead { font-size: 1.2rem; max-width: 34ch; color: rgba(250, 250, 247, .85); margin-bottom: 2rem; }
.quick-book { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; background: var(--cal); color: var(--ink); padding: .5rem; border-radius: 18px; max-width: 540px; }
.quick-book label { display: flex; flex-direction: column; padding: .35rem .8rem; border-radius: 12px; }
.quick-book label:focus-within { background: #f0ede6; }
.quick-book span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.quick-book input, .quick-book select { border: 0; background: none; font: 600 1.05rem var(--sans); color: var(--night); padding: .1rem 0; min-width: 0; }
.quick-book input:focus, .quick-book select:focus { outline: none; }
.quick-book .btn { border-radius: 12px; }

.hero-stage { margin: 0; position: relative; display: grid; justify-items: center; }
.stage-plate {
  width: min(520px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #24486a 0%, #183650 55%, #112a40 100%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .035), 0 0 0 11px rgba(227, 162, 26, .55), 0 40px 80px rgba(0, 0, 0, .35);
  position: relative;
}
.hero-model { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.hero-stage figcaption { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; text-align: center; }
.stage-name { font-family: var(--serif); font-size: 1.4rem; }
.stage-price { color: var(--saffron); font-weight: 600; }
.stage-hint { width: 100%; font-size: .85rem; color: rgba(250, 250, 247, .6); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .stage-plate { width: min(340px, 86vw); }
  .quick-book { grid-template-columns: 1fr 1fr; }
  .quick-book .btn { grid-column: 1 / -1; }
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1.25rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.strip-item { scroll-snap-align: start; text-decoration: none; color: var(--ink); display: grid; gap: .25rem; }
.strip-visual { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #efece5; margin-bottom: .6rem; }
.strip-item:hover .strip-visual { background: #e8e3d8; }
.strip-name { font-family: var(--serif); font-size: 1.2rem; }
.strip-meta { color: var(--muted); font-size: .92rem; }

.section-plan { background: #eef0ed; }
.plan-teaser { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.plan-teaser-copy p { max-width: 46ch; }
@media (max-width: 860px) { .plan-teaser { grid-template-columns: 1fr; } }

.menu-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; }
.menu-line { border-top: 3px solid var(--night); padding-top: 1rem; }
.menu-line h3 { margin-bottom: .2rem; }
.menu-price { font-family: var(--serif); font-size: 1.6rem; color: var(--saffron-d); margin-bottom: .5rem; }

.visit { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
.visit-address { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
.map { width: 100%; min-height: 320px; border: 0; border-radius: var(--r); background: #e6e3db; }
.map-link { display: grid; place-items: center; font-weight: 600; text-decoration: none; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* Pie --------------------------------------------------------------------- */
.site-footer { background: var(--night); color: rgba(250, 250, 247, .85); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: var(--cal); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 2.5rem; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--cal); margin-bottom: .6rem; }
.footer-title { font-weight: 700; color: var(--cal); margin-bottom: .6rem; }
.hours { margin: 0; display: grid; gap: .15rem; font-size: .95rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted rgba(255, 255, 255, .15); padding: .15rem 0; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; text-align: right; }
.footer-legal { margin-top: 2.5rem; font-size: .85rem; color: rgba(250, 250, 247, .5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cabecera de página ------------------------------------------------------- */
.page-head { background: var(--night); color: var(--cal); padding: 2.6rem 0 2.4rem; }
.page-head.compact { padding: 2rem 0 1.8rem; }
.page-head h1 { margin-bottom: .25em; }
.page-head .lead { color: rgba(250, 250, 247, .8); max-width: 62ch; margin: 0; }

/* Carta -------------------------------------------------------------------- */
.carta-bar { position: sticky; top: 68px; z-index: 30; background: var(--cal); border-bottom: 1px solid var(--line); }
.carta-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; }
.carta-tabs { display: flex; gap: .3rem; overflow-x: auto; }
.carta-tabs a { padding: .5rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--muted); white-space: nowrap; }
.carta-tabs a:hover { color: var(--night); }
.carta-tabs a[aria-current] { background: var(--night); color: var(--cal); }
.filter { position: relative; }
.filter summary { cursor: pointer; font-weight: 600; list-style: none; padding: .5rem .9rem; border: 2px solid var(--line); border-radius: 999px; white-space: nowrap; }
.filter summary::-webkit-details-marker { display: none; }
.filter[open] summary { border-color: var(--night); }
.filter-count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; border-radius: 999px; background: var(--saffron); color: var(--night); font-size: .8rem; margin-left: .3rem; }
.filter-panel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(440px, 92vw); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: 0 18px 40px rgba(19, 41, 61, .15); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; user-select: none; }
.chip:has(input:checked) { background: var(--night); color: var(--cal); border-color: var(--night); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:focus-within { outline: 3px solid var(--saffron); }

.carta { padding: 2rem 0 4rem; }
.carta-group { padding-top: 2rem; }
.group-title { font-size: clamp(2rem, 4vw, 2.8rem); border-bottom: 3px solid var(--night); padding-bottom: .4rem; margin-bottom: 1.5rem; }
.carta-cat { margin-bottom: 2.5rem; }
.carta-cat > h3 { color: var(--saffron-d); font-size: 1.4rem; margin-bottom: 1rem; }
.dish { display: grid; grid-template-columns: 112px 1fr; gap: 1.25rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.dish-thumb { position: relative; width: 112px; height: 112px; border: 0; padding: 0; border-radius: 50%; background: #efece5; cursor: pointer; }
.dish-thumb:hover { background: #e6e0d4; }
.thumb-visual { width: 100%; height: 100%; --poster-color: transparent; pointer-events: none; border-radius: 50%; overflow: hidden; }
.thumb-visual.is-img { object-fit: cover; }
.is-empty { display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; color: #b5ad9e; }
.badge-3d { position: absolute; right: -2px; bottom: 4px; background: var(--night); color: var(--cal); font-size: .7rem; font-weight: 700; padding: .15rem .4rem; border-radius: 6px; }
.dish-line { display: flex; align-items: baseline; gap: .6rem; }
.dish-line h4 { margin: 0; font-size: 1.2rem; }
.dots { flex: 1; border-bottom: 2px dotted #c9c3b6; transform: translateY(-.3em); min-width: 1.5rem; }
.dish-price { font-weight: 700; white-space: nowrap; }
.dish-desc { color: var(--muted); margin: .25rem 0 .4rem; max-width: 62ch; }
.dish-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.algs { display: inline-flex; gap: .15rem; }
.alg { font-size: 1rem; cursor: help; }
.tag { font-size: .76rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; background: #e8ece8; color: #3f5a46; }
.tag-picante { background: #f8e2dc; color: var(--ember); }
.tag-casa { background: #fbefd4; color: var(--saffron-d); }
@media (max-width: 560px) {
  .dish { grid-template-columns: 84px 1fr; gap: .9rem; }
  .dish-thumb { width: 84px; height: 84px; }
  .dots { display: none; }
  .dish-line { justify-content: space-between; }
}

.menus { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.menu-card { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--night); border-radius: 4px var(--r) var(--r) var(--r); padding: 1.5rem; }
.menu-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-card .menu-price { font-size: 1.5rem; margin: 0; }
.menu-sec h4 { font-family: var(--sans); font-weight: 700; font-size: .95rem; margin: 1rem 0 .3rem; color: var(--saffron-d); }
.menu-sec ul { margin: 0; padding-left: 1.1rem; }
.menu-sec a { color: var(--ink); }
.carta-cta { margin-top: 3rem; padding: 2rem; background: #eef0ed; border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.carta-cta p { margin: 0; font-family: var(--serif); font-size: 1.3rem; }
.empty-filter { padding: 2rem 0; color: var(--muted); }

/* Visor 3D a pantalla completa --------------------------------------------- */
.viewer { width: min(1080px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); overflow: hidden; }
.viewer::backdrop { background: rgba(10, 22, 34, .7); backdrop-filter: blur(3px); }
.viewer-inner { display: grid; grid-template-columns: 1.5fr 1fr; min-height: min(620px, 88vh); position: relative; }
.viewer-stage { position: relative; background: radial-gradient(circle at 50% 40%, #fbfaf6, #ebe7de); }
.viewer-stage model-viewer, .viewer-stage img { width: 100%; height: 100%; min-height: 360px; object-fit: contain; }
.viewer-tools { position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: .4rem; }
.tool { font: 600 .85rem var(--sans); padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); cursor: pointer; }
.tool:hover { border-color: var(--night); }
.ar-btn { position: absolute; right: 1rem; bottom: 1rem; }
.viewer-info { padding: 2.2rem 2rem; overflow-y: auto; }
.viewer-info h2 { margin-right: 2rem; }
.viewer-price { font-family: var(--serif); font-size: 1.6rem; color: var(--saffron-d); }
.viewer-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.viewer-meta .alg { font-size: 1.3rem; }
.viewer-close { position: absolute; top: .8rem; right: .8rem; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--night); color: var(--cal); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.viewer.no-3d .viewer-tools, .viewer.no-3d .viewer-help { display: none; }
@media (max-width: 760px) {
  .viewer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .viewer-inner { grid-template-columns: 1fr; grid-template-rows: 58vh auto; min-height: 100dvh; }
  .viewer-info { padding: 1.4rem 1.25rem 2rem; }
}

/* Plano (componente) ------------------------------------------------------- */
.plan { display: grid; gap: .7rem; }
.plan-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.plan-rooms { display: flex; gap: .3rem; flex-wrap: wrap; }
.plan-room { font: 600 .92rem var(--sans); padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); }
.plan-room small { font-weight: 500; color: var(--sage); margin-left: .2rem; }
.plan-room[aria-selected="true"] { background: var(--night); color: var(--cal); border-color: var(--night); }
.plan-room[aria-selected="true"] small { color: #b9d3be; }
.plan-modes { display: inline-flex; background: #e9e6df; padding: 3px; border-radius: 999px; margin-left: auto; }
.plan-mode { font: 600 .88rem var(--sans); border: 0; background: none; padding: .38rem .95rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.plan-mode[aria-pressed="true"] { background: var(--paper); color: var(--night); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.plan-stage { position: relative; background: #e9e6df; border-radius: var(--r); overflow: hidden; min-height: 180px; }
@media (max-width: 640px) {
  .plan:not([data-mode="3d"]) .plan-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plan:not([data-mode="3d"]) .plan-svg { width: 680px; max-width: none; max-height: none; }
}
.plan[data-mode="3d"] .plan-stage { background: linear-gradient(#dfe6ea, #eceae4); min-height: 360px; }
.plan-svg { display: block; width: 100%; height: auto; max-height: 72vh; }
.plan-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; color: var(--muted); font-weight: 600; z-index: 2; background: rgba(233, 230, 223, .85); }
.plan-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); }
.lg-item { display: inline-flex; align-items: center; gap: .35rem; }
.lg-item i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.tbl text { font-family: var(--sans); font-weight: 700; pointer-events: none; }
.tbl .tbl-seats { font-weight: 500; opacity: .85; }
.el-label { font-family: var(--sans); font-weight: 600; pointer-events: none; }
.tbl.is-clickable { cursor: pointer; }
.tbl.is-clickable:hover .table-top { filter: brightness(1.08); stroke-width: 5; }
.tbl.is-clickable:focus-visible { outline: none; }
.tbl.is-clickable:focus-visible .table-top { stroke: var(--saffron); stroke-width: 6; }
.tbl.st-pequena, .tbl.st-grande, .tbl.st-bloqueada { opacity: .65; }
.tbl.is-selected .table-top { stroke-width: 6; }
@media (prefers-reduced-motion: no-preference) {
  .tbl.is-selected .table-top { animation: pick .9s ease-out; }
  @keyframes pick { 0% { stroke-width: 18; } 100% { stroke-width: 6; } }
}

/* Reserva ------------------------------------------------------------------ */
.booking { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 2rem; padding: 2rem 0 4rem; align-items: start; }
.booking-plan { position: sticky; top: 88px; }
.plan-help { margin-top: .6rem; min-height: 1.5em; }
@media (max-width: 960px) {
  .booking { grid-template-columns: 1fr; }
  .booking-plan { position: static; order: 2; }
  .booking-steps { order: 1; }
  .page-reservar .step[data-step="2"].is-open ~ .step { display: none; }
}
@media (max-width: 960px) {
  /* En móvil el plano va justo después del paso abierto */
  .booking { display: flex; flex-direction: column; }
}

.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .8rem; scroll-margin-top: 84px; }
.step-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem .8rem; padding: 1rem 1.2rem; }
.step-head h2 { font-size: 1.3rem; margin: 0; }
.step-head h2 small { font-family: var(--sans); font-size: .8rem; font-weight: 500; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #ebe8e1; color: var(--muted); font-weight: 700; }
.step.is-open .step-num { background: var(--night); color: var(--cal); }
.step.is-done .step-num { background: var(--sage); color: #fff; font-size: 0; }
.step.is-done .step-num::after { content: '✓'; font-size: 1rem; }
.step-summary { grid-column: 2; margin: 0; font-size: .92rem; color: var(--muted); display: none; }
.step.is-done .step-summary { display: block; }
.step-edit { grid-row: 1; grid-column: 3; display: none; font-size: .9rem; }
.step.is-done .step-edit { display: inline; }
.step-body { display: none; padding: 0 1.2rem 1.3rem; }
.step.is-open .step-body { display: block; }
.step:not(.is-open):not(.is-done) .step-head { opacity: .55; }
.step-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }

.field { display: block; margin-bottom: 1.1rem; font-weight: 600; font-size: .95rem; }
.field-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .45rem; }
.field input, .field textarea, .field select, .lookup input {
  display: block; width: 100%; margin-top: .3rem; font: 400 1rem var(--sans); padding: .7rem .8rem;
  border: 1.5px solid #d3cec4; border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(227, 162, 26, .35); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.check, .radio { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; margin: .4rem 0 1rem; cursor: pointer; }
.check input, .radio input { margin-top: .25rem; accent-color: var(--night); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }
.hint { margin: .4rem 0 0; color: var(--muted); }

.day-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.day { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: .45rem 0; cursor: pointer; font: inherit; display: grid; justify-items: center; line-height: 1.2; color: var(--ink); }
.day span { font-size: .72rem; color: var(--muted); }
.day strong { font-size: 1.1rem; }
.day:hover { border-color: var(--night); }
.day[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--cal); }
.day[aria-pressed="true"] span { color: rgba(250, 250, 247, .75); }
.other-day { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; font-size: .9rem; color: var(--muted); font-weight: 500; }
.other-day input { font: inherit; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 6px; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.stepper-btn { width: 46px; height: 46px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--night); border-radius: 50%; }
.stepper-btn:hover { background: #f0ede6; }
.stepper output { min-width: 2.5ch; text-align: center; font-weight: 700; font-size: 1.2rem; }

.slot-group { margin-bottom: .7rem; }
.slot-group-name { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .3rem; font-weight: 500; }
.slot-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.slot { font: 600 .95rem var(--sans); padding: .5rem .75rem; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); position: relative; }
.slot:hover:not(:disabled) { border-color: var(--night); }
.slot[aria-pressed="true"] { background: var(--night); color: var(--cal); border-color: var(--night); }
.slot:disabled { text-decoration: line-through; color: #b4ada1; cursor: not-allowed; background: #f6f4ef; }
.slot.few::after { content: ''; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }

.table-pick { padding: .8rem 1rem; border-radius: 10px; background: #fbf3df; border: 1.5px solid var(--saffron); }
.table-pick-name { font-family: var(--serif); font-size: 1.3rem; margin: 0; }
.table-pick-info { margin: 0; }

.preorder { display: grid; gap: .4rem; }
.po-cat { border: 1px solid var(--line); border-radius: 10px; }
.po-cat summary { padding: .7rem .9rem; cursor: pointer; font-weight: 700; }
.po-body { padding: 0 .9rem .4rem; }
.po-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid #f0ede6; }
.po-row:not(:has(.po-thumb)) { grid-template-columns: 1fr auto auto; }
.po-thumb { width: 52px; height: 52px; border-radius: 50%; background: #efece5; object-fit: cover; --poster-color: transparent; font-size: 1.2rem; }
.po-info { display: grid; line-height: 1.3; }
.po-info .small { font-size: .82rem; }
.po-price { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.mini-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--night); border-radius: 999px; }
.mini-stepper button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--night); }
.mini-stepper output { min-width: 2ch; text-align: center; font-weight: 700; }
.cart { margin-top: 1rem; padding: .9rem 1rem; background: #f6f4ef; border-radius: 10px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; padding: .3rem 0; font-size: .95rem; align-items: start; }
.cart-lines small { display: block; }
.cart-total { display: flex; justify-content: space-between; margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid var(--line); }

.summary dl { margin: 0 0 1rem; display: grid; gap: .25rem; background: #f6f4ef; border-radius: 10px; padding: .9rem 1rem; }
.summary dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.form-error { color: var(--ember); font-weight: 600; }

.sheet { border: 0; border-radius: 16px; padding: 0; width: min(480px, 94vw); }
.sheet::backdrop { background: rgba(10, 22, 34, .55); }
.sheet-inner { padding: 1.5rem; }
.sheet-sec { border: 0; padding: 0; margin: 0 0 1rem; }
.sheet-sec legend { font-weight: 700; margin-bottom: .3rem; }
.sheet-sec .radio { margin: .2rem 0; }
.sheet-actions { display: flex; justify-content: flex-end; gap: .5rem; }

/* Mi reserva --------------------------------------------------------------- */
.notice { padding: .9rem 1.1rem; border-radius: 10px; background: #f1efe9; margin: 1rem 0; }
.notice.ok { background: #e6efe8; color: #2f5a3a; }
.notice.error { background: #f8e4df; color: #8f2d1f; }
.ticket { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; margin: 2rem 0 4rem; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ticket-code { margin: 0; font-size: 1.05rem; }
.ticket-code strong { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .06em; margin-left: .4rem; }
.status-pill { --c: #444; color: var(--c); border: 2px solid var(--c); border-radius: 999px; padding: .2rem .8rem; font-weight: 700; font-size: .9rem; }
.ticket-lead { font-family: var(--serif); font-size: 1.3rem; margin: 1.2rem 0; }
.ticket-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.ticket-data dt { color: var(--muted); font-size: .88rem; }
.ticket-data dd { margin: 0; font-weight: 600; font-size: 1.08rem; }
.ticket-lines { list-style: none; padding: 0; margin: 0 0 .5rem; }
.ticket-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dotted var(--line); }
.ticket-lines small { display: block; color: var(--muted); }
.ticket-lines .total { font-weight: 700; border-bottom: 0; }
.ticket-foot { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.5rem; }
.lookup { max-width: 420px; margin: 2rem 0 4rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
