/* KickTire v2: El talonario. The page is a printed sales form. */

@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/sofia-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("fonts/sofia-sans-extra-condensed-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  /* Brand colours, sampled from assets/brand: orange, near black, cream */
  --orange: #ff7a45;
  --orange-strong: #f2672f;
  --on-orange: #1a0d06;
  /* Sheets: the original (brand cream) and its carbon copies */
  --paper: #f5efe6;
  --surface: #ebe2d4;
  --canary: #f3d73a;
  --pink: #f2a9c4;
  --night: #0f0d0c;
  --night-ink: #f5efe6;
  --night-muted: #cfc6ba;
  /* Inks */
  --ink: #1a0d06;
  --muted: #4d3f36;
  /* Icon and perforation inks live here so a brand colour change reaches them: %231a0d06 = --ink, %23f5efe6 = --paper */
  --icon-arrows: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6' fill='none' stroke='%231a0d06' stroke-width='2.4'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231a0d06' stroke-width='3'/%3E%3C/svg%3E");
  --icon-check-bold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231a0d06' stroke-width='3.2'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v18M3 12h18' fill='none' stroke='%231a0d06' stroke-width='3'/%3E%3C/svg%3E");
  --perf-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='20'%3E%3Ccircle cx='11' cy='10' r='5' fill='%23f5efe6'/%3E%3C/svg%3E");
  --perf-dots-small: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Ccircle cx='8' cy='7' r='3.4' fill='%23f5efe6'/%3E%3C/svg%3E");
  --shadow-float: 0 6px 18px rgb(15 13 12 / 0.3);

  --font-display: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-text: "Sofia Sans", "Segoe UI", Arial, sans-serif;

  /* Five working sizes, plus the footer name */
  --step-small: 0.9375rem;
  --step-body: 1.125rem;
  --step-title: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  --step-head: clamp(2.15rem, 1.2rem + 4.2vw, 5.5rem);
  --step-display: clamp(2.3rem, 0.2rem + 8.6vw, 8.4rem);

  --margin: clamp(20px, 2.6vw, 40px);
  --stub-h: 3.75rem;
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(4rem, 2.5rem + 5vw, 8rem);

  --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-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 200ms;
  --t-exit: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; scrollbar-color: var(--ink) var(--surface); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Desktop: margins wide enough that the floating WhatsApp button always sits in empty margin. */
@media (min-width: 901px) { :root { --margin: max(84px, 2.6vw); } }
/* Tablet and phone: the pinned WhatsApp bar never hides the end of the page. */
@media (max-width: 900px) { body { padding-bottom: calc(var(--stub-h) + env(safe-area-inset-bottom)); } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
p, li, dd, summary { hyphens: auto; }
h1, h2, h3, p, li, summary, label, .stamp { overflow-wrap: anywhere; }
/* Captions hyphenate (lang es-419) instead of breaking a word at an arbitrary letter. */
figcaption { hyphens: auto; overflow-wrap: break-word; }
/* Grid and flex children may shrink below their longest word instead of widening the page. */
.hero > *, .problem > *, .case > *, .demos > *, .plans > *, .terms > *, .faq > *, .plan > *, .stub-cta > * { min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--on-orange); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.nav :focus-visible, .premium :focus-visible, .stub-cta :focus-visible, .foot :focus-visible { outline-color: var(--orange); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; }
.skip:focus { top: 0.75rem; }

/* ---------- Type ---------- */
.display, .head, .plan__name, .steps__when, .stamp {
  font-family: var(--font-display);
  font-weight: 800;
  hyphens: none;
}
.display, .head { text-wrap: balance; }
.head, .plan__name, .steps__when { font-size: min(var(--step-head), 12.5vw); }
.display { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.012em; }
.head { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.01em; max-width: 22ch; }
.lead { font-size: var(--step-title); font-family: var(--font-text); font-weight: 400; line-height: 1.3; max-width: 30ch; }
.num { font-variant-numeric: tabular-nums lining-nums; text-align: right; white-space: nowrap; }

/* ---------- Links and buttons ---------- */
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link--strong { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 0.14em; }
.link--paper { color: var(--night-ink); text-decoration-color: var(--orange); text-decoration-thickness: 0.14em; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 3.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 700;
  font-size: var(--step-body);
  text-decoration: none;
  border-radius: 0;
  max-width: 100%;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 2.75rem; padding: 0.5rem 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--orange-strong); }
}
.wa-ico { width: 1.35em; height: 1.35em; flex: none; }
/* Standalone text links get a full 44px touch target without changing how they look. */
.hero__actions .link, .plan__cta, .stub-cta__actions .link, .demos__meta .link { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- Navigation: the form's printed header ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  min-height: 4rem;
  padding: 0.6rem var(--margin);
  background: var(--night);
  color: var(--night-ink);
}
.brand { display: inline-flex; align-items: center; flex: none; min-height: 2.75rem; }
.brand img { height: 40px; width: auto; max-width: 100%; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; padding-block: 0.6rem; text-decoration-thickness: 0.08em; text-underline-offset: 0.3em; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { text-decoration: underline; } }
.nav__menu { display: none; }

