/* Caseritos Crist v2 · direction "One motif": the scalloped edge of the logo badge
   (the lace edge of the paper doily under every torta) is the one shape of the page. */

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour: the dealt proportions (deep ground, bubblegum ink, one accent), hue moved to the brand's plum */
  --bg: #2a0827;        /* deep plum, the logo purple taken almost to black */
  --surface: #4a1240;   /* the inset panel */
  --ink: #ffaadb;       /* bubblegum, every word on the dark ground */
  --accent: #ffaadb;    /* the action and the motif */
  --accent-ink: #2a0827;
  --paper: #fff3f9;     /* the printed sheet */
  --t1: #4a1240;        /* accordion, dark to light */
  --t2: #7a2366;
  --t3: #c25aa6;
  --t4: #ffaadb;
  --lilac: #ecd2f2;     /* the logo's lilac, one strip colour */
  --field: #93347e;     /* a coupon field, one step lighter than the coupon */
  --hint: #ffd6ee;      /* placeholder text in a field */

  /* type: Albert Sans, five steps */
  --f: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1rem + 6vw, 6rem);

  /* frame */
  --m: clamp(16px, 1.8vw, 28px);
  --gap: 12px;
  --sec: clamp(96px, 12vw, 200px);
  --sc-w: 36px;          /* one scallop */
  --sc-h: 12px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }
button, .btn, .filtros button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 20; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; }
.skip:focus { top: var(--m); }

/* ---------- the motif ---------- */
/* A scalloped edge is a row of arcs drawn in the colour of what it belongs to. */
.sc-top::before, .sc-bot::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--sc-h);
  background: inherit;
  -webkit-mask: url("../img/scallop.svg") 0 0 / var(--sc-w) var(--sc-h) repeat-x;
          mask: url("../img/scallop.svg") 0 0 / var(--sc-w) var(--sc-h) repeat-x;
  pointer-events: none;
}
.sc-top::before { bottom: 100%; }
.sc-bot::after { top: 100%; transform: scaleY(-1); }

/* ---------- buttons: the badge's oval, flat ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: var(--step-body); text-decoration: none; line-height: 1.1;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--paper); } }
.btn-s { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { text-underline-offset: 8px; } }

.h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }

/* ---------- hero: card beside the room ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  padding: var(--m); min-height: 100svh;
}
.hero-card {
  position: relative; background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(22px + 40px) clamp(20px, 3vw, 56px) 24px;
  min-height: calc(100svh - 2 * var(--m));
  container-type: inline-size;
}
/* the card's top edge is cut into the badge's scallops */
.hero-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 22px;
  background: var(--bg);
  -webkit-mask: url("../img/scallop.svg") 0 0 / 44px 22px repeat-x; mask: url("../img/scallop.svg") 0 0 / 44px 22px repeat-x;
  transform: scaleY(-1);
}
.hero-logo { width: clamp(130px, 12vw, 200px); height: auto; margin-bottom: auto; }
.hero-h {
  font-size: min(var(--step-display), 14.5cqi); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95;
  margin-top: 32px;
}
.hero-p { font-size: var(--step-lead); line-height: 1.35; max-width: 32ch; margin-top: 28px; }
.hero-card .btn { margin-top: 28px; background: var(--accent-ink); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .hero-card .btn:hover { background: var(--surface); } }
.estado { margin-top: 20px; font-size: var(--step-body); font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.estado.cerrado::before, .estado-big.cerrado::before { opacity: 0.4; }
.estado::before, .estado-big::before, .hours tr.hoy th::before {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("../img/badge.svg") center / contain no-repeat; mask: url("../img/badge.svg") center / contain no-repeat;
}
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin-top: auto; padding-top: 24px; font-size: var(--step-small); font-weight: 500; }
.hero-links a { text-decoration: none; padding: 12px 0; position: relative; }
.hero-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hero-links a:hover::after { transform: scaleX(1); } }

.hero-room { position: relative; overflow: hidden; background: var(--surface); height: calc(100svh - 2 * var(--m)); position: sticky; top: var(--m); }
.hero-room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: 0; transition: opacity 1600ms ease; }
.hero-room img.on { opacity: 1; }
.hero-room img.on { animation: drift 14s var(--ease-soft) both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
/* the photograph's foot is the doily's lace edge */
.hero-room::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; z-index: 2;
  background: var(--bg);
  -webkit-mask: url("../img/scallop.svg") 0 0 / 44px 22px repeat-x; mask: url("../img/scallop.svg") 0 0 / 44px 22px repeat-x;
}

