/* Truni landing — tokens del Design System V2 (Hybrid B) */
@font-face { font-family: "General Sans"; src: url("fonts/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --surface: #F8FAFF;
  --card: #FFFFFF;
  --navy: #0F2B5B;
  --blue: #1E4DB7;
  --blue-hover: #163C95;
  --blue-wash: #E4EAF8;
  --blue-wash-2: #F0F4FC;
  --orange: #FF6B35;
  --orange-hover: #E85D2A;
  --orange-wash: #FFE9DF;
  --muted: #64748B;
  --line: #E2E8F0;
  --success: #10B981;
  --success-wash: #D1FAE5;
  --success-text: #047857;
  --error: #EF4444;
  --error-text: #B91C1C;
  --slate-fill: #F1F5F9;
  --slate-text: #475569;
  --photo-ph: #E5EAF7;
  --scrim: rgba(15, 43, 91, 0.82);

  --sh-1: 0 1px 3px rgba(15, 43, 91, .06);
  --sh-2: 0 4px 16px rgba(15, 43, 91, .08);
  --sh-3: 0 8px 32px rgba(15, 43, 91, .12);

  --r-input: 8px;
  --r-card: 12px;
  --r-hero: 16px;
  --r-pill: 999px;

  --display: "Sora", system-ui, sans-serif;
  --body: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0, 0, .2, 1);
  --ease-io: cubic-bezier(.4, 0, .2, 1);
  --gutter: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--navy);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color 200ms var(--ease-io); }
a:hover { color: var(--blue-hover); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(32px, 7vw, 52px); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(26px, 4.5vw, 36px); font-weight: 700; line-height: 1.15; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; }
.lead { font-size: 18px; color: var(--slate-text); max-width: 34em; }
.overline {
  font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--blue);
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2;
  transition: transform 150ms var(--ease-io), background-color 150ms var(--ease-io), border-color 150ms var(--ease-io);
  text-align: center;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-hover); color: var(--navy); }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-wash-2); color: var(--blue-hover); }
.btn-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-dark:hover { border-color: #fff; color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-block { width: 100%; }

/* ---------- Pills / chips / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; background: var(--slate-fill); color: var(--slate-text); white-space: nowrap;
}
.badge-verified { background: var(--blue-wash); color: var(--blue); font-weight: 600; }
.badge-verified svg { width: 14px; height: 14px; }
.chip-overlay {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--scrim);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: #fff; font-size: 13px; font-weight: 600;
}
.chip-overlay svg { width: 16px; height: 16px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(248, 250, 255, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand svg { width: 30px; height: 32px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.04em; }
.nav { display: none; gap: 24px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--navy); }
.nav a:hover { color: var(--blue); }
.header-cta { min-height: 40px; padding: 8px 16px; font-size: 14px; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 48px; }
.hero-grid { display: grid; gap: 28px; }
.hero-copy { display: grid; gap: 18px; align-content: start; }
.hero-entries { display: grid; gap: 12px; margin-top: 6px; }
.entry {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 16px 18px; border-radius: var(--r-hero); border: 1.5px solid var(--line); background: var(--card);
  color: var(--navy); box-shadow: var(--sh-1);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 200ms var(--ease-io);
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--sh-2); color: var(--navy); }
.entry:active { transform: scale(0.99); }
.entry strong { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; }
.entry span { grid-column: 1; font-size: 14px; color: var(--muted); }
.entry .entry-arrow {
  grid-row: 1 / span 2; grid-column: 2; width: 44px; height: 44px; border-radius: var(--r-pill);
  display: grid; place-items: center;
}
.entry .entry-arrow svg { width: 20px; height: 20px; }
.entry-student { border-color: var(--orange); }
.entry-student .entry-arrow { background: var(--orange); color: var(--navy); }
.entry-host .entry-arrow { background: var(--blue); color: #fff; }
.hero-note { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.hero-note svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

.trust-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-hero); box-shadow: var(--sh-2); padding: 20px; }
.trust-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; }
.checks li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; padding-bottom: 2px; }
.checks .ck { width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--success-wash); color: var(--success-text); display: grid; place-items: center; }
.checks .ck svg { width: 16px; height: 16px; }
.checks b { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.checks span { font-size: 14px; color: var(--muted); }

@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .trust-card { padding: 28px; }
}
@media (min-width: 1100px) { .hero-entries { grid-template-columns: 1fr 1fr; } }

/* ---------- Secciones ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 56px 0; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 46em; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark .muted { color: #C7D2E6; }
.section-dark .overline { color: var(--orange); }
.section-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* ---------- Selector de universidad ---------- */
.uni-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(-1 * var(--gutter)) 24px;
  padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none;
}
.uni-tabs::-webkit-scrollbar { display: none; }
.uni-tab {
  flex: none; min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--card); color: var(--navy); font-weight: 500; font-size: 15px;
  transition: border-color 200ms var(--ease-io), background-color 200ms var(--ease-io);
}
.uni-tab:hover { border-color: var(--blue); }
.uni-tab[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-wash); color: var(--blue); font-weight: 600; }