@media (max-width: 760px) {
  .nav { gap: 1rem; }
  .nav__menu { margin-left: auto; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.25rem; background: none; border: 0; color: var(--night-ink); font-weight: 700; cursor: pointer; }
  .brand img { height: 36px; }
  .nav__links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--margin) 1.25rem;
    background: var(--night);
    transform-origin: top right;
    transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility var(--t-ui);
  }
  .nav__links a { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); padding-block: 0.2rem; }
  .js .nav__links:not(.is-open) { opacity: 0; transform: translateY(-6px) scale(0.98); visibility: hidden; pointer-events: none; transition-duration: var(--t-exit); }
  .nav__wa { display: none; }
}

/* ---------- Sheets ---------- */
.sheet { padding: var(--section) var(--margin); position: relative; }
.sheet--paper { background: var(--paper); }
.sheet--canary { background: var(--canary); }
.sheet--pink { background: var(--pink); }

.form-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.serie b { font-variant-numeric: tabular-nums; }

/* Rubber stamps: only "Precio fijo" and "Recomendado" exist on the page */
.stamp {
  display: inline-block;
  padding: 0.3em 0.65em 0.25em;
  background: var(--orange);
  color: var(--on-orange);
  font-size: min(var(--step-title), 7vw);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 100%;
  transform: rotate(-7deg);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}
.hero__title { grid-column: 1 / -1; margin-left: -0.03em; font-size: min(var(--step-display), calc((100vw - 2 * var(--margin)) / 9.4)); }
/* "clientes" is written once; each line break shows at one width only (desktop after "clientes", phones before it). */
.hero__title { white-space: nowrap; }
.br-narrow { display: none; }
@media (max-width: 600px) {
  .br-wide { display: none; }
  .br-narrow { display: inline; }
  /* The longer phone line fills the measure, so the headline is as large as two lines allow. */
  .hero { container-type: inline-size; }
  /* 8.6 = width of "clientes te buscan en Google." in ems at this tracking, plus a safety margin. */
  .hero__title { font-size: calc((100cqi + 2 * var(--margin) - 28px) / 8.6); letter-spacing: -0.02em; margin-inline: calc(14px - var(--margin)); }
}
.hero__copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 1.75rem; align-self: start; }
.hero__lede { max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.importe { position: relative; }
.importe table, .ticket__table, .terms__table { width: 100%; border-collapse: collapse; }
.importe th, .importe td { padding: 0.7rem 0.9rem; border: 1px solid var(--ink); text-align: left; vertical-align: baseline; }
.importe td.num, .importe th.num { text-align: right; width: 42%; font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); }
.importe td.num b { font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); }
.importe { container-type: inline-size; }
@container (max-width: 18em) {
  .importe table, .importe tbody, .importe tr, .importe td { display: block; width: auto; }
  .importe tr + tr { border-top: 0; }
  .importe td { border-width: 1px 1px 0; }
  .importe tr:last-child td:last-child { border-bottom-width: 1px; }
  .importe td.num { text-align: left; white-space: normal; padding-top: 0; border-top: 0; }
}

