@font-face{font-family:"Space Grotesk";src:url("/fonts/provisional/SpaceGrotesk-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("/fonts/provisional/SpaceGrotesk-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
/* Rimini Caffè — sistema de diseño.
   Tokens = brandbook BLÃO Studio v1.0. --surface es derivado (tinte del Off White). */
:root {
  --green: #00291B;
  --olive: #697452;
  --velvet: #3B0014;
  --offwhite: #EFEBE2;
  --brown: #3A2C1F;
  --surface: #F6F3EC;
  --line: rgb(0 41 27 / .2);
  --line-dark: rgb(239 235 226 / .28);

  --font: "Neue Machina", "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --radius: 14px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 60px;

  --fs-display: clamp(2.75rem, 8.2vw + .4rem, 6rem);
  --fs-h1: clamp(2.25rem, 5vw + .5rem, 4rem);
  --fs-h2: clamp(1.75rem, 3vw + .6rem, 2.75rem);
  --fs-h3: clamp(1.25rem, 1vw + 1rem, 1.75rem);
  --fs-body: clamp(1.0625rem, .15vw + 1rem, 1.125rem);
  --fs-cap: .875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--offwhite); color: var(--green);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--velvet); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--offwhite); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--green); color: var(--offwhite); padding: var(--s3) var(--s4); border-radius: var(--s2); }
.skip:focus { top: var(--s2); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s8); }
.on-dark { color: var(--offwhite); }
.bg-green { background: var(--green); }
.bg-velvet { background: var(--velvet); }
.bg-surface { background: var(--surface); }

/* Tipografía */
.display, .h1, .h2, .h3 { font-weight: 700; text-transform: uppercase; letter-spacing: 0; text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: .95; }
.h1 { font-size: var(--fs-h1); line-height: 1; }
.h2 { font-size: var(--fs-h2); line-height: 1.05; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; text-transform: none; }
.lead { font-size: clamp(1.125rem, .6vw + 1rem, 1.375rem); line-height: 1.45; max-width: 36ch; }
.caption { font-size: var(--fs-cap); line-height: 1.4; }
.bracket::before { content: "["; } .bracket::after { content: "]"; }
.bracket::before, .bracket::after { font-weight: 400; opacity: .7; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .9375rem; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--velvet); color: var(--offwhite); }
.btn--primary:hover { background: var(--green); }
.btn--light { background: var(--offwhite); color: var(--green); }
.btn--light:hover { background: var(--surface); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgb(0 41 27 / .08); }
.on-dark .btn--ghost:hover { background: rgb(239 235 226 / .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--offwhite); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 112px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--s1); }
.nav a, .lang summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3);
  font-size: .875rem; font-weight: 700; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.nav a:hover, .lang summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.lang { position: relative; }
.lang summary { list-style: none; border: 1.5px solid var(--green); border-radius: 999px; min-height: 36px; padding: 0 var(--s3); margin-left: var(--s1); }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); min-width: 140px; background: var(--offwhite); border: 1px solid var(--green); border-radius: var(--radius); padding: var(--s1); }
.lang ul a { display: flex; width: 100%; border-radius: 10px; }
.lang ul a[aria-current="true"] { background: var(--green); color: var(--offwhite); }

/* Estado abierto/cerrado */
.status { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s4); border: 1px solid var(--line-dark); border-radius: 999px; font-size: var(--fs-cap); font-weight: 700; text-transform: uppercase; background: rgb(239 235 226 / .08); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--offwhite); flex: none; }
.status[data-state="closed"]::before { background: transparent; border: 2px solid var(--offwhite); }
.status[data-state="soon"]::before { background: transparent; border: 2px solid var(--offwhite); }

/* Hero */
.hero { background: var(--green); color: var(--offwhite); padding-block: var(--s5) var(--s7); }
.hero__grid { display: grid; gap: var(--s5); }
.hero__copy { display: grid; gap: var(--s5); align-content: start; }
.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero__img2 { display: none; }
.hero .lead { color: var(--offwhite); }

/* Statement */
.statement { padding-block: var(--s8); }
.statement p { font-size: var(--fs-h2); line-height: 1.12; font-weight: 700; max-width: 22ch; text-wrap: balance; }
.statement .caption { margin-top: var(--s4); text-transform: uppercase; letter-spacing: .04em; opacity: .8; }

/* Día */
.day-title { padding-block: 0 var(--s5); }
.day { padding-block: var(--s7); }
.day__grid { display: grid; gap: var(--s5); align-items: center; }
.day__time { display: flex; align-items: center; gap: var(--s3); font-weight: 700; font-size: var(--fs-h2); line-height: 1; letter-spacing: 0; }
.day__now { display: none; font-size: var(--fs-cap); text-transform: uppercase; padding: var(--s1) var(--s3); border-radius: 999px; border: 1.5px solid currentColor; }
.day[aria-current="true"] .day__now { display: inline-flex; }
.day__body { display: grid; gap: var(--s4); align-content: center; justify-items: start; }
.day__body p { max-width: 38ch; }
.day__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.day__big { font-weight: 700; line-height: .85; font-size: clamp(5rem, 28vw, 11rem); opacity: .9; }

