/* CubanFaces · página /testers («Hazte tester de la app»). Usa las variables, fuentes y piezas de app.css. */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.pagina-testers { height: auto; min-height: 100%; }
.pagina-testers .aurora { opacity: .55; }

/* Modo plazas / lista de espera: el mismo HTML con otros textos. */
body[data-modo="plazas"] .solo-espera, body[data-modo="espera"] .solo-plazas { display: none !important; }

/* ---------- Cabecera ---------- */
.t-cabeza {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 12px;
  background: linear-gradient(to bottom, rgb(7 6 15 / .82), rgb(7 6 15 / .55) 70%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.t-cabeza .logo { gap: 10px; }
.t-cabeza .logo-emblema { width: 44px; height: 44px; }
.t-cabeza .logo-texto { height: 24px; }
.t-cabeza nav { display: flex; align-items: center; gap: 10px; }
.t-boton-cabeza { padding: 9px 16px; font-size: .9rem; border-color: rgb(255 61 139 / .45); background: rgb(255 61 139 / .1); }
.t-boton-cabeza:hover { background: rgb(255 61 139 / .2); }

.t-pagina { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 24px; }

/* ---------- Hero ---------- */
.t-hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  min-height: min(calc(100dvh - 72px), 760px); padding: clamp(16px, 4vh, 48px) 0 clamp(36px, 6vh, 64px);
}
.t-hero-texto { min-width: 0; animation: aparecer .9s var(--suave) both; }
.t-pildora {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px 7px 11px; border-radius: 99px;
  background: rgb(17 14 34 / .6); border: 1px solid var(--borde-2); font-weight: 650; font-size: .84rem; color: var(--texto);
}
body[data-modo="espera"] .t-pildora .latido { background: var(--aviso); animation: none; }
.t-titular {
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; font-weight: 800; letter-spacing: -.05em;
  margin: 22px 0 20px; text-wrap: balance;
}
.t-titular em, .t-h2 em {
  font-style: normal; background: var(--grad-texto); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: brillo 9s linear infinite;
}
.t-entradilla { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--texto-suave); max-width: 34em; margin: 0; text-wrap: pretty; }
.t-entradilla b { color: var(--texto); }
.t-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 30px; }
.t-acciones .boton.primario { padding-inline: 26px; }
.t-acciones .boton.primario .ico { transition: transform .3s var(--muelle); }
.t-acciones .boton.primario:hover .ico { transform: translateX(4px); }
.t-sellos { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--texto-suave); font-size: .9rem; font-weight: 600; }
.t-sellos li { display: inline-flex; align-items: center; gap: 6px; }
.t-sellos .ico { width: 16px; height: 16px; color: var(--ok); stroke-width: 3; }