.wall {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-self: start;
}
.wall__track { display: flex; flex-direction: column; gap: 0.75rem; }
.shot { background: var(--surface); }
.shot__frame { --fh: 16rem; height: var(--fh); overflow: hidden; }
.shot__frame img { width: 100%; min-height: var(--fh); object-fit: cover; object-position: 50% 0; }
.wall__col:nth-child(2) .shot:first-child .shot__frame { --fh: 21rem; }
.wall__col:nth-child(2) .shot:last-child .shot__frame { --fh: 11rem; }
.shot figcaption { padding: 0.5rem 0.6rem 0.65rem; font-size: var(--step-small); line-height: 1.3; color: var(--muted); }
.shot figcaption b { display: block; color: var(--ink); }

@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; row-gap: 1.5rem; padding-top: 2rem; }
  .hero__copy { display: contents; }
  .hero__title { order: 0; }
  .hero__lede { order: 1; }
  .hero__actions { order: 2; }
  .wall { order: 3; }
  .importe { order: 4; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .wall { gap: 0.5rem; }
  .wall__col, .wall__track { display: contents; }
  .wall .shot .shot__frame, .wall .wall__col:nth-child(2) .shot .shot__frame { --fh: 11rem; }
  .wall .shot figcaption { padding: 0.4rem 0.45rem 0.5rem; font-size: 0.875rem; }
  /* Arce leads on phones: the proof for "WhatsApp en la primera pantalla". */
  .wall .wall__col:nth-child(2) .shot:first-child { order: -1; }
}
/* Phones: two columns, so every caption ("Odontopediatría," is the widest word) fits without breaking. */
@media (max-width: 480px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Problem ---------- */
.problem {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2.5rem;
  align-items: start;
}
.problem { padding-top: clamp(3.5rem, 2rem + 4vw, 6rem); padding-bottom: clamp(2rem, 1rem + 2vw, 3rem); }
.problem__list li:last-child { padding-bottom: 0; }
.problem .head { grid-column: 1 / span 6; }
.problem__list { grid-column: 7 / -1; display: grid; font-size: var(--step-title); line-height: 1.3; }
.problem__list li { padding: 1.1rem 0 1.25rem; }
.problem__list li + li { border-top: 4px solid var(--ink); }
.problem__list b { font-weight: 700; }
.ref {
  display: inline-block;
  margin-left: 0.3em;
  padding: 0.15em 0.5em;
  background: var(--ink);
  color: var(--night-ink);
  font-size: var(--step-small);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  vertical-align: 0.3em;
  transition: background-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .ref:hover { background: var(--orange); color: var(--on-orange); } }
@media (max-width: 900px) {
  .problem { display: block; }
  .problem .head { margin-bottom: 2rem; }
}

/* ---------- Case ---------- */
.case {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(2.5rem, 4vw, 4rem);
  align-items: start;
}
.case__head { grid-column: 1 / -1; display: grid; gap: 0.75rem; }
.case__head .head { max-width: 26ch; }
.case__copy { grid-column: 1 / span 4; display: grid; gap: 1.1rem; position: sticky; top: 6rem; }
.case__copy p { max-width: 40ch; }
.case__media { grid-column: 5 / -1; position: relative; }

.compare { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 1440 / 1000; touch-action: pan-y; }
.compare img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--orange); }
.compare__handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 2.75rem; height: 2.75rem;
  margin: -1.375rem 0 0 -1.375rem;
  background: var(--orange) var(--icon-arrows) center / 1.4rem no-repeat;
  transition: transform var(--t-press) var(--ease-out);
}
.compare:active .compare__handle::after { transform: scale(0.96); }
.compare { cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare:has(.compare__range:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.compare__tag { position: absolute; bottom: 0.75rem; padding: 0.3rem 0.65rem; background: var(--ink); color: var(--paper); font-weight: 700; font-size: var(--step-small); pointer-events: none; }
.compare__tag--before { left: 0.75rem; }
.compare__tag--after { right: 0.75rem; background: var(--orange); color: var(--on-orange); }
.compare__help { margin-top: 0.75rem; color: var(--muted); font-size: var(--step-small); }
.case__phone { position: absolute; right: -0.5rem; bottom: -2.5rem; width: clamp(9rem, 15vw, 13.5rem); background: var(--paper); padding: 0.5rem; }
.compare__help { max-width: calc(100% - clamp(10rem, 16vw, 15rem)); }
.case__phone img { width: 100%; }

@media (max-width: 900px) {
  .case { display: block; }
  .case__head { margin-bottom: 1.5rem; }
  .case__copy { position: static; margin-bottom: 2.5rem; }
  .case__media { padding-bottom: 0; }
  .case__phone { position: relative; right: 0; bottom: 0; width: 58%; margin: -3.5rem 0 0 auto; }
  .compare__help { max-width: none; }
}

/* ---------- Demos ---------- */
.demos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2.5rem;
  align-items: start;
}
.demos__intro { grid-column: 1 / span 6; display: grid; gap: 1.25rem; }
.demos__list { grid-column: 1 / span 6; display: grid; gap: 0.35rem; }
.demos__list [role="tab"] {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 0.75rem;
  align-items: baseline;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out);
}
.demos__list [role="tab"]:active { transform: scale(0.98); }
.demos__list [role="tab"] b { font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1.1; overflow-wrap: anywhere; min-width: 0; }
.demos__desc { grid-column: 2; line-height: 1.4; max-width: 46ch; }
.check { grid-row: 1 / span 2; align-self: start; margin-top: 0.35rem; width: 1.6rem; height: 1.6rem; background: var(--paper); position: relative; }
.demos__list [aria-selected="true"] { background: var(--paper); }
.demos__list [aria-selected="true"] .check { background: var(--orange); }
.demos__list [aria-selected="true"] .check::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--icon-check) center / 1.2rem no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .demos__list [aria-selected="false"]:hover { background: color-mix(in srgb, var(--paper) 45%, transparent); }
}
.demos__stage { grid-column: 8 / -1; grid-row: 1 / span 2; position: sticky; top: 5.5rem; display: grid; gap: 1rem; justify-items: center; }
.device { position: relative; width: min(100%, 25rem); aspect-ratio: 390 / 780; background: var(--ink); padding: 0.6rem; border-radius: 2.4rem; }
.device iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; border-radius: 1.9rem; background: transparent; opacity: 0; transition: opacity 200ms var(--ease-out); }
.device.is-loaded iframe { opacity: 1; background: var(--paper); }
.device.is-failed iframe { opacity: 0; visibility: hidden; }
.device__failed, .device.is-failed .device__loading { display: none; }
.device.is-failed .device__failed { display: inline; }
.device:focus-within, .device.is-focused { outline: 3px solid var(--ink); outline-offset: 3px; }
.device__fallback { position: absolute; inset: 2rem; display: grid; place-items: center; text-align: center; color: var(--night-ink); font-size: var(--step-small); line-height: 1.5; }
.demos__meta { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; font-size: var(--step-small); }
.demos__meta .link { font-size: var(--step-body); color: var(--ink); }

