@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root {
  color-scheme: light;
  --paper: #f4efe4;
  --paper-bright: #fbf8f1;
  --ink: #29221d;
  --muted: #5e554c;
  --green: #31534a;
  --green-deep: #1d3933;
  --red: #8d3f3a;
  --line: #c9bdab;
  --gold: #a17c45;
  --body: "Archivo", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --gutter: clamp(1.2rem, 4.4vw, 4.6rem);
  --measure: 43rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; scrollbar-color: var(--green) var(--paper); scrollbar-width: thin; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.0625rem/1.62 var(--body); text-rendering: optimizeLegibility; caret-color: var(--green); font-variant-numeric: oldstyle-nums; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .22em; }
a:hover { color: var(--red); }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
::selection { color: var(--paper-bright); background: var(--green-deep); }
h1, h2, h3, p, figure { margin-top: 0; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h1 { max-width: 12ch; margin-bottom: 1.4rem; font-size: clamp(2.8rem, 5vw, 4.65rem); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
h2 { max-width: 18ch; margin-bottom: 1.15rem; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
h3 { margin-bottom: .35rem; font-size: 1.45rem; line-height: 1.18; }
p { max-width: 63ch; }
.skip-link { position: fixed; z-index: 20; top: .6rem; left: .6rem; transform: translateY(-180%); padding: .75rem 1rem; color: var(--paper-bright); background: var(--green-deep); }
.skip-link:focus { transform: translateY(0); }
.skip-link:hover { color: var(--paper-bright); }

.site-shell { min-height: 100svh; }
.photo-stage { position: relative; min-height: 37svh; overflow: hidden; color: white; background: var(--green-deep); }
.photo-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: photo-arrives .8s ease-out both; }
.stage-caption { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; margin: 0; padding: .75rem var(--gutter); color: white; background: var(--green-deep); font-size: .82rem; }
.stage-caption a { color: white; }
.reading-column { min-width: 0; background: var(--paper); }
/* taste-skill-ignore: El filete divide la identidad del local y la navegación principal. */
.site-header { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem var(--gutter); border-bottom: 1px solid var(--line); background: var(--paper-bright); } /* taste-skill-ignore */
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 2.9rem; height: 2.9rem; object-fit: cover; }
.brand span { display: grid; line-height: 1.04; }
.brand small { color: var(--muted); font-size: .82rem; }
.brand strong { font: 500 1.45rem/1.05 var(--display); }
.nav-toggle { display: none; min-width: 2.9rem; min-height: 2.9rem; padding: .5rem; border: 1px solid var(--green); background: transparent; cursor: pointer; }
.nav-toggle svg { width: 1.35rem; height: 1.35rem; vertical-align: middle; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(.7rem, 1.3vw, 1.35rem); }
.site-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--ink); font-size: .92rem; text-decoration: none; text-underline-offset: .4em; }
.site-nav a[aria-current="page"] { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; }
.site-nav a:hover { color: var(--red); }
.js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: flex; }
.page-content { width: min(100%, var(--measure)); margin-inline: auto; padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) 3.5rem; }
.page-lead { margin-bottom: 2rem; color: #40372f; font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.58; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; margin: 1.4rem 0 1.2rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .65rem; padding: .7rem 1rem; color: var(--paper-bright); background: var(--green-deep); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.button:hover { color: white; background: var(--red); }
.button-secondary { min-height: 2.8rem; display: inline-flex; align-items: center; color: var(--green-deep); text-underline-offset: .3em; }
.address-line { margin: 1.35rem 0 0; color: var(--muted); font-size: .96rem; }
/* taste-skill-ignore: El filete separa bloques editoriales largos sin añadir tarjetas. */
.editorial-block { margin-top: clamp(3rem, 7vw, 5.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); } /* taste-skill-ignore */
.editorial-block > :last-child { margin-bottom: 0; }
.inline-note { color: var(--muted); font-size: .94rem; }
/* taste-skill-ignore: Filetes tipográficos estructuran el listado de datos en contacto. */
.fact-line { display: grid; grid-template-columns: minmax(7.5rem, .35fr) 1fr; gap: .8rem 1rem; padding: .8rem 0; border-top: 1px solid var(--line); } /* taste-skill-ignore */
.fact-line:last-child { border-bottom: 1px solid var(--line); } /* taste-skill-ignore */
.fact-line dt { color: var(--muted); }
.fact-line dd { margin: 0; }
/* taste-skill-ignore: La línea superior marca el cierre editorial y separa los enlaces. */
.site-footer { width: min(100%, var(--measure)); margin-inline: auto; padding: 2rem var(--gutter) 2.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; } /* taste-skill-ignore */
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; margin: 0 0 1rem; }
.footer-links a { min-height: 2.5rem; display: inline-flex; align-items: center; color: var(--green-deep); }
.site-footer p { margin: 0; }

/* La plaza acompaña el recorrido; cada página cambia el tipo de lectura. */
.photo-ribbon { display: grid; grid-template-columns: 1.05fr .8fr 1.05fr; gap: .65rem; margin-top: 2rem; }
.photo-ribbon figure { min-width: 0; margin: 0; }
.photo-ribbon img { width: 100%; height: clamp(6.5rem, 15vw, 10rem); object-fit: cover; }
.photo-ribbon figcaption { margin-top: .4rem; color: var(--muted); font-size: .8125rem; line-height: 1.35; }

