/* ✦ BLOXSOCIETY SYSTEM · iOS Liquid Glass */
/* ── iOS Liquid Glass · base compartida ───────────────────────── */
:root {
  color-scheme: dark;
  --ios-bg: #07070b;
  --ios-accent: #8b7cff;
  --ios-accent-2: #6e5bff;
  --ios-accent-rgb: 139, 124, 255;
  --ios-green: #30d158;
  --ios-red: #ff453a;
  --ios-orange: #ff9f0a;
  --t1: rgba(255, 255, 255, .96);
  --t2: rgba(235, 235, 245, .66);
  --t3: rgba(235, 235, 245, .42);
  --sep: rgba(255, 255, 255, .08);
  --fill-1: rgba(118, 118, 128, .24);
  --fill-2: rgba(118, 118, 128, .16);
  --fill-3: rgba(118, 118, 128, .10);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .035) 100%);
  --glass-blur: blur(22px) saturate(170%);
  --glass-edge: rgba(255, 255, 255, .11);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .03), 0 1px 2px rgba(0, 0, 0, .25), 0 24px 60px -24px rgba(0, 0, 0, .7);
  --ios-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ios-ease: cubic-bezier(.25, .1, .25, 1);
  --ios-out: cubic-bezier(.22, 1, .36, 1);
  --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ios-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  /* tokens heredados de mistico.css */
  --texto: var(--t1); --texto-2: var(--t2); --texto-3: var(--t3);
  --oro: var(--ios-accent); --oro-2: #b3a8ff; --morado: var(--ios-accent-2); --morado-2: var(--ios-accent);
  --borde: var(--sep); --borde-oro: rgba(var(--ios-accent-rgb), .45); --relleno: var(--fill-1);
  --aviso: var(--ios-orange); --peligro: var(--ios-red); --exito: var(--ios-green);
  --sombra: 0 24px 60px -24px rgba(0, 0, 0, .75);
  --resorte: var(--ios-spring); --suave: var(--ios-ease);
  --fuente: var(--ios-font); --fuente-titulo: var(--ios-font); --fuente-marca: var(--ios-font);
}
html { background: var(--ios-bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--ios-bg); color: var(--t1);
  font: 400 15px/1.5 var(--ios-font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden; overflow-x: clip;
}
body::before, body::after { content: none !important; }
::selection { background: rgba(var(--ios-accent-rgb), .4); color: #fff; }
:where(h1, h2, h3, h4) { font-family: var(--ios-font); color: var(--t1); }
#galaxia { display: none !important; }
.capa { position: relative; z-index: 1; }

* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* fondo con manchas difuminadas */
.fondo-ios { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; transform: translateZ(0); background: radial-gradient(120% 80% at 50% -10%, rgba(40, 36, 70, .55), transparent 60%), var(--ios-bg); }
.fondo-ios i { position: absolute; border-radius: 50%; opacity: .85; }
.fondo-ios i:nth-child(1) { width: 62vmax; height: 62vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(124, 92, 255, .42), rgba(124, 92, 255, 0) 62%); }
.fondo-ios i:nth-child(2) { width: 54vmax; height: 54vmax; right: -20vmax; top: 18vh; background: radial-gradient(circle, rgba(10, 132, 255, .30), rgba(10, 132, 255, 0) 62%); }
.fondo-ios i:nth-child(3) { width: 48vmax; height: 48vmax; left: 22vw; bottom: -26vmax; background: radial-gradient(circle, rgba(191, 90, 242, .24), rgba(191, 90, 242, 0) 62%); }
.fondo-ios::after { content: ''; position: absolute; inset: 0; background: radial-gradient(140% 100% at 50% 0%, transparent 40%, rgba(0, 0, 0, .55) 100%); }

/* superficie Liquid Glass */
.vidrio {
  position: relative;
  background: var(--glass-bg), rgba(16, 16, 24, .38);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);
  animation: none;
}
.vidrio::before, .vidrio.borde-magico::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .06) 28%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .10) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none; animation: none; opacity: 1; filter: none; z-index: 0;
}
.vidrio::after, .borde-magico::after { content: none !important; }
.vidrio > * { position: relative; z-index: 1; }
.borde-magico { animation: none; }
/* desenfoque real solo en superficies que lo necesitan (.blur) */
.blur { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .blur { background: rgba(22, 22, 30, .92); } }
@media (prefers-reduced-transparency: reduce) { .vidrio, .blur { background: #17171f; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* tipografía */
.titulo-oro {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important; color: var(--t1);
  text-shadow: none !important; filter: none !important; animation: none !important;
}
:where(.ic) { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.aparecer { animation: aparecer .4s var(--ios-out) both; }
@keyframes aparecer { from { transform: translateY(8px); } to { transform: none; } }
@keyframes girar { to { transform: rotate(360deg); } }
.flotar { animation: ios-flotar 6s ease-in-out infinite; }
@keyframes ios-flotar { 50% { transform: translateY(-6px); } }

/* botones */
.btn {
  position: relative; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 20px;
  border: 0; border-radius: 999px;
  background: var(--fill-1); color: var(--t1);
  font: 600 15px/1.2 var(--ios-font); letter-spacing: -.01em;
  text-decoration: none !important; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
  transition: transform .45s var(--ios-spring), background-color .2s var(--ios-ease), box-shadow .25s, opacity .2s, filter .2s;
  animation: none;
}
.btn::before, .btn::after { content: none !important; }
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: scale(.96); transition-duration: .12s; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ios-accent-rgb), .55); }
.btn.oro {
  color: #fff;
  background: linear-gradient(180deg, #9a8dff 0%, var(--ios-accent-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 10px 26px -10px rgba(var(--ios-accent-rgb), .85);
}
.btn.fantasma { background: transparent; box-shadow: none; color: var(--t2); }
.btn.mini { min-height: 34px; padding: 6px 12px; font-size: 13px; }
@media (hover: hover) {
  .btn:hover { background-color: rgba(118, 118, 128, .32); }
  .btn.oro:hover { filter: brightness(1.08); }
  .btn.fantasma:hover { background: var(--fill-2); color: var(--t1); }
}

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--fill-1); color: var(--t2); font: 600 12.5px/1.3 var(--ios-font); white-space: nowrap; border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.chip .ic { width: 14px; height: 14px; }