@media (max-width: 900px) {
  .demos { display: block; }
  .demos__intro { margin-bottom: 2rem; }
  .demos__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5em), 1fr)); gap: 0.35rem; margin-bottom: 2rem; }
  .demos__list [role="tab"] { grid-template-columns: 1.5rem 1fr; padding: 0.7rem 0.6rem; column-gap: 0.5rem; }
  .demos__list [role="tab"] b { font-size: 1.5rem; }
  .demos__desc { display: none; }
  .check { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }
  .demos__stage { position: static; }
  .device { width: 100%; aspect-ratio: auto; height: min(78svh, 46rem); border-radius: 1.8rem; padding: 0.45rem; }
  .device iframe { border-radius: 1.45rem; }
}

/* ---------- Plans: menu lines with a boleta beside them ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 3rem;
  align-items: start;
}
.plans__intro { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.plans__intro p { max-width: 32ch; }
.plans__list { grid-column: 1 / span 7; border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 2.75rem; }
.plan {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
  padding: 1.5rem 1.25rem 1.6rem;
  border-top: 4px solid var(--ink);
}
.plan input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.plan__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; min-height: 2.75rem; }
.plan__name { line-height: 0.95; }
.plan__head label { cursor: pointer; display: inline-block; padding-block: 0.4rem; min-height: 2.75rem; }
.plan__name label::before {
  content: "";
  display: inline-block;
  width: 1.5rem; height: 1.5rem;
  margin-right: 0.75rem;
  vertical-align: 0.12em;
  background: var(--paper);
  border: 3px solid var(--ink);
}
.plan__price { font-family: var(--font-display); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan__price b { font-family: var(--font-display); font-weight: 800; font-size: min(var(--step-head), 12.5vw); line-height: 0.9; }
.plan__for { grid-column: 1 / -1; font-weight: 600; }
.plan__items { grid-column: 1 / span 1; display: grid; gap: 0.35rem; }
.plan__items li { padding-left: 1.4rem; position: relative; }
.plan__items li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.6rem; height: 4px; background: var(--orange); }
.plan__cta { grid-column: 1 / -1; justify-self: start; margin-top: 0.5rem; }
.plan:has(input:checked) { background: var(--surface); }
.plan:has(input:checked) .plan__name label::before {
  background: var(--orange) var(--icon-check) center / 1.1rem no-repeat;
}
.plan:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) { .plan:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--surface) 55%, var(--paper)); } }
.stamp--rec { grid-column: 1 / -1; justify-self: start; margin: 0.9rem 0 0.6rem 2.25rem; }

.ticket {
  grid-column: 8 / -1;
  position: sticky;
  top: 5.5rem;
  background: var(--canary);
  padding: 0 0 1.5rem;
}
.ticket__extras { display: grid; gap: 0.5rem; padding: 1.25rem 1.25rem 0.75rem; }
.tick { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; line-height: 1.35; min-height: 2.75rem; }
.tick input { appearance: none; flex: none; width: 1.5rem; height: 1.5rem; margin: 0.05rem 0 0; background: var(--paper); border: 3px solid var(--ink); cursor: pointer; }
.tick input:checked { background: var(--orange) var(--icon-check) center / 1.1rem no-repeat; }
.tick b { display: block; }
.ticket__table { margin: 0.5rem 0 0; }
.ticket__table th, .ticket__table td { padding: 0.6rem 1.25rem; border-top: 1px solid var(--ink); text-align: left; font-weight: 400; }
.ticket__table td { text-align: right; }
.ticket__table [data-out] { font-variant-numeric: tabular-nums; }
.ticket__total th { font-weight: 700; }
.ticket__total td { font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1; }
.ticket__table tr:last-child th, .ticket__table tr:last-child td { border-bottom: 1px solid var(--ink); }
.stamp--ticket { display: table; margin: 1.25rem 1.25rem 0 auto; }
.ticket { container-type: inline-size; }
.tick span { min-width: 0; }
@container (max-width: 20em) {
  .ticket__table, .ticket__table tbody, .ticket__table tr, .ticket__table th, .ticket__table td { display: block; }
  .ticket__table tr { border-top: 1px solid var(--ink); padding: 0.5rem 1.25rem; }
  .ticket__table tr:last-child { border-bottom: 1px solid var(--ink); }
  .ticket__table th, .ticket__table td { border: 0; padding: 0; text-align: left; }
}
.ticket__cta { margin: 1rem 1.25rem 0; width: calc(100% - 2.5rem); justify-content: center; }
.flash { display: inline-block; animation: flash 180ms var(--ease-out); }
@keyframes flash { from { opacity: 0.4; transform: translateY(-0.12em); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .plans { display: block; }
  .plans__intro { margin-bottom: 2rem; }
  .plan { grid-template-columns: 1fr; padding: 1.25rem 0.75rem; }
  .plan__cta { grid-column: 1; justify-self: start; }
  .plan__items { grid-column: 1; }
  .plan__head { flex-wrap: wrap; }
  .ticket { position: static; margin-top: 2rem; }
}

/* ---------- Premium sample ---------- */
.premium { background: var(--night); color: var(--night-ink); }
.premium__copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem 3rem;
  padding: var(--section) var(--margin) clamp(2.5rem, 5vw, 4rem);
}
.premium__copy p { max-width: 34ch; font-size: var(--step-title); line-height: 1.3; }
.premium__run { position: relative; height: 200svh; }
.premium__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.premium__canvas, .premium__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.premium__still { display: none; }
.no-canvas .premium__run { height: auto; }
.no-canvas .premium__pin { position: relative; height: auto; aspect-ratio: 16 / 9; }
.no-canvas .premium__still { display: block; }
.no-canvas .premium__canvas { display: none; }
@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .premium__pin { aspect-ratio: 2 / 3 !important; max-height: 80svh; }
}
@media (prefers-reduced-motion: reduce) {
  .premium__run { height: auto; }
  .premium__pin { position: relative; height: auto; aspect-ratio: 16 / 9; }
  .premium__still { display: block; }
  .premium__canvas { display: none; }
}
@media (max-width: 900px) {
  .no-canvas .premium__pin { aspect-ratio: 2 / 3; max-height: 80svh; }
  .premium__run { height: 170svh; }
  .premium__pin { top: 4rem; height: calc(100svh - 8rem); }
}

