/* Ca l'Exemple — demo de Garvia Digital. Tema claro: papel de carta, tinta verde noche y rojo tomate.
 * Contrastes (WCAG 2.x) sobre --papel #f3ede1: tinta 14,6:1 · tinta-suave 6,4:1 · tomate 5,3:1 · mar 6,6:1.
 * Blanco sobre tomate 6,1:1. --safra solo es superficie, nunca color de texto. */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-normal.woff2) format("woff2"); font-weight: 400 800; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-normal.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --papel: #f3ede1;
  --blanc: #fbf8f1;
  --tinta: #1c2722;
  --tinta-suave: #4f5a52;
  --tomate: #b3361f;
  --tomate-hondo: #962c18;
  --mar: #23596a;
  --safra: #f2d79c;
  --borde: #d9cdb5;
  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--papel); scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-stretch: 75%; font-weight: 800; line-height: .98; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--mar); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--tinta); color: var(--blanc); padding: .75rem 1rem; border-radius: .4rem; }
.saltar:focus { top: 1rem; }
.envoltura { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.eyebrow { font-weight: 700; font-stretch: 100%; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; color: var(--tomate); margin-bottom: 1rem; }
.lead { font: 400 clamp(1.15rem, 1.7vw, 1.3rem)/1.5 var(--serif); color: var(--tinta-suave); max-width: 42ch; margin-top: 1.1rem; }
.nota { font-size: .9rem; color: var(--tinta-suave); margin-top: .9rem; }
.seccion { padding-block: clamp(2.5rem, 6vw, 5rem); }

.demo { background: var(--tinta); color: #eae4d6; font-size: .85rem; text-align: center; padding: .55rem 1rem; line-height: 1.4; }
.demo p { margin: 0; }
.demo a { color: #fff; font-weight: 700; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: .5rem; font: 700 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.boton:active { transform: translateY(1px); }
.boton--tomate { background: var(--tomate); color: #fff; }
.boton--tomate:hover { background: var(--tomate-hondo); }
.boton--linea { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.boton--linea:hover { background: var(--blanc); }
.boton--tinta { background: var(--tinta); color: var(--blanc); }
.boton--ancho { width: 100%; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgb(243 237 225 / .94); backdrop-filter: blur(10px); border-bottom: 2px solid var(--tinta); }
.cabecera__fila { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.marca { display: inline-grid; text-decoration: none; line-height: 1; }
.marca__nom { font-weight: 800; font-stretch: 70%; font-size: 1.75rem; letter-spacing: -.01em; text-transform: uppercase; }
.marca__sub { font: italic 400 .9rem/1.2 var(--serif); color: var(--tomate); margin-top: .1rem; }
.nav { display: flex; gap: .2rem; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .75rem; font-weight: 600; text-decoration: none; border-radius: .4rem; }
.nav a:hover { background: var(--blanc); }
.idioma { position: relative; }
.idioma summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: 0 .6rem; border: 1.5px solid var(--borde); border-radius: .4rem; font-weight: 700; font-size: .9rem; }
.idioma summary::-webkit-details-marker { display: none; }
.idioma summary::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.idioma ul { position: absolute; right: 0; top: calc(100% + .4rem); margin: 0; padding: .4rem; list-style: none; background: var(--blanc); border: 1.5px solid var(--tinta); border-radius: .5rem; min-width: 10rem; box-shadow: 6px 6px 0 var(--tinta); }
.idioma a { display: flex; min-height: 44px; align-items: center; padding: 0 .8rem; border-radius: .3rem; text-decoration: none; }
.idioma a:hover { background: var(--papel); }
.idioma a[aria-current] { font-weight: 800; }
.idioma a[aria-current]::after { content: "✓"; margin-left: auto; color: var(--tomate); }

/* Hero */
.hero { padding-block: clamp(2rem, 5vw, 4rem) 2rem; }
.hero__rejilla { display: grid; gap: 2rem; }
@media (min-width: 960px) { .hero__rejilla { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; } }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.4rem); text-transform: uppercase; font-stretch: 68%; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { font: italic 400 .78em/1.05 var(--serif); text-transform: none; color: var(--tomate); letter-spacing: -.02em; margin-block: .06em; }
.hero__botones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.estado { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-weight: 600; font-size: .95rem; }
.estado::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--tinta-suave); }
.estado--abierto::before { background: #2f7d4a; box-shadow: 0 0 0 4px rgb(47 125 74 / .18); }
.hero__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .6rem; }
@media (min-width: 960px) { .hero__foto img { aspect-ratio: 5 / 6; } }

/* Destacados */
.destacados { padding-block: 1.5rem clamp(3rem, 6vw, 5rem); }
.destacados__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; margin-inline: -1rem; padding-inline: 1rem; padding-bottom: .5rem; }
.destacados__lista li { scroll-snap-align: start; }
@media (min-width: 760px) { .destacados__lista { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 1.5rem; } }
.destacados img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .6rem; }
.destacados figcaption { margin-top: .7rem; font: italic 400 1.05rem/1.4 var(--serif); color: var(--tinta-suave); }
.destacados figcaption strong { display: block; font: 800 1.2rem/1.1 var(--sans); font-stretch: 75%; text-transform: uppercase; color: var(--tinta); font-style: normal; }