/* Móvil de muestra + contador */
.t-hero-visual { position: relative; display: grid; place-items: center; min-width: 0; padding: 10px 0 30px; }
.t-movil {
  position: relative; width: min(300px, 74vw); aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px;
  background: linear-gradient(150deg, #2a2545, #0e0c1d 40%, #1d1a33);
  box-shadow: 0 50px 90px -30px rgb(0 0 0 / .85), 0 0 0 1px rgb(255 255 255 / .12), inset 0 0 0 1px rgb(255 255 255 / .06), 0 0 120px -20px rgb(255 61 139 / .35);
  transform: rotate(4deg); animation: flotar 7s ease-in-out infinite;
}
@keyframes flotar { 50% { transform: rotate(4deg) translateY(-12px); } }
.t-movil-pantalla { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #0b0a17; display: flex; flex-direction: column; }
.t-movil-isla { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 99px; background: #000; z-index: 3; }
.t-movil-pantalla img { width: 100%; height: 42%; object-fit: cover; object-position: 30% 50%; display: block; mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.t-movil-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 0 12px 10px; margin-top: -26px; position: relative; }
.t-burbuja {
  margin: 0; max-width: 84%; padding: 8px 12px; border-radius: 16px 16px 16px 5px; font-size: .8rem; line-height: 1.3;
  background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .08); color: var(--texto);
  opacity: 0; animation: burbuja .6s var(--muelle) forwards;
}
.t-burbuja b { display: block; font-size: .68rem; color: var(--turquesa); margin-bottom: 2px; }
.t-burbuja.mia { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: var(--grad); border: 0; }
.t-burbuja.b1 { animation-delay: .9s; }
.t-burbuja.b2 { animation-delay: 1.7s; }
.t-burbuja.b3 { animation-delay: 2.5s; }
.t-burbuja.b3 b { color: var(--sol); }
.t-burbuja.b4 { animation-delay: 3.3s; }
@keyframes burbuja { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
.t-movil-barra { display: flex; gap: 8px; align-items: center; padding: 8px 12px 16px; }
.t-movil-barra span { flex: 1; height: 30px; border-radius: 99px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .1); }
.t-movil-barra i { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); }

.t-contador {
  position: absolute; left: max(-10px, calc(50% - 310px)); bottom: 0; margin: 0; display: flex; align-items: center; gap: 16px;
  padding: 16px 22px 16px 16px; border-radius: 26px; animation: aparecer .9s .35s var(--suave) both;
  background: rgb(17 14 34 / .86);
}
.t-anillo { position: relative; width: 108px; height: 108px; flex: none; }
.t-anillo svg { width: 100%; height: 100%; rotate: -90deg; }
.t-anillo circle { fill: none; stroke-width: 10; }
.t-anillo-fondo { stroke: rgb(255 255 255 / .08); }
.t-anillo-valor {
  stroke: url(#grad-anillo); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.4s var(--suave); filter: drop-shadow(0 0 6px rgb(255 61 139 / .5));
}
.t-anillo-centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.t-anillo-centro b { font: 800 2.4rem/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.t-anillo-centro small { color: var(--texto-tenue); font-size: .78rem; font-weight: 650; margin-top: 3px; }
.t-contador figcaption { display: grid; gap: 4px; max-width: 190px; }
.t-contador-titulo { font: 750 1.08rem/1.15 var(--display); letter-spacing: -.01em; }
.t-contador-sub { color: var(--texto-suave); font-size: .82rem; line-height: 1.35; }
.t-en-vivo { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ok); }
.t-en-vivo .latido { width: 8px; height: 8px; }
.t-contador.cambio .t-anillo-centro b { animation: salto .6s var(--muelle); }
@keyframes salto { 40% { transform: scale(1.25); color: var(--sol); } }
body[data-modo="espera"] .t-anillo-centro b { color: var(--texto-suave); }

/* ---------- Secciones ---------- */
.t-seccion { padding: clamp(48px, 9vh, 96px) 0 0; }
.t-antetitulo { margin: 0 0 10px; color: var(--turquesa); font-weight: 750; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.t-h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: 0 0 clamp(22px, 4vh, 36px); max-width: 18em; text-wrap: balance; }

/* Ventajas */
.t-tarjetas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.t-ventaja {
  position: relative; padding: 24px 22px; border-radius: var(--radio); background: var(--cristal-solido); border: 1px solid var(--borde);
  box-shadow: var(--sombra); transition: transform .35s var(--muelle), border-color .3s; overflow: hidden;
}
.t-ventaja:hover { transform: translateY(-4px); border-color: var(--borde-2); }
.t-ventaja h3 { font-size: 1.18rem; font-weight: 750; margin: 16px 0 8px; }
.t-ventaja p { margin: 0; color: var(--texto-suave); font-size: .93rem; }
.t-ventaja p b { color: var(--texto); }
.t-ventaja.destacada { grid-column: span 1; background: linear-gradient(160deg, rgb(255 61 139 / .2), rgb(255 166 61 / .08) 55%, var(--cristal-solido)); border-color: rgb(255 61 139 / .4); }
.t-ventaja.destacada::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--buganvilla), transparent 40%, transparent 60%, var(--mango));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.t-valor { margin-top: 14px !important; padding-top: 12px; border-top: 1px dashed rgb(255 255 255 / .15); font-size: .84rem !important; color: var(--sol) !important; font-weight: 650; }
.t-icono { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; }
.t-icono .ico { width: 24px; height: 24px; }
.t-icono.rosa { background: rgb(255 61 139 / .16); color: #ff7aae; box-shadow: inset 0 0 0 1px rgb(255 61 139 / .3); }
.t-icono.mango { background: rgb(255 166 61 / .15); color: var(--mango); box-shadow: inset 0 0 0 1px rgb(255 166 61 / .3); }
.t-icono.turquesa { background: rgb(46 230 197 / .13); color: var(--turquesa); box-shadow: inset 0 0 0 1px rgb(46 230 197 / .28); }
.t-icono.cielo { background: rgb(91 140 255 / .15); color: #8eb0ff; box-shadow: inset 0 0 0 1px rgb(91 140 255 / .3); }

/* Pasos */
.t-lista-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: paso; }
.t-lista-pasos::before {
  content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--buganvilla), var(--mango), var(--turquesa)); opacity: .45;
}
.t-lista-pasos li { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 14px; padding: 0 10px; }
.t-paso-num {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: 800 1.6rem/1 var(--display);
  background: var(--noche-2); border: 2px solid transparent; color: var(--texto);
  background-image: linear-gradient(var(--noche-2), var(--noche-2)), var(--grad); background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 10px 30px -10px rgb(255 61 139 / .6);
}
.t-lista-pasos li:nth-child(3) .t-paso-num { background-image: linear-gradient(var(--noche-2), var(--noche-2)), var(--grad-frio); box-shadow: 0 10px 30px -10px rgb(46 230 197 / .5); }
.t-lista-pasos h3 { font-size: 1.15rem; margin: 0 0 6px; }
.t-lista-pasos p { margin: 0; color: var(--texto-suave); font-size: .93rem; max-width: 22em; }
.t-lista-pasos p b { color: var(--texto); }