/* ---------- Terms: what every plan includes ---------- */
.terms { display: grid; gap: clamp(3rem, 5vw, 5rem); container-type: inline-size; }
.terms__inc { display: grid; gap: 1.75rem; }
.terms__inc .head { max-width: none; }
.terms__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); font-weight: 700; line-height: 1.35; }
.terms__list li { padding-top: 3rem; position: relative; }
.terms__list li::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem;
  background: var(--orange) var(--icon-check-bold) center / 1.4rem no-repeat;
}
.terms__table th, .terms__table td { padding: 1.1rem 0.75rem; border-top: 1px solid var(--ink); text-align: left; vertical-align: baseline; }
.terms__table tr:last-child th, .terms__table tr:last-child td { border-bottom: 1px solid var(--ink); }
.terms__table th { font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1; width: 28%; }
.terms__table td.num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-title); line-height: 1; }
.terms__note { font-size: var(--step-title); line-height: 1.3; max-width: 44ch; }
@media (max-width: 600px) { .terms__note { font-size: var(--step-body); line-height: 1.5; } }
@media (max-width: 1100px) {
  .terms__list { grid-template-columns: 1fr 1fr; row-gap: 1.75rem; }
}
@container (max-width: 36em) {
  .terms__list { grid-template-columns: 1fr; row-gap: 0; }
  .terms__list li { padding: 0.6rem 0 0.6rem 2.75rem; }
  .terms__list li::before { top: 0.65rem; width: 1.6rem; height: 1.6rem; background-size: 1.1rem; }
  .terms__table th, .terms__table td { display: block; width: auto; border: 0; padding: 0.2rem 0; text-align: left; white-space: normal; }
  .terms__table tr { display: block; padding: 1rem 0; border-top: 1px solid var(--ink); }
  .terms__table tr:last-child { border-bottom: 1px solid var(--ink); }
  .terms__table tr:last-child th, .terms__table tr:last-child td { border: 0; }
}

