/* ===================== Tamizaje (tablet del stand) ===================== */
.tz { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.tz-bg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,12,31,.78) 0%, rgba(4,12,31,.92) 70%, var(--bg) 100%), url(/img/fondo-olas.webp) center / cover no-repeat var(--bg); overflow: hidden; }
.tz-bg .blob { position: absolute; border-radius: 50%; filter: blur(44px); opacity: .32; animation: float 18s ease-in-out infinite; will-change: transform; transform: translateZ(0); }
.tz-bg .b1 { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: #187bd8; }
.tz-bg .b2 { width: 38vw; height: 38vw; right: -10vw; top: 20vh; background: #48c5c5; animation-delay: -6s; }
.tz-bg .b3 { width: 40vw; height: 40vw; left: 30vw; bottom: -20vw; background: #0a2257; animation-delay: -12s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, -3vh) scale(1.08); } }

.tz-top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.tz-logo { height: 34px; width: auto; }
.tz-stepper { display: flex; gap: 6px; margin: 0 auto; }
.tz-stepper span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid transparent; color: var(--muted); font-size: 13px; transition: all .3s; }
.tz-stepper i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-style: normal; font-size: 12px; font-weight: 600; transition: all .3s; }
.tz-stepper span.on { color: var(--text); border-color: rgba(24,123,216,.5); background: rgba(24,123,216,.14); }
.tz-stepper span.on i { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(24,123,216,.25); }
.tz-stepper span.done { color: #74dcab; } .tz-stepper span.done i { background: rgba(45,179,79,.25); color: #74dcab; }
.tz-right { display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) { .tz-stepper b { display: none; } .tz-stepper span { padding: 4px; } .tz-top { padding: 10px 14px; gap: 10px; } .tz-right #room-pill { display: none; } }
.tz-progress { height: 3px; background: rgba(255,255,255,.07); }
.tz-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px rgba(72,197,197,.6); }

.tz-stage { flex: 1; position: relative; display: grid; }
.screen { grid-area: 1 / 1; width: min(100%, 880px); margin: 0 auto; padding: 24px 20px 40px; opacity: 0; transform: translateY(18px); transition: opacity .32s ease, transform .32s cubic-bezier(.2,.8,.2,1); }
.screen.in { opacity: 1; transform: none; }
.screen.out { opacity: 0; transform: translateY(-14px); }
.screen[hidden] { display: none; }

/* Tipografía y piezas comunes */
.tz .eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .18em; }
.tz h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.02; letter-spacing: -0.02em; margin: 6px 0 14px; }
.tz h2 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.15; letter-spacing: -0.015em; }
.tz h1 em, .tz h2 em { font-style: normal; background: linear-gradient(90deg, #7db8ff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tz .lead { margin: 0; color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.55; max-width: 56ch; }
.tz .lead b { color: var(--text); }
.tiny { font-size: 12px; margin: 14px 0 0; }
.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 14px 30px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 18px; font-weight: 600; letter-spacing: .01em; box-shadow: 0 10px 30px rgba(24,123,216,.35); transition: transform .15s, box-shadow .2s, background .2s; }
.cta:hover { background: #2a8ae8; box-shadow: 0 14px 34px rgba(24,123,216,.45); transform: translateY(-1px); }
.cta:active:not(:disabled) { transform: scale(.97); }
.cta .ico { width: 1.1em; height: 1.1em; transition: transform .2s; } .cta:hover .ico { transform: translateX(3px); }
.cta.sm { min-height: 46px; padding: 10px 18px; font-size: 15px; box-shadow: none; }
.ghost-btn { background: transparent; border: 1px solid var(--line); color: var(--muted); min-height: 46px; padding: 10px 16px; border-radius: 999px; font-size: 15px; }
.ghost-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.link-btn { color: var(--muted); font-size: 14px; text-decoration: none; padding: 10px 4px; }
.link-btn:hover { color: var(--text); }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.actions.between { justify-content: space-between; }

/* Consentimiento */
.hero { padding-top: clamp(10px, 6vh, 60px); animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.promises { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.promises li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: 15px; animation: rise .5s both; }
.promises li:nth-child(1) { animation-delay: .1s } .promises li:nth-child(2) { animation-delay: .18s } .promises li:nth-child(3) { animation-delay: .26s } .promises li:nth-child(4) { animation-delay: .34s }
.promises .ico { width: 20px; height: 20px; color: var(--accent); flex: none; }
#btn-start { animation: rise .5s .4s both, pulse 2.4s 1.2s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(24,123,216,.35); } 50% { box-shadow: 0 10px 30px rgba(24,123,216,.35), 0 0 0 12px rgba(24,123,216,.12); } }

/* Preguntas */
.q-wrap { display: flex; flex-direction: column; min-height: 62vh; }
.q-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.q-back { border-radius: 999px; color: var(--muted); }
.q-back:disabled { visibility: hidden; }
.q-head .eyebrow { margin-left: auto; }
.q-count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.q-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 10px 0 20px; }
.q-body.slide-in-right { animation: slideR .38s cubic-bezier(.2,.8,.2,1) both; }
.q-body.slide-in-left { animation: slideL .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slideR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slideL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.q-intro { margin: 0; color: var(--muted); font-size: 15px; }
.q-text { font-size: clamp(24px, 4vw, 38px); margin: 0 0 18px; line-height: 1.15; }
.q-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--text); font-size: 17px; text-align: left; justify-content: flex-start; animation: rise .4s both; animation-delay: calc(var(--i) * 50ms); transition: background .15s, border-color .15s, transform .12s; }
.opt:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.opt:active { transform: scale(.98); }
.opt-key { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 13px; color: var(--muted); flex: none; }
.opt-label { flex: 1; }
.opt-check { width: 22px; height: 22px; opacity: 0; transform: scale(.4); transition: all .2s; color: #fff; }
.opt.picked { background: rgba(24,123,216,.22); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,123,216,.2); }
.opt.picked .opt-key { background: var(--primary); color: #fff; }
.opt.picked .opt-check { opacity: 1; transform: scale(1); }
.q-dots { display: flex; gap: 6px; justify-content: center; }
.q-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.14); transition: all .3s; }
.q-dots i.done { background: rgba(72,197,197,.7); }
.q-dots i.on { background: var(--primary); width: 22px; border-radius: 4px; }