/* Carta: archive labels remain visible if script is disabled. */
.archive-note { margin: 1.4rem 0 2.2rem; padding: 1.1rem 1.2rem; color: var(--green-deep); background: #e5e6d9; }
.archive-note strong { display: block; margin-bottom: .25rem; }
.menu-tools { display: grid; gap: 1rem; margin: 2.1rem 0 1.5rem; }
.menu-search { display: grid; gap: .35rem; font-size: .94rem; }
.menu-search input { width: 100%; min-height: 3rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--paper-bright); }
.menu-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-button { min-height: 2.75rem; padding: .55rem .8rem; border: 1px solid var(--green); color: var(--green-deep); background: transparent; cursor: pointer; }
.filter-button[aria-pressed="true"] { color: var(--paper-bright); background: var(--green-deep); }
.menu-count { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
/* taste-skill-ignore: Los filetes hacen legible una carta textual sin simular fichas. */
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); } /* taste-skill-ignore */
.menu-item[hidden] { display: none; }
.menu-item h3 { margin: 0; font-size: 1.27rem; }
.menu-item p { grid-column: 1 / -1; margin: 0; color: #4b4239; font-size: .98rem; }
.menu-empty { padding: 1.5rem 0; color: var(--muted); }
.menu-empty[hidden] { display: none; }

/* The real photographs lead the gallery; the native dialog is the only overlay. */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 2rem; }
.gallery-figure { min-width: 0; margin: 0; }
.gallery-figure:nth-child(3n + 1) { grid-row: span 2; }
.gallery-figure button { display: block; width: 100%; min-height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; text-align: left; }
.gallery-figure img { width: 100%; height: 100%; min-height: 13rem; max-height: 26rem; object-fit: cover; transition: filter .2s ease; }
.gallery-figure:nth-child(3n + 1) img { min-height: 27rem; }
.gallery-figure button:hover img { filter: brightness(.9); }
.gallery-figure figcaption { margin-top: .45rem; color: var(--muted); font-size: .83rem; }
.lightbox { width: min(94vw, 68rem); max-width: none; max-height: 92svh; padding: .7rem; border: 1px solid var(--line); color: var(--ink); background: var(--paper-bright); }
.lightbox::backdrop { background: rgb(13 23 20 / .82); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 76svh; object-fit: contain; background: var(--ink); }
.lightbox figcaption { padding: .65rem 0 .15rem; }
.lightbox-controls { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; }
.lightbox-controls button { min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--green); background: transparent; cursor: pointer; }
.lightbox-close { margin-left: auto; }

.contact-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.3rem; }
.contact-actions a { min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--green-deep); }
.location-mark { width: min(100%, 30rem); margin-top: 2rem; padding: 1rem; color: var(--paper-bright); background: var(--green-deep); }
.location-mark svg { width: 100%; height: auto; display: block; }
.location-mark figcaption { margin-top: .45rem; color: #e6e5d9; font-size: .86rem; }
.error-code { margin: 0 0 .6rem; color: var(--red); font: 500 clamp(4rem, 12vw, 8rem)/.9 var(--display); letter-spacing: -.05em; }

@keyframes photo-arrives { from { opacity: .75; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }

@media (min-width: 900px) {
  .site-shell { display: grid; grid-template-columns: minmax(0, 47%) minmax(0, 53%); align-items: start; }
  .photo-stage { position: sticky; top: 0; height: 100svh; min-height: 34rem; }
  .photo-stage > img { object-position: center; }
  .reading-column { min-height: 100svh; }
  .site-header { position: sticky; z-index: 5; top: 0; min-height: 5.25rem; padding-inline: clamp(1rem, 2vw, 2rem); }
  .js .nav-toggle { display: none; }
  .js .site-nav, .js .site-nav.is-open { display: flex; }
  .site-nav { gap: .25rem clamp(.55rem, 1.05vw, 1rem); }
  .site-nav a { font-size: clamp(.8rem, .92vw, .92rem); }
  .page-content { padding-inline: clamp(2rem, 5vw, 4.6rem); }
  .site-footer { padding-inline: clamp(2rem, 5vw, 4.6rem); }
}

@media (max-width: 899px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; padding: .35rem 0 .2rem; gap: .2rem .8rem; }
  .js .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 2.75rem; font-size: .82rem; }
  .js .site-nav:not(.is-open) { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .page-content { padding-top: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-figure:nth-child(3n + 1) { grid-row: auto; }
  .gallery-figure:nth-child(4n + 1) { grid-row: span 2; }
  .gallery-figure img, .gallery-figure:nth-child(3n + 1) img { min-height: 14rem; }
  .gallery-figure:nth-child(4n + 1) img { min-height: 29rem; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.15rem; }
  body { font-size: 1rem; }
  .photo-stage { min-height: clamp(15rem, 38svh, 24rem); }
  .brand img { width: 2.55rem; height: 2.55rem; }
  .brand strong { font-size: 1.3rem; }
  .page-content { padding-top: 2rem; padding-bottom: 2.5rem; }
  h1 { max-width: 12ch; font-size: clamp(2.75rem, 12vw, 3.25rem); }
  .page-lead { font-size: 1.08rem; }
  .actions { align-items: stretch; }
  .button { width: 100%; }
  .photo-ribbon { gap: .45rem; }
  .photo-ribbon img { height: 6.5rem; }
  .photo-ribbon figcaption { font-size: .8125rem; }
  .fact-line { grid-template-columns: 1fr; gap: .1rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .gallery-figure:nth-child(4n + 1) { grid-row: auto; }
  .gallery-figure:nth-child(3n + 1) { grid-row: span 2; }
  .gallery-figure img, .gallery-figure:nth-child(4n + 1) img { min-height: 12rem; }
  .gallery-figure:nth-child(3n + 1) img { min-height: 24rem; }
  .menu-item { gap: .3rem .6rem; }
  .lightbox { width: 100%; max-height: 100svh; padding: .5rem; }
  .lightbox img { max-height: 68svh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