/* Formulario */
.t-zona-form { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.t-form-intro { position: sticky; top: 100px; }
.t-form-texto { color: var(--texto-suave); font-size: 1.02rem; margin: 0 0 22px; max-width: 30em; }
.t-form-texto b { color: var(--texto); }
.t-necesitas { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.t-necesitas li { display: flex; gap: 12px; align-items: center; color: var(--texto-suave); font-size: .95rem; }
.t-necesitas .ico { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--cristal-2); color: var(--turquesa); }
.t-necesitas a { color: var(--turquesa); }
.t-solo-movil { display: none !important; }
.t-mini-contador { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 99px; background: rgb(255 214 90 / .09); border: 1px solid rgb(255 214 90 / .3); color: var(--sol); font-weight: 700; font-size: .9rem; }
.t-mini-contador .latido { background: var(--sol); animation-name: latidoSol; }
@keyframes latidoSol { 0% { box-shadow: 0 0 0 0 rgb(255 214 90 / .6); } 70% { box-shadow: 0 0 0 10px rgb(255 214 90 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 214 90 / 0); } }

.t-form-caja { padding: clamp(20px, 3.5vw, 34px); position: relative; }
.t-form-caja .formulario { gap: 18px; }
.t-opcional { font-style: normal; font-weight: 600; font-size: .72rem; color: var(--texto-tenue); background: var(--cristal-2); padding: 2px 7px; border-radius: 6px; margin-left: 6px; text-transform: lowercase; }
.t-sistema legend { margin-bottom: 8px; }
.t-sistemas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-opcion-sistema { position: relative; cursor: pointer; }
.t-opcion-sistema input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.t-opcion-cara {
  position: relative; display: grid; justify-items: start; gap: 2px; padding: 16px 16px 14px; border-radius: 18px;
  background: rgb(255 255 255 / .04); border: 1.5px solid var(--borde-2); transition: border-color .2s, background .2s, transform .2s var(--muelle), box-shadow .25s;
}
.t-opcion-cara b { font: 750 1.12rem/1.2 var(--display); color: var(--texto); margin-top: 8px; }
.t-opcion-cara small { color: var(--texto-tenue); font-size: .78rem; }
.t-logo-sistema { width: 30px; height: 30px; color: var(--texto-suave); transition: color .2s; }
.t-opcion-sistema input[value="ios"] + .t-opcion-cara .t-logo-sistema { fill: currentColor; stroke: none; }
.t-marca { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--grad); color: #fff; stroke-width: 3.5; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--muelle); }
.t-opcion-sistema:hover .t-opcion-cara { background: rgb(255 255 255 / .07); }
.t-opcion-sistema input:checked + .t-opcion-cara { border-color: var(--buganvilla); background: rgb(255 61 139 / .1); box-shadow: 0 0 0 4px rgb(255 61 139 / .14), 0 12px 30px -14px rgb(255 61 139 / .7); }
.t-opcion-sistema input:checked + .t-opcion-cara .t-logo-sistema { color: var(--texto); }
.t-opcion-sistema input:checked + .t-opcion-cara .t-marca { opacity: 1; transform: none; }
.t-opcion-sistema input:focus-visible + .t-opcion-cara { outline: 2px solid var(--turquesa); outline-offset: 2px; }
.t-opcion-sistema:active .t-opcion-cara { transform: scale(.98); }
.t-sistemas.error .t-opcion-cara { border-color: rgb(255 92 116 / .6); }

.con-estado { position: relative; display: block; }
.con-estado input { padding-right: 42px; }
.t-estado-alias { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; border-radius: 50%; }
.t-estado-alias.buscando { border: 2px solid var(--borde-2); border-top-color: var(--turquesa); animation: girar .8s linear infinite; }
.t-estado-alias.existe { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304121a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; animation: botar .4s var(--muelle); }
.t-estado-alias.no-existe { background: var(--aviso) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304121a' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ayuda.bien { color: var(--ok); }
.ayuda.aviso { color: var(--aviso); }
.ayuda a { color: inherit; font-weight: 700; }
.campo input.invalido { border-color: rgb(255 92 116 / .7); box-shadow: 0 0 0 4px rgb(255 92 116 / .14); }

.t-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.t-consentimiento { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgb(255 255 255 / .03); border: 1px solid var(--borde); cursor: pointer; font-size: .86rem; color: var(--texto-suave); line-height: 1.45; }
.t-consentimiento input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--buganvilla); cursor: pointer; }
.t-consentimiento a { color: var(--turquesa); }
.t-consentimiento.error { border-color: rgb(255 92 116 / .6); background: rgb(255 92 116 / .06); }
.t-enviar { width: 100%; margin-top: 4px; }
.t-enviar.cargando { pointer-events: none; }
.t-enviar.cargando::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: girar .8s linear infinite; }
#msg-tester:empty { display: none; }
#msg-tester.error { padding: 10px 14px; border-radius: 12px; background: rgb(255 92 116 / .1); border: 1px solid rgb(255 92 116 / .35); margin: 0; }