/* ---------- gallery: photo tiles with label strips ---------- */
.gal { padding: var(--sec) var(--m) 0; }
.gal-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtros button {
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); font-weight: 500;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
  touch-action: manipulation;
}
.filtros button:active { transform: scale(0.96); }
.filtros button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .filtros button[aria-pressed="false"]:hover { background: var(--t2); } }

.cat + .cat { margin-top: 72px; }
.cat-h { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 20px; }
.js .cat-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.js .cat { display: none; }
.js .cat.on { display: block; }
.js .cat + .cat { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gap); }
.tile { display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); transition: transform 600ms var(--ease-out); }
.tile { overflow: hidden; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }
.strip { flex: 1; position: relative; z-index: 1; min-height: 96px; padding: 14px 14px 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.strip::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--sc-h); background: inherit; -webkit-mask: url("../img/scallop.svg") 0 0 / var(--sc-w) var(--sc-h) repeat-x; mask: url("../img/scallop.svg") 0 0 / var(--sc-w) var(--sc-h) repeat-x; }
.strip-name { font-weight: 600; font-size: var(--step-body); line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.strip-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--step-small); }
.strip-row a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; padding: 12px 0; margin: -12px 0; white-space: nowrap; }
/* four colour pairs, rotating */
.tile:nth-child(4n+1) .strip { background: var(--accent); color: var(--accent-ink); }
.tile:nth-child(4n+2) .strip { background: var(--lilac); color: var(--accent-ink); }
.tile:nth-child(4n+3) .strip { background: var(--t2); color: var(--paper); }
.tile:nth-child(4n+4) .strip { background: var(--paper); color: var(--accent-ink); }
.tile-word a {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none;
  background: var(--t3); color: var(--accent-ink); padding: 20px 14px 14px; min-height: 100%;
  transition: background-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .tile-word a:hover { background: var(--accent); } }