/* Radar */
.r-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.r-head .eyebrow { width: 100%; }
.level-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); animation: rise .5s .6s both; }
.level-badge::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.r-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 24px; align-items: center; }
@media (max-width: 700px) { .r-grid { grid-template-columns: 1fr; } }
.r-chart svg { width: 100%; height: auto; }
.r-chart .grid { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1; }
.r-chart .area { stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(72,197,197,.25)); }
.r-chart .dot { filter: drop-shadow(0 0 6px rgba(0,0,0,.5)); }
.r-chart .lbl { fill: var(--muted); font-size: 11.5px; text-anchor: middle; dominant-baseline: middle; font-family: var(--font); font-weight: 500; }
.r-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.r-legend li { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid var(--c); animation: rise .45s both; animation-delay: calc(.35s + var(--i) * 110ms); }
.lg-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lg-row b { font-size: 15px; } .lg-row small { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.r-legend .bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); margin: 8px 0 6px; overflow: hidden; }
.r-legend .bar i { display: block; height: 100%; background: var(--c); border-radius: 999px; transition: width 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(.4s + var(--i) * 110ms); }
.r-legend span { font-size: 13px; color: var(--c); font-weight: 500; }
.quote { margin: 20px 0 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: rgba(72,197,197,.08); border-radius: 0 14px 14px 0; font-size: 16px; line-height: 1.55; animation: rise .5s .9s both; }
.quote.big { font-size: clamp(17px, 2.2vw, 21px); font-family: var(--font-display); font-weight: 600; }
.note { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; animation: rise .5s 1s both; }
.note.orange { background: rgba(234,88,12,.12); border: 1px solid rgba(234,88,12,.4); color: #ffbf96; }
.note.red { background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.4); color: #ffb3b5; }

/* Experiencia VR */
.v-head { margin-bottom: 14px; }
.headset { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); }
.headset .dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4357; flex: none; }
.headset.on { color: var(--text); border-color: rgba(45,179,79,.35); } .headset.on .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(45,179,79,.2); animation: beat 1.6s ease-in-out infinite; }
.headset.off { color: #ffc66b; border-color: rgba(242,169,0,.35); } .headset.off .dot { background: var(--warn); }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 4px rgba(45,179,79,.2); } 50% { box-shadow: 0 0 0 7px rgba(45,179,79,.08); } }
.v-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vcard { border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; animation: rise .45s both; animation-delay: calc(var(--i) * 90ms); transition: transform .2s, border-color .2s, box-shadow .2s; }
.vcard:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.2); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.vcard.sent { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,123,216,.2); }
.vthumb { position: relative; aspect-ratio: 2 / 1; background: #000; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vthumb .tag { position: absolute; top: 10px; left: 10px; background: rgba(72,197,197,.92); color: #04202a; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .03em; }
.vthumb .tag.dur { left: auto; right: 10px; background: rgba(0,0,0,.7); color: #fff; font-variant-numeric: tabular-nums; }
.vthumb .tag.warn { top: auto; bottom: 10px; right: 10px; left: auto; background: rgba(242,169,0,.95); color: #1a1200; }
.sent-badge { position: absolute; bottom: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: all .25s; }
.sent-badge .ico { width: 14px; height: 14px; }
.vcard.sent .sent-badge { opacity: 1; transform: none; }
.vbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vbody b { font-size: 16px; font-weight: 600; }
.vbody small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.vbody .warn-text { color: #ffd27a; }
.vactions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.vactions .cta { flex: 1; justify-content: center; }

/* Cierre */
.c-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 2vh; }
.c-wrap .lead { text-align: center; }
.c-check { width: 110px; height: 110px; margin-bottom: 6px; }
.c-check .ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 330; stroke-dashoffset: 330; animation: draw 1s .1s cubic-bezier(.2,.8,.2,1) forwards; }
.c-check .tick { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .5s .8s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.c-wrap .quote { text-align: left; max-width: 640px; }
.c-wrap .cta { margin-top: 18px; animation: rise .5s 1.2s both; }

.tz-foot { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; padding: 10px 16px 16px; }
.tz-foot img { height: 28px; width: auto; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .tz *, .tz *::before, .tz *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
}

/* Onda al tocar una respuesta */
.ripple { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255,255,255,.35); pointer-events: none; animation: ripple .65s ease-out forwards; }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

/* Pantalla de análisis */
.t-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 4vh; }
.t-orb { width: 170px; height: 170px; margin-bottom: 6px; }
.t-orb svg { width: 100%; height: 100%; overflow: visible; }
.t-ring { fill: none; stroke: rgba(72,197,197,.45); stroke-width: 1.2; transform-origin: center; animation: ringPulse 2.2s ease-in-out infinite; }
.t-ring.r2 { animation-delay: .3s; stroke: rgba(24,123,216,.5); } .t-ring.r3 { animation-delay: .6s; }
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.06); opacity: 1; } }
.t-sweep { fill: url(#none); fill: rgba(72,197,197,.28); transform-origin: center; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.t-core { fill: var(--accent); filter: drop-shadow(0 0 10px var(--accent)); animation: corePulse 1.2s ease-in-out infinite; }
@keyframes corePulse { 0%, 100% { r: 4; } 50% { r: 7; } }
.t-lines { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: min(100%, 360px); text-align: left; }
.t-lines li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: 15px; opacity: .45; transition: all .3s; }
.t-lines li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); flex: none; transition: all .3s; position: relative; }
.t-lines li.on { opacity: 1; color: var(--text); border-color: rgba(72,197,197,.35); }
.t-lines li.on i { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.t-lines li.done i { animation: none; border-color: var(--ok); background: var(--ok); }
.t-lines li.done i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Barrido sobre el radar ya dibujado */
.r-chart { position: relative; }
.r-sweep { position: absolute; inset: 8% 8% 12% 8%; border-radius: 50%; pointer-events: none; opacity: 0; background: conic-gradient(from 0deg, rgba(72,197,197,0) 0deg, rgba(72,197,197,.22) 40deg, rgba(72,197,197,0) 60deg); mask: radial-gradient(circle, transparent 10%, #000 11%, #000 70%, transparent 71%); -webkit-mask: radial-gradient(circle, transparent 10%, #000 11%, #000 70%, transparent 71%); }
.r-sweep.go { animation: sweep 2.4s .9s cubic-bezier(.3,.6,.3,1) 1 both; }
@keyframes sweep { 0% { opacity: 0; transform: rotate(0deg); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: rotate(720deg); } }

/* Pista de inactividad en la portada */
.attract { display: block; margin-top: 14px; color: var(--accent); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; animation: attract 1.6s ease-in-out infinite; }
@keyframes attract { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* Línea entre pasos */
.tz-stepper { position: relative; }
.tz-stepper span { position: relative; z-index: 1; background-clip: padding-box; }

/* Tarjeta horizontal: video a la izquierda, descripción a la derecha */
.v-list { grid-template-columns: 1fr; }
.vcard { display: grid; grid-template-columns: minmax(200px, 42%) 1fr; }
.vcard .vthumb { aspect-ratio: auto; min-height: 180px; height: 100%; }
.vcard .vbody { padding: 16px 18px; }
.vcard .vbody b { font-size: 18px; }
.vcard .vbody small { font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .vcard { grid-template-columns: 1fr; } .vcard .vthumb { aspect-ratio: 2 / 1; min-height: 0; } }
