/* =====================================================================
   Fierro — estilos. Todos los colores, tipos y tiempos son tokens en :root.
   Dirección: "la frase es el layout" · Libre Franklin + Source Serif 4 ·
   campo cobalto, papel claro, un solo acento amarillo en la acción.
   ===================================================================== */

:root {
  color-scheme: light;

  /* Colour roles */
  --cobalt: #0034eb;
  --cobalt-2: #002ccc;       /* tone step on cobalt */
  --paper: #f3f3ef;
  --paper-2: #e8e8e2;        /* tone step on paper */
  --paper-3: #dcdcd4;
  --white: #ffffff;
  --ink: #0b0d12;
  --ink-2: #3b404c;          /* secondary text on paper (8.9:1) */
  --ink-field: #12151c;      /* owner demo field */
  --on-cobalt: #ffffff;      /* 7.8:1 on cobalt */
  --on-cobalt-2: #c5d0ff;    /* 5.1:1 on cobalt */
  --accent: #e9e34a;         /* the action */
  --accent-press: #d9d33a;
  --accent-ink: #111111;
  --line: #858a96;           /* form controls only, 3.4:1 on white */
  --danger: #b42318;         /* 6.3:1 on paper */
  --focus: var(--cobalt);

  /* Type */
  --f-display: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --s-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --s-head: clamp(2.25rem, 1.2rem + 3.8vw, 4.5rem);
  --s-display: clamp(3.5rem, 13vw, 12.5rem);

  /* Space */
  --margin: clamp(16px, 3.5vw, 40px);
  --gutter: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 12vw, 176px);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 140ms;
  --t-ui: 200ms;
}

/* ------------------------------ Base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--s-body)/1.55 var(--f-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:where(ul[role="list"]) { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; }
[x-cloak] { display: none !important; }
:target { scroll-margin-top: 24px; }
section[id], footer[id] { scroll-margin-top: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 14px 16px; min-height: 44px;
  font: 600 var(--s-body)/1 var(--f-display); text-decoration: none;
}
.skip:focus { top: 16px; }
.noscript { background: var(--accent); color: var(--accent-ink); padding: 16px var(--margin); font-family: var(--f-display); }

.wrap { width: 100%; max-width: 1520px; margin-inline: auto; padding-inline: var(--margin); }
.hide-sm { display: none; }
.show-sm { display: inline; }
@media (min-width: 760px) { .hide-sm { display: revert; } .show-sm { display: none; } }

/* ------------------------------ Fields ------------------------------ */
.field-cobalt { background: var(--cobalt); color: var(--on-cobalt); --focus: var(--accent); }
.field-paper  { background: var(--paper);  color: var(--ink); }
.field-paper2 { background: var(--paper-2); color: var(--ink); }
.field-ink    { background: var(--ink-field); color: var(--white); --focus: var(--accent); }