/* campos */
:where(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file])) {
  box-sizing: border-box; min-height: 44px; padding: 10px 14px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--fill-2); color: var(--t1);
  font: 400 15px/1.35 var(--ios-font); outline: none; box-shadow: none;
  transition: background-color .2s, box-shadow .2s, border-color .2s;
}
:where(input)::placeholder { color: var(--t3); opacity: 1; }
:where(input:not([type=checkbox]):not([type=radio])):focus { background-color: rgba(118, 118, 128, .26); border-color: rgba(var(--ios-accent-rgb), .55); box-shadow: 0 0 0 4px rgba(var(--ios-accent-rgb), .18); }

/* toasts (banner iOS) */
#toasts { position: fixed; top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 900; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 22px; background: rgba(36, 36, 46, .72); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 18px 40px -12px rgba(0, 0, 0, .7); color: var(--t1); font: 500 14px/1.35 var(--ios-font); animation: ios-toast-in .55s var(--ios-spring) both; }
.toast .ic { width: 20px; height: 20px; color: var(--ios-green); }
.toast.error .ic { color: var(--ios-red); }
@keyframes ios-toast-in { from { transform: translateY(calc(-100% - 24px)); } }

:focus-visible { outline: 2px solid rgba(var(--ios-accent-rgb), .7); outline-offset: 2px; }
:where(input):focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ═══════════════════════════════════════════════════════════════
   BLOXSOCIETY SYSTEM · portal de verificación (mobile-first)
   ═══════════════════════════════════════════════════════════════ */
