/* Sanahora: landing. Mismos tokens que la app (petróleo, Bricolage Grotesque + IBM Plex Sans). */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f3f5f6;
  --ink: #12202a;
  --brand: #12495a;
  --brand-deep: #0c3441;
  --muted: #55666f;
  --line: #d5dde1;
  --tint: #e2ecef;
  --white: #fff;
  --ok: #1f6f5f;
  --ok-bg: #dcefe9;
  --wait: #7a5200;
  --wait-bg: #f6e7c1;
  --display: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 12px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--r-sm); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--white); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--sans); padding: .95rem 1.35rem; border-radius: var(--r-md); border: 1px solid var(--brand); background: var(--brand); color: var(--white); text-decoration: none; cursor: pointer; transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--tint); color: var(--brand-deep); }
.btn--small { padding: .65rem 1rem; font-size: .9375rem; }

/* encabezado */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { font: 700 1.4rem/1 var(--display); letter-spacing: -0.02em; color: var(--brand); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .9375rem; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); font-weight: 700; line-height: 1.03; letter-spacing: -0.025em; max-width: 14em; }
.hero .lead { margin-top: 1.4rem; font-size: 1.1875rem; color: var(--muted); max-width: 33em; }
.hero .cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .who { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); max-width: 34em; }

/* agenda de ejemplo */
.agenda { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.25rem 1rem; box-shadow: 0 1px 0 rgba(18, 32, 42, .04), 0 18px 40px -22px rgba(18, 73, 90, .35); }
.agenda__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.agenda__head strong { font: 650 1.05rem var(--display); }
.agenda__head span { font-size: .8125rem; color: var(--muted); }
.agenda ol { list-style: none; margin: 0; padding: 0; }
.slot { display: grid; grid-template-columns: 3.25rem 1fr; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: start; animation: slot-in 420ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.slot:last-child { border-bottom: 0; }
.slot:nth-child(1) { --i: 0; } .slot:nth-child(2) { --i: 1; } .slot:nth-child(3) { --i: 2; } .slot:nth-child(4) { --i: 3; } .slot:nth-child(5) { --i: 4; }
.slot time { font: 500 .875rem var(--sans); color: var(--muted); padding-top: .2rem; font-variant-numeric: tabular-nums; }
.slot__body { border-radius: var(--r-md); padding: .5rem .75rem; display: grid; gap: .15rem; }
.slot__body b { font-weight: 600; font-size: .9375rem; }
.slot__body small { font-size: .8125rem; }
.slot--ok .slot__body { background: var(--ok-bg); color: var(--ok); border-left: 3px solid var(--ok); }
.slot--pay .slot__body { background: var(--wait-bg); color: var(--wait); border-left: 3px solid var(--wait); }
.slot--ask .slot__body { background: var(--white); color: var(--ink); border: 1px solid var(--brand); border-left-width: 3px; }
.slot--free .slot__body { border: 1px dashed var(--line); color: var(--muted); padding-block: .35rem; }
.slot--free small { font-size: .8125rem; }
@keyframes slot-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* secciones */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 18em; }
.section .sub { margin-top: .9rem; color: var(--muted); max-width: 36em; }

/* carrusel */
.rail { margin-top: 2.25rem; }
.rail__track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .25rem 0 .5rem; margin-inline: calc((100vw - min(100vw - 2.5rem, var(--wrap))) / -2); padding-inline: calc((100vw - min(100vw - 2.5rem, var(--wrap))) / 2); scroll-padding-inline: calc((100vw - min(100vw - 2.5rem, var(--wrap))) / 2); }
.rail__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(84%, 24rem); scroll-snap-align: start; border-radius: var(--r-lg); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; min-height: 17rem; }
.slide:nth-child(odd) { background: var(--tint); }
.slide:nth-child(even) { background: var(--white); border: 1px solid var(--line); }
.slide .icon { color: var(--brand); width: 2rem; height: 2rem; }
.slide h3 { font-size: 1.5rem; line-height: 1.12; }
.slide p { color: var(--muted); font-size: 1rem; }
.rail__bar { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }
.rail__progress { flex: 1; height: 2px; background: var(--line); position: relative; }
.rail__progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 16%; background: var(--brand); transition: width 160ms ease-out, left 160ms ease-out; }
.rail__count { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.5rem; text-align: right; }
.rail__btns { display: flex; gap: .5rem; }
.arrow { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); color: var(--brand); cursor: pointer; transition: background-color 120ms ease-out, border-color 120ms ease-out; }
.arrow:hover:not(:disabled) { border-color: var(--brand); background: var(--tint); }
.arrow:disabled { color: var(--line); cursor: default; }
.arrow .icon { width: 1.25rem; height: 1.25rem; }