/* Éxito */
.t-exito { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 12px 4px 4px; outline: none; animation: aparecer .7s var(--suave) both; }
.t-exito-sello {
  display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--grad); color: #fff;
  box-shadow: 0 0 0 10px rgb(255 61 139 / .12), 0 0 0 22px rgb(255 61 139 / .05), 0 20px 50px -10px rgb(255 61 139 / .8);
  animation: regalo-salta .8s var(--muelle) both;
}
.t-exito-sello .ico { width: 42px; height: 42px; stroke-width: 3; }
body[data-modo-exito="espera"] .t-exito-sello { background: var(--grad-frio); color: #04121a; box-shadow: 0 0 0 10px rgb(46 230 197 / .12), 0 0 0 22px rgb(46 230 197 / .05), 0 20px 50px -10px rgb(46 230 197 / .6); }
.t-exito h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; margin: 14px 0 0; }
.t-exito > p { margin: 0; color: var(--texto-suave); max-width: 30em; }
.t-exito > p b { color: var(--texto); }
.t-exito-pasos { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 10px; width: 100%; text-align: left; counter-reset: exito; }
.t-exito-pasos li { counter-increment: exito; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / .04); border: 1px solid var(--borde); color: var(--texto-suave); font-size: .92rem; opacity: 0; animation: burbuja .5s var(--muelle) forwards; }
.t-exito-pasos li:nth-child(1) { animation-delay: .3s; }
.t-exito-pasos li:nth-child(2) { animation-delay: .45s; }
.t-exito-pasos li:nth-child(3) { animation-delay: .6s; }
.t-exito-pasos li::before { content: counter(exito); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cristal-3); color: var(--texto); font: 750 .85rem/1 var(--display); }
.t-exito-pasos b { color: var(--texto); }
.t-exito-cuenta { display: grid; justify-items: center; gap: 10px; width: 100%; padding: 14px; border-radius: 16px; background: rgb(46 230 197 / .07); border: 1px solid rgb(46 230 197 / .25); }
.t-exito-cuenta p { margin: 0; color: var(--texto-suave); font-size: .9rem; }
.t-exito-nota { justify-content: center; text-align: center; }
.t-confeti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.t-confeti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: caer var(--d, 2.6s) var(--suave) forwards; }
@keyframes caer { to { transform: translate(var(--x, 0), 105vh) rotate(var(--r, 540deg)); opacity: .9; } }