.props { display: grid; gap: 20px; }
@media (min-width: 900px) { .props { grid-template-columns: 1fr 1fr; gap: 28px; } }

.prop {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-1);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.prop:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.gallery { position: relative; background: var(--photo-ph); }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.gallery-track figcaption {
  position: absolute; bottom: 12px; left: 12px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--scrim); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .3px;
}
.gallery .chip-overlay { top: 12px; left: 12px; }
.gallery-count {
  position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--scrim); color: #fff; font-size: 12px; font-family: var(--mono);
}
.gallery-nav { position: absolute; inset: auto 12px 12px auto; display: flex; gap: 6px; }
.gallery-nav button {
  width: 36px; height: 36px; border-radius: var(--r-pill); border: 0; background: rgba(255,255,255,.92);
  color: var(--navy); display: grid; place-items: center; box-shadow: var(--sh-1);
  transition: transform 150ms var(--ease-io);
}
.gallery-nav button:hover { transform: scale(1.1); }
.gallery-nav svg { width: 18px; height: 18px; }

.prop-body { padding: 18px 18px 20px; display: grid; gap: 14px; flex: 1; }
.prop-loc { font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.prop-loc svg { width: 16px; height: 16px; flex: none; }
.prop-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prop-options { display: grid; gap: 8px; }
.option {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-input); background: var(--blue-wash-2);
}
.option span { font-size: 14px; color: var(--slate-text); }
.option b { font-family: var(--display); font-size: 18px; white-space: nowrap; letter-spacing: -0.02em; }
.option small { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); }
.price-note { font-size: 12px; color: var(--muted); }
.prop-actions { display: grid; gap: 10px; margin-top: auto; }
@media (min-width: 480px) { .prop-actions { grid-template-columns: 1fr 1fr; } }

.pools { display: grid; gap: 20px; }
@media (min-width: 900px) { .pools { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (min-width: 1150px) { .pools { grid-template-columns: repeat(3, 1fr); } }
.pool .pill { justify-self: start; }
.seats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.seat { width: 26px; height: 26px; border-radius: var(--r-pill); border: 2px dashed var(--blue); background: var(--card); }
.seat.taken { border: 2px solid var(--navy); background: var(--navy); }
.seats-text { margin-left: 6px; font-size: 14px; color: var(--muted); }
.seats-text b { color: var(--navy); font-weight: 600; }
.pool-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px;
  border-radius: var(--r-input); background: var(--blue-wash); color: var(--blue); font-size: 14px;
}
.pool-pick b { color: var(--navy); }
.pool-pick button { width: 32px; height: 32px; border: 0; border-radius: var(--r-pill); background: var(--card); color: var(--navy); display: grid; place-items: center; flex: none; }
.pool-pick button svg { width: 16px; height: 16px; }

.empty {
  display: grid; gap: 12px; padding: 28px; border-radius: var(--r-card); border: 1.5px dashed var(--line);
  background: var(--card); grid-column: 1 / -1;
}

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.step {
  position: relative; display: grid; gap: 6px; padding: 20px 20px 20px 72px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-1);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: var(--r-pill);
  background: var(--blue-wash); color: var(--blue); display: grid; place-items: center;
  font-family: var(--display); font-weight: 700;
}
.step p { color: var(--slate-text); font-size: 15px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 72px 20px 22px; }
}