/* ---------- Steps ---------- */
.steps .head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.steps__list li { display: grid; gap: 0.6rem; align-content: start; padding-top: 1rem; border-top: 4px solid var(--ink); }
.steps__list li:last-child { border-top-color: var(--orange); }
.steps__when { line-height: 0.95; }
.steps__what { font-size: var(--step-body); font-weight: 700; line-height: 1.3; }
.steps__list p:not(.steps__when) { max-width: 30ch; }
@media (max-width: 900px) {
  .steps__list { grid-template-columns: 1fr; gap: 3.75rem; }
}

/* ---------- FAQ: conditions on the back of the sheet ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2.5rem;
  align-items: start;
}
.faq__title { grid-column: 1 / span 4; position: sticky; top: 6rem; max-width: 10ch; }
.faq__list { grid-column: 6 / -1; display: grid; }
.qa { border-top: 4px solid var(--ink); }
.qa:last-child { border-bottom: 4px solid var(--ink); }
.qa[open] { background: var(--canary); }
.qa summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
  padding: 1rem 1rem;
  font-weight: 700;
  font-size: var(--step-title);
  font-family: var(--font-display);
  line-height: 1.2;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: 1.1rem; height: 1.1rem;
  background: var(--icon-plus) center / contain no-repeat;
  transition: transform 200ms var(--ease-out);
}
.qa[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .qa:not([open]) summary:hover { background: var(--surface); } }
.qa__a > div { padding: 0 1rem 1.4rem; }
.qa__a p { max-width: 60ch; }
@media (max-width: 900px) {
  .faq { display: block; }
  .faq__title { position: static; margin-bottom: 2rem; max-width: none; }
}

/* ---------- Final stub ---------- */
.stub-cta {
  position: relative;
  padding: calc(var(--section) * 0.9) var(--margin) var(--section);
  background: var(--night);
  color: var(--night-ink);
  display: grid;
  gap: 1.5rem;
}
.perf {
  position: absolute;
  left: 0; right: 0; top: -0.6rem;
  height: 1.2rem;
  background: var(--perf-dots) 0 50% / 22px 20px repeat-x;
}
.stub-cta__title { max-width: 14ch; }
.stub-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 0.75rem; }
@media (max-width: 600px) { .stub-cta__actions .btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- Footer ---------- */
.foot {
  padding: clamp(3rem, 6vw, 5rem) var(--margin) clamp(7rem, 8vw, 5rem);
  background: var(--night);
  color: var(--night-ink);
  display: grid;
  gap: 0.4rem;
}
.foot__mark { margin: 0 0 2rem; }
/* The talón and the footer share the brand near black; overlap 1px so no cream seam shows at fractional heights. */
.foot { margin-top: -1px; }
.foot__mark img { width: clamp(15rem, 42vw, 36rem); height: auto; }
.foot p:not(.foot__mark) { color: var(--night-muted); max-width: 60ch; }
.foot b { color: var(--night-ink); }

/* ---------- Pinned WhatsApp ---------- */
.wa-float {
  position: fixed;
  z-index: 40;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-grid;
  place-items: center;
  width: 3.75rem; height: 3.75rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--on-orange);
  text-decoration: none;
  box-shadow: var(--shadow-float); /* taste-skill-ignore: pinned button floats over content */
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.wa-float .wa-ico { width: 1.9rem; height: 1.9rem; }
.wa-float__label { display: none; }
.wa-float:active { transform: scale(0.97); }
@media (min-width: 901px) {
  .wa-float { transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, opacity 160ms var(--ease-out), visibility 160ms; }
  .wa-float.is-hidden { opacity: 0; transform: scale(0.95); visibility: hidden; pointer-events: none; }
}
@media (hover: hover) and (pointer: fine) { .wa-float:hover { background: var(--orange-strong); } }
@media (max-width: 900px) {
  .wa-float {
    left: 0; right: 0; bottom: 0;
    width: auto; height: auto;
    min-height: var(--stub-h);
    border-radius: 0;
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    font-weight: 700;
    box-shadow: none; /* taste-skill-ignore */
  }
  .wa-float .wa-ico { width: 1.5rem; height: 1.5rem; }
  .wa-float__label { display: inline; min-width: 0; text-align: center; }
  .wa-float:active { transform: none; background: var(--orange-strong); }
  .wa-float::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -0.45rem;
    height: 0.9rem;
    background: var(--perf-dots-small) 0 50% / 16px 14px repeat-x;
    pointer-events: none;
  }
}