/* Carta */
.carta { background: var(--blanc); border-block: 2px solid var(--tinta); padding-block: clamp(3rem, 7vw, 5.5rem); }
.carta__cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sello { font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--tomate); border: 2px solid var(--tomate); border-radius: .4rem; padding: .35rem .7rem; transform: rotate(-3deg); }
.carta__intro { margin-top: 1rem; color: var(--tinta-suave); max-width: 60ch; }
.carta__cuerpo { margin-top: 2.5rem; }
@media (min-width: 900px) { .carta__cuerpo { columns: 2; column-gap: 4.5rem; column-rule: 1px solid var(--borde); } }
.carta__sec { break-inside: avoid; margin-bottom: 2.5rem; }
.carta__sec h3 { color: var(--tomate); border-bottom: 2px solid var(--tinta); padding-bottom: .4rem; }
.carta__nota { font: italic 400 1rem/1.4 var(--serif); color: var(--tinta-suave); margin-top: .5rem; }
.platos { list-style: none; margin: .5rem 0 0; padding: 0; }
.plato { padding-block: .8rem; border-bottom: 1px solid var(--borde); }
.plato__lin { display: flex; align-items: baseline; gap: .5rem; }
.plato__nom { font-weight: 700; font-size: 1.08rem; }
.plato__pun { flex: 1; border-bottom: 2px dotted #b9ab90; transform: translateY(-.25rem); min-width: 1rem; }
.plato__pre { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plato__desc { font: italic 400 1.02rem/1.4 var(--serif); color: var(--tinta-suave); margin-top: .15rem; max-width: 46ch; }
.alerg { display: inline-flex; gap: .25rem; margin-top: .4rem; }
.alerg abbr, .leyenda abbr { text-decoration: none; display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.45rem; padding: 0 .25rem; border-radius: .3rem; border: 1px solid var(--mar); color: var(--mar); font-size: .72rem; font-weight: 700; font-stretch: 85%; }
.leyenda { margin-top: 1rem; padding-top: 1.25rem; border-top: 2px solid var(--tinta); font-size: .92rem; }
.leyenda p { font-weight: 700; }
.leyenda ul { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

/* Menú del día */
.menu-dia { display: grid; gap: 1.5rem; padding-block: clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 960px) { .menu-dia { grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: stretch; } }
.menu-dia__tarjeta { background: var(--safra); border-radius: .6rem; padding: clamp(1.5rem, 4vw, 3rem); }
.menu-dia__cuando { margin-top: .8rem; font-weight: 600; }
.menu-dia__precio { font-weight: 800; font-stretch: 70%; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; margin-block: 1rem .5rem; }
.menu-dia__precio small { font: italic 400 1rem/1 var(--serif); font-stretch: 100%; }
.menu-dia__ej { margin-top: 1.5rem; font: italic 400 1.05rem/1.4 var(--serif); }
.menu-dia dl { margin: .5rem 0 0; }
.menu-dia dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: .6rem; border-top: 1px solid rgb(28 39 34 / .25); }
.menu-dia dt { font-weight: 800; text-transform: uppercase; font-stretch: 80%; letter-spacing: .03em; }
.menu-dia dd { margin: 0; }
.menu-dia__foto img { width: 100%; height: 100%; max-height: 34rem; object-fit: cover; border-radius: .6rem; }

/* Horario y reservas */
.horario-res { display: grid; gap: 3rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 960px) { .horario-res { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; } }
.horario { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-variant-numeric: tabular-nums; }
.horario th, .horario td { text-align: left; padding: .7rem .4rem; border-bottom: 1px solid var(--borde); }
.horario th { font-weight: 600; }
.horario td { text-align: right; }
.hoy-eti { display: none; color: var(--tomate); font-weight: 700; }
.horario tr.es-hoy { background: var(--blanc); }
.horario tr.es-hoy th, .horario tr.es-hoy td { font-weight: 800; }
.horario tr.es-hoy .hoy-eti { display: inline; }
.reservas > p { margin-top: .8rem; color: var(--tinta-suave); }
.form { display: grid; gap: 1rem; margin-top: 1.5rem; background: var(--blanc); border: 2px solid var(--tinta); border-radius: .6rem; padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: 8px 8px 0 var(--tinta); }
.form__fila { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .75rem; }
.form label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 700; }
.form input:not([type="checkbox"]), .form select { font: 400 1rem/1.2 var(--sans); color: var(--tinta); background: var(--papel); border: 1.5px solid #b7a98c; border-radius: .4rem; min-height: 48px; padding: .55rem .7rem; width: 100%; min-width: 0; }
.form [aria-invalid="true"] { border-color: var(--tomate) !important; box-shadow: 0 0 0 2px rgb(179 54 31 / .25); }
.form .check { display: flex; align-items: center; gap: .6rem; font-weight: 500; font-size: 1rem; min-height: 44px; }
.form .check input { width: 1.3rem; height: 1.3rem; accent-color: var(--tomate); }
.telefono { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--borde); }
.telefono p { color: var(--tinta-suave); max-width: 32ch; }
.telefono strong { color: var(--tinta); display: block; }

/* Dónde estamos */
.onde { background: var(--blanc); border-top: 2px solid var(--tinta); padding-block: clamp(3rem, 7vw, 5.5rem); }
.onde__rejilla { display: grid; gap: 2rem; }
@media (min-width: 960px) { .onde__rejilla { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.onde__dir { margin-top: 1rem; font-weight: 700; }
.onde__mapa { margin-top: 1.5rem; }
.mapa { width: 100%; height: auto; border-radius: .6rem; border: 1.5px solid var(--borde); }
.onde__foto img { width: 100%; height: 100%; max-height: 40rem; object-fit: cover; border-radius: .6rem; }

/* Créditos */
.volver { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; color: var(--tomate); text-decoration: none; }
.h1-peq { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; margin-top: .5rem; }
.creditos { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.credito { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--borde); }
.credito img { width: 6rem; height: 4.5rem; object-fit: cover; border-radius: .4rem; }
.credito__t { font-weight: 700; overflow-wrap: anywhere; }
.credito p:not(.credito__t) { font-size: .9rem; color: var(--tinta-suave); margin-top: .2rem; }

/* Pie */
.pie { background: var(--tinta); color: #e9e3d5; padding-block: 3rem; font-size: .95rem; }
.pie__fila { display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .pie__fila { grid-template-columns: 1.4fr .8fr 1.2fr; } }
.pie p { margin-bottom: .35rem; }
.pie a { color: #fff; font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.pie .marca__sub { color: #f0b9a9; }
.pie .marca { margin-bottom: .9rem; }
.pie__garvia a { min-height: 0; display: inline; }
.pie__garvia span { font-size: .88rem; color: #cfc8b8; }

/* Diálogo */
.dialogo { border: 2px solid var(--tinta); border-radius: .6rem; padding: 0; max-width: min(32rem, calc(100% - 2rem)); background: var(--blanc); color: var(--tinta); box-shadow: 10px 10px 0 var(--tinta); }
.dialogo::backdrop { background: rgb(28 39 34 / .55); }
.dialogo form { padding: 1.75rem; display: grid; gap: .9rem; }
.dialogo h2 { font-size: 2rem; }
.dialogo__eti { justify-self: start; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--safra); padding: .2rem .6rem; border-radius: .3rem; }
.dialogo__msg { margin: 0; padding: 1rem 1.1rem; background: #dcf2e3; border-radius: 1rem 1rem 1rem .2rem; color: #12301f; }
.dialogo__botones { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Barra fija de móvil: reservar y llamar siempre a mano */
.barra-movil { display: none; }
@media (max-width: 759px) {
  .cabecera__fila { flex-wrap: wrap; gap: .4rem; padding-block: .55rem; min-height: 0; }
  .marca { margin-right: auto; }
  .marca__nom { font-size: 1.45rem; }
  .nav { order: 3; width: 100%; margin-inline: -.75rem; overflow-x: auto; }
  .nav a { white-space: nowrap; padding: .4rem .75rem; }
  .cabecera__reservar { min-height: 44px; padding: .5rem .9rem; }
  .form__fila { grid-template-columns: 1fr 1fr; }
  .form__fila label:first-child { grid-column: 1 / -1; }
  .barra-movil { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; position: fixed; inset: auto 0 0 0; z-index: 30; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgb(243 237 225 / .97); border-top: 2px solid var(--tinta); }
  .barra-movil .boton--linea { background: var(--blanc); }
  body:has(.barra-movil) .pie { padding-bottom: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