/* ---------- Storytelling con scroll ---------- */
.story-grid { display: grid; gap: 0; }
.story-visual { position: sticky; top: 72px; z-index: 2; padding: 8px 0 16px; background: var(--surface); }
.story-device {
  position: relative; height: 270px; border-radius: var(--r-hero); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden;
}
.story-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--slate-fill); z-index: 2; }
.story-progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width 500ms var(--ease-out); }
.panel {
  position: absolute; inset: 4px 0 0; padding: 20px; display: grid; align-content: center; gap: 12px;
  opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  pointer-events: none;
}
.panel.is-active { opacity: 1; transform: none; }
.panel-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-wash); color: var(--blue); display: grid; place-items: center; }
.panel-icon svg { width: 26px; height: 26px; }
.panel-icon-ok { background: var(--success-wash); color: var(--success-text); }
.panel-title { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.panel-list li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.panel-list svg { width: 18px; height: 18px; color: var(--success-text); flex: none; }
.panel-row { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-input); background: var(--blue-wash-2); }
.panel-row > svg { width: 22px; height: 22px; color: var(--blue); justify-self: center; }
.panel-row b { display: block; font-size: 15px; font-weight: 600; }
.panel-row small { color: var(--muted); font-size: 13px; }
.panel .pill { justify-self: start; }
.fb-post { border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; display: grid; gap: 10px; background: var(--surface); }
.fb-head { display: flex; gap: 10px; align-items: center; }
.fb-head b { display: block; font-size: 15px; }
.fb-head small { color: var(--muted); font-size: 12px; }
.fb-avatar { width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--photo-ph); flex: none; }
.fb-post p { font-size: 15px; color: var(--slate-text); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag { padding: 5px 11px; border-radius: var(--r-pill); background: #FEE2E2; color: var(--error-text); font-size: 13px; font-weight: 600; }

.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step {
  min-height: 62vh; display: grid; align-content: center; gap: 8px; padding: 24px 0;
  opacity: .35; transition: opacity 400ms var(--ease-out);
}
.story-step:last-child { min-height: 48vh; }
.story-step.is-active { opacity: 1; }
.story-step p { color: var(--slate-text); font-size: 17px; max-width: 30em; }
.story-num { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue); }
.story-step[data-step="0"] .story-num { color: var(--error-text); }
.story-step h3 { font-size: 26px; }

@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .story-visual { top: calc(50vh - 190px); padding: 0; background: transparent; order: 2; }
  .story-device { height: 380px; }
  .panel { padding: 32px; }
  .story-step { min-height: 75vh; }
  .story-step:first-child { min-height: 50vh; align-content: start; padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .story-step { opacity: 1; } }

/* ---------- Confianza ---------- */
.trust-grid { display: grid; gap: 16px; }
.trust {
  display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-1);
}
.trust .icon { grid-row: 1 / span 2; }
.trust p { color: var(--slate-text); font-size: 15px; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-wash); color: var(--blue);
  display: grid; place-items: center;
}
.icon svg { width: 26px; height: 26px; }
.icon .accent { color: var(--orange); }
@media (min-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ---------- Hosts ---------- */
.host-grid { display: grid; gap: 32px; }
.host-points { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.host-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.host-points svg { width: 24px; height: 24px; color: var(--orange); margin-top: 2px; }
.host-points b { display: block; color: #fff; }
.host-points span { color: #C7D2E6; font-size: 15px; }
.uni-lista { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.uni-lista li { padding: 10px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; }
.uni-lista b { display: block; color: #fff; font-size: 15px; }
.uni-lista span { display: block; color: #C7D2E6; font-size: 13px; }
.uni-otra { margin-top: 14px; font-size: 15px; }
.uni-otra a { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.host-grid .uni-otra { color: #C7D2E6; }
.host-grid .uni-otra a { color: #fff; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); color: var(--navy); border-radius: var(--r-card); overflow: hidden; font-size: 14px; }
.compare th, .compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-size: 14px; background: var(--blue-wash-2); }
.compare thead th.truni { background: var(--blue); color: #fff; }
.compare td.truni { background: #F7F9FE; }
.compare tbody th { font-weight: 600; color: var(--muted); font-size: 13px; }
.compare tfoot th, .compare tfoot td { border-bottom: 0; font-family: var(--display); font-weight: 700; font-size: 17px; }
.compare tfoot td.truni { color: var(--success-text); }
.compare-note { font-size: 12px; color: #C7D2E6; margin-top: 10px; }

.modes { display: grid; gap: 12px; margin-top: 24px; }
.mode { padding: 18px; border-radius: var(--r-card); border: 1px solid rgba(255,255,255,.18); display: grid; gap: 4px; }
.mode b { font-family: var(--display); font-size: 18px; color: #fff; }
.mode .rate { font-family: var(--display); color: var(--orange); font-weight: 700; }
.mode span { color: #C7D2E6; font-size: 15px; }
@media (min-width: 640px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .host-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-1); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 18px; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg);
  transition: transform 200ms var(--ease-io);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 18px 18px; color: var(--slate-text); }

/* ---------- Formulario ---------- */
.form-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .form-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-hero); box-shadow: var(--sh-2); padding: 20px; }
@media (min-width: 640px) { .form-card { padding: 28px; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--slate-fill); margin-bottom: 22px; }
.seg button {
  min-height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--slate-text); font-weight: 600;
  transition: background-color 200ms var(--ease-io), color 200ms var(--ease-io);
}
.seg button[aria-selected="true"] { background: var(--card); color: var(--navy); box-shadow: var(--sh-1); }
form { display: grid; gap: 16px; }
.fields { display: grid; gap: 16px; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--navy); padding: 0; }
.field .hint { font-size: 12px; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-input); border: 1px solid #CBD5E1;
  background: var(--card); color: var(--navy); font: inherit; font-size: 16px;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F2B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border: 1.5px solid var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field .err { font-size: 13px; color: var(--error-text); display: none; }
.field.has-error .err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line); font-weight: 500; font-size: 15px; cursor: pointer; background: var(--card);
}
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios label:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); color: var(--blue); font-weight: 600; }
.radios label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--slate-text); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.form-status { font-size: 14px; color: var(--error-text); display: none; }
.form-status.show { display: block; }
.pasos { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.paso-titulo { margin: 0; font-weight: 600; font-size: 17px; color: var(--navy); }
#lead-form.en-paso-2 [data-for], #lead-form.en-paso-2 .pool-pick { display: none; }
.hidden { display: none !important; }

.done { display: grid; gap: 14px; text-align: left; }
.done .ok { width: 52px; height: 52px; border-radius: var(--r-pill); background: var(--success-wash); color: var(--success-text); display: grid; place-items: center; }
.done .ok svg { width: 28px; height: 28px; }

.side-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 20px 0 0; }
.side-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--slate-text); }
.side-list svg { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C7D2E6; padding: 40px 0 96px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 24px; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- WhatsApp flotante (móvil) ---------- */
.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(248, 250, 255, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.wa-bar .btn { min-height: 46px; padding: 10px 12px; font-size: 15px; }
@media (min-width: 900px) { .wa-bar { display: none; } }

/* ---------- Modal de video ---------- */
dialog.video-modal { border: 0; padding: 0; border-radius: var(--r-hero); background: #000; max-width: min(420px, 92vw); width: 100%; box-shadow: var(--sh-3); }
dialog.video-modal::backdrop { background: rgba(15, 43, 91, .82); }
dialog.video-modal video { width: 100%; max-height: 82vh; aspect-ratio: 9 / 16; background: #000; }
dialog.video-modal .close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: var(--r-pill); border: 0;
  background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; z-index: 2;
}
dialog.video-modal .close svg { width: 20px; height: 20px; }
dialog.video-modal[open] { animation: modal-in 250ms var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Formulario: datos opcionales */
.more { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.more summary { cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--blue); list-style: none; min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; font-family: var(--mono, monospace); font-size: 16px; }
.more[open] summary::before { content: "−"; }
.more summary span { font-weight: 400; color: var(--muted); }
.more > .fields { padding: 0 14px 14px; }

/* Pools: lleno, lista de espera, solo mujeres/hombres */
.pool.is-full .seat { border: 2px solid var(--navy); background: var(--navy); }
.pool.is-full .seats-text b { color: var(--error-text); }
.pool-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.pill.pill-strong { background: var(--navy); color: #fff; }
.pool-note { font-size: 13px; color: var(--muted); margin: 0; }
.pool-race { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14px; color: var(--muted); }
.pool-race b { color: var(--navy); font-family: var(--mono); }

/* Tercera entrada: grupos que buscan roomie */
.seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg button { white-space: normal; line-height: 1.15; padding: 6px 4px; font-size: 14px; }
@media (min-width: 420px) { .seg button { font-size: 15px; } }
/* Que nada empuje la página más ancha que el celular */
.empty { min-width: 0; }
.empty .pill { white-space: normal; text-align: center; max-width: 100%; }
.hero-alt { display: inline-block; margin-top: 14px; font-size: 15px; color: var(--slate-text); text-decoration: none; }
.hero-alt b { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-alt:hover b { color: var(--navy); }

.form-hint { margin: 0; font-size: 13px; color: var(--muted); background: var(--blue-wash-2, #F0F4FC); border-radius: 10px; padding: 10px 12px; }

/* Anuncio abierto con liga directa (#anuncio-ID) */
.prop.destacado { outline: 3px solid var(--blue); outline-offset: 4px; }
.prop-actions .btn[data-compartir] { min-width: 0; }