/* cómo se reserva */
.section--flow { border-top: 1px solid var(--line); }
.flow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.flow__intro { position: sticky; top: 6rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: paso; border-left: 2px solid var(--line); }
.steps li { counter-increment: paso; position: relative; padding: 0 0 2.25rem 2.25rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(paso); position: absolute; left: -1.05rem; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: var(--white); font: 650 1rem/2rem var(--display); text-align: center; }
.steps h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); max-width: 32em; }

/* seguridad */
.secure { background: var(--brand-deep); color: #e5edf1; }
.secure .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.secure h2 { color: var(--white); }
.secure .sub { color: #a9c0c9; }
.facts { margin: 0; display: grid; gap: 1.4rem; }
.facts div { padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.facts dt { font: 650 1.15rem var(--display); color: var(--white); }
.facts dd { margin: .3rem 0 0; color: #a9c0c9; font-size: 1rem; }
.notyet { margin-top: 2rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); font-size: .9375rem; color: #c9d9df; }
.notyet b { color: var(--white); }
.soon { margin-top: 2.5rem; }
.soon h3 { font-size: 1.15rem; color: var(--white); margin-bottom: .75rem; }
.soon ul { margin: 0; padding-left: 1.1rem; color: #a9c0c9; display: grid; gap: .35rem; }

/* planes */
.plans { margin-top: 2.25rem; border-top: 2px solid var(--ink); }
.plan { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.plan h3 { font-size: 1.35rem; }
.plan p { color: var(--muted); }
.price { font: 650 clamp(1.7rem, 3vw, 2.2rem) var(--display); letter-spacing: -0.02em; text-align: right; }
.price small { font: 400 .9375rem var(--sans); color: var(--muted); letter-spacing: 0; display: block; }
.plan--main h3::after { content: "Con cupos limitados"; margin-left: .6rem; font: 500 .75rem var(--sans); letter-spacing: 0; background: var(--ok-bg); color: var(--ok); padding: .2rem .5rem; border-radius: var(--r-sm); vertical-align: middle; }
.plans__note { margin-top: 1.1rem; font-size: .9375rem; color: var(--muted); max-width: 44em; }

/* lista de espera */
.join { background: var(--tint); }
.join .grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select { font: inherit; padding: .75rem .85rem; border: 1px solid #9fb0b8; border-radius: var(--r-md); background: var(--white); color: var(--ink); width: 100%; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; font-size: .9375rem; color: var(--muted); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--brand); }
.consent a { color: var(--brand); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.5rem; font-size: .9375rem; }
.msg[data-kind="ok"] { color: var(--ok); font-weight: 600; }
.msg[data-kind="error"] { color: #9b2c2c; font-weight: 600; }

/* pie */
.foot { padding: 2rem 0 2.5rem; font-size: .9rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.foot a { color: var(--muted); }
.foot__links { display: flex; gap: 1.5rem; }

/* páginas de texto */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.doc .wrap { max-width: 44rem; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 1rem; }
.doc h2 { font-size: 1.35rem; margin: 2.2rem 0 .5rem; }
.doc p, .doc li { color: #31434d; }
.doc ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.draft { background: var(--wait-bg); color: var(--wait); border-radius: var(--r-md); padding: .8rem 1rem; font-size: .9375rem; margin-bottom: 1.5rem; }

@media (max-width: 860px) {
  .hero .wrap, .flow, .secure .grid, .join .grid { grid-template-columns: 1fr; }
  .flow__intro { position: static; }
  .plan { grid-template-columns: 1fr; gap: .4rem; }
  .price { text-align: left; }
  .nav a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slot { animation: none; }
  .rail__progress i, .btn, .arrow { transition: none; }
}
