/* ═══════════════════════════════════════════════════════
   COMPUTEKNO — Verificación de identidad v3
   ═══════════════════════════════════════════════════════ */

:root {
  /* Paleta COMPUTEKNO oficial */
  --purple-deep:   #100626;
  --purple-dark:   #1c0d42;
  --purple-brand:  #2b175a;
  --purple-mid:    #3d1a6e;
  --purple-light:  #5a2d9c;
  --lilac:         #9b6db5;
  --lilac-light:   #c4a0dc;
  --orange:        #e8720c;
  --orange-soft:   rgba(232, 114, 12, 0.18);
  --orange-glow:   rgba(232, 114, 12, 0.4);
  --orange-hover:  #ff8b2a;
  --white:         #ffffff;
  --white-dim:     rgba(255, 255, 255, 0.72);
  --white-soft:    rgba(255, 255, 255, 0.45);
  --white-faint:   rgba(255, 255, 255, 0.25);
  --success:       #25d366;
  --error:         #ff4757;

  /* Tipografía */
  --font-display:  'Rajdhani', sans-serif;
  --font-body:     'Nunito', sans-serif;
  --font-brand:    'Megrim', cursive;
  --font-mono:     'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  background: var(--purple-deep);
  color: var(--white);
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════
   FONDO DECORATIVO
   ═══════════════════════════════════════════════════════ */

.bg-pattern {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(155, 109, 181, 0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 114, 12, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════
   CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════ */

.verify-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen {
  display: none;
  width: 100%;
  padding: 44px 32px 36px;
  background: linear-gradient(180deg, rgba(28, 13, 66, 0.92) 0%, rgba(16, 6, 38, 0.95) 100%);
  border: 1px solid rgba(155, 109, 181, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(232, 114, 12, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
}

.screen.active {
  display: block;
  animation: screenEnter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes screenEnter {
  0%   { opacity: 0; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo central COMPUTEKNO: entra con efecto de "salto" — emerge,
   sobrepasa la escala final, comprime levemente y se asienta. La
   curva ease-out simple acompaña los keyframes multi-etapa.
   Aplica en la pantalla de selección de canal y en la pantalla OTP. */
.screen-channel.active .logo-icon,
.screen-otp.active .logo-icon {
  opacity: 0;
  transform: scale(0.4);
  animation: logoEnter 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.8s forwards;
}

@keyframes logoEnter {
  0%   { opacity: 0; transform: scale(0.4); }
  45%  { opacity: 1; transform: scale(1.18); }
  68%  { opacity: 1; transform: scale(0.94); }
  85%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

/* Despliegue en cascada del contenido textual y botones tras la
   animación orbital. Logo y orbital arrancan al tiempo (delay 0), por
   lo que los delays equivalen a "tramo final de la orbital" (2.6s).
   Usa `backwards` (no `forwards`) para que tras la entrada los
   botones queden libres y :hover pueda aplicar su translateY. */
.screen-channel.active .title,
.screen-channel.active .subtitle,
.screen-channel.active .channel-btn {
  animation: contentDescend 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.screen-channel.active .title                       { animation-delay: 2.60s; }
.screen-channel.active .subtitle                    { animation-delay: 2.72s; }
.screen-channel.active .channel-btn:nth-child(1)    { animation-delay: 2.84s; }
.screen-channel.active .channel-btn:nth-child(2)    { animation-delay: 2.96s; }

@keyframes contentDescend {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   LOGO CON ORBITAL TIPO APPLE — ESCUDOS GIRANDO
   ═══════════════════════════════════════════════════════ */

.logo-frame {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Halo eliminado - el logo va sin fondo */
.logo-halo {
  display: none;
}

/* Logo central COMPUTEKNO */
.logo-icon {
  position: relative;
  width: 60px;
  height: 60px;
  color: var(--white);
  z-index: 2;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

/* ═══ ANILLOS ORBITALES SVG ═══
   Los <svg> de clase .orbital-ring son contenedores
   donde el JS inyecta los escudos como elementos <use>.
   Cada escudo tiene su propia animación de entrada escalonada. */

.orbital-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  transform-origin: center center;
}

/* Cada anillo emerge desde el centro (escalado) y va creciendo + girando
   hasta su posición final. El orden es de afuera hacia adentro: R4
   primero, R1 al final. */
/* Easing ease-in-out asimétrico con frenado final pronunciado:
   P1=(0.7, 0) para arranque lento, P2=(0.2, 1) para frenado al final. */
.orbital-r4.settling { animation: ringSettleR4 3.4s cubic-bezier(0.7, 0, 0.2, 1)    0ms both; }
.orbital-r3.settling { animation: ringSettleR3 3.2s cubic-bezier(0.7, 0, 0.2, 1)  200ms both; }
.orbital-r2.settling { animation: ringSettleR2 3.0s cubic-bezier(0.7, 0, 0.2, 1)  400ms both; }
.orbital-r1.settling { animation: ringSettleR1 2.8s cubic-bezier(0.7, 0, 0.2, 1)  600ms both; }

/* Rotación inicial creciente desde R4 (-90°) hacia R1 (-180°) — +30° por capa.
   Escala inicial DIFERENCIADA por capa: las externas (R4) arrancan casi como
   punto (0.03) y las internas (R1) arrancan a 0.25. Así R4 recorre una
   distancia visualmente mayor que R3, R3 mayor que R2, y R2 mayor que R1. */
@keyframes ringSettleR4 {
  0%   { transform: scale(0.03) rotate(-101deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes ringSettleR3 {
  0%   { transform: scale(0.08) rotate(-120deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes ringSettleR2 {
  0%   { transform: scale(0.15) rotate(-161deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes ringSettleR1 {
  0%   { transform: scale(0.25) rotate(-180deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Los escudos individuales (inyectados por JS). Arrancan ya visibles
   pero muy desvanecidos (0.08) para que durante el animation-delay
   inicial se perciba el "atisbo" del escudo y luego el keyframe lo
   suba progresivamente a 1. */
.shield {
  opacity: 0.005;
  animation-fill-mode: forwards;
  will-change: opacity;
}

/* Animación de entrada — usa la MISMA curva que el ringSettle
   correspondiente para que opacidad y escala estén sincronizadas:
   mientras el anillo está pequeño (primera mitad), opacidad baja;
   cuando el anillo expande (segunda mitad), opacidad sube. Las
   duraciones también coinciden con cada anillo. */
.shield.revealed {
  animation: shieldReveal 3.4s cubic-bezier(0.99, 0, 0.85, 1) forwards;
}

.orbital-r3 .shield.revealed { animation-duration: 3.2s; }
.orbital-r2 .shield.revealed { animation-duration: 3.0s; }
.orbital-r1 .shield.revealed { animation-duration: 2.8s; }

/* Curva continua sin keyframe intermedio: la cubic-bezier asimétrica
   hace todo el trabajo de mantener la opacidad baja durante el primer
   ~60% del tiempo y subir al final, sincronizada con la escala del
   anillo. */
@keyframes shieldReveal {
  0%   { opacity: 0.005; }
  100% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   TIPOGRAFÍA
   ═══════════════════════════════════════════════════════ */

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 12px;
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--white-dim);
  margin-bottom: 28px;
  padding: 0 8px;
}

.subtitle strong {
  color: var(--white);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   PANTALLA 1: SELECTOR DE CANAL
   ═══════════════════════════════════════════════════════ */

.channel-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: rgba(155, 109, 181, 0.08);
  border: 1px solid rgba(155, 109, 181, 0.2);
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--white);
  text-align: left;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.channel-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--orange-soft), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.channel-btn:hover {
  background: rgba(155, 109, 181, 0.15);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(232, 114, 12, 0.15),
    0 0 0 1px var(--orange-soft);
}

.channel-btn:hover::before { transform: translateX(100%); }
.channel-btn:active { transform: translateY(0); }

.channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232, 114, 12, 0.12);
  color: var(--orange);
  flex-shrink: 0;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.channel-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.01em;
}

.channel-detail {
  font-size: 13px;
  color: var(--white-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.channel-arrow {
  font-size: 20px;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
}

.channel-btn:hover .channel-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════
   PANTALLA 2: INPUTS OTP
   ═══════════════════════════════════════════════════════ */

.otp-form { margin-bottom: 24px; }

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.otp-inputs input {
  width: 100%;
  height: 56px;
  background: rgba(155, 109, 181, 0.08);
  border: 1.5px solid rgba(155, 109, 181, 0.25);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  color: var(--white);
  outline: none;
  transition: all 0.2s ease;
  caret-color: var(--orange);
}

.otp-inputs input:focus {
  border-color: var(--orange);
  background: rgba(232, 114, 12, 0.08);
  box-shadow: 0 0 0 4px rgba(232, 114, 12, 0.15);
  transform: scale(1.03);
}

.otp-inputs input.filled {
  border-color: var(--lilac);
  background: rgba(155, 109, 181, 0.18);
}

.otp-inputs.error input {
  border-color: var(--error);
  background: rgba(255, 71, 87, 0.08);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.otp-message {
  min-height: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.otp-message.visible {
  opacity: 1;
  min-height: 22px;
  margin: 8px 0 4px;
}

.otp-hint {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--white-soft);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

.otp-inputs.validating {
  pointer-events: none;
  opacity: 0.7;
}

.otp-inputs.validating input {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(232, 114, 12, 0.15);
}

/* ═══════════════════════════════════════════════════════
   BOTONES
   ═══════════════════════════════════════════════════════ */

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--orange-glow);
}

.btn-primary:hover:not(:disabled)::before { transform: translateX(100%); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary.loading .btn-label { visibility: hidden; }
.btn-primary.loading .btn-loader { display: block; }

.btn-loader {
  display: none;
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spinLoader 0.7s linear infinite;
}

@keyframes spinLoader { to { transform: rotate(360deg); } }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(155, 109, 181, 0.4);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--orange);
  background: rgba(232, 114, 12, 0.08);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   LINKS ACCIONES SECUNDARIAS
   ═══════════════════════════════════════════════════════ */

.otp-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--lilac-light);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.link-btn:hover:not(:disabled) { color: var(--orange); }
.link-btn:disabled { color: var(--white-faint); cursor: not-allowed; }
.separator { color: var(--white-faint); }

/* ═══════════════════════════════════════════════════════
   PANTALLA 3: ÉXITO
   ═══════════════════════════════════════════════════════ */

.success-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  position: relative;
}

.success-svg { width: 100%; height: 100%; }

.success-circle {
  stroke: var(--success);
  stroke-width: 2;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: drawCircle 0.6s ease forwards;
}

.success-check {
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.4s ease 0.5s forwards;
}

@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(155, 109, 181, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 24px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-hover));
  border-radius: 2px;
  width: 0;
  animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill { to { width: 100%; } }

/* ═══════════════════════════════════════════════════════
   PANTALLA 4: ERROR
   ═══════════════════════════════════════════════════════ */

.error-icon { width: 84px; height: 84px; margin: 0 auto 24px; }
.error-svg { width: 100%; height: 100%; }

.error-circle {
  stroke: var(--error);
  stroke-width: 2;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: drawCircle 0.6s ease forwards;
}

.error-x {
  stroke: var(--error);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.4s ease 0.5s forwards;
}

/* ═══════════════════════════════════════════════════════
   CLOUDFLARE TURNSTILE WIDGET — MODO INVISIBLE
   El widget NO ocupa espacio visual por defecto (data-size="invisible").
   En caso excepcional que Cloudflare detecte sospecha y muestre un
   mini-desafío, se renderiza reducido para no romper la estética.
   ═══════════════════════════════════════════════════════ */

.turnstile-wrapper {
  /* Sin espacio reservado por defecto (modo invisible) */
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.turnstile-wrapper .cf-turnstile {
  display: inline-block;
  /* Escala desktop: si excepcionalmente aparece, queda compacto */
  transform: scale(0.65) translateY(8px);
  transform-origin: center top;
  margin: 0;
  opacity: 0;
}

/* ──── Animación si excepcionalmente Cloudflare muestra mini-desafío ──── */
@keyframes turnstileReveal {
  0%   { opacity: 0; transform: scale(0.65) translateY(8px); }
  100% { opacity: 1; transform: scale(0.65) translateY(0); }
}

.screen-channel.active .turnstile-wrapper .cf-turnstile {
  animation: turnstileReveal 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 3.10s forwards;
}

.screen-otp.active .turnstile-wrapper .cf-turnstile {
  animation: turnstileReveal 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 1.40s forwards;
}

/* ──── Móvil: escala aún más reducida (0.55) si excepcionalmente aparece ──── */
@media (max-width: 480px) {
  .turnstile-wrapper .cf-turnstile {
    transform: scale(0.55) translateY(8px);
  }
  
  @keyframes turnstileRevealMobile {
    0%   { opacity: 0; transform: scale(0.55) translateY(8px); }
    100% { opacity: 1; transform: scale(0.55) translateY(0); }
  }
  
  .screen-channel.active .turnstile-wrapper .cf-turnstile,
  .screen-otp.active .turnstile-wrapper .cf-turnstile {
    animation-name: turnstileRevealMobile;
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER: BRAND COMPUTEKNO (Wordmark estilo sitio web)
   ═══════════════════════════════════════════════════════ */

.brand-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 18px;
  background: rgba(155, 109, 181, 0.06);
  border: 1px solid rgba(155, 109, 181, 0.14);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--white-soft);
  letter-spacing: 0.04em;
  text-transform: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.brand-footer:hover {
  border-color: rgba(232, 114, 12, 0.3);
  background: rgba(232, 114, 12, 0.06);
}

.brand-footer > svg {
  color: var(--white-soft);
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.brand-footer:hover > svg { color: var(--orange); }

.brand-footer > span { white-space: nowrap; }

/* Link COMPUTEKNO (SVG wordmark) */
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.25s ease;
}

.brand-link:hover { opacity: 0.8; }

.brand-wordmark {
  display: block;
  height: 16px;
  width: auto;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  body { padding: 16px; }

  .screen {
    padding: 28px 22px 22px;
    border-radius: 18px;
  }

  .logo-frame {
    width: 160px;
    height: 160px;
    margin-bottom: 16px;
  }

  .logo-icon { width: 48px; height: 48px; }
  .logo-halo { width: 48px; height: 48px; }

  .title { font-size: 22px; margin-bottom: 8px; }
  .subtitle { font-size: 14px; padding: 0; margin-bottom: 18px; }
  .otp-form { margin-bottom: 16px; }
  .otp-inputs { gap: 6px; margin-bottom: 14px; }
  .otp-inputs input { height: 48px; font-size: 20px; }
  .channel-btn { padding: 16px; }
  .channel-name { font-size: 15px; }
  .channel-detail { font-size: 12px; }

  .brand-footer {
    font-size: 11px;
    padding: 8px 14px;
    gap: 6px;
    margin-top: 18px;
  }

  .brand-wordmark { height: 13px; }
}

/* Pantallas cortas (in-app browsers de WhatsApp/SMS, móviles bajos):
   compacta el layout para que el footer "Desarrollado por COMPUTEKNO"
   quede visible sin scroll, aunque el ancho sea mayor a 480px. */
@media (max-height: 740px) {
  .screen { padding: 28px 28px 22px; }

  .logo-frame {
    width: 170px;
    height: 170px;
    margin-bottom: 16px;
  }

  .logo-icon { width: 52px; height: 52px; }
  .logo-halo { width: 52px; height: 52px; }

  .title { margin-bottom: 8px; }
  .subtitle { margin-bottom: 18px; }
  .otp-form { margin-bottom: 16px; }
  .otp-inputs { margin-bottom: 14px; }
  .brand-footer { margin-top: 18px; }
}

@media (max-width: 360px) {
  .otp-inputs input { height: 44px; font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════
   ACCESIBILIDAD — Reduced motion
   ═══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .shield {
    opacity: 0.65 !important;
    transform: scale(1) !important;
  }
}
