/* TFT AI-Ready Leadership Pulse · línea visual del TFT Hub (Josefin Sans, negro, turquesa, violeta, crema) */
:root {
  --black: #000; --ink: #0b0b0f; --white: #fff; --cream: #f2f1ec; --mist: #a2bbc9;
  --teal: #3effcc; --violet: #8b3eff; --grad: linear-gradient(135deg, #3effcc 0%, #8b3eff 100%);
  --muted: #8a8a93; --line: rgba(255,255,255,.12); --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Josefin Sans', system-ui, sans-serif; font-weight: 300;
  background: var(--black); color: var(--white); line-height: 1.5; min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
button { font-family: inherit; }

/* Cabecera */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; position: relative; z-index: 3; }
.top .logo { display: block; line-height: 0; }
.top .logo img { height: 34px; width: auto; }
.nw { white-space: nowrap; }
.lang { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.lang a.on { background: var(--teal); color: var(--black); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--teal); margin: 0 0 14px; }
.eyebrow.violet { color: var(--violet); }

/* Botones (píldora turquesa del Hub) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--teal); color: var(--black); font-weight: 600; font-size: 17px; padding: 16px 28px;
  border-radius: 999px; text-decoration: none; transition: transform .15s, box-shadow .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(62,255,204,.25); }
.btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.btn .arr { font-size: 20px; line-height: 1; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn.dark { background: var(--black); color: var(--white); }
.btn.violet { background: var(--violet); color: var(--white); }
.btn.block { width: 100%; }

/* Hero con red neuronal */
.hero { position: relative; min-height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero-in { position: relative; z-index: 2; padding: 0 20px 40px; max-width: 760px; }
.hero h1 { font-size: clamp(38px, 9vw, 76px); }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #cfcfd6; font-size: 18px; max-width: 560px; margin: 18px 0 26px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font-size: 13px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: #dcdce2; background: rgba(0,0,0,.4); }
.chip::before { content: '◆'; color: var(--teal); font-size: 9px; margin-right: 7px; vertical-align: 2px; }
.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 14px 0;
  font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.ticker span { display: inline-block; animation: tick 40s linear infinite; }
.ticker b { color: var(--teal); margin: 0 14px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Cuestionario */
.quiz { display: none; min-height: calc(100vh - 70px); padding: 0 20px 28px; max-width: 680px; margin: 0 auto; flex-direction: column; }
.quiz.on { display: flex; }
.bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; margin: 6px 0 14px; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .35s ease; }
.qhead { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); font-weight: 500; }
.qdim { color: var(--teal); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.qcard { flex: 1; display: flex; flex-direction: column; animation: in .35s ease; }
@keyframes in { from { opacity: 0; transform: translateY(12px); } }
.qtext { font-size: clamp(23px, 5.6vw, 32px); font-weight: 600; margin: 22px 0 8px; line-height: 1.2; }
.qhelp { color: var(--muted); margin: 0 0 14px; }
.qstem { color: var(--muted); font-size: 14px; letter-spacing: .02em; margin: 18px 0 -10px; }
.qstem + .qtext { margin-top: 16px; }
#pdfMsg { color: #c0392b; font-size: 14px; margin: 12px 0 0; }
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.opt { text-align: left; background: #111116; color: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-size: 17px; font-weight: 400; cursor: pointer; display: flex; gap: 14px; align-items: center; transition: border-color .15s, background .15s; }
.opt .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3a3a44; flex: none; transition: all .15s; }
.opt:hover { border-color: rgba(62,255,204,.5); }
.opt.sel { border-color: var(--teal); background: rgba(62,255,204,.08); }
.opt.sel .dot { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 4px #111116; }
.qnav { display: flex; gap: 10px; margin-top: 26px; position: sticky; bottom: 12px; }
.qnav .btn { flex: 1; }
.qnav .btn.ghost { flex: 0 0 auto; }
.msg { color: #ff8a8a; font-size: 14px; min-height: 20px; margin-top: 10px; }
.sending { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 20; align-items: center; justify-content: center; flex-direction: column; gap: 20px; font-size: 18px; }
.sending.on { display: flex; }
.spin { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--teal); animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* Secciones claras (resultados, contacto) */
.light { background: var(--cream); color: var(--ink); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.res-hero { background: var(--black); color: var(--white); padding: 10px 0 40px; position: relative; overflow: hidden; }
.res-hero::after { content: ''; position: absolute; width: 520px; height: 520px; right: -200px; top: -160px; background: radial-gradient(circle, rgba(139,62,255,.35), transparent 65%); pointer-events: none; }
.score-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 12px; position: relative; z-index: 1; }
.ring { width: 150px; height: 150px; position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-size: 46px; font-weight: 700; line-height: 1; }
.ring .num small { color: var(--muted); font-size: 13px; }
.level-name { font-size: clamp(32px, 7vw, 48px); }
.level-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.level-desc { color: #cfcfd6; max-width: 440px; margin: 8px 0 0; }
.sect { padding-top: 44px; padding-bottom: 44px; }
.sect h2 { font-size: 28px; margin-bottom: 6px; }
.card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.card + .card { margin-top: 12px; }
.radar-box { display: flex; justify-content: center; margin: 10px 0 6px; }
.radar-box svg { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.legend { display: flex; gap: 16px; justify-content: center; font-size: 13px; color: #555; margin-bottom: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dim { padding: 14px 0; border-bottom: 1px solid #ecebe5; }
.dim:last-child { border-bottom: 0; }
.dim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; }
.dim-top span { font-weight: 700; font-size: 20px; }
.track { position: relative; height: 10px; background: #ecebe5; border-radius: 10px; margin-top: 8px; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: var(--grad); width: 0; transition: width 1s ease; }
.track .room { position: absolute; top: -5px; width: 3px; height: 20px; background: var(--ink); border-radius: 2px; transform: translateX(-1px); transition: left 1s ease; }
.dim-lv { font-size: 13px; color: #777; margin-top: 6px; }
.note { font-size: 13px; color: #777; margin-top: 10px; }
.rec h3 { font-size: 18px; display: flex; justify-content: space-between; gap: 10px; }
.rec h3 small { font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); white-space: nowrap; }
.rec p { margin: 8px 0 0; }
.ai { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.ai::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ai p { color: #dcdce2; white-space: pre-line; margin: 10px 0 0; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.cta { background: var(--violet); color: var(--white); border-radius: var(--radius); padding: 28px 24px; }
.cta h2 { font-size: 30px; }
.cta p { color: rgba(255,255,255,.85); margin: 10px 0 20px; }
.private { text-align: center; font-size: 13px; color: #777; padding: 10px 0 30px; }

/* Formulario de contacto */
.form-hero { padding: 10px 0 30px; position: relative; overflow: hidden; }
.form-hero h1 { font-size: clamp(34px, 8vw, 56px); }
.form-hero p:not(.eyebrow) { color: #cfcfd6; font-size: 18px; margin: 14px 0 0; max-width: 560px; }
.f { margin-bottom: 18px; }
.f label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.f label .req { color: var(--violet); }
.f input[type=text], .f input[type=email], .f input[type=tel], .f select, .f textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 17px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid #d9d8d1; background: var(--white); color: var(--ink); }
.f textarea { min-height: 110px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
.f .err { color: #c0392b; font-size: 13px; margin-top: 5px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--violet); flex: none; margin-top: 1px; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.ok-box { text-align: center; padding: 40px 20px; }
.ok-box .big { font-size: 60px; }
.ok-box h2 { margin-bottom: 8px; }
.ok-box p { margin: 4px 0; font-size: 17px; }

footer.foot { background: var(--black); color: var(--muted); font-size: 13px; padding: 26px 20px; text-align: center; border-top: 1px solid transparent; border-image: var(--grad) 1; }
footer.foot a { color: var(--white); text-decoration: none; }
footer.foot img { height: 26px; width: auto; margin: 0 auto 10px; }

/* Pantalla en directo: pensada para proyector, todo en una pantalla sin scroll */
.live { height: 100vh; display: grid; grid-template-columns: .95fr 1.05fr; gap: 3vw; padding: 4.5vh 4vw; align-items: center; position: relative; overflow: hidden; }
.live #net { opacity: .35; }
.live > * { position: relative; z-index: 2; min-width: 0; }
.live .live-logo { height: 5vh; width: auto; margin-bottom: 4vh; }
.live .eyebrow { font-size: 1.5vh; margin-bottom: 1.4vh; }
.live h1 { font-size: min(3.4vw, 5.6vh); margin-bottom: 3vh; }
.live .counters { display: flex; gap: 3.5vw; margin: 0 0 4vh; }
.live .counter b { display: block; font-size: min(9vw, 16vh); line-height: .9; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live .counter span { font-size: 1.7vh; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.live .scan { display: flex; align-items: center; gap: 2vw; }
.live .scan .qr { background: #fff; padding: 1.2vh; border-radius: 1.4vh; width: 24vh; height: 24vh; flex: none; }
.live .scan .qr svg { width: 100%; height: 100%; display: block; }
.live .scan p { font-size: 3vh; font-weight: 600; margin: 0 0 .6vh; }
.live .scan small { color: var(--muted); font-size: 2vh; }
.live .radar-box { margin: 0; }
.live .radar-box svg { width: 100%; max-width: none; max-height: 50vh; }
.live .waiting { color: var(--muted); font-size: 2.4vh; }
.live .ldims { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vh 2.4vw; margin-top: 2vh; }
.live .ld { display: grid; grid-template-columns: 1fr auto; gap: .6vh 1vw; align-items: center; font-size: 1.9vh; font-weight: 500; }
.live .ld .track { grid-column: 1 / -1; background: rgba(255,255,255,.1); height: 1vh; margin: 0; }
.live .ld b { font-size: 2.4vh; }
.bump { animation: bump .6s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }

@media (max-width: 900px), (orientation: portrait) {
  .live { grid-template-columns: 1fr; height: auto; min-height: 100vh; padding: 24px 20px; }
}
@media (min-width: 700px) {
  .actions { flex-direction: row; }
  .actions .btn { flex: 1; }
  .hero-in { padding: 0 48px 60px; }
  .top { padding: 22px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* ---------- Elementos nuevos (base móvil) ---------- */
.hero-visual, .qside, .opt kbd, .split-mark { display: none; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.hl { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: rgba(255,255,255,.03); display: grid; gap: 2px; }
.hl span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.hl.violet span { color: #b78cff; }
.hl b { font-size: 16px; font-weight: 600; line-height: 1.2; }
.hl em { font-style: normal; font-size: 28px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final { display: grid; gap: 14px; }
.pdf-card h2 { font-size: 24px; }
.muted-p { color: #666; margin: 8px 0 18px; }
.recs-grid .card + .card { margin-top: 12px; }

/* ---------- Escritorio ---------- */
@media (min-width: 1000px) {
  .top { padding: 24px 64px; }
  .wrap { max-width: 1140px; padding: 0 48px; }

  /* Portada: texto + panel de cristal con el radar animado */
  .hero { min-height: calc(100vh - 82px); }
  .hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
    width: 100%; max-width: 1440px; margin: auto auto 0; padding: 40px 64px 70px; }
  .hero-in { padding: 0; max-width: 680px; }
  .hero h1 { font-size: clamp(56px, 5.4vw, 88px); }
  .hero p.lead { font-size: 20px; }
  .hero-visual { display: block; }
  .glass { background: rgba(12,12,18,.55); border: 1px solid rgba(255,255,255,.1); border-radius: 28px; padding: 26px 28px 22px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 100px rgba(139,62,255,.22), inset 0 1px 0 rgba(255,255,255,.06); }
  .glass-top { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .26em; font-weight: 600; color: #cfcfd6; }
  .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .35; } }
  .glass .radar-box { margin: 6px 0 4px; }
  .glass .radar-box svg { max-width: 100%; }
  .glass-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 16px; }
  .glass-stats div { padding: 0 6px; border-left: 1px solid var(--line); }
  .glass-stats div:first-child { border-left: 0; padding-left: 0; }
  .glass-stats b { display: block; font-size: 26px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .glass-stats span { font-size: 13px; color: var(--muted); }

  /* Cuestionario: lateral con las dimensiones + pregunta grande */
  .quiz.on { display: grid; grid-template-columns: 300px 1fr; gap: 64px; max-width: 1240px; padding: 36px 64px 60px; align-items: start; min-height: calc(100vh - 82px); }
  .qside { display: block; position: sticky; top: 30px; background: #0b0b10; border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; }
  .qsteps { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 4px; }
  .qsteps li { display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; align-items: center; padding: 10px 10px; border-radius: 12px; color: var(--muted); transition: background .2s, color .2s; }
  .qsteps li .n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #2c2c35; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
  .qsteps li .t { font-weight: 500; font-size: 15px; line-height: 1.2; }
  .qsteps li i { grid-column: 2; height: 3px; background: #1e1e26; border-radius: 3px; overflow: hidden; }
  .qsteps li i b { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }
  .qsteps li.on { background: #15151c; color: var(--white); }
  .qsteps li.on .n { border-color: var(--teal); color: var(--teal); }
  .qsteps li.done .n { background: var(--teal); border-color: var(--teal); color: var(--black); }
  .qsteps li.done .n { font-size: 0; }
  .qsteps li.done .n::after { content: '✓'; font-size: 15px; }
  .qside-note { font-size: 13px; color: var(--muted); margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .qmain { display: flex; flex-direction: column; min-height: 72vh; max-width: 780px; }
  .qtext { font-size: clamp(30px, 2.8vw, 42px); margin-top: 34px; }
  .qhelp { font-size: 18px; }
  .opts { gap: 12px; margin-top: 22px; }
  .opt { padding: 19px 22px; font-size: 18px; }
  .opt:hover { transform: translateX(4px); }
  .opt .lbl { flex: 1; }
  .opt kbd { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border: 1px solid #2c2c35; border-radius: 8px; font: 600 13px 'Josefin Sans', sans-serif; color: var(--muted); }
  .opt.sel kbd { border-color: var(--teal); color: var(--teal); }
  .qnav { position: static; margin-top: 30px; justify-content: space-between; }
  .qnav .btn { flex: 0 0 auto; min-width: 200px; }

  /* Resultados */
  .res-hero { padding: 26px 0 64px; }
  .score-wrap { display: grid; grid-template-columns: auto 1fr 300px; gap: 44px; align-items: center; margin-top: 18px; }
  .ring { width: 200px; height: 200px; }
  .ring .num b { font-size: 62px; }
  .level-name { font-size: clamp(44px, 4.4vw, 64px); }
  .level-desc { font-size: 18px; }
  .highlights { grid-template-columns: 1fr; }
  .hl { padding: 18px 20px; }
  .sect { padding-top: 60px; padding-bottom: 60px; }
  .sect h2 { font-size: 34px; margin-bottom: 16px; }
  .dims-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 34px 40px; }
  .recs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .recs-grid .card + .card { margin-top: 0; }
  .rec { transition: transform .2s, box-shadow .2s; }
  .rec:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
  .final { grid-template-columns: 1fr 1.5fr; gap: 16px; align-items: stretch; }
  .final .cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px 44px;
    background: radial-gradient(circle at 100% 0, rgba(62,255,204,.35), transparent 55%), var(--violet); }
  .final .cta h2 { font-size: 40px; }
  .pdf-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 34px; }

  /* 2.ª landing: texto a la izquierda, formulario a la derecha */
  .split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 82px); }
  .split .form-hero { display: flex; align-items: center; padding: 40px 0 60px; position: sticky; top: 0; align-self: start; min-height: calc(100vh - 82px); }
  .split .form-hero .wrap { max-width: 600px; margin: 0 0 0 auto; padding: 0 64px; }
  .split .form-hero h1 { font-size: clamp(44px, 4vw, 64px); }
  .split .form-hero p:not(.eyebrow) { font-size: 20px; }
  .split-mark { display: block; font-size: 120px; line-height: 1; margin-top: 40px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .split main.light { display: flex; align-items: center; border-radius: 32px 0 0 32px; }
  .split main.light .wrap { max-width: 620px; margin: 0 auto 0 0; padding: 60px 64px; width: 100%; }
  .split .card { padding: 34px; }
}