/* Preguntas */
.t-preguntas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.t-preguntas details { border-radius: 18px; background: var(--cristal-solido); border: 1px solid var(--borde); transition: border-color .25s, background .25s; }
.t-preguntas details[open] { border-color: rgb(46 230 197 / .35); background: rgb(17 14 34 / .9); }
.t-preguntas summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; font: 700 1.02rem/1.3 var(--display); }
.t-preguntas summary::-webkit-details-marker { display: none; }
.t-preguntas summary .ico { color: var(--texto-tenue); transition: transform .3s var(--muelle), color .2s; }
.t-preguntas details[open] summary .ico { transform: rotate(180deg); color: var(--turquesa); }
.t-preguntas details p { margin: 0; padding: 0 20px 18px; color: var(--texto-suave); font-size: .94rem; }
.t-preguntas details p b { color: var(--texto); }
.t-letra-pequena { margin: 28px 0 0; color: var(--texto-tenue); font-size: .78rem; line-height: 1.55; max-width: 60em; }
.t-letra-pequena a { color: var(--texto-suave); }

.t-pagina .pie-sitio { margin-top: clamp(48px, 8vh, 80px); }
.t-pagina .pie-sitio .pie-idioma { margin-bottom: 4px; }

/* Aparición al bajar (solo si hay JS y movimiento) */
.js .revelar { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--suave), transform .7s var(--suave); }
.js .revelar.visto { opacity: 1; transform: none; }
.t-tarjetas .revelar:nth-child(2), .t-lista-pasos .revelar:nth-child(2) { transition-delay: .08s; }
.t-tarjetas .revelar:nth-child(3), .t-lista-pasos .revelar:nth-child(3) { transition-delay: .16s; }
.t-tarjetas .revelar:nth-child(4) { transition-delay: .24s; }