/* ---------- Motion ----------
   Everything that enters is visible within 300ms of reaching the viewport.
   The authored moments are the stamps landing on Tu boleta and the Premium scroll scene. */
@media (prefers-reduced-motion: no-preference) {
  /* Every reveal finishes within 300ms of its trigger and never starts below 0.6 opacity. */
  .js [data-rise] { opacity: 0.6; transform: translateY(8px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 25ms); }

  .js [data-reveal] { opacity: 0.6; transform: translateY(8px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(min(var(--i, 0), 2) * 40ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .stamp--rec, .js .stamp--ticket { opacity: 0.6; transform: rotate(-7deg) scale(1.15); transition: opacity 120ms ease-out, transform 200ms var(--ease-out); }
  .js .stamp--rec.is-in, .js .stamp--ticket.is-in { opacity: 1; transform: rotate(-7deg); }

  /* Each screenshot scrolls its own page, like a visitor reading it on a phone. Paused off screen. */
  .shot__frame img { animation: pan 16s var(--ease-in-out) 1s infinite alternate; }
  .wall__col:nth-child(2) .shot__frame img { animation-duration: 19s; animation-delay: 1.6s; }
  .wall__col:nth-child(3) .shot__frame img { animation-duration: 17s; animation-delay: 2.2s; }
  .wall.is-paused .shot__frame img { animation-play-state: paused; }
  @media (hover: hover) and (pointer: fine) { .wall:hover .shot__frame img { animation-play-state: paused; } }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pan { to { transform: translateY(calc(-100% + var(--fh))); } }
