/* ============================================================
   TradeLab · Estilos de gamificación (HUD, misiones, celebración,
   subida de nivel, confeti, podio del ranking)
   ============================================================ */

/* ---------- HUD superior de la pantalla de inicio ---------- */
.tl-hud {
  position: relative;
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #ffb45c 12%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--ink) 88%, transparent));
  border: 1px solid color-mix(in srgb, #ff6a14 26%, transparent);
  box-shadow:
    0 24px 60px -28px rgba(0, 0, 0, .85),
    inset 0 1px 0 color-mix(in srgb, #ffb45c 20%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  text-align: left;
  overflow: hidden;
}
.tl-hud::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, color-mix(in srgb, #ffb45c 9%, transparent) 50%, transparent 58%);
}
.tl-hud-fila {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.tl-hud-nivel { display: flex; min-width: 0; align-items: flex-start; gap: 12px; }
.tl-hud-nivel-num {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  background: linear-gradient(150deg, #ffd0a0, #ffb45c 45%, #ff6a14);
  border: 1px solid color-mix(in srgb, #ffb45c 55%, transparent);
  border-radius: 999px;
  padding: 5px 11px;
  box-shadow: 0 6px 18px -10px rgba(233, 180, 99, .9), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.tl-hud-nivel-txt { min-width: 0; flex: 1; }
.tl-hud-nivel-txt strong {
  display: block;
  font-family: var(--font-display, "Fraunces", serif);
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, #ffe3c9, #ffb45c 60%, #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tl-hud-barra {
  position: relative;
  height: 9px;
  margin: 8px 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, #000 45%, transparent);
  border: 1px solid color-mix(in srgb, #ff6a14 18%, transparent);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.tl-hud-barra-relleno {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a14, #ffb45c 45%, #ffd0a0);
  box-shadow: 0 0 18px -2px color-mix(in srgb, #ffb45c 70%, transparent);
  transition: width .8s cubic-bezier(.22,1,.36,1);
}
.tl-hud-barra-relleno::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-100%);
  animation: tl-brillo 3.4s ease-in-out infinite;
}
@keyframes tl-brillo { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(220%); } }
.tl-hud-xp {
  display: block;
  font-size: 11px;
  letter-spacing: .02em;
  color: color-mix(in srgb, #ffcfa3 65%, transparent);
}

.tl-hud-derecha { display: flex; align-items: center; gap: 10px; }
.tl-hud-racha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--paper-dim);
  background: color-mix(in srgb, #000 40%, transparent);
  border: 1px solid color-mix(in srgb, #ff6a14 20%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.tl-hud-racha.viva {
  color: #ffcd8f;
  border-color: color-mix(in srgb, #ff9c45 50%, transparent);
  background: linear-gradient(140deg, color-mix(in srgb, #ff8a3d 22%, transparent), color-mix(in srgb, #ff8a3d 8%, transparent));
  box-shadow: 0 8px 24px -14px rgba(255, 138, 61, .9), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.tl-hud-racha.viva .tl-hud-llama { animation: tl-latido 1.6s ease-in-out infinite; }
@keyframes tl-latido { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

.tl-hud-meta { position: relative; width: 50px; height: 50px; flex: 0 0 auto; }
.tl-anillo { width: 50px; height: 50px; transform: rotate(-90deg); filter: drop-shadow(0 0 6px color-mix(in srgb, #ffb45c 45%, transparent)); }
.tl-anillo circle { fill: none; stroke-width: 5; }
.tl-anillo-fondo { stroke: color-mix(in srgb, #ffcfa3 12%, transparent); }
.tl-anillo-valor { stroke: #ffb45c; stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.22,1,.36,1); }
.tl-anillo-txt {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 10px; color: #ffcfa3;
}

.tl-misiones {
  position: relative;
  margin-top: 14px;
  border-top: 1px solid color-mix(in srgb, #ff6a14 16%, transparent);
  padding-top: 12px;
}
.tl-misiones-tit {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, #ffcfa3 55%, transparent);
}
.tl-misiones-lista { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tl-mision {
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--paper-dim);
  background: linear-gradient(150deg, color-mix(in srgb, #fff 6%, transparent), color-mix(in srgb, #000 30%, transparent));
  border: 1px solid color-mix(in srgb, #ff6a14 16%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .25s ease, border-color .25s ease;
}
.tl-mision:hover { transform: translateY(-1px); border-color: color-mix(in srgb, #ff6a14 34%, transparent); }
.tl-mision.hecha {
  color: #9fe6b6;
  border-color: color-mix(in srgb, #7fd99a 38%, transparent);
  background: linear-gradient(150deg, color-mix(in srgb, #7fd99a 18%, transparent), color-mix(in srgb, #7fd99a 6%, transparent));
}


/* ---------- Celebración post-respuesta ---------- */
.tl-celebra {
  max-width: 520px;
  margin: 0 auto 18px;
  padding: 20px 18px 18px;
  border-radius: 20px;
  text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--signal) 16%, transparent), transparent 70%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--signal) 32%, transparent);
  animation: tl-entrada .45s cubic-bezier(.22,1,.36,1);
}
.tl-celebra.trampa {
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, #ef4444 16%, transparent), transparent 70%), var(--surface);
  border-color: color-mix(in srgb, #ef4444 38%, transparent);
}
@keyframes tl-entrada { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.tl-celebra-titulo { font-size: 26px; margin: 0; color: var(--paper); }
.tl-celebra-sub { margin: 4px 0 12px; font-size: 13.5px; color: var(--paper-dim); }
.tl-xp-grande {
  font-size: 40px;
  font-weight: 700;
  color: var(--signal);
  line-height: 1.1;
  text-shadow: 0 0 26px color-mix(in srgb, var(--signal) 45%, transparent);
}
.tl-xp-grande.rebote { animation: tl-rebote .5s cubic-bezier(.22,1.4,.36,1); }
@keyframes tl-rebote { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
.tl-desglose { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--paper-faint); }
.tl-meta-linea { margin-top: 14px; font-size: 11.5px; color: var(--paper-dim); }
.tl-meta-barra {
  height: 7px; border-radius: 999px; overflow: hidden; margin-bottom: 6px;
  background: color-mix(in srgb, var(--ink) 80%, transparent); border: 1px solid var(--line);
}
.tl-meta-barra-relleno { height: 100%; background: linear-gradient(90deg, #7fd99a, var(--signal)); transition: width .7s ease; }
.tl-celebra-aviso {
  margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--paper-dim);
  background: color-mix(in srgb, var(--signal) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--signal) 26%, transparent);
  border-radius: 12px; padding: 10px 12px;
}
.tl-celebra-aviso strong { color: var(--signal); }

/* ---------- Subida de nivel ---------- */
.tl-confeti { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.tl-nivelup-overlay {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 6, 4, .78);
  backdrop-filter: blur(6px);
  animation: tl-fade .25s ease;
}
@keyframes tl-fade { from { opacity: 0; } to { opacity: 1; } }
.tl-nivelup {
  position: relative;
  width: 100%; max-width: 360px;
  padding: 28px 22px 22px;
  border-radius: 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--signal) 40%, transparent);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  animation: tl-pop .5s cubic-bezier(.22,1.3,.36,1);
  overflow: hidden;
}
@keyframes tl-pop { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }
.tl-nivelup-halo {
  position: absolute; inset: -40% -20% auto -20%; height: 220px;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--signal) 40%, transparent), transparent 70%);
  pointer-events: none;
}
.tl-nivelup-emoji { position: relative; font-size: 56px; display: block; animation: tl-latido 1.8s ease-in-out infinite; }
.tl-nivelup-kicker { position: relative; margin: 10px 0 2px; font-size: 11px; letter-spacing: .14em; color: var(--signal); }
.tl-nivelup h3 { position: relative; margin: 0 0 6px; font-size: 26px; color: var(--paper); }
.tl-nivelup-sub { position: relative; margin: 0 0 18px; font-size: 13px; color: var(--paper-dim); }
.tl-nivelup-btn { position: relative; width: 100%; }


@media (max-width: 640px) {
  .tl-hud { padding: 14px 14px; border-radius: 18px; margin-bottom: 14px; }
  .tl-hud-fila { gap: 10px; }
  .tl-hud-nivel-txt strong { font-size: 15px; }
  .tl-hud-xp { font-size: 10px; }
  .tl-hud-meta, .tl-anillo { width: 44px; height: 44px; }
  .tl-mision { font-size: 10.5px; padding: 5px 9px; }

  .tl-celebra { padding: 16px 14px; border-radius: 18px; }
  .tl-celebra-titulo { font-size: 21px; }
  .tl-xp-grande { font-size: 32px; }
  
}

/* ---- Premios de misiones ---- */
.tl-misiones-bono {
  font-style: normal;
  color: #f2c078;
  opacity: 0.95;
}
.tl-misiones-bono.hecho { color: #7fd99a; }

.tl-mision-xp {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.72em;
  font-weight: 700;
  color: #f2c078;
  background: rgba(220, 154, 79, 0.16);
  border: 1px solid rgba(220, 154, 79, 0.35);
}
.tl-mision.hecha .tl-mision-xp {
  color: #7fd99a;
  background: rgba(127, 217, 154, 0.16);
  border-color: rgba(127, 217, 154, 0.35);
}
/* ---- Aviso de misión reclamada ---- */
.tl-aviso-misiones {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 16px;
  color: #fff1dc;
  background: rgba(28, 20, 12, 0.92);
  border: 1px solid rgba(220, 154, 79, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  transform: translate(-50%, 0);
  animation: tl-aviso-entra 0.45s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.tl-aviso-misiones.fuera {
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tl-aviso-misiones strong { display: block; font-size: 0.95rem; }
.tl-aviso-misiones .tl-aviso-lista {
  display: block;
  font-size: 0.78rem;
  opacity: 0.75;
  line-height: 1.3;
}
.tl-aviso-misiones .tl-aviso-emoji { font-size: 1.6rem; }
.tl-aviso-misiones b { color: #f2c078; white-space: nowrap; }

@keyframes tl-aviso-entra {
  from { opacity: 0; transform: translate(-50%, 28px) scale(0.94); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ============ MODO TEST ============ */
.test-wrap { width: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.test-progreso { height: 8px; border-radius: 99px; background: rgba(255,255,255,.09); overflow: hidden; }
.test-progreso-relleno { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb45c, #ff6a14); transition: width .35s ease; }
.test-pregunta { font-size: clamp(20px, 4.4vw, 30px); line-height: 1.25; margin: 4px 0 2px; text-align: left; }
.test-opciones { display: flex; flex-direction: column; gap: 10px; }
.test-opcion {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 14px; cursor: pointer; font: inherit; font-size: 15px; line-height: 1.4;
  color: inherit; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
}
.test-opcion:hover:not(:disabled) { border-color: rgba(255,180,92,.6); background: rgba(255,140,40,.10); transform: translateY(-1px); }
.test-opcion:disabled { cursor: default; }
.test-letra { flex: 0 0 auto; opacity: .7; font-weight: 600; }
.test-opcion.correcta { border-color: rgba(52,211,153,.75); background: rgba(16,185,129,.16); }
.test-opcion.fallada { border-color: rgba(248,113,113,.75); background: rgba(239,68,68,.15); }
.test-opcion.apagada { opacity: .45; }
.test-feedback { border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; text-align: left; border: 1px solid transparent; }
.test-feedback.ok { background: rgba(16,185,129,.12); border-color: rgba(52,211,153,.4); }
.test-feedback.ko { background: rgba(239,68,68,.10); border-color: rgba(248,113,113,.4); }
.test-feedback p { margin: 6px 0 0; opacity: .85; }
.test-repaso { display: flex; flex-direction: column; gap: 12px; }
.test-repaso-fila { border-left: 3px solid rgba(255,255,255,.2); padding-left: 12px; text-align: left; }
.test-repaso-fila.ok { border-left-color: rgba(52,211,153,.8); }
.test-repaso-fila.ko { border-left-color: rgba(248,113,113,.8); }
.test-repaso-p { font-weight: 600; font-size: 14px; }
.test-repaso-r { font-size: 13px; opacity: .9; margin-top: 3px; }
.test-repaso-e { font-size: 13px; opacity: .65; margin-top: 2px; }
@media (max-width: 520px) {
  .test-opcion { padding: 12px 13px; font-size: 14px; }
  .test-pregunta { font-size: 20px; }
}

/* ---- Botón compartir resultado ---- */
.tl-compartir {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff1dc;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(220, 154, 79, 0.45);
  background: linear-gradient(180deg, rgba(255, 180, 92, 0.16), rgba(255, 106, 20, 0.1));
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tl-compartir:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 180, 92, 0.8);
  box-shadow: 0 10px 26px rgba(255, 106, 20, 0.22);
}

/* ---- Aviso de racha ---- */
.tl-aviso-racha {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 16px;
  color: #fff1dc;
  background: rgba(28, 20, 12, 0.92);
  border: 1px solid rgba(220, 154, 79, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  transform: translate(-50%, 0);
  animation: tl-aviso-entra 0.45s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.tl-aviso-racha.fuera {
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tl-aviso-racha strong { display: block; font-size: 0.95rem; }
.tl-aviso-racha .tl-aviso-lista { display: block; font-size: 0.78rem; opacity: 0.75; line-height: 1.3; }
.tl-aviso-racha .tl-aviso-emoji { font-size: 1.6rem; }

/* ---------- PREDICCIÓN DE MERCADO ---------- */
.pred-wrap { width: min(1000px, 94vw); margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.pred-activos { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pred-activo {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 8px 14px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,180,92,.18);
  color: #f4ece4; transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.pred-activo:hover { transform: translateY(-1px); border-color: rgba(255,180,92,.45); }
.pred-activo.activo { background: linear-gradient(135deg, rgba(255,180,92,.22), rgba(255,106,20,.18)); border-color: rgba(255,140,50,.7); }
.pred-activo-nom { font-size: .82rem; font-weight: 600; }
.pred-activo-precio { font-size: .74rem; color: #ffb45c; }
.pred-grafico { height: min(68vh, 640px); width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,180,92,.18); background: #0c0a09; }
.pred-controles { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.pred-botones { display: flex; gap: 10px; }
.pred-btn {
  padding: 12px 28px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 700; font-size: 1rem; color: #0c0a09; transition: transform .15s ease, filter .15s ease;
}
.pred-btn:disabled { opacity: .6; cursor: wait; }
.pred-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.pred-btn.sube { background: linear-gradient(135deg, #7ee08a, #35b45c); }
.pred-btn.baja { background: linear-gradient(135deg, #ff9a8b, #e04848); color: #fff; }
.pred-aviso { text-align: center; font-size: .88rem; color: #ffb45c; }
.pred-sentimiento { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pred-barra { width: 100%; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(224,72,72,.55); }
.pred-barra-compra { display: block; height: 100%; background: linear-gradient(90deg, #7ee08a, #35b45c); }
.pred-barra-txt { font-size: .78rem; color: rgba(244,236,228,.75); }
.verde { color: #7ee08a; }
.rojo { color: #ff8a7a; }
.pred-bloque { display: flex; flex-direction: column; gap: 10px; }
.pred-titulo { font-size: 1.15rem; color: #f4ece4; text-align: center; }
.pred-sent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pred-sent-item { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,180,92,.14); display: flex; flex-direction: column; gap: 6px; }
.pred-sent-cab, .pred-sent-pies { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(244,236,228,.85); }
.pred-feed { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.pred-fila { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,180,92,.1); }
.pred-fila-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pred-fila-nombre { font-size: .85rem; color: #f4ece4; }
.pred-fila-meta { font-size: .7rem; color: rgba(244,236,228,.55); }
.pred-tag { font-size: .9rem; }
.pred-estado { font-size: .75rem; color: rgba(244,236,228,.7); min-width: 74px; text-align: right; }
.pred-vacio { text-align: center; color: rgba(244,236,228,.55); font-size: .85rem; }
@media (max-width: 640px) {
  .pred-grafico { height: 58vh; }
  .pred-btn { padding: 11px 20px; font-size: .92rem; }
}

.pred-grafico-cab { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
.pred-grafico-nom { font-size: 1.25rem; color: #f4ece4; }
.pred-grafico-precio { font-size: 1.5rem; font-weight: 700; color: #ffb45c; }
.pred-vivo {
  font-size: .62rem; letter-spacing: .12em; padding: 3px 9px; border-radius: 999px;
  background: rgba(53,180,92,.18); color: #7ee08a; border: 1px solid rgba(126,224,138,.35);
  animation: predLatido 1.6s ease-in-out infinite;
}
@keyframes predLatido { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.pred-wrap { width: min(1240px, 96vw); }

/* ---- Aviso de estado de XP (guardado / error / reintento) ---- */
.tl-aviso-xp {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1250;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #fff1dc;
  background: rgba(28, 20, 12, 0.94);
  border: 1px solid rgba(220, 154, 79, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  transform: translate(-50%, 0);
  animation: tl-aviso-entra 0.4s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.tl-aviso-xp.error { border-color: rgba(255, 122, 122, 0.5); }
.tl-aviso-xp.ok { border-color: rgba(127, 217, 154, 0.5); }
.tl-aviso-xp b { color: #f2c078; white-space: nowrap; }
.tl-aviso-xp.fuera {
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.test-espera {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}