/* Barra fija en el móvil */
.t-barra-movil {
  position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 30; display: none;
  align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 20px;
  background: rgb(17 14 34 / .9); border: 1px solid var(--borde-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px -10px rgb(0 0 0 / .8); font-size: .9rem; color: var(--texto-suave);
  transform: translateY(140%); transition: transform .45s var(--muelle);
}
.t-barra-movil b { color: var(--sol); font: 800 1.15rem/1 var(--display); }
.t-barra-movil .boton { padding: 10px 16px; font-size: .92rem; white-space: nowrap; }
.t-barra-movil.visible { transform: none; }

/* ---------- Tableta ---------- */
@media (max-width: 1020px) {
  .t-tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .t-hero { grid-template-columns: 1fr; min-height: 0; text-align: center; gap: 20px; padding-top: 18px; }
  .t-hero-texto { display: grid; justify-items: center; }
  .t-entradilla { margin-inline: auto; }
  .t-acciones, .t-sellos { justify-content: center; }
  .t-zona-form { grid-template-columns: 1fr; }
  .t-form-intro { position: static; }
  .t-preguntas { grid-template-columns: 1fr; }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .t-cabeza { padding-inline: 16px; }
  .t-cabeza .logo-texto { height: 20px; width: auto; }
  .t-cabeza .logo-emblema { width: 38px; height: 38px; }
  .t-cabeza .t-idioma { display: none; }
  .t-boton-cabeza { padding: 8px 13px; font-size: .84rem; }
  .t-pagina { padding-inline: 16px; }
  .t-pildora { font-size: .78rem; }
  .t-titular { font-size: clamp(2.35rem, 11vw, 3rem); margin: 18px 0 14px; }
  .t-entradilla { font-size: 1.02rem; }
  .t-acciones { margin-top: 22px; width: 100%; }
  .t-acciones .boton.primario { width: 100%; }
  .t-sellos { margin-top: 16px; font-size: .84rem; gap: 6px 14px; }
  /* Arriba, el contador en una línea (junto al botón); abajo, el contador grande delante del móvil de muestra. */
  .t-solo-movil { display: inline-flex !important; margin-top: 18px; font-size: .86rem; }
  .t-hero-visual { padding: 0 0 6px; }
  .t-contador { order: -1; z-index: 2; }
  .t-movil { margin-top: -26px; }
  .t-movil { width: 190px; border-radius: 34px; padding: 8px; }
  .t-movil-pantalla { border-radius: 27px; }
  .t-movil-isla { width: 60px; height: 18px; top: 8px; }
  .t-burbuja { font-size: .66rem; padding: 6px 9px; }
  .t-movil-chat { gap: 6px; padding: 0 8px 6px; }
  .t-movil-barra { padding: 6px 8px 12px; }
  .t-movil-barra span, .t-movil-barra i { height: 22px; }
  .t-movil-barra i { width: 22px; }
  .t-contador { position: relative; left: auto; bottom: auto; margin-top: 4px; width: 100%; max-width: 360px; padding: 14px 18px 14px 14px; text-align: left; }
  .t-anillo { width: 92px; height: 92px; }
  .t-anillo-centro b { font-size: 2rem; }
  .t-contador figcaption { max-width: none; }
  .t-tarjetas { grid-template-columns: 1fr; gap: 12px; }
  .t-ventaja { padding: 20px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
  .t-ventaja .t-icono { grid-row: span 3; width: 44px; height: 44px; border-radius: 14px; }
  .t-ventaja h3 { margin: 2px 0 6px; font-size: 1.08rem; }
  .t-lista-pasos { grid-template-columns: 1fr; gap: 0; }
  .t-lista-pasos::before { top: 20px; bottom: 20px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--buganvilla), var(--mango), var(--turquesa)); }
  .t-lista-pasos li { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 16px; padding: 0 0 22px; }
  .t-paso-num { width: 56px; height: 56px; font-size: 1.35rem; }
  .t-lista-pasos h3 { margin-top: 6px; }
  .t-form-caja { margin-inline: -4px; }
  .t-opcion-cara { padding: 14px 12px 12px; }
  .t-preguntas summary { padding: 16px; font-size: .98rem; }
  .t-preguntas details p { padding: 0 16px 16px; }
  .t-barra-movil { display: flex; }
  .t-pagina .pie-sitio { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .t-movil { animation: none; }
  .t-burbuja, .t-exito-pasos li { opacity: 1; animation: none; }
  .js .revelar { opacity: 1; transform: none; transition: none; }
  .t-confeti { display: none; }
  .t-barra-movil { transition: none; }
}
