/* 2T4T · landing clara. Una familia (Inter), el naranja de la marca, el producto delante.
   Mismo sistema que la landing de 2trAIn: el gris solo en tarjetas, nunca bandas. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/inter-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --bg: #FFFFFF;
  --surface: #F5F5F7;
  --control: #E8E8ED;
  --fg: #1D1D1F;
  --fg-2: #424245;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --line-soft: rgba(0, 0, 0, .08);
  --accent: #CC4116;      /* relleno del botón: 4,8:1 con blanco */
  --brand: #FF6A4A;       /* coral del logo: solo adornos (hilo, puntos, foco) */
  --accent-hover: #B4380F;
  --accent-text: #C43D14; /* texto naranja: 5,2:1 sobre blanco, 4,8:1 sobre gris */
  --accent-soft: rgba(255, 106, 74, .12);
  --danger: #D70015;
  --ok: #15803D;
  --glass: rgba(255, 255, 255, .72);
  --device: #111113;
  /* La app real: su rojo vive solo dentro del móvil */
  --app: #D23A2A;
  --app-soft: #FCEDEB;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1180px;
  --gut: 22px;
  --sec: clamp(48px, 6vw, 80px);
  --head-gap: 24px;
  --nav-h: 56px;
  --r-card: 18px;
  --r-tile: 28px;
  --r-block: 32px;
  --shadow-card: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 40px -18px rgba(0, 0, 0, .18);
  --shadow-float: 0 30px 60px -24px rgba(0, 0, 0, .35), 0 12px 24px -12px rgba(0, 0, 0, .18);
}
@media (min-width: 768px) { :root { --gut: 40px; --head-gap: 36px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; 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: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 980px; background: var(--fg); color: #fff; }
.skip:focus { top: 10px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ===== Tipografía ===== */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(15px, 1.4vw, 17px); font-weight: 600; color: var(--accent-text); letter-spacing: -0.01em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.h-hero { font-size: clamp(40px, 5.6vw, 72px); font-weight: 650; line-height: 1.03; letter-spacing: -0.038em; text-wrap: balance; }
.h-sec { font-size: clamp(32px, 4.8vw, 56px); font-weight: 650; line-height: 1.07; letter-spacing: -0.032em; text-wrap: balance; }
.h-card { font-size: clamp(21px, 2.2vw, 26px); font-weight: 650; line-height: 1.18; letter-spacing: -0.022em; }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); letter-spacing: -0.012em; }
.accent { color: var(--accent-text); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 26px; border: 0; border-radius: 980px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.btn--ghost { background: var(--control); color: var(--fg); }
.btn--ghost:hover { background: #DCDCE1; }
.link-more { font-weight: 500; }
.link-more::after { content: " ›"; }

/* ===== Navegación ===== */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-soft); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand__ico { width: 25px; height: 28px; }
.brand__word { width: auto; height: 18px; max-width: 100%; object-fit: contain; object-position: left; }
@media (max-width: 599px) { .nav .brand__word { display: none; } }
.nav__links { display: none; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav__links a { color: var(--fg-2); font-size: 14px; white-space: nowrap; }
.nav__links a:hover { color: var(--fg); text-decoration: none; }
.nav__act { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav__login { font-size: 14px; color: var(--fg-2); white-space: nowrap; }
@media (min-width: 900px) { .nav__links { display: flex; } .nav__act { margin-left: 26px; } }
@media (min-width: 900px) and (max-width: 1179px) { .nav .brand__word { display: none; } .nav__links { gap: 22px; } }
.nav__act a { white-space: nowrap; }

/* ===== Secciones ===== */
.sec { padding: var(--sec) 0; }
.sec__head { max-width: 820px; margin: 0 auto var(--head-gap); text-align: center; }
.sec__head .lead { margin-top: 14px; }
.sec__head--left { margin-left: 0; text-align: left; }

/* Hilo entre secciones: una línea, un punto y la frase que enlaza */
.bridge { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gut); }
.bridge__line { width: 2px; height: clamp(40px, 6vw, 72px); border-radius: 2px; background: var(--brand); opacity: .7; transform-origin: top; }
.bridge__dot { width: 10px; height: 10px; margin-top: -1px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px var(--accent-soft); }
.bridge__t { margin-top: 20px; max-width: 22em; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--muted); text-wrap: balance; }
.bridge__t b { font-weight: 600; color: var(--fg); }
.js .bridge__line { transform: scaleY(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .bridge.is-in .bridge__line { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .js .bridge__line { transform: none; transition: none; } }

/* ===== Hero ===== */
.hero { padding: clamp(28px, 4vw, 48px) 0 var(--sec); }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero__copy { max-width: 600px; }
.hero__copy .eyebrow { margin-bottom: 18px; }
.hero__copy .lead { margin-top: 20px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.hero__note { margin-top: 16px; }
@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - var(--nav-h)); max-height: 900px; display: flex; align-items: center; }
  .hero .wrap { grid-template-columns: minmax(0, 10fr) minmax(0, 14fr); gap: 40px; }
}

/* El producto: la web del entrenador y, delante, el móvil del cliente */
/* La ventana ocupa el 82 % y el móvil solo pisa su esquina: las dos se ven enteras */
.duo { position: relative; display: flex; align-items: flex-end; padding-top: 6%; }
.duo .win { width: 75%; margin-bottom: 8%; }
.duo__phone { position: absolute; right: 0; bottom: 0; width: 27%; min-width: 96px; }
@media (min-width: 1280px) { .duo { margin-right: -48px; } }

.win { border-radius: 14px; background: #fff; box-shadow: var(--shadow-float); overflow: hidden; border: 1px solid var(--line-soft); }
.win__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D9D9DE; }
.win__url { margin: 0 auto; padding: 2px 14px; border-radius: 6px; background: #fff; font-size: 11px; color: var(--muted); font-style: normal; white-space: nowrap; }
.win img { width: 100%; aspect-ratio: 2932 / 1484; }
.win--crop img { aspect-ratio: auto; }

/* ===== Móvil (pantallas de la app en HTML) ===== */
.phone { container-type: inline-size; position: relative; aspect-ratio: 9 / 19.2; padding: 3.4%; border-radius: 15% / 7%; background: var(--device); box-shadow: var(--shadow-float); }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 12% / 5.6%; background: #fff; display: flex; flex-direction: column; }
.phone__isl { position: absolute; top: 2.2%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: var(--device); z-index: 2; }
.scr { flex: 1; display: flex; flex-direction: column; padding: 15cqi 6cqi 6cqi; font-size: max(11px, 5.4cqi); line-height: 1.3; color: var(--fg); letter-spacing: -0.01em; }
.scr__k { font-size: max(11px, 4.6cqi); color: var(--muted); font-weight: 500; }
.scr__t { margin: .2em 0 .6em; font-size: max(13px, 8cqi); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.scr__note { padding: .7em .8em; border-radius: .9em; background: var(--app-soft); font-size: max(11px, 4.8cqi); color: #3A2A28; }
.scr__note b { display: block; color: #A8281B; font-weight: 700; margin-bottom: .15em; }
.scr__list { display: grid; gap: .45em; margin: .7em 0 0; padding: 0; list-style: none; }
.scr__ex { display: flex; align-items: center; gap: .6em; padding: .4em; border-radius: .8em; background: var(--surface); }
.scr__ex img { width: 25cqi; aspect-ratio: 3 / 2; border-radius: .5em; background: #fff; object-fit: cover; filter: brightness(1.03); }
.scr__ex strong { display: block; font-size: max(11px, 4.8cqi); font-weight: 650; line-height: 1.2; }
.scr__ex span { font-size: max(11px, 4.4cqi); color: var(--muted); }
.scr__btn { margin-top: auto; padding: .75em; border-radius: 99px; background: var(--app); color: #fff; text-align: center; font-weight: 650; font-size: max(11px, 5cqi); }
.scr__row { display: grid; grid-template-columns: 1.2em 1fr 1fr 1.6em; align-items: center; gap: .5em; padding: .45em .5em; border-radius: .7em; background: var(--surface); margin-top: .4em; font-variant-numeric: tabular-nums; }
.scr__row.is-head { background: none; padding-top: 0; padding-bottom: 0; color: var(--muted); font-size: max(11px, 4.2cqi); }
.scr__row .ck { width: 1.5em; height: 1.5em; border-radius: 50%; border: 2px solid var(--app); }
.scr__row .ck.on { background: var(--app); position: relative; }
.scr__row .ck.on::after { content: ""; position: absolute; left: 32%; top: 18%; width: 28%; height: 48%; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.scr__meta { margin-top: .6em; color: #A8281B; font-weight: 600; font-size: max(11px, 4.4cqi); }
.scr__big { font-size: max(16px, 11cqi); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.scr__cards { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; margin-top: .6em; }
.scr__card { padding: .7em; border-radius: .8em; background: var(--surface); }
.scr__card span { display: block; color: var(--muted); font-size: max(11px, 4.2cqi); }
.scr__card em { font-style: normal; color: var(--ok); font-weight: 600; font-size: max(11px, 4.2cqi); }
.scr__msg { max-width: 82%; margin-top: .5em; padding: .6em .75em; border-radius: 1em; background: var(--surface); font-size: max(11px, 4.8cqi); }
.scr__msg.me { margin-left: auto; background: var(--app-soft); }
.scr__input { margin-top: auto; padding: .7em .9em; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: max(11px, 4.6cqi); }
.scr__appt { display: flex; gap: .6em; align-items: flex-start; padding: .7em; border-radius: .8em; background: var(--surface); margin-top: .5em; }
.scr__appt i { flex: none; width: 2em; height: 2em; border-radius: 50%; background: var(--app-soft); }
.scr__appt strong { display: block; font-weight: 650; }
.scr__appt span { color: var(--muted); font-size: max(11px, 4.4cqi); }
.scr__bars { display: flex; align-items: flex-end; gap: 4%; height: 22cqi; margin-top: .6em; }
.scr__bars i { flex: 1; border-radius: .3em .3em 0 0; background: var(--app); opacity: .85; }

/* ===== Vídeo ===== */
.video { position: relative; max-width: 960px; margin: 0 auto; border-radius: var(--r-block); overflow: hidden; background: var(--device); aspect-ratio: 16 / 9; box-shadow: var(--shadow-card); }
.video video, .video img { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); color: #fff; cursor: pointer; font-size: 17px; font-weight: 600; }
.video__play span:first-child { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; }
.video__play:hover span:first-child { transform: scale(1.06); }
.video__play svg { width: 26px; height: 26px; margin-left: 4px; color: var(--fg); }
.video.is-playing .video__play { display: none; }

/* ===== Pasos del flujo ===== */
.steps { display: grid; gap: 14px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tile { padding: 28px; border-radius: var(--r-tile); background: var(--surface); }
.tile__n { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 18px; border-radius: 50%; background: #fff; color: var(--accent-text); font-weight: 700; font-size: 15px; }
.tile p { margin-top: 10px; color: var(--muted); }
.tile--white { background: #fff; }

/* ===== Bloque producto: captura y claves ===== */
.feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) {
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; }
  .feature--flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .feature--flip .feature__media { order: 2; }
}
.keys { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.keys li { padding-left: 18px; border-left: 2px solid var(--line); }
.keys strong { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.018em; }
.keys span { display: block; margin-top: 4px; color: var(--muted); font-size: 16px; }

/* ===== App del cliente ===== */
.phones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: start; }
.phones figure { margin: 0; }
.phones figcaption { margin-top: 14px; text-align: center; font-size: 15px; font-weight: 600; color: var(--fg-2); }
.phones figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: var(--head-gap) auto 0; padding: 0; list-style: none; max-width: 860px; }
.chips li { padding: 9px 16px; border-radius: 980px; background: var(--surface); font-size: 15px; color: var(--fg-2); }

/* App del cliente en móvil: un solo teléfono y pestañas */
.ptabs { display: none; }
@media (max-width: 899px) {
  .ptabs { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 24px; padding: 3px; border-radius: 980px; background: var(--control); }
  .ptabs button { min-height: 34px; padding: 6px 11px; border: 0; border-radius: 980px; background: none; color: var(--fg-2); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
  .ptabs button[aria-pressed="true"] { background: #fff; color: var(--fg); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
  .chips li { padding: 7px 13px; font-size: 14px; }
  .phones { display: grid; grid-template-columns: 1fr; justify-items: center; }
  .phones > figure { grid-area: 1 / 1; width: min(66vw, 270px); opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
  .phones > figure.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) { .phones > figure, .phones > figure.is-on { transition: none; } }
@media (max-width: 359px) { .ptabs button { padding: 6px 6px; font-size: 12px; } }

/* ===== IA ===== */
.ai { display: grid; gap: 18px; }
@media (min-width: 900px) { .ai { grid-template-columns: 1fr 1fr; gap: 20px; } }
.ai .tile { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 36px); }
.ai__demo { margin-top: 26px; padding: 18px; border-radius: 20px; background: #fff; }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.files span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--fg-2); }
.files b { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--fg); color: #fff; letter-spacing: .02em; }
.flow { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.flow strong { color: var(--fg); font-weight: 600; }
.flow i { width: 18px; height: 2px; background: var(--line); }
.search { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 980px; background: var(--surface); font-size: 15px; color: var(--fg); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.results figure { margin: 0; padding: 8px; border-radius: 14px; background: var(--surface); }
.results img { width: 100%; aspect-ratio: 3 / 2; border-radius: 8px; background: #fff; object-fit: cover; }
.results figcaption { margin-top: 6px; font-size: 12px; line-height: 1.3; color: var(--fg-2); }
.pledge { margin-top: var(--head-gap); text-align: center; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; color: var(--muted); }
.pledge b { color: var(--fg); font-weight: 600; }

/* ===== Día a día ===== */
.grid4 { display: grid; gap: 18px; }
@media (min-width: 900px) { .grid4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.grid4 .tile { display: flex; flex-direction: column; }
.tile__ico { width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--accent-text); }
.tile__ico svg { width: 22px; height: 22px; }
.shots { display: grid; gap: 18px; margin-top: 20px; }
@media (min-width: 900px) { .shots { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ===== Datos ===== */
.trust { display: grid; gap: 14px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.trust .tile { padding: 26px; }
.trust strong { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.018em; }
.trust span { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ===== Foto ancha ===== */
.photo { border-radius: var(--r-block); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 767px) { .photo img { aspect-ratio: 4 / 3; } }

/* ===== FAQ ===== */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; letter-spacing: -0.016em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .ans { padding: 0 0 22px; max-width: 46em; color: var(--fg-2); }
.faq .ans p + p { margin-top: 10px; }

/* ===== Solicitar acceso ===== */
.access { display: grid; gap: 32px; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-block); background: var(--surface); }
@media (min-width: 1024px) { .access { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; } }
.access .lead { margin-top: 14px; }
.access__list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--fg-2); }
.access__list li { display: flex; gap: 10px; }
.access__list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23C43D14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.form { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-tile); background: #fff; box-shadow: var(--shadow-card); }
.form__grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--fg-2); padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--surface); color: var(--fg); font: inherit; font-size: 16px; }
.field textarea { min-height: 88px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236E6E73' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(255, 106, 74, .22); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 980px; background: var(--control); }
.seg label { position: relative; flex: 1; margin: 0; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 6px; border-radius: 980px; text-align: center; font-size: 14px; font-weight: 500; color: var(--fg-2); cursor: pointer; transition: background .2s; }
.seg input:checked + span { background: #fff; color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--fg-2); }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 18px; }
.form__msg { margin-top: 12px; font-size: 14px; color: var(--danger); min-height: 1em; }
.form__done { text-align: center; padding: 24px 8px; }
.form__done .tick { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.form__done p { margin-top: 8px; color: var(--muted); }
.form.is-sending .btn { opacity: .7; pointer-events: none; }

/* ===== Pie ===== */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.foot__top { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; }
.foot h2 { font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 10px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--fg-2); }
.foot__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* ===== Aviso de cookies ===== */
.cookie { position: fixed; left: 50%; bottom: 16px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; width: min(720px, calc(100% - 24px)); padding: 14px 18px; border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: var(--shadow-card); border: 1px solid var(--line-soft); transform: translateX(-50%); font-size: 14px; color: var(--fg-2); }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 280px; }
.cookie__b { display: flex; gap: 8px; }

/* ===== Páginas por intención ===== */
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 40px 0 12px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 650; letter-spacing: -0.024em; }
.prose p, .prose li { color: var(--fg-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }

/* Aparición suave al entrar en pantalla */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Móvil del hero en pantallas estrechas: más grande y sin la nota, para que nada se corte */
@media (max-width: 599px) {
  .duo .win { width: 72%; margin-bottom: 14%; }
  .duo__phone { width: 36%; }
}
@container (max-width: 150px) { .scr__note { display: none; } .scr__ex:nth-child(n+2) { display: none; } }

/* Hasta 1023 px, el producto va justo bajo el titular para que se vea al cargar */
@media (max-width: 1023px) {
  .hero .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy { display: contents; }
  .hero .eyebrow { order: 1; margin-bottom: 14px; }
  .hero h1 { order: 2; }
  .duo { order: 3; margin-top: 22px; max-width: 640px; }
  .hero .lead { order: 4; margin-top: 22px; }
  .hero__cta { order: 5; margin-top: 22px; }
  .hero__note { order: 6; }
}
@media (max-width: 599px) {
  .hero__note { display: none; }
  .cookie { gap: 10px; padding: 12px 14px; font-size: 13px; bottom: 10px; }
  .cookie p { flex-basis: 100%; }
}
@container (max-width: 190px) {
  .scr__ex { flex-direction: column; align-items: stretch; gap: .35em; }
  .scr__ex img { width: 100%; }
  .scr__t { font-size: 13px; }
  .duo .scr__ex:nth-child(n+2) { display: none; }
}
@container (max-width: 120px) { .scr__k { display: none; } .scr__ex span { display: none; } }

/* Marca de agua: el hexágono del icono, muy tenue, como en las cabeceras de la WA */
/* Marca de agua: el hexágono del icono, entero y muy tenue, detrás del producto */
.duo { isolation: isolate; }
.duo::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 62%; aspect-ratio: 1110 / 1240; transform: translate(-50%, -50%); background: url("/assets/brand/icono.svg") center / contain no-repeat; opacity: .07; pointer-events: none; }
.foot .brand { max-width: 100%; }
.foot .brand__ico { display: none; }
.foot .brand__word { min-width: 0; height: auto; width: 248px; }

/* Escenario de producto: la captura sobre gris, con un detalle ampliado que flota encima */
.stage { position: relative; isolation: isolate; padding: clamp(22px, 3.4vw, 44px) clamp(22px, 3.4vw, 44px) clamp(56px, 7vw, 84px); border-radius: var(--r-tile); background: var(--surface); }
.stage::after { content: ""; position: absolute; z-index: -1; top: clamp(14px, 2vw, 22px); right: clamp(14px, 2vw, 22px); width: clamp(34px, 4vw, 48px); aspect-ratio: 1110 / 1240; background: url("/assets/brand/icono.svg") center / contain no-repeat; opacity: .18; }
.stage .win { box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 48px -28px rgba(0, 0, 0, .28); }
.stage .win img { aspect-ratio: auto; }
.stage__zoom { position: absolute; bottom: clamp(16px, 2.6vw, 30px); border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .06), 0 22px 44px -16px rgba(0, 0, 0, .32); outline: 1px solid var(--line-soft); }
.stage--zl .stage__zoom { left: clamp(10px, 1.6vw, 20px); }
.stage--zr .stage__zoom { right: clamp(10px, 1.6vw, 20px); }
.stage--zl .stage__zoom[src*="cartera"] { width: min(58%, 420px); }
.stage--zr .stage__zoom { width: min(40%, 290px); }
.stage--zl .stage__zoom[src*="agenda"] { width: min(38%, 300px); }
.shots--one { display: block; max-width: 980px; margin: 20px auto 0; }
.js .stage__zoom { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .6s .25s ease, transform .7s .25s cubic-bezier(.2, .7, .2, 1); }
.js .stage.is-in .stage__zoom { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .stage__zoom { opacity: 1; transform: none; transition: none; } }
@media (max-width: 599px) {
  .stage { padding: 14px 14px 52px; border-radius: 22px; }
  .stage::after { display: none; }
  .stage--zl .stage__zoom[src*="cartera"] { width: 88%; }
  .stage--zr .stage__zoom, .stage--zl .stage__zoom[src*="agenda"] { width: 62%; }
  .stage__zoom { bottom: 12px; border-radius: 12px; }
}

/* Blog: índice y guías */
.post-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.post-head { max-width: calc(840px + 2 * var(--gut)); text-align: center; }
.h-post { margin-top: 14px; font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; line-height: 1.06; letter-spacing: -0.034em; text-wrap: balance; }
.post-head .lead { max-width: 34em; margin: 18px auto 0; text-wrap: pretty; }
.post-meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.post-fig { max-width: calc(960px + 2 * var(--gut)); }
.stage--plain { padding-bottom: clamp(22px, 3.4vw, 44px); }
.post { padding-top: clamp(40px, 5vw, 64px); }
.post .prose { max-width: 700px; font-size: clamp(17px, 1.3vw, 18px); line-height: 1.6; }
.prose ul, .prose ol { margin-top: 12px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand); }
.prose b { color: var(--fg); font-weight: 600; }
.prose .sum { padding: 24px 28px; border-radius: 22px; background: var(--surface); }
.prose .sum h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--accent-text); }
.prose .sum li { color: var(--fg); }
.prose .msg { margin: 16px 0; padding: 16px 20px; border-left: 3px solid var(--brand); border-radius: 0 14px 14px 0; background: var(--surface); color: var(--fg); font-style: italic; }
.note { margin-top: 48px; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-tile); background: var(--surface); }
.note p { color: var(--fg-2); }
.prose .note .note__k { font-size: 15px; font-weight: 600; color: var(--accent-text); }
.note .note__k + p { margin-top: 8px; }
.note .link-more { display: inline-block; margin-top: 14px; }
.pcards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pcards--2 { max-width: 880px; margin: 0 auto; }
.pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-tile); background: var(--surface); color: inherit; text-decoration: none; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); text-decoration: none; }
.pcard__img { display: block; padding: 22px 22px 0; }
.pcard__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-radius: 12px 12px 0 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 18px 36px -24px rgba(0, 0, 0, .3); }
.pcard__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px 28px; }
.pcard__k { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.pcard__t { font-size: 21px; font-weight: 650; line-height: 1.22; letter-spacing: -0.02em; color: var(--fg); }
.pcard__d { font-size: 15px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard:hover { transition: none; transform: none; } }
.post .prose h2 { line-height: 1.2; text-wrap: balance; }

/* ===== Planes ===== */
@media (max-width: 899px) { .plans { display: grid; gap: 16px; max-width: 480px; margin: 0 auto; } .plan--pick { margin-top: 10px; } }
@media (min-width: 900px) { .plans { display: grid; gap: 20px; } }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 36px); border-radius: var(--r-tile); background: var(--surface); }
.plan--pick { background: #fff; box-shadow: var(--shadow-card); outline: 2px solid var(--brand); outline-offset: -2px; }
.plan__tag { align-self: flex-start; margin-bottom: 14px; padding: 4px 12px; border-radius: 980px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; }
@media (min-width: 900px) { .plan__tag { position: absolute; top: 0; left: 50%; margin: 0; transform: translate(-50%, -50%); background: var(--accent); color: #fff; white-space: nowrap; } }
.plan__n { font-size: clamp(26px, 2.4vw, 32px); font-weight: 650; letter-spacing: -0.026em; }
.plan__d { margin-top: 8px; color: var(--muted); }
.plan__list { flex: 1; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line-soft); list-style: none; display: grid; align-content: start; gap: 12px; color: var(--fg-2); }
.plan__list li { display: flex; gap: 10px; }
.plan__list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23C43D14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan .btn { align-self: stretch; }

/* ===== IA: agente (maqueta de una alerta) ===== */
.ai__agent { gap: 24px; }
@media (min-width: 900px) and (max-width: 1179px) { .ai__agent { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; } }
@media (min-width: 1180px) { .ai { grid-template-columns: repeat(3, 1fr); } .ai__agent .alert { margin-top: auto; } }
.alert { padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-card); font-size: 15px; }
.alert__top { display: flex; flex-wrap: wrap; gap: 8px; }
.alert__type, .alert__pri { padding: 3px 10px; border-radius: 980px; font-size: 13px; font-weight: 600; }
.alert__type { background: var(--accent-soft); color: var(--accent-text); }
.alert__pri { background: var(--surface); color: var(--fg-2); }
.alert__who { margin-top: 12px; color: var(--fg-2); }
.alert__who b { color: var(--fg); }
.alert__prop { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--fg); }
.alert__prop span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.alert__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.alert__ok, .alert__no { padding: 8px 16px; border-radius: 980px; font-size: 14px; font-weight: 600; }
.alert__ok { background: var(--accent); color: #fff; }
.alert__no { background: var(--control); color: var(--fg); }