.tile-word .word { flex: none; margin: auto 0; display: block; text-align: center; font-size: clamp(2.25rem, 1rem + 3vw, 4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; padding: 24px 0; }
.tile-word .strip-row span:last-child { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gal-more { margin-top: 48px; font-size: var(--step-body); }

/* ---------- how to order: accordion of tinted panels ---------- */
.how { padding: var(--sec) var(--m) 0; }
.how-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; margin-bottom: 64px; }
.how-intro .h2 { grid-column: 1 / 6; }
.how-intro p { grid-column: 7 / 12; font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.acc { display: flex; height: 560px; }
.stage { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow 450ms var(--ease-out); }
.stage.open { flex-grow: 5.2; }
/* a closed stage shows it opens: the badge at its top, a lighter tint under the pointer */
.stage:not(.open) h3 button::before { content: ""; position: absolute; bottom: 28px; /* the label is turned 180°, so bottom is the visual top */ left: 50%; width: 18px; height: 18px; margin-left: -9px; background: currentColor; -webkit-mask: url("../img/badge.svg") center / contain no-repeat; mask: url("../img/badge.svg") center / contain no-repeat; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .stage:not(.open):hover { filter: brightness(1.12); } .stage:not(.open):hover h3 button::before { transform: scale(1.3); } }
.stage { transition: flex-grow 450ms var(--ease-out), filter var(--t-hover) ease; }
.s1 { background: var(--t1); color: var(--ink); }
.s2 { background: var(--t2); color: var(--paper); }
.s3 { background: var(--t3); color: var(--accent-ink); }
.s4 { background: var(--t4); color: var(--accent-ink); }
.stage h3 { position: absolute; inset: 0; z-index: 2; }
.stage h3 button {
  position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; padding: 0;
  font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; text-align: left;
}
.stage h3 button:focus-visible { outline-offset: -6px; }
/* closed: the name reads upward from the bottom-left */
.stage:not(.open) h3 button { writing-mode: vertical-rl; transform: rotate(180deg); padding: 24px 0 0 0; text-align: right; display: flex; align-items: center; justify-content: flex-start; }
.stage.open h3 { inset: auto; top: 32px; left: 32px; right: calc(46% + 24px); }
.stage.open h3 button { position: static; font-size: var(--step-head); letter-spacing: -0.035em; line-height: 1; cursor: default; }
.stage-body { position: absolute; inset: 0; display: grid; grid-template-columns: 54% 46%; }
.js .stage-body { opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s 300ms; }
.js .stage.open .stage-body { opacity: 1; visibility: visible; transition: opacity 400ms 200ms ease, visibility 0s; }
.stage-text { padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 24px; }
.stage-text p { max-width: 30ch; font-size: var(--step-body); }
.stage-body img { width: 100%; height: 100%; object-fit: cover; }
.s1 .btn { background: var(--accent); color: var(--accent-ink); }
.s2 .btn { background: var(--paper); color: var(--accent-ink); }
.s3 .btn, .s4 .btn { background: var(--accent-ink); color: var(--accent); }

/* without script every stage is open, side by side */
html:not(.js) .acc { height: auto; flex-wrap: wrap; }
html:not(.js) .stage { flex: 1 1 280px; }
html:not(.js) .stage h3, html:not(.js) .stage h3 button { position: static; writing-mode: horizontal-tb; transform: none; padding: 24px 24px 0; font-size: var(--step-lead); text-align: left; cursor: default; }
html:not(.js) .stage-body { position: static; grid-template-columns: 1fr; }
html:not(.js) .stage-text { padding: 16px 24px 24px; }
html:not(.js) .stage-body img { height: auto; aspect-ratio: 4 / 3; }
html:not(.js) .stage h3 button::before, html:not(.js) .stage h3 button::after { display: none; }

/* ---------- about: inset panel, portrait in the badge ---------- */
.about { padding: var(--sec) var(--m) 0; }
.about-panel {
  position: relative; overflow: hidden; background: var(--surface); color: var(--ink);
  min-height: 104svh; padding: 56px 56px 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: var(--gap);
}
.about-h { grid-column: 1 / 7; grid-row: 1; font-size: var(--step-display); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; max-width: 8em; }
.about-text { grid-column: 8 / 13; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-start; gap: 56px; max-width: 420px; padding-top: 8px; }
.about-text h3 { font-size: var(--step-lead); font-weight: 600; margin-bottom: 12px; }
.about-text p { font-size: var(--step-body); }
.about-photo { grid-column: 1 / 7; grid-row: 2; margin-top: 56px; margin-bottom: -18%; align-self: end; width: min(38vw, 560px); }
.about-photo img {
  width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; object-position: 50% 30%;
  -webkit-mask: url("../img/badge.svg") center / 100% 100% no-repeat; mask: url("../img/badge.svg") center / 100% 100% no-repeat;
}

/* ---------- the band: the page turns from plum to pink along one lace edge ---------- */
.band { position: relative; height: 0; margin-top: var(--sec); background: var(--accent); }
.band::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: var(--accent); -webkit-mask: url("../img/scallop.svg") 0 0 / 44px 22px repeat-x; mask: url("../img/scallop.svg") 0 0 / 44px 22px repeat-x; }

/* ---------- order: the clip-out coupon ---------- */
.order { background: var(--accent); color: var(--accent-ink); padding: 120px var(--m) 60px; }
.coupon {
  position: relative; max-width: 1180px; margin: 0 auto; background: var(--t2); color: var(--paper);
  display: grid; grid-template-columns: 46% 1fr; min-height: 480px; overflow: hidden;
}
.coupon-left { position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-right: 5px dotted var(--accent); }
/* the two notches where the scissors go in, in the ground colour */
.coupon-left::before, .coupon-left::after { content: ""; position: absolute; right: -16.5px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
.coupon-left::before { top: -14px; }
.coupon-left::after { bottom: -14px; }
.coupon-h { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: var(--paper); }
.preview-label { font-size: var(--step-small); font-weight: 500; margin-bottom: 8px; }
.coupon-p { font-size: var(--step-body); max-width: 30ch; }
.preview { margin-top: 14px; padding: 16px 18px; background: var(--t1); }
.preview-msg { font-size: var(--step-body); line-height: 1.4; min-height: 2.8em; color: var(--ink); }
.preview-label { color: var(--paper); }
.coupon-right { padding: 40px 48px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.coupon-right label { font-size: var(--step-small); font-weight: 500; margin-top: 8px; }
.coupon-right label:first-child { margin-top: 0; }
.coupon-right select, .coupon-right input:not([type="hidden"]) {
  width: 100%; height: 54px; border: 0; border-radius: 0; padding: 0 18px; background: var(--field); color: var(--paper); border-bottom: 2px solid var(--paper);
  font-size: 16px; -webkit-appearance: none; appearance: none;
}
.coupon-right select { background-image: url("../img/chevron.svg"); background-repeat: no-repeat; background-position: right 18px center; background-size: 14px; padding-right: 44px; }
.coupon-right input::placeholder { color: var(--hint); opacity: 1; }
.coupon-right input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.8; }
.coupon-right select:focus-visible, .coupon-right input:focus-visible { outline: 3px solid var(--paper); outline-offset: 0; }
.submit {
  margin-top: 6px; height: 58px; border: 0; border-radius: 999px; cursor: pointer; background: var(--accent-ink); color: var(--accent);
  font-weight: 600; font-size: var(--step-body); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; touch-action: manipulation;
}
.submit:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .submit:hover { background: var(--surface); } }

/* ---------- visit: address + the printed sheet ---------- */
.visit {
  background: var(--accent); color: var(--accent-ink);
  padding: 140px var(--m) 80px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start;
}
.visit-left { grid-column: 1 / 7; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 64px; }
.addr { font-size: var(--step-lead); line-height: 1.35; }
.addr strong { display: block; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-bottom: 10px; }
.estado-big { display: inline-flex; align-items: center; gap: 12px; font-size: var(--step-lead); font-weight: 500; }
.estado-big::before { width: 20px; height: 20px; }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.visit .btn { background: var(--accent-ink); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .visit .btn:hover { background: var(--surface); } }
.visit .link { display: inline-flex; min-height: 48px; align-items: center; font-size: var(--step-lead); }
.sheet {
  grid-column: 8 / 13; position: relative; background: var(--paper); color: var(--accent-ink);
  padding: 64px clamp(24px, 3.5vw, 56px); text-align: center; margin: var(--sc-h) 0;
}
.sheet-h { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.sheet-note { font-size: var(--step-small); margin-top: 12px; }
.hours { width: 100%; max-width: 420px; margin: 40px auto 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 0; font-size: var(--step-body); }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; }
.hours tr.hoy th, .hours tr.hoy td { font-weight: 700; }
.hours tr.hoy th { display: flex; align-items: center; gap: 10px; }
.hours tr.hoy th::before { margin-left: -24px; }

/* ---------- footer: the badge, built large ---------- */
.foot { background: var(--bg); color: var(--ink); padding: 80px var(--m) calc(32px + env(safe-area-inset-bottom)); }
.mark {
  height: 38svh; min-height: 260px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  -webkit-mask: url("../img/badge.svg") center / 100% 100% no-repeat; mask: url("../img/badge.svg") center / 100% 100% no-repeat;
}
.mark span { font-size: clamp(2.75rem, 1rem + 8vw, 9rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.9; text-align: center; padding: 0 12%; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); margin-top: 56px; font-size: var(--step-small); }
.foot-cols nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot-cols a { text-decoration: none; padding: 12px 0; }
@media (hover: hover) and (pointer: fine) { .foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.foot-addr { line-height: 1.9; }
.foot-addr { line-height: 1.5; }
.foot-addr a { display: inline-block; padding: 12px 0; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; font-size: var(--step-small); }

/* ---------- phone bar ---------- */
.bar { display: none; }

/* ---------- entrances (only when the script runs) ---------- */
.js .rv { opacity: 0; transform: translateY(24px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo); transition-delay: var(--d, 0ms); }
/* a filter is pressed many times: its tiles come back quickly */
.js .cat.quick .rv.in { transition-duration: 320ms; }
.js-early .hero-card > * { animation: rise 800ms var(--ease-expo) both; }
.js-early .hero-card > :nth-child(2) { animation-delay: 80ms; }
.js-early .hero-card > :nth-child(3) { animation-delay: 160ms; }
.js-early .hero-card > :nth-child(4) { animation-delay: 240ms; }
.js-early .hero-card > :nth-child(5) { animation-delay: 300ms; }
.js-early .hero-card > :nth-child(6) { animation-delay: 360ms; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
/* the title is readable on the first frame: it only settles, it never fades */
.js-early .hero-card > .hero-h { animation-name: settle; animation-delay: 0ms; }
@keyframes settle { from { transform: translateY(14px); } to { transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-text { grid-column: 7 / 13; }
}
@media (max-width: 900px) {
  :root { --sec: 112px; }
  .hero { grid-template-columns: 1fr; padding-bottom: 0; min-height: 0; }
  .hero-room { order: -1; position: relative; top: 0; height: 52svh; }
  .hero-card { margin-top: -24px; min-height: 0; padding-top: calc(22px + 32px); z-index: 1; }
  .hero-card::before { display: none; }
  .hero-card { -webkit-mask: none; }
  .hero-room::after { background: var(--accent); }
  .hero-logo { width: 140px; margin-bottom: 0; order: 0; }
  .hero-h { margin-top: 24px; }
  .hero-links { margin-top: 32px; padding-top: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; }
  .how-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .how-intro .h2, .how-intro p { grid-column: 1; }
  .acc { flex-direction: column; height: auto; }
  .stage { flex: none; }
  .stage h3, .stage.open h3 { position: relative; inset: auto; top: auto; left: auto; right: auto; }
  .stage h3 button, .stage:not(.open) h3 button, .stage.open h3 button {
    position: relative; writing-mode: horizontal-tb; transform: none; display: flex; align-items: center; justify-content: space-between;
    min-height: 64px; padding: 0 20px; font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.2; cursor: pointer; text-align: left;
  }
  .stage:not(.open) h3 button::before { display: none; }
  .stage h3 button::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("../img/badge.svg") center / contain no-repeat; mask: url("../img/badge.svg") center / contain no-repeat; transition: transform var(--t-ui) var(--ease-out); }
  .stage.open h3 button::after { transform: scale(1.5); }
  .stage-body, .js .stage-body { position: relative; inset: auto; display: grid; grid-template-columns: 1fr; opacity: 1; visibility: visible; }
  .js .stage:not(.open) .stage-body { display: none; }
  .stage-text { padding: 0 20px 24px; }
  .stage-body img { height: auto; aspect-ratio: 4 / 3; }
  @media (min-width: 600px) { .stage.open .stage-body { grid-template-columns: 1fr 1fr; } .stage-text { padding-bottom: 32px; } .stage-body img { aspect-ratio: 1; } }
  .about-panel { display: flex; flex-direction: column; padding: 32px 24px 0; min-height: 0; }
  .about-h { font-size: clamp(2.5rem, 1rem + 6vw, 4rem); }
  .about-text { margin-top: 32px; gap: 40px; max-width: none; }
  .about-photo { width: 86%; max-width: 520px; align-self: center; margin: 48px 0 -22%; }
  .coupon { grid-template-columns: 1fr; min-height: 0; }
  .coupon-left { border-right: 0; border-bottom: 5px dotted var(--accent); padding: 32px 24px; }
  .coupon-left::before, .coupon-left::after { top: auto; bottom: -16.5px; right: auto; }
  .coupon-left::before { left: -14px; }
  .coupon-left::after { right: -14px; }
  .coupon-right { padding: 32px 24px; }
  .order { padding-top: 72px; }
  .visit { grid-template-columns: 1fr; padding-top: 96px; gap: 64px; }
  .visit-left, .sheet { grid-column: 1; }
  .visit-left { padding-top: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom)); background: var(--bg);
    transform: translateY(110%); transition: transform 320ms var(--ease-out);
  }
  .bar.show { transform: none; }
  .bar .btn { flex: 1; }
}
@media (max-width: 520px) {
  .hero-room { height: 40svh; }
  .hero-card { padding: 40px 20px 20px; }
  .hero-logo { width: 92px; }
  .hero-h { margin-top: 16px; }
  .hero-p { margin-top: 16px; font-size: var(--step-body); }
  .hero-card .btn { margin-top: 20px; }
  .estado { margin-top: 14px; }
  .hero-links { margin-top: 20px; gap: 0 20px; }
  .hero-h { font-size: clamp(2.5rem, 0.6rem + 9vw, 3.5rem); }
  .gal-head { margin-bottom: 28px; }
  .filtros { width: 100%; }
  .filtros { flex-wrap: nowrap; gap: 6px; }
  .filtros button { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: var(--step-small); }
  .strip { min-height: 0; padding: 12px 10px 10px; }
  .strip-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .strip-row span { display: none; }
  .tile-word .strip-row span { display: inline; }
  .tile-word .strip-row span:first-child { display: none; }
  .tile-word .word { font-size: 2rem; }
  .sheet { padding: 48px 24px; }
  .mark { height: 24svh; min-height: 200px; }
  .mark span { font-size: clamp(2.25rem, 0.5rem + 9vw, 3rem); }
  .foot-last { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* fewer, gentler: colour and opacity stay, travel and scale go */
  *, *::before, *::after { animation: none !important; }
  .btn, .submit, .filtros button, .tile img, .hero-links a::after, .stage { transition-property: background-color, color, opacity !important; }
  .btn:active, .submit:active, .filtros button:active { transform: none; }
  .js .rv { opacity: 1; transform: none; }
  .bar { transition: none; }
}