/* ------------------------------ Type ------------------------------ */
.title {
  font: 700 var(--s-head)/0.98 var(--f-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 14ch;
}
.sub { font: 700 var(--s-lead)/1.15 var(--f-display); letter-spacing: -0.015em; }
.body-lg { font-size: var(--s-lead); line-height: 1.45; max-width: 34ch; text-wrap: pretty; }
.small { font-size: var(--s-small); line-height: 1.5; }
.field-cobalt .small, .field-cobalt .body-lg { color: var(--on-cobalt); }

/* ------------------------------ Buttons & links ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.3em;
  border: 0; border-radius: 0; cursor: pointer;
  font: 600 var(--s-body)/1.1 var(--f-display); letter-spacing: -0.005em;
  text-decoration: none; text-align: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 1em; font-size: var(--s-small); }
.btn-lg { min-height: 56px; padding: 0 1.6em; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-dark { background: #262a33; color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover { background: var(--accent-press); }
  .btn-ink:hover { background: #2a2e38; }
  .btn-dark:hover { background: #343944; }
}

.text-link, .inline-link {
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  font: 600 var(--s-body)/1.3 var(--f-display);
  text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em;
  transition: text-decoration-color var(--t-ui) ease, opacity var(--t-ui) ease;
}
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.inline-link { font: inherit; display: inline; }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover, .inline-link:hover { text-decoration-thickness: 0.14em; }
}

/* ------------------------------ Owner bar ------------------------------ */
.owner-bar { background: var(--accent); color: var(--accent-ink); font: 500 var(--s-small)/1.4 var(--f-display); --focus: var(--ink); }
.owner-bar-inner { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; justify-content: space-between; padding-block: 10px; }
.owner-bar-links { display: flex; gap: 20px; }
.owner-bar-links a { font-weight: 700; min-height: 32px; display: inline-flex; align-items: center; }

/* ------------------------------ Nav ------------------------------ */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px;
  font: 500 var(--s-small)/1 var(--f-display);
}
.wordmark {
  font: 800 1.125rem/1 var(--f-display); letter-spacing: -0.02em; text-transform: uppercase;
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); margin-left: auto; }
.nav-links a {
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
  font-size: 0.9375rem; color: var(--on-cobalt);
  text-decoration: underline 2px transparent; text-underline-offset: 0.35em;
  transition: text-decoration-color var(--t-ui) ease;
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { text-decoration-color: currentColor; } }

/* ------------------------------ Hero ------------------------------ */
.hero { min-height: 100svh; display: flex; flex-direction: column; }
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(32px, 6vh, 72px); }
.hero-title {
  font: 800 var(--s-display)/0.9 var(--f-display);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-left: -0.04em; /* optical alignment of the capitals with the margin */
}
.ht-line { display: block; }
@media (max-width: 759px) { .hero-title { font-size: 16vw; } }
.ht-line-1 { display: flex; align-items: baseline; gap: 0.12em; flex-wrap: wrap; }
.ht-strip {
  flex: 1 1 2.2em; min-width: 2.2em;
  height: 0.7em;                 /* cap height of Libre Franklin */
  overflow: hidden; position: relative;
  background: var(--cobalt-2);
}
.ht-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }

.status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.4em;
  margin-top: clamp(24px, 4vh, 44px);
  font: 500 var(--s-lead)/1.3 var(--f-display); letter-spacing: -0.01em;
}
.status strong { font-weight: 700; }
.status-dot { width: 0.6em; height: 0.6em; border-radius: 50%; flex: none; margin-right: 0.15em; }
.status.is-open .status-dot { background: var(--accent); }
.status.is-closed .status-dot { box-shadow: inset 0 0 0 2px currentColor; } /* taste-skill-ignore: ring shape of the closed-state dot, not a shadow */
.status-ink { margin-top: 20px; margin-bottom: 28px; }
.status-ink.is-open .status-dot { background: #138a3e; }

.hero-lead { margin-top: 16px; font-size: var(--s-lead); line-height: 1.45; max-width: 44ch; color: var(--on-cobalt); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  padding-block: 20px 28px;
  font: 500 var(--s-small)/1.4 var(--f-display); color: var(--on-cobalt-2);
}
.hero-facts a { color: var(--on-cobalt); }

/* ------------------------------ Sections & grid ------------------------------ */
.section { padding-block: var(--section); }
.grid-12 { display: grid; gap: clamp(72px, 9vw, 112px) var(--gutter); grid-template-columns: minmax(0, 1fr); }
.col-statement > * + * { margin-top: 24px; }
.col-side > * + * { margin-top: 20px; }
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-statement { grid-column: 1 / 6; }
  .col-side { grid-column: 7 / 13; align-self: end; }
  .col-main { grid-column: 6 / 13; }
  .col-half:first-child { grid-column: 1 / 6; }
  .col-half:last-child { grid-column: 7 / 13; }
  .sticky { position: sticky; top: 32px; align-self: start; }
}