/* Teaser carta */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1.5px solid currentColor; border-radius: 999px; font-weight: 700; font-size: .875rem; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.chip:hover { background: var(--offwhite); color: var(--green); border-color: var(--offwhite); }
.teaser__head { display: grid; gap: var(--s4); margin-bottom: var(--s6); max-width: 46ch; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); margin-block: var(--s6); }
.card { display: grid; gap: var(--s2); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.card__name { font-weight: 700; line-height: 1.2; }
.card__price { font-size: var(--fs-cap); opacity: .85; }
.card:hover .card__name { text-decoration: underline; text-underline-offset: 4px; }

/* Galería */
.gallery { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s3); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
.gallery figure { flex: 0 0 72%; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.quote { margin-top: var(--s7); font-size: var(--fs-h1); line-height: 1; font-weight: 700; text-transform: uppercase; text-wrap: balance; max-width: 16ch; }

/* Eventos */
.events { display: grid; gap: var(--s3); margin-top: var(--s5); }
.event { display: grid; gap: var(--s1); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.event__date { font-weight: 700; text-transform: uppercase; }

/* Visita */
.visit__grid { display: grid; gap: var(--s6); }
.info { display: grid; gap: var(--s5); align-content: start; }
.info dt { font-size: var(--fs-cap); text-transform: uppercase; letter-spacing: .04em; opacity: .8; margin-bottom: var(--s1); }
.info dd { font-size: 1.125rem; }
.hours { display: grid; gap: var(--s1); }
.hours div { display: flex; justify-content: space-between; gap: var(--s4); border-bottom: 1px solid var(--line-dark); padding-block: var(--s1); }
.hours dt, .hours dd { margin: 0; opacity: 1; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.hours .is-today { font-weight: 700; }
.list { display: grid; gap: var(--s2); }
.list li::before { content: "— "; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--green); border: 1px solid var(--line-dark); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { background: var(--green); color: var(--offwhite); padding-block: var(--s8) var(--s6); border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; gap: var(--s6); }
.footer img { width: 168px; height: auto; }
.footer h2 { font-size: var(--fs-cap); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; opacity: .8; margin-bottom: var(--s2); }
.footer a { text-underline-offset: 4px; }
.footer__links { display: grid; gap: var(--s1); }
.footer__links a { display: inline-block; padding-block: var(--s1); }
.footer__small { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); justify-content: space-between; font-size: var(--fs-cap); }

/* Barra móvil */
.mobilebar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.7fr 1fr 1.1fr; gap: var(--s2); padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom)); background: var(--offwhite); border-top: 1px solid var(--line); transition: transform .25s; }
.mobilebar .btn { min-height: 48px; padding-inline: var(--s2); font-size: .75rem; letter-spacing: 0; white-space: nowrap; gap: 6px; }
.mobilebar .btn svg { width: 16px; height: 16px; }
.js .mobilebar[data-hidden="true"] { transform: translateY(110%); }

/* Página carta */
.page-head { padding-block: var(--s7) var(--s5); display: grid; gap: var(--s3); }
.catnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--offwhite); border-bottom: 1px solid var(--line); }
.catnav ul { display: flex; gap: var(--s2); overflow-x: auto; padding-block: var(--s2); scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav .chip { min-height: 40px; }
.catnav .chip[aria-current="true"] { background: var(--green); color: var(--offwhite); }
.cat { padding-block: var(--s7) var(--s3); scroll-margin-top: calc(var(--header-h) + 56px); }
.cat__grid { display: grid; gap: var(--s5); }
.cat__title { padding-bottom: var(--s3); border-bottom: 1px solid var(--green); margin-bottom: var(--s2); }
.cat__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 60%; border-radius: var(--radius); }
.item { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.item__name { display: inline-flex; align-items: center; gap: var(--s2); }
.item__price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.item__price--ask { font-weight: 400; font-size: var(--fs-cap); opacity: .8; }
.tag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--olive); color: var(--green); font-size: .6875rem; font-weight: 700; text-decoration: none; }
.tag { background: var(--green); color: var(--offwhite); }
.legend { margin-top: var(--s7); display: grid; gap: var(--s1); }
.cta-box { margin-block: var(--s8); padding: var(--s6); border-radius: var(--radius); display: grid; gap: var(--s4); justify-items: start; }

.prose { max-width: 62ch; display: grid; gap: var(--s5); padding-block: var(--s5) var(--s9); }
.prose h2 { font-size: var(--fs-h3); font-weight: 700; }
.notfound { min-height: 60vh; display: grid; align-content: center; gap: var(--s5); justify-items: start; }

/* Revelado: una sola animación, desactivada con reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }

/* Tablet */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .gallery figure { flex-basis: 38%; }
  .day__grid { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .day--flip .day__media { order: 2; }
  .day__img { aspect-ratio: 4 / 5; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .visit__grid { grid-template-columns: 1fr 1fr; gap: var(--s7); }
}
/* Escritorio */
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { width: 136px; }
  .nav a, .lang summary { font-size: .9375rem; padding: 0 var(--s4); }
  .section { padding-block: var(--s10); }
  .hero { padding-block: var(--s7) var(--s9); }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--s8); align-items: end; min-height: calc(100svh - var(--header-h) - 160px); }
  .hero__copy { align-self: center; gap: var(--s6); }
  .hero__img { aspect-ratio: 4 / 5; max-height: 78vh; margin-left: auto; }
  .hero__media { display: flex; justify-content: flex-end; }
  .hero__img2 { display: block; position: absolute; left: -14%; bottom: -6%; width: 34%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--green); }
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .gallery figure { flex: none; }
  .mobilebar { display: none; }
  body.has-bar { padding-bottom: 0; }
  .cat__grid { grid-template-columns: 1fr 340px; gap: var(--s7); align-items: start; }
  .cat__grid--noimg { grid-template-columns: 1fr; }
  .cat__list { grid-column: 1; grid-row: 1; }
  .cat__img { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 72px); }
}
@media (min-width: 1400px) {
  :root { --container: 1320px; }
}