.pantalla {
  min-height: 100vh; min-height: 100dvh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: max(20px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
.tarjeta-bs { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); width: 100%; max-width: 460px; box-sizing: border-box; padding: 30px 20px 24px; text-align: center; border-radius: 34px; }

/* ── marca ── */
.marca-bs { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 2px; }
.orbe-bs {
  position: relative; width: 84px; height: 84px; margin-bottom: 10px; border-radius: 24px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #a092ff 0%, #5a45f0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 22px 44px -14px rgba(var(--ios-accent-rgb), .9);
}
.orbe-bs img { width: 58%; height: 58%; filter: none; animation: none; }
.orbe-bs .aro { position: absolute; inset: -16px; border-radius: 36px; border: 0; background: radial-gradient(closest-side, rgba(var(--ios-accent-rgb), .3), transparent); filter: blur(8px); animation: none; z-index: -1; }
.orbe-bs .aro.dos { display: none; }
.marca-bs h1 { margin: 0; font: 800 clamp(26px, 8vw, 34px)/1 var(--ios-font); letter-spacing: .08em; }
.sello-system {
  font: 700 10.5px/1 var(--ios-font); letter-spacing: .42em; padding: 6px 8px 6px 13px; border-radius: 999px;
  color: #d6d0ff; background: rgba(var(--ios-accent-rgb), .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(var(--ios-accent-rgb), .28);
}
.lema { color: var(--t2); margin: 14px 0 20px; font-size: 15.5px; line-height: 1.5; }
.lema small { display: block; color: var(--t3); font-size: 14px; }

/* ── servidor ── */
.servidor { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px 10px 10px; margin: 0 auto 18px; border-radius: 18px; background: var(--fill-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); max-width: 340px; }
.servidor img { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.servidor b { display: block; font-weight: 600; }
.servidor small { color: var(--t3); font-size: 13px; }

/* ── pasos: lista agrupada iOS ── */
.pasos { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 0; text-align: left; border-radius: 20px; background: var(--fill-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.pasos li { display: flex; align-items: center; gap: 13px; padding: 12px 14px; position: relative; background: none; border: 0; box-shadow: none; border-radius: 0; }
.pasos li + li::before { content: ''; position: absolute; top: 0; left: 69px; right: 0; height: 1px; background: var(--sep); }
.pasos .num { order: 9; margin-left: auto; position: static; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--ios-font); color: var(--t2); background: var(--fill-1); box-shadow: none; flex-shrink: 0; }
.ic-paso { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #a092ff, #5a45f0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 8px 18px -8px rgba(var(--ios-accent-rgb), .9); }
.pasos li:nth-child(2) .ic-paso { background: linear-gradient(160deg, #5ac8fa, #0a84ff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 8px 18px -8px rgba(10, 132, 255, .9); }
.pasos li:nth-child(3) .ic-paso { background: linear-gradient(160deg, #6ee7a0, #30b350); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 8px 18px -8px rgba(48, 209, 88, .8); }
.ic-paso .ic { width: 22px; height: 22px; }
.pasos div { min-width: 0; }
.pasos b { display: block; font-size: 15.5px; font-weight: 600; }
.pasos small { color: var(--t3); font-size: 13px; }

/* ── botón principal ── */
.btn.grande { width: 100%; min-height: 56px; font-size: 17px; border-radius: 18px; gap: 10px; }
.btn.grande .ic { width: 22px; height: 22px; }
.cargando-btn { pointer-events: none; filter: saturate(.75) brightness(.92); }
.cargando-btn .ic { animation: girar 1s linear infinite; }

.chips-bs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0 4px; }
.chips-bs .chip { font-size: 12px; padding: 6px 11px; background: var(--fill-2); }
.chips-bs .chip .ic { color: var(--ios-green); }
.nota { color: var(--t3); font-size: 13px; line-height: 1.55; margin: 12px 0 0; }
.nota .ic { width: 15px; height: 15px; color: var(--ios-orange); vertical-align: -3px; }
.nota a { color: #c4bbff; text-decoration: none; font-weight: 500; }
.nota a:hover { text-decoration: underline; }
.nota.acepto { margin-top: 16px; }
.alerta { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 16px; margin-bottom: 16px; background: rgba(255, 69, 58, .14); border: 0; color: #ffb4ae; font-size: 14px; }
.alerta .ic { color: var(--ios-red); margin-top: 1px; }

/* disclosure iOS */
.legal { margin-top: 18px; text-align: left; border-top: 1px solid var(--sep); padding-top: 6px; }
.legal summary { cursor: pointer; color: var(--t2); font-size: 14px; font-weight: 500; display: flex; gap: 8px; align-items: center; list-style: none; padding: 10px 2px; -webkit-user-select: none; user-select: none; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3); transform: rotate(-45deg); transition: transform .35s var(--ios-spring); }
.legal[open] summary::after { transform: rotate(45deg); }
.legal p { color: var(--t3); font-size: 13.5px; line-height: 1.6; margin: 4px 0 10px; }
.legal .links { display: flex; gap: 8px; flex-wrap: wrap; }
.legal .links a { padding: 7px 13px; border-radius: 999px; background: var(--fill-2); color: var(--t1); font-size: 13px; font-weight: 500; text-decoration: none; }
.pie-bs { color: var(--t3); font-size: 12px; letter-spacing: .06em; text-align: center; }
.pie-bs a { color: var(--t2); text-decoration: none; }
.pie-bs a:hover { color: var(--t1); }

/* ── éxito ── */
.avatar-ok { position: relative; width: 112px; height: 112px; margin: 2px auto 20px; }
.avatar-ok img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: linear-gradient(160deg, #2a2540, #14121e); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 22px 50px -14px rgba(var(--ios-accent-rgb), .8); animation: aparecer .8s var(--ios-out) both; }
.sello-ok { position: absolute; right: 0; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ios-green); box-shadow: 0 0 0 4px #14121c, 0 8px 18px -4px rgba(48, 209, 88, .7); animation: pop .6s .5s both var(--ios-spring); }
.sello-ok .ic { width: 20px; height: 20px; stroke-width: 3; }
@keyframes pop { from { transform: scale(0); } }
.titulo-exito { font: 800 clamp(24px, 7vw, 30px)/1.15 var(--ios-font); letter-spacing: -.025em; margin: 0; }
.logros { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 0; text-align: left; border-radius: 20px; background: var(--fill-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.logros li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: relative; background: none; border: 0; box-shadow: none; border-radius: 0; animation: aparecer .6s var(--ios-out) both; }
.logros li + li::before { content: ''; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--sep); }
.logros li:nth-child(1) { animation-delay: .3s; } .logros li:nth-child(2) { animation-delay: .42s; } .logros li:nth-child(3) { animation-delay: .54s; }
.logros li > .ic:first-child { width: 20px; height: 20px; padding: 7px; box-sizing: content-box; border-radius: 10px; color: var(--ios-accent); background: rgba(var(--ios-accent-rgb), .16); flex-shrink: 0; }
.logros li > .ic:last-child { width: 20px; height: 20px; color: var(--ios-green); margin-left: auto; flex-shrink: 0; }
.logros div { min-width: 0; }
.logros b { display: block; font-size: 14.5px; font-weight: 600; }
.logros small { display: block; color: var(--t3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuenta-atras b { font-variant-numeric: tabular-nums; color: var(--t1); }
.cuenta-atras button { background: none; border: 0; color: #c4bbff; text-decoration: none; font: inherit; font-weight: 500; cursor: pointer; padding: 4px; }
#confeti { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
#confeti i { position: absolute; top: -12px; width: 7px; height: 13px; border-radius: 2px; opacity: .9; animation: caer linear forwards; }
@keyframes caer { to { transform: translateY(110dvh) rotate(720deg); opacity: 0; } }

/* ── error ── */
.icono-error { width: 64px; height: 64px; margin: 18px auto 12px; border-radius: 20px; display: grid; place-items: center; color: var(--ios-red); background: rgba(255, 69, 58, .14); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.icono-error .ic { width: 30px; height: 30px; }
.titulo-error { font: 700 20px/1.25 var(--ios-font); letter-spacing: -.02em; margin: 0; }
.codigo { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px; background: var(--fill-3); color: var(--t3); font: 500 12px var(--ios-mono); }

/* ── pantallas más grandes ── */
@media (min-width: 640px) {
  .tarjeta-bs { padding: 40px 36px 30px; max-width: 520px; }
  .pasos { flex-direction: row; background: none; box-shadow: none; gap: 10px; overflow: visible; border-radius: 0; }
  .pasos li { flex: 1; flex-direction: column; text-align: center; padding: 18px 10px 16px; gap: 10px; border-radius: 20px; background: var(--fill-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
  .pasos li + li::before { content: none; }
  .pasos .num { order: 0; position: absolute; top: 8px; right: 8px; margin: 0; width: 20px; height: 20px; font-size: 11px; }
  .ic-paso { width: 46px; height: 46px; border-radius: 14px; }
}

/* ── páginas legales ── */
.legal-pagina { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: max(12px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom)); }
.legal-barra {
  position: sticky; top: max(10px, env(safe-area-inset-top)); z-index: 5; width: 100%; max-width: 840px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 7px 7px 14px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(44, 44, 56, .72), rgba(24, 24, 32, .76));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.legal-volver { display: inline-flex; align-items: center; gap: 2px; color: var(--ios-accent); font-weight: 500; font-size: 16px; text-decoration: none !important; transition: opacity .2s; }
.legal-volver .ic { width: 22px; height: 22px; }
.legal-volver:active { opacity: .5; }
.legal-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 13px; background: var(--fill-1); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .15); }
.legal-tabs a { padding: 7px 14px; border-radius: 10px; color: var(--t2); font-weight: 600; font-size: 13.5px; text-decoration: none !important; transition: background-color .3s var(--ios-ease), color .2s, transform .4s var(--ios-spring); }
.legal-tabs a:active { transform: scale(.96); }
.legal-tabs a.activo { background: rgba(255, 255, 255, .17); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 8px rgba(0, 0, 0, .28); }
@media (hover: hover) { .legal-tabs a:not(.activo):hover { color: var(--t1); } }

.legal-doc { width: 100%; max-width: 840px; box-sizing: border-box; padding: 26px 20px; border-radius: 30px; line-height: 1.7; font-size: 15.5px; color: var(--t2); }
.legal-cab { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.legal-cab img { width: 56px; height: 56px; padding: 12px; box-sizing: border-box; border-radius: 16px; background: linear-gradient(160deg, #a092ff, #5a45f0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 26px -10px rgba(var(--ios-accent-rgb), .9); flex-shrink: 0; }
.legal-cab h1 { margin: 0; font: 800 clamp(26px, 6vw, 34px)/1.1 var(--ios-font); letter-spacing: -.03em; }
.legal-cab p { margin: 4px 0 0; color: var(--t3); font-size: 13px; }
.legal-doc h2 { color: var(--t1); font: 700 19px/1.3 var(--ios-font); margin: 32px 0 8px; letter-spacing: -.02em; }
.legal-doc ul { padding-left: 20px; margin: 8px 0; }
.legal-doc li { margin: 6px 0; }
.legal-doc li::marker { color: var(--ios-accent); }
.legal-doc b { color: var(--t1); font-weight: 600; }
.legal-doc a { color: #c4bbff; text-decoration: none; }
.legal-doc a:hover { text-decoration: underline; }
.legal-doc code { background: var(--fill-1); padding: 1px 7px; border-radius: 7px; font: 500 13px var(--ios-mono); color: #d6d0ff; }
.resumen { padding: 18px 20px; border-radius: 22px; background: rgba(var(--ios-accent-rgb), .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(var(--ios-accent-rgb), .22); }
.resumen h2 { margin-top: 0 !important; color: #d6d0ff !important; font-size: 17px !important; }
.tabla-legal { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.tl-fila { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 13px 15px; border-radius: 18px; background: var(--fill-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); font-size: 14px; line-height: 1.5; }
.tl-cab { display: none; }
.tl-fila span:nth-child(2)::before { content: 'Origen: '; color: var(--t3); }
.tl-fila span:nth-child(3)::before { content: 'Uso: '; color: var(--t3); }
.tl-fila span:nth-child(4)::before { content: 'Se guarda: '; color: var(--t3); }
.legal-pie { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--sep); font-size: 13.5px; color: var(--t3); }
.video-demo { width: 100%; border-radius: 20px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px -20px #000; margin: 6px 0 12px; display: block; }
@media (min-width: 760px) {
  .legal-doc { padding: 44px 52px; }
  .tabla-legal { gap: 0; border-radius: 20px; background: var(--fill-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
  .tl-fila { grid-template-columns: 1.3fr 1fr 1.6fr .9fr; gap: 16px; border-radius: 0; background: none; box-shadow: none; padding: 14px 18px; border-top: 1px solid var(--sep); }
  .tl-cab { display: grid; border-top: 0; font-weight: 600; color: var(--t3); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 10px; }
  .tl-fila span::before { content: none !important; }
}
@media (max-width: 420px) {
  .legal-barra { padding-left: 8px; }
  .legal-volver { font-size: 15px; }
  .legal-tabs a { padding: 7px 11px; }
}

/* escudo anti-bot */
.turnstile { display: flex; justify-content: center; margin: 4px 0 14px; min-height: 65px; }
.turnstile[hidden], .alerta[hidden] { display: none; }
button.btn { font: inherit; border: 0; cursor: pointer; width: 100%; }
button.btn:disabled { cursor: progress; }