/* ------------------------------ Pases ------------------------------ */
.price-block {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 0 0.15em; margin: 0.04em 0; line-height: 1.02;
  font-variant-numeric: tabular-nums lining-nums;
}
.conditions { display: grid; gap: 8px; max-width: 46ch; color: var(--ink-2); }
.conditions li { padding-left: 1.1em; position: relative; }
.conditions li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 0.45em; height: 0.45em; background: var(--ink-2); }

.pass-list { display: grid; gap: 6px; align-self: start; }
.pass {
  display: grid; gap: 12px 24px; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "main main" "price btn";
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--paper-2);
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.pass-main { grid-area: main; }
.pass-price { grid-area: price; display: flex; align-items: baseline; gap: 8px; }
.pass-btn { grid-area: btn; min-width: 9.5em; }
.pass-name { font: 700 var(--s-lead)/1.15 var(--f-display); letter-spacing: -0.015em; }
.pass-scope { margin-top: 6px; color: var(--ink-2); max-width: 46ch; }
.pass-amount { font: 700 var(--s-lead)/1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
.pass-period { font-size: var(--s-small); color: var(--ink-2); }
.pass.is-picked { background: var(--cobalt); color: var(--on-cobalt); --focus: var(--accent); }
.pass.is-picked .pass-scope, .pass.is-picked .pass-period { color: var(--on-cobalt-2); }
.pass.is-picked .pass-btn { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .pass:not(.is-picked):hover { background: var(--paper-3); } }
@media (min-width: 640px) {
  .pass { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main price btn"; }
  .pass-price { flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
}

/* ------------------------------ Espacio ------------------------------ */
.equipment {
  display: grid; gap: 0 var(--gutter); align-self: end;
  font: 600 var(--s-lead)/1.25 var(--f-display); letter-spacing: -0.01em;
}
.equipment li { padding-block: 14px; }
@media (min-width: 640px) { .equipment { grid-template-columns: 1fr 1fr; } }

.gallery {
  display: grid; gap: var(--gutter); margin-top: clamp(56px, 7vw, 104px);
  grid-template-columns: minmax(0, 1fr);
}
.ph { display: flex; flex-direction: column; min-width: 0; }
.ph-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cobalt-2); }
.ph-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ph:hover .ph-frame img { transform: scale(1.035); } }
.ph figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding-top: 12px; font: 600 var(--s-body)/1.3 var(--f-display);
}
.ph-sample { font-weight: 500; font-size: var(--s-small); color: var(--on-cobalt-2); }

