@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Layout: Kairos. Fondo hueso, negro casi puro, naranja como único acento.
     Etiquetas en mono mayúsculas con tracking; botones rectos; fotos con esquinas muy redondeadas. */
  --bg: #f7f6f2;
  --panel: #f1efea;
  --card: #fbfbf8;
  --white: #ffffff;
  --ink: #0a0a0a;
  --muted: #55554f;
  --line: #e2dfd7;
  --accent: #ff4b1f;
  --accent-ink: #ffffff;
  --court: #123a5c;      /* azul pista, color propio del chat y la portada */
  --court-2: #1d5a86;
  --chat: #eaf0f4;
  --ball: #e4ef4f;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; }
.accent { color: var(--accent); }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Cabecera */
.top { max-width: 1180px; margin: 0 auto; padding: 22px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.nav { display: flex; gap: 26px; color: var(--muted); }
main { max-width: 1180px; margin: 0 auto; padding: 0 20px 56px; }

/* Inicio */
.steps { display: flex; flex-wrap: wrap; gap: 10px 32px; color: var(--muted); margin: 8px 0 22px; }
.steps b { color: var(--accent); font-weight: 600; margin-right: 8px; }
.hero { position: relative; border-radius: 36px; overflow: hidden; min-height: 480px; background: var(--court); display: grid; grid-template-columns: 1.15fr .85fr; }
.hero-photo { position: relative; min-height: 100%; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--court) 0%, rgba(18,58,92,0) 28%); pointer-events: none; }
.hero-body { position: relative; z-index: 2; padding: 40px; align-self: end; display: grid; gap: 14px; color: #fff; max-width: 640px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6vw, 60px); line-height: 1; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.hero p { margin: 0; font-size: 17px; color: rgba(255,255,255,.88); max-width: 46ch; }
.hero .who { display: flex; align-items: center; gap: 12px; }
.hero .mono { color: rgba(255,255,255,.85); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.trust div { background: var(--card); border: 1px solid var(--line); padding: 18px; display: grid; gap: 4px; }
.trust b { font-family: var(--font-display); font-size: 17px; }
.trust span { color: var(--muted); font-size: 14px; }
.trust .accent { color: var(--accent); font-size: 12px; }

/* Botones */
.btn { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; padding: 16px 24px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 0; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(.95); }
.btn.light { border-color: #fff; color: #fff; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; }
.linkbtn:hover { color: var(--ink); }

/* Avatar del asesor */
.avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--accent); padding: 3px; flex: none; }
.avatar span { width: 100%; height: 100%; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.avatar.sm { width: 46px; height: 46px; }
.avatar.sm span { font-size: 17px; }

/* Chat del cuestionario: paleta y tipografía del "AI prompt composer" (tema oscuro) sobre el fondo hueso de la página */
.chat, .top-slot {
  --card-bg: #18181c;
  --card-border: rgba(255,255,255,.065);
  --card-focus-border: rgba(255,255,255,.12);
  --card-shadow: 0 20px 45px -15px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  --pill-bg: #26262c;
  --pill-hover-bg: #2d2d34;
  --pill-border: rgba(255,255,255,.095);
  --pill-hover-border: rgba(255,255,255,.15);
  --pill-inset: inset 0 1px 0 rgba(255,255,255,.05);
  --ghost-hover-bg: rgba(255,255,255,.045);
  --ghost-hover-border: rgba(255,255,255,.075);
  --text-primary: #f4f4f6;
  --text-secondary: #8e8d95;
  --text-muted: #6e6d76;
  --placeholder: #8c8b93;
  --submit-bg: #222227;
  --submit-border: rgba(255,255,255,.08);
  --submit-color: #7c7b84;
  --submit-ready-bg: #2d2d35;
  --submit-ready-border: rgba(255,255,255,.16);
  --accent-blue: #1d74f5;
  --accent-coral: #e87b58;
  --ease: cubic-bezier(.22,1,.36,1);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  letter-spacing: -.011em;
  color: var(--text-primary);
}
.chat {
  max-width: 760px; margin: 12px auto 0; display: flex; flex-direction: column; gap: 12px;
  /* Altura fija de pantalla: la conversación se desplaza por dentro */
  height: calc(100vh - var(--top-h, 80px) - 24px); height: calc(100dvh - var(--top-h, 80px) - 24px); min-height: 440px;
}
.bar, .composer { flex: none; }
/* La cabecera del asesor ocupa la fila del logo y se alinea con la columna del chat */
.top-slot:empty { display: none; }
body:has(.top-slot:not(:empty)) .top { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 760px) 1fr; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.top-slot { min-width: 0; }
.top-slot .chat-head.nuevo { animation: entra-up .5s cubic-bezier(.16,1,.3,1) both; }
.chat-head .who { min-width: 0; }
.chat-head .who h2, .chat-head .who .role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(.chat, .top-slot) .mono { font-family: inherit; text-transform: none; letter-spacing: -.011em; font-size: 13.5px; }
:is(.chat, .top-slot) .avatar { border-color: var(--accent-coral); }
:is(.chat, .top-slot) .avatar span { background: #0d0d10; color: var(--text-primary); font-family: inherit; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; box-shadow: var(--card-shadow); position: relative; overflow: hidden; }
.chat-head h2 { font-family: inherit; font-weight: 600; font-size: 16px; margin: 0; line-height: 1.2; color: var(--text-primary); }
.chat-head .role { color: var(--text-secondary); font-weight: 400; }
.step-pill { margin-left: auto; flex: none; height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--pill-border); box-shadow: var(--pill-inset); color: var(--text-primary); font-weight: 500; white-space: nowrap; }
.step-word { color: var(--text-secondary); margin-right: 4px; }
.bar { height: 2px; background: #47454d; border-radius: 999px; overflow: hidden; margin: 0 18px; }
.bar > div { height: 100%; background: var(--accent-blue); border-radius: 999px; transition: width .4s var(--ease); }

.log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 4px 4px; display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(24,24,28,.25) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px); mask-image: linear-gradient(180deg, transparent 0, #000 18px); }
.log > :first-child { margin-top: auto; }
.log::-webkit-scrollbar { width: 6px; }
.log::-webkit-scrollbar-thumb { background: rgba(24,24,28,.25); border-radius: 999px; }
.msg { max-width: 560px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 6px 18px 18px 18px; padding: 12px 16px; font-size: 15.5px; line-height: 1.5; box-shadow: var(--card-shadow); }
.msg.past { font-size: 14px; color: var(--text-secondary); background: #2d2c32; box-shadow: none; }
.msg small { display: block; color: var(--text-secondary); font-size: 13.5px; margin-top: 4px; }
.msg-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 4px; }
.msg-row .avatar { width: 32px; height: 32px; padding: 2px; border-width: 1.5px; }
.msg-row .avatar span { font-size: 12.5px; }
.msg.now { animation: entra .42s var(--ease) both; }
.ans { align-self: flex-end; background: var(--pill-bg); border: 1px solid var(--pill-border); box-shadow: var(--pill-inset); color: var(--text-primary); padding: 7px 15px; font-size: 14.5px; font-weight: 500; max-width: 80%; border-radius: 999px; }
@keyframes entra { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Tarjeta de respuesta */
.composer { padding: 18px 16px 14px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px; box-shadow: var(--card-shadow); display: grid; gap: 16px; transition: border-color .2s ease, box-shadow .25s ease; }
.composer:focus-within { border-color: var(--card-focus-border); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { font-family: inherit; letter-spacing: -.011em; font-size: 15px; font-weight: 500; color: var(--text-primary); background: var(--pill-bg); border: 1px solid var(--pill-border); box-shadow: var(--pill-inset); padding: 8px 16px; min-height: 40px; cursor: pointer; text-align: left; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease; }
.opt-txt { display: grid; gap: 1px; }
.opt small { font-size: 12.5px; color: var(--text-secondary); font-weight: 400; }
.opt:hover { background: var(--pill-hover-bg); border-color: var(--pill-hover-border); }
.opt:active { transform: scale(.98); }
.opt.sel { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(29,116,245,.7); }
.opt.sel small { color: rgba(255,255,255,.8); }
.opt .check { width: 15px; height: 15px; flex: none; opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .22s var(--ease); }
.opt.sel .check { opacity: 1; transform: none; }
.composer-field input, .composer-field textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.5; border: 0; outline: 0; background: transparent; color: var(--text-primary); padding: 0 2px; resize: none; }
.composer-field textarea { min-height: 72px; max-height: 160px; }
.composer-field input::placeholder, .composer-field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.composer-field input:focus-visible, .composer-field textarea:focus-visible { outline: 0; }
.composer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.composer-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ghost-pill { height: 38px; padding: 0 13px 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid transparent; color: var(--text-secondary); font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.011em; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease; }
.ghost-pill:hover { background: var(--ghost-hover-bg); border-color: var(--ghost-hover-border); color: var(--text-primary); }
.ghost-pill:active { transform: scale(.97); }
.send-btn { height: 38px; padding: 0 14px 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 500; font-size: 15px; letter-spacing: -.011em; cursor: pointer; background: var(--submit-bg); border: 1px solid var(--submit-border); color: var(--submit-color);
  transition: all .18s ease; }
.send-btn:not(:disabled):hover, .send-btn.ready { background: var(--submit-ready-bg); border-color: var(--submit-ready-border); color: var(--text-primary); }
.send-btn:not(:disabled):active { transform: scale(.95); }
.send-btn:disabled { cursor: not-allowed; }
.chat button:focus-visible, .chat input:focus-visible, .chat textarea:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
.composer-field input:focus-visible, .composer-field textarea:focus-visible { outline: 0; }

/* Resultados: primera pantalla (como la portada) y, al bajar, las 3 sugerencias con estilo de tarjeta de deporte */
.res-hero { gap: 16px; }
.res-hero .intro { margin: 0; }
.res-hero .notice { margin: 0; }
.listo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.8vw, 22px); }
.listo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(255,75,31,.15); }
.ia-status { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ia-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: .25; } to { opacity: 1; } }
.res-sug { scroll-margin-top: 16px; padding-top: 8px; }
.res-perfil { display: grid; gap: 10px; margin: 0 0 22px; max-width: 900px; }
.res-perfil > .mono { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--line); background: var(--card); padding: 6px 10px; color: var(--muted); border-radius: 999px; }
.notice { border-left: 3px solid var(--accent); background: var(--card); padding: 14px 18px; max-width: 760px; margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }

.pcard { position: relative; border-radius: 28px; overflow: hidden; color: #fff; display: flex; flex-direction: column; isolation: isolate; box-shadow: 0 24px 48px -28px rgba(10,10,10,.55); }
.pcard.top1 { box-shadow: 0 0 0 2px var(--accent), 0 24px 48px -24px rgba(255,75,31,.45); }
.pfondo { position: absolute; inset: 0; z-index: -2; }
.pfondo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,.2) 0%, rgba(10,10,10,.62) 34%, rgba(10,10,10,.86) 62%, rgba(10,10,10,.92) 100%); }
.pimg { position: relative; display: grid; place-items: center; padding: 64px 22px 6px; }
.pfoto { width: 100%; display: grid; place-items: center; padding: 18px; border-radius: 22px; background: rgba(247,246,242,.9); box-shadow: 0 18px 36px -18px rgba(0,0,0,.6), inset 0 1px 0 #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pimg svg { width: 130px; height: 190px; }
.pimg svg.wide { width: 190px; height: 170px; }
.pimg .foto-producto { width: 100%; max-width: 220px; height: 200px; object-fit: contain; display: block; }
.rank { position: absolute; top: 20px; left: 22px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: 13px; padding: 7px 13px; border-radius: 999px; }
.matchb { position: absolute; top: 14px; right: 22px; text-align: right; }
.matchb b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.matchb span { color: rgba(255,255,255,.75); font-size: 11px; }
.pbody { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.brandline { color: rgba(255,255,255,.75); font-size: 11.5px; }
.pname { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; margin: -6px 0 0; letter-spacing: -.02em; }
.price { font-family: var(--font-mono); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; color: rgba(255,255,255,.9); }
.titular { margin: 0; font-size: 16.5px; font-weight: 600; text-wrap: balance; }
.pcard .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.why { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--accent); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; font-size: 15px; }
.why ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.notaras { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.9); }
.notaras b, .tip b { font-weight: 700; color: #fff; }
.tip { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.75); }
.warn { background: rgba(255,75,31,.16); border: 1px solid rgba(255,75,31,.35); border-radius: 14px; padding: 11px 14px; font-size: 14px; color: #fff; }
.buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.buy .pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pill.primary { background: var(--accent); color: #fff; }
.pill.primary:hover { background: #fff; color: var(--ink); }
.res-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .buy { flex-direction: column; }
  .buy .pill { justify-content: space-between; }
  .pimg { padding: 60px 18px 4px; }
  .pfoto { padding: 12px; }
  .pimg svg { width: 100px; height: 146px; }
  .pimg svg.wide { width: 150px; height: 130px; }
  .pimg .foto-producto { height: 150px; }
  .pbody { padding: 16px 18px 20px; }
}

footer { border-top: 1px solid var(--line); }
footer .in { max-width: 1180px; margin: 0 auto; padding: 22px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); }

/* Titular de portada */
.intro { display: grid; gap: 14px; margin: 10px 0 30px; max-width: 900px; }
.intro h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 6.4vw, 72px); line-height: .98; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.intro p { margin: 0; font-size: 18px; color: var(--muted); max-width: 56ch; }
/* Selector de deportes */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin: 44px 0 18px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; margin: 0; line-height: 1; }
.sports { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sport { position: relative; border-radius: 28px; overflow: hidden; min-height: 380px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; isolation: isolate; }
.sport .art { position: absolute; inset: 0; z-index: -2; }
.sport .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sport .art svg { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); width: 62%; max-width: 170px; height: auto; opacity: .95; }
.sport::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,0) 38%, rgba(10,10,10,.62) 100%); }
.sport h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 0; letter-spacing: -.02em; }
.sport .adv { color: rgba(255,255,255,.82); font-size: 11px; margin-top: 2px; }
.sport .prods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.pill:hover { background: var(--accent); color: #fff; }
.s-padel { background: var(--court); }
.s-running { background: linear-gradient(165deg, #d0563a, #7d2615); }
.s-esqui { background: linear-gradient(170deg, #7fa4c6, #1f3d5c); }
.s-golf { background: linear-gradient(165deg, #5b8f45, #1e4220); }
.s-ciclismo { background: linear-gradient(165deg, #4a5059, #16191d); }
/* Ficha técnica calculada */
.ficha { display: flex; flex-wrap: wrap; gap: 10px 26px; background: var(--court); color: #fff; padding: 16px 22px; border-radius: 16px; max-width: 760px; margin: 0 0 24px; align-items: center; }
.ficha .mono { color: var(--ball); }
.ficha b { font-weight: 700; }
.btn.round { border-radius: 999px; }
@media (max-width: 1080px) { .sports { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { min-height: 0; border-radius: 26px; grid-template-columns: 1fr; }
  .hero-photo { height: 300px; order: -1; }
  .hero-photo img { object-position: 50% 70%; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(18,58,92,0) 55%, var(--court) 100%); }
  .hero-body { padding: 8px 24px 28px; }
  .trust { grid-template-columns: 1fr; }
  .sports { grid-template-columns: 1fr; }
  .sport { min-height: 300px; }
  .chat { gap: 10px; }
  .chat-head { padding: 7px 10px 7px 7px; gap: 9px; border-radius: 16px; }
  .chat-head .avatar.sm { width: 36px; height: 36px; padding: 2px; }
  .chat-head .role { display: none; }
  .chat-head h2 { font-size: 15px; }
  .step-pill { height: 28px; padding: 0 10px; font-size: 12.5px; }
  body:has(.top-slot:not(:empty)) .top { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px 16px; }
  body:has(.top-slot:not(:empty)) .logo-img { height: 26px; }
  .step-word { display: none; }
  .bar { margin: 0 14px; }
  .log { padding: 4px 0; }
  .chat { margin-top: 4px; height: calc(100vh - var(--top-h, 70px) - 14px); height: calc(100dvh - var(--top-h, 70px) - 14px); min-height: 0; }
  .ans { max-width: 88%; }
  .composer { padding: 14px 12px 10px; border-radius: 22px; }
  .opt { flex: 1 1 100%; justify-content: space-between; }
  .composer-bar, .composer-actions { gap: 4px; }
  .send-btn { padding: 0 12px 0 14px; gap: 6px; }
  .ghost-pill { padding: 0 10px 0 8px; }
  #omitir .flecha { display: none; }
}
@media (prefers-reduced-motion: reduce) { .top-slot .chat-head.nuevo { animation: none; } .bar > div { transition: none; } .msg.now { animation: none; } .opt, .send-btn, .ghost-pill { transition: none; } .ia-status .dot { animation: none; } }

/* Pie y páginas legales */
footer .disclosure { max-width: 1180px; margin: 0 auto; padding: 0 20px 22px; color: var(--muted); font-size: 13px; }
footer a { color: inherit; }
.legal { max-width: 760px; display: grid; gap: 14px; padding-bottom: 40px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; margin: 10px 0 6px; line-height: 1.05; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 18px 0 0; }
.legal p, .legal li { margin: 0; color: var(--ink); }
.legal .pendiente { background: #fff1ea; padding: 0 4px; }

.flecha { width: 14px; height: 10px; vertical-align: middle; flex: none; }

/* ===================== PORTADA EN TRES TIEMPOS =====================
   1) primera pantalla con pasos, título y texto · 2) deportes · 3) cierre que se descubre debajo (efecto telón) */
body:has(.home) { overflow-x: clip; }
body:has(.home) > footer { display: none; }
body:has(.home) main { padding-bottom: 0; }
body:has(.home) .top { position: relative; z-index: 2; }
body:has(.home) .top::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--bg); z-index: -1; }

.home { position: relative; z-index: 1; overflow-x: clip; background: var(--bg); margin: 0 calc(50% - 50vw); padding: 0 max(20px, calc(50vw - 570px)) 64px;
  border-radius: 0 0 40px 40px; box-shadow: 0 30px 60px -30px rgba(10,10,10,.35); }
.home-hero { position: relative; min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); display: flex; flex-direction: column; justify-content: center; padding: 0 0 72px; isolation: isolate; }
.home-hero::before { content: ""; position: absolute; z-index: -1; right: -10%; top: 8%; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,75,31,.12) 0%, rgba(18,58,92,.08) 42%, transparent 70%); filter: blur(40px); pointer-events: none; animation: respira 8s ease-in-out infinite alternate; }
.home-hero .intro { margin-bottom: 0; max-width: 1000px; }
.home-hero .intro h1 { font-size: clamp(40px, 7.6vw, 104px); }
.home-hero .intro p { font-size: clamp(17px, 1.6vw, 21px); }
.desliza { position: absolute; left: 0; bottom: 18px; display: inline-flex; align-items: center; gap: 14px; color: var(--muted); text-decoration: none; }
.desliza i { width: 1px; height: 56px; background: linear-gradient(180deg, var(--ink), transparent); transform-origin: top; animation: baja 2.2s cubic-bezier(.16,1,.3,1) infinite; }
.desliza:hover { color: var(--ink); }
.entra { animation: entra-up .9s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 110ms); }
.sports { scroll-margin-top: 16px; }
.revela { opacity: 0; transform: translateY(36px) scale(.98); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 90ms); }
.revela.visto { opacity: 1; transform: none; }
@keyframes entra-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes baja { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes respira { from { transform: scale(1); opacity: .7; } to { transform: scale(1.1); opacity: 1; } }

/* Cierre: banda negra compacta que se descubre bajo el contenido; los 3 bloques en pequeño y el pie legal discreto */
.cine-wrap { position: relative; margin: 0 calc(50% - 50vw); }
.cine-wrap.telon { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.cine { --fg: #f7f6f2; --dim: rgba(247,246,242,.55);
  position: relative; overflow: hidden; background: var(--ink); color: var(--fg); display: flex; flex-direction: column; gap: 36px; padding: 64px 20px 22px; }
.cine-wrap.telon .cine { position: fixed; left: 0; bottom: 0; width: 100%; }
.cine-aurora { position: absolute; left: 50%; top: 40%; width: 70vw; height: 40vh; border-radius: 50%; filter: blur(80px); pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,75,31,.12) 0%, rgba(29,90,134,.12) 45%, transparent 70%); animation: respira-c 8s ease-in-out infinite alternate; }
@keyframes respira-c { from { transform: translate(-50%, -50%) scale(1); opacity: .6; } to { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }
.cine-grid { position: absolute; inset: 0; pointer-events: none; background-size: 60px 60px;
  background-image: linear-gradient(to right, rgba(247,246,242,.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(247,246,242,.03) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); }
.cine-centro { position: relative; z-index: 2; width: 100%; max-width: 1140px; margin: 0 auto; --c: 1; opacity: var(--c); transform: translateY(calc((1 - var(--c)) * 16px)); }
.cine .trust { margin: 0; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cine .trust > div { background: none; border: 0; border-left: 1px solid rgba(247,246,242,.12); padding: 2px 0 2px 16px; display: grid; gap: 3px; align-content: start; }
.cine .trust b { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fg); }
.cine .trust span { color: var(--dim); font-size: 13.5px; line-height: 1.45; }
.cine .trust .accent { color: var(--accent); font-size: 11px; }
.cine-pie { position: relative; z-index: 2; width: 100%; max-width: 1140px; margin: 0 auto; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(247,246,242,.08); }
.cine-linea { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cine-marca { display: inline-flex; align-items: center; gap: 14px; }
.cine-logo { height: 26px; width: auto; display: block; }
.cine-copy, .cine-legal { color: rgba(247,246,242,.45); font-size: 11px; }
.cine-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cine-legal a { color: inherit; text-decoration: none; }
.cine-legal a:hover { color: var(--fg); }
.cine-aviso { margin: 0; color: rgba(247,246,242,.35); font-size: 12px; line-height: 1.5; max-width: 90ch; }
.glass { color: var(--fg); border-radius: 999px; cursor: pointer;
  background: linear-gradient(145deg, rgba(247,246,242,.06) 0%, rgba(247,246,242,.015) 100%); border: 1px solid rgba(247,246,242,.1);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6), inset 0 1px 1px rgba(247,246,242,.1);
  transition: background .4s cubic-bezier(.16,1,.3,1), border-color .4s cubic-bezier(.16,1,.3,1), color .3s ease, transform 1.1s cubic-bezier(.34,1.56,.64,1); }
.glass.tira { transition: background .4s, border-color .4s, color .3s, transform .35s cubic-bezier(.22,1,.36,1); }
.glass:hover { border-color: rgba(255,75,31,.55); }
.cine-arriba { width: 36px; height: 36px; flex: none; display: grid; place-items: center; padding: 0; color: var(--dim); }
.cine-arriba svg { width: 16px; height: 16px; transition: transform .3s ease; }
.cine-arriba:hover { color: var(--fg); }
.cine-arriba:hover svg { transform: translateY(-3px); }
.cine a:focus-visible, .cine button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 720px) {
  .home { border-radius: 0 0 28px 28px; padding-bottom: 40px; }
  .home-hero { min-height: calc(100svh - 74px); padding-bottom: 88px; justify-content: center; }
  .home-hero::before { width: 120vw; right: -40%; top: 0; }
  .home-hero .steps { gap: 8px 20px; font-size: 11.5px; }
  .cine { padding: 44px 16px 22px; gap: 28px; }
  .cine .trust { grid-template-columns: 1fr; gap: 16px; }
  .cine-linea { flex-direction: column; justify-content: center; text-align: center; gap: 14px; }
  .cine-marca { order: 2; flex-direction: column; gap: 10px; }
  .cine-legal { order: 1; justify-content: center; }
  .cine-arriba { order: 3; }
  .cine-aviso { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .entra, .home-hero::before, .cine-aurora, .desliza i { animation: none; }
  .revela { opacity: 1; transform: none; transition: none; }
  .glass, .cine-arriba svg { transition: none; }
}
/* En resultados no hay contenedor a sangre completa: el halo no debe salirse por la derecha */
.home-hero.res-hero::before { right: 0; width: min(60vw, 100%); }

.logo-img { height: 40px; width: auto; display: block; }
@media (max-width: 720px) { .logo-img { height: 32px; } }

/* Avatares ilustrados de los asesores */
.avatar span { overflow: hidden; }
.avatar span img { width: 100%; height: 100%; display: block; object-fit: cover; }
.adv-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; vertical-align: middle; margin-right: 8px; }
.sport .adv { display: flex; align-items: center; }
/* Tarjetas de deporte en 5 columnas: mismo alto para la descripción (hasta 3 líneas) y para los botones
   (hasta 2 filas), para que título, texto y botones queden alineados aunque un deporte tenga 1 o 2 materiales */
@media (min-width: 1081px) {
  .sport .adv { min-height: 51px; align-items: flex-start; }
  .sport .adv .adv-av { margin-top: -4px; }
  .sport .prods { min-height: 80px; align-content: flex-start; }
}