@media (min-width: 720px) and (max-width: 1023px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .ph-1 { grid-column: 1 / -1; }
  .ph-1 .ph-frame { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ph-1 { grid-column: 1 / 8; grid-row: 1 / 3; }
  .ph-1 .ph-frame { aspect-ratio: auto; flex: 1; min-height: 0; }
  .ph-2 { grid-column: 8 / 13; grid-row: 1; }
  .ph-3 { grid-column: 8 / 13; grid-row: 2; }
  .ph-4 { grid-column: 1 / 6; grid-row: 3; }
  .ph-4 .ph-frame { aspect-ratio: 1 / 1; }
  .ph-5 { grid-column: 6 / 13; grid-row: 3; }
  .ph-5 .ph-frame { aspect-ratio: 7 / 5; }
  .ph:nth-child(n + 7) { grid-column: span 6; grid-row: auto; } /* extra photos from CONFIG */
}

/* ------------------------------ Form ------------------------------ */
.summary { background: var(--paper-2); padding: 20px 24px; max-width: 40ch; }
.summary-label { font: 600 var(--s-small)/1.3 var(--f-display); color: var(--ink-2); }
.summary-text { margin-top: 4px; font: 700 var(--s-body)/1.35 var(--f-display); }

.form { display: grid; gap: clamp(40px, 5vw, 56px); }
.fs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.fs-title { padding: 0; margin-bottom: 16px; font: 700 var(--s-lead)/1.15 var(--f-display); letter-spacing: -0.015em; }

.choices { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .choices-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .choices-3 { grid-template-columns: repeat(3, 1fr); } }
.choice {
  position: relative; display: grid; gap: 4px; cursor: pointer;
  min-height: 64px; padding: 14px 16px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); /* taste-skill-ignore: form control border */
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, box-shadow var(--t-ui) ease, transform var(--t-press) var(--ease-out);
}
.choice:active { transform: scale(0.985); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice-name { font: 700 var(--s-body)/1.2 var(--f-display); }
.choice-meta { font-size: var(--s-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.choice.is-checked { background: var(--cobalt); color: var(--on-cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt); } /* taste-skill-ignore: form control border */
.choice.is-checked .choice-meta { color: var(--on-cobalt-2); }
.choice:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.choice.is-checked:has(input:focus-visible) { outline-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .choice:not(.is-checked):hover { box-shadow: inset 0 0 0 2px var(--ink); } } /* taste-skill-ignore: form control border */

.field { display: grid; gap: 8px; }
.field label { font: 600 var(--s-body)/1.3 var(--f-display); }
.optional { font-weight: 500; color: var(--ink-2); }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 max(16px, var(--s-body))/1.4 var(--f-text); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 0;
  transition: border-color var(--t-ui) ease, box-shadow var(--t-ui) ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #6b707c; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(0, 52, 235, 0.25); } /* taste-skill-ignore: form field focus ring */
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-help { font-size: var(--s-small); color: var(--ink-2); }
.field-error { font: 600 var(--s-small)/1.4 var(--f-display); color: var(--danger); }
.fs > .field + .field { margin-top: 8px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font: 400 var(--s-body)/1.5 var(--f-text) !important; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--cobalt); cursor: pointer; }
.consent .inline-link { font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot hidden off-screen */

.form-actions { display: grid; gap: 14px; justify-items: start; }
.form-actions .small a { font-weight: 600; }
.btn[aria-disabled="true"] { cursor: progress; }
.spinner {
  width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result { background: var(--paper-2); padding: clamp(28px, 4vw, 48px); outline: none; }
.result:focus-visible { outline: 3px solid var(--cobalt); }
.result > div > * + * { margin-top: 18px; }
.result-title { font: 700 var(--s-head)/1 var(--f-display); letter-spacing: -0.03em; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); max-width: 18ch; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 28px !important; }

/* ------------------------------ Horarios & mapa ------------------------------ */
.hours { width: 100%; max-width: 520px; border-collapse: collapse; font: 500 var(--s-body)/1.3 var(--f-display); font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 14px 16px; text-align: left; }
.hours td { text-align: right; }
.hours th { font-weight: 600; }
.hours tbody tr:nth-child(even) { background: var(--paper); }
.hours tr.is-today { background: var(--ink) !important; color: var(--paper); }
.today-tag { font-weight: 500; color: var(--accent); }
.special { margin-top: 16px; font-weight: 600; }
.specials { margin-top: 36px; }
.specials ul { margin-top: 12px; display: grid; gap: 6px; }

.address { margin-top: 24px; font: 700 var(--s-lead)/1.25 var(--f-display); letter-spacing: -0.01em; }
.place-notes { margin-top: 16px; display: grid; gap: 4px; color: var(--ink-2); }
.map { margin-top: 28px; aspect-ratio: 4 / 3; background: var(--paper-3); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; }
.map + .text-link { margin-top: 12px; }

/* ------------------------------ Footer ------------------------------ */
.footer { min-height: 90svh; display: flex; flex-direction: column; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 40px; }
.footer-notes { display: grid; gap: 4px; font: 500 0.9375rem/1.45 var(--f-display); color: var(--on-cobalt-2); max-width: 60ch; }
.footer-main { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-block: clamp(72px, 12vh, 160px) clamp(40px, 6vh, 72px); }
.footer-lead { font-size: var(--s-lead); }
.footer-phone {
  display: block; margin-top: 16px; margin-left: -0.05em; padding-top: 0.04em;
  font: 800 clamp(3.25rem, 14vw, 13rem)/1 var(--f-display); letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
  text-decoration-thickness: 0.05em; text-underline-offset: 0.08em;
}
.footer-social { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 32px; font: 600 var(--s-lead)/1.3 var(--f-display); }
.footer-social a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-meta { display: grid; gap: 8px; font: 500 var(--s-small)/1.4 var(--f-display); color: var(--on-cobalt-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal .inline-link { color: var(--on-cobalt); min-height: 44px; }
.made-by { display: inline-flex; align-items: center; gap: 10px; }
.made-by img { height: 18px; width: auto; }
@media (min-width: 900px) {
  .footer-meta { grid-template-columns: 1fr auto auto auto; align-items: center; gap: 32px; }
}

/* ------------------------------ Mobile action bar ------------------------------ */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 10px var(--margin) calc(10px + env(safe-area-inset-bottom));
  background: var(--ink);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18); /* it floats */ /* taste-skill-ignore: floating bar overlays content */
  transform: translateY(110%); visibility: hidden;
  transition: transform 260ms var(--ease-out), visibility 0s linear 260ms;
  --focus: var(--accent);
}
.mbar.is-on { transform: none; visibility: visible; transition: transform 300ms var(--ease-out), visibility 0s; }
@media (min-width: 900px) { .mbar { display: none; } }

/* ------------------------------ Dialogs ------------------------------ */
.dlg {
  width: min(680px, calc(100vw - 32px)); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: 0;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: modal overlay */
}
.dlg::backdrop { background: rgba(5, 10, 40, 0.6); }
.dlg-body { padding: clamp(24px, 4vw, 44px); }
.dlg-body > * + * { margin-top: 14px; }
.dlg-body h3 { margin-top: 28px; font: 700 var(--s-body)/1.3 var(--f-display); }
.dlg-body ul { padding-left: 1.2em; display: grid; gap: 6px; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dlg-title { font: 700 clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem)/1.05 var(--f-display); letter-spacing: -0.025em; }
.dlg-close {
  min-height: 44px; padding: 0 14px; cursor: pointer; border: 0; border-radius: 0;
  background: var(--ink); color: var(--paper); font: 600 var(--s-small)/1 var(--f-display);
  transition: transform var(--t-press) var(--ease-out);
}
.dlg-close:active { transform: scale(0.97); }

/* ------------------------------ Owner demo ------------------------------ */
.owner .title { max-width: 16ch; }
.owner .body-lg { color: #d9dce3; }
.integration { font: 500 var(--s-body)/1.5 var(--f-display); color: #d9dce3; max-width: 52ch; }
.integration strong { color: var(--accent); }
.setup { max-width: 60ch; background: #1d212b; padding: 4px 20px; }
.setup summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font: 600 var(--s-body)/1.3 var(--f-display); }
.setup ol { padding: 0 0 16px 1.2em; display: grid; gap: 8px; color: #d9dce3; }
.setup code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9em; color: var(--white); }
.owner-note { margin-top: 16px; font: 500 var(--s-small)/1.5 var(--f-display); color: #b6bac4; max-width: 70ch; }

/* The sheet is a real interface fragment: its own lines and type are intentional. */
.sheet { background: var(--white); color: #202124; margin-top: 48px; font-family: Arial, 'Helvetica Neue', sans-serif; --focus: var(--cobalt); }
.sheet-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 12px 14px; background: #f1f3f4; border-bottom: 1px solid #dadce0; } /* taste-skill-ignore: data-ui spreadsheet fragment */
.sheet-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.sheet-field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.sheet-field select { min-height: 40px; padding: 0 10px; font: 14px Arial, sans-serif; border: 1px solid #9aa0a6; background: var(--white); border-radius: 4px; }
.sheet-btn { min-height: 40px; padding: 0 12px; font: 14px Arial, sans-serif; background: var(--white); border: 1px solid #9aa0a6; border-radius: 4px; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) ease; } /* taste-skill-ignore: data-ui spreadsheet fragment */
.sheet-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .sheet-btn:hover { background: #e8eaed; } }
.sheet-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; min-height: 40px; cursor: pointer; }
.sheet-check input { width: 18px; height: 18px; accent-color: #1a73e8; }
.sheet-counts { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 10px 14px; font-size: 14px; color: #3c4043; border-bottom: 1px solid #dadce0; } /* taste-skill-ignore: data-ui spreadsheet fragment */
.sheet-counts strong { color: #202124; }
.sheet-scroll { overflow-x: auto; position: relative; min-height: 220px; }
.sheet-table { border-collapse: collapse; width: 100%; min-width: 1040px; font-size: 14px; }
.sheet-table th, .sheet-table td { border: 1px solid #e2e3e5; padding: 8px 10px; text-align: left; vertical-align: top; }
.sheet-table thead th { background: #f8f9fa; font-weight: 700; position: sticky; top: 0; }
.sheet-table .rownum { width: 44px; background: #f8f9fa; color: #5f6368; text-align: center; }
.sheet-table .nowrap { white-space: nowrap; }
.sheet-table .wide { min-width: 220px; }
.sheet-table a { color: #1558d6; }
.sheet-table tr.is-local td:not(.rownum) { background: #fef7e0; }
.estado { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 13px; white-space: nowrap; background: #e8eaed; color: #202124; }
.estado[data-estado="Nuevo"] { background: #fef7cd; color: #5c4a00; }
.estado[data-estado="Contactado"] { background: #d2e3fc; color: #0b3d91; }
.estado[data-estado="Vino"] { background: #ceead6; color: #0d5323; }
.estado[data-estado="Se anotó"] { background: #202124; color: var(--white); }
.sheet-empty { padding: 40px 20px; display: grid; justify-items: center; gap: 10px; text-align: center; color: #3c4043; }
.sheet-empty h3 { font: 700 18px/1.3 Arial, sans-serif; color: #202124; }
.sheet-tab { background: #f1f3f4; border-top: 1px solid #dadce0; padding: 0 14px; font-size: 13px; } /* taste-skill-ignore: data-ui spreadsheet fragment */
.sheet-tab span { display: inline-block; padding: 8px 16px; background: var(--white); color: #188038; font-weight: 700; border-bottom: 3px solid #188038; }

/* =========================== Motion layer =========================== */
/* Only under .motion (set when prefers-reduced-motion is not "reduce"). */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes shutter { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }

.motion .hero-title .ht-word,
.motion .hero-title .ht-line-2 { display: inline-block; animation: rise 800ms var(--ease-out) both; }
.motion .hero-title .ht-line-2 { display: block; animation-delay: 120ms; }
.motion .ht-strip { animation: shutter 1100ms var(--ease-in-out) 200ms both; }
.motion .ht-strip img { animation: settle 1400ms var(--ease-out) 200ms both; }
.motion .hero .status { animation: rise 700ms var(--ease-out) 380ms both; }
.motion .hero-lead { animation: rise 700ms var(--ease-out) 460ms both; }
.motion .hero-actions { animation: rise 700ms var(--ease-out) 540ms both; }
.motion .hero-facts { animation: rise 700ms var(--ease-out) 640ms both; }

.motion [data-reveal] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 750ms var(--ease-out);
}
.motion [data-reveal].is-in > * { opacity: 1; transform: none; }
.motion [data-reveal] > *:nth-child(2) { transition-delay: 70ms; }
.motion [data-reveal] > *:nth-child(3) { transition-delay: 140ms; }
.motion [data-reveal] > *:nth-child(4) { transition-delay: 210ms; }
.motion [data-reveal] > *:nth-child(5) { transition-delay: 280ms; }
.motion [data-reveal] > *:nth-child(n + 6) { transition-delay: 340ms; }

/* Dialog enter (where @starting-style is supported; elsewhere it simply appears). */
.motion .dlg[open] { animation: dlg-in 220ms var(--ease-out); }
.motion .dlg[open]::backdrop { animation: fade-in 220ms ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.motion .result:not([style*="display: none"]) > div { animation: rise 420ms var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 1400ms; }
  .ph-frame img, .nav-links a, .mbar { transition: none; }
}
