@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/poppins-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/figtree-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/figtree-latin-700-normal.woff2') format('woff2'); }
/* Sentido Común · Registro de referidos */
:root {
  --azul: #135693;
  --marino: #0C3A66;
  --naranja: #E27C37;
  --naranja-texto: #8A3F10;
  --naranja-suave: #FDF1E8;
  --fondo: #F6F4EF;
  --tarjeta: #FFFFFF;
  --tinta: #16233A;
  --tinta-2: #2E3A4E;
  --gris: #4D5768;
  --borde: #D9D6CE;
  --borde-suave: #ECE9E2;
  --campo: #FBFAF7;
  --azul-suave: #F3F6FA;
  --error: #B42318;
  --verde: #13804A;
  --display: 'Poppins', system-ui, sans-serif;
  --texto: 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--texto); font-size: 16px; line-height: 1.45; }
[hidden] { display: none !important; }
a { color: var(--azul); }
a:hover { color: var(--marino); }
img { max-width: 100%; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }

.page { max-width: 460px; margin: 0 auto; padding: 28px 20px 36px; display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.logo { width: 138px; height: auto; display: block; }
.logo-sm { width: 104px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: var(--tarjeta); border: 1px solid #E4E1D9; border-radius: 999px; font-size: 14px; color: var(--gris); }
.chip b { color: var(--tinta); }
.avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--naranja); color: var(--tinta); font-family: var(--display); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.15; color: var(--marino); letter-spacing: -0.01em; }
.lead { margin: 0; color: var(--gris); text-align: center; }
.intro { display: flex; flex-direction: column; gap: 6px; text-align: center; }

.card { background: var(--tarjeta); border: 1px solid var(--borde-suave); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
form { display: flex; flex-direction: column; gap: 16px; margin: 0; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--azul-suave); border-radius: 12px; cursor: pointer; }
.switch strong { display: block; font-size: 14px; color: var(--marino); }
.switch small { display: block; font-size: 13px; color: var(--gris); }
.switch input { width: 22px; height: 22px; accent-color: var(--azul); flex-shrink: 0; margin: 0; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input { height: 52px; padding: 0 14px; font-size: 17px; color: var(--tinta); background: var(--campo); border: 1.5px solid var(--borde); border-radius: 12px; width: 100%; }
.input::placeholder { color: #7C8595; }
.input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(19, 86, 147, .18); }
.input.mal { border-color: var(--error); }
.input.corto { width: 140px; letter-spacing: 0.3em; }
.err { font-size: 13px; color: var(--error); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pill { height: 48px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--campo); color: var(--tinta); border: 1.5px solid var(--borde); }
.pill[aria-pressed="true"] { background: var(--azul); color: #fff; border-color: var(--azul); }

.legal { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--tinta-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--azul); flex-shrink: 0; }
.check a { font-weight: 600; }

.cta { height: 58px; border: 0; border-radius: 14px; background: var(--azul); color: #fff; font-family: var(--display); font-weight: 700; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 18px rgba(12, 58, 102, .22); width: 100%; }
.cta:disabled { opacity: .7; cursor: wait; }
.segura { margin: 0; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--gris); }
.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--naranja-suave); border: 1px solid #F2C9A8; font-size: 14px; line-height: 1.45; color: var(--tinta-2); }
.aviso svg { flex-shrink: 0; margin-top: 1px; }
.aviso.error { background: #FEF3F2; border-color: #FECDCA; }
.turnstile { display: flex; justify-content: center; min-height: 0; }

/* Pie */
.pie { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid #E4E1D9; }
.pie h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--marino); }
.redes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.redes a { height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--tarjeta); border: 1px solid #E4E1D9; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--tinta); text-decoration: none; }
.firma { display: flex; align-items: center; gap: 8px; padding-top: 6px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--marino); }
.firma::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--naranja); transform: skewX(-12deg); }

/* Confirmación */
.banda { background: var(--azul); padding: 26px 24px 76px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: #fff; }
.banda img { width: 86px; height: auto; }
.banda h1 { color: #fff; font-size: 27px; }
.banda p { margin: 0; color: #DDE8F4; }
.ok-badge { width: 58px; height: 58px; border-radius: 999px; background: var(--naranja); display: flex; align-items: center; justify-content: center; }
.sube { margin-top: -52px; padding-top: 0; }
.enlace-card { align-items: center; border-radius: 24px; box-shadow: 0 10px 30px rgba(12, 58, 102, .12); border: 0; }
.rotulo { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.qr-box { padding: 14px; border: 1.5px solid #E4E1D9; border-radius: 18px; background: #fff; line-height: 0; }
.qr-box svg { width: 184px; height: 184px; display: block; }
.fila-enlace { display: flex; align-items: center; gap: 8px; width: 100%; }
.enlace-txt { flex-grow: 1; min-width: 0; height: 48px; padding: 0 14px; display: flex; align-items: center; background: var(--azul-suave); border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--marino); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.btn-sec { height: 48px; min-width: 48px; padding: 0 12px; border: 1.5px solid var(--borde); background: #fff; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--azul); text-decoration: none; }
.btn-wa { width: 100%; height: 56px; border-radius: 14px; background: var(--verde); color: #fff; font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-wa:hover { color: #fff; background: #0F6C3E; }
.dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }

.red-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.num { display: flex; align-items: baseline; gap: 8px; }
.num b { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--marino); }
.num span { font-weight: 600; color: var(--tinta-2); }
.ico-box { width: 52px; height: 52px; border-radius: 16px; background: var(--azul-suave); display: flex; align-items: center; justify-content: center; }
.nota { margin: 0; font-size: 14px; line-height: 1.5; color: var(--gris); }
.niveles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nivel { padding: 10px 8px; border-radius: 12px; background: var(--campo); border: 1px solid #E4E1D9; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.nivel b { font-size: 14px; }
.nivel span { font-size: 12px; color: var(--gris); }
.nivel.activo { background: var(--naranja-suave); border: 1.5px solid var(--naranja); }

.grupo { background: var(--marino); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.grupo h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.25; color: #fff; }
.grupo p { margin: 0; font-size: 14px; color: #D5E1EE; }
.grupo a { height: 50px; border-radius: 12px; background: #fff; color: var(--marino); font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
.otra { height: 50px; border-radius: 12px; border: 1.5px dashed #9AA6B8; background: transparent; color: var(--marino); font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }

/* Mi enlace: tablero de red */
.stat { background: var(--azul); border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; color: #fff; }
.stat-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.stat-top b { display: block; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: .95; }
.stat-top span { font-weight: 600; color: #DDE8F4; }
.insignia { padding: 6px 12px; border-radius: 999px; background: var(--naranja); color: var(--tinta); font-size: 13px; font-weight: 700; white-space: nowrap; }
.mini { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 2px; }
.mini b { font-family: var(--display); font-weight: 700; font-size: 22px; }
.mini span { font-size: 13px; color: #DDE8F4; }
.barra { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.barra i { display: block; height: 8px; border-radius: 999px; background: var(--naranja); width: 0; }
.mini-qr { display: flex; align-items: center; gap: 14px; }
.mini-qr svg { width: 92px; height: 92px; flex-shrink: 0; }
.link-btn { height: 44px; border: 0; background: transparent; color: var(--azul); font-size: 15px; font-weight: 600; cursor: pointer; }
.centro { text-align: center; }

/* Política */
.doc { font-size: 14px; line-height: 1.55; color: var(--tinta-2); gap: 14px; }
.doc h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--marino); }
.doc p { margin: 0; }
.doc ol { margin: 0; padding-left: 18px; }
.volver { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 44px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--naranja-texto); }

@media (min-width: 600px) {
  .page { padding-top: 40px; }
}
.pila { display: flex; flex-direction: column; gap: 16px; }
#res-link { font-size: 15px; font-weight: 700; color: var(--marino); word-break: break-all; }
.mini-qr .link-btn { padding: 0; height: 36px; }
.stat .nota { color: #DDE8F4; margin-top: 6px; }
.btn-grupo { width: 100%; height: 50px; border-radius: 12px; background: var(--verde); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-grupo:hover { color: #fff; background: #0F6C3E; }
.dueno { display: flex; align-items: center; gap: 12px; align-self: stretch; }
.avatar-lg { width: 48px; height: 48px; font-size: 17px; flex-shrink: 0; }
.dueno-nombre { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--marino); }
.enlace-card .nota { margin-top: -4px; }
.enlace-grande { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.enlace-grande .enlace-txt { height: auto; min-height: 52px; padding: 12px 14px; font-size: 17px; white-space: normal; word-break: break-all; }
.btn-copiar { width: 100%; }
.aviso b { color: var(--tinta); }
.ancho { width: 100%; }
.panel-card { border: 1.5px solid #C9D9EA; }
.panel-top { display: flex; align-items: center; gap: 12px; }
.panel-t { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--marino); }
a.btn-sec { text-decoration: none; }
.como { gap: 12px; }
.como-t { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--marino); }
.pasos { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--tinta-2); }
.pasos b { color: var(--tinta); }
.alerta-sc { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--naranja-suave); border: 1px solid #F2C9A8; font-size: 14px; line-height: 1.45; color: var(--tinta-2); }
.video summary { list-style: none; cursor: pointer; height: 46px; border-radius: 12px; border: 1.5px solid var(--borde); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--azul); }
.video summary::-webkit-details-marker { display: none; }
.video[open] summary { margin-bottom: 12px; }
.video video { display: block; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 16px; background: #0C3A66; aspect-ratio: 9 / 16; }
.lista-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tab { height: 42px; font-size: 14px; }
.personas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.persona { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--borde-suave); }
.persona:last-child { border-bottom: 0; }
.persona .avatar { flex-shrink: 0; width: 36px; height: 36px; font-size: 13px; }
.persona .avatar.ind { background: var(--azul-suave); color: var(--marino); }
.p-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex-grow: 1; }
.p-txt b { font-size: 15px; }
.p-txt span { font-size: 13px; color: var(--gris); }
.p-badge { flex-shrink: 0; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--naranja-suave); color: var(--naranja-texto); }
.vacio-p { margin: 0; padding: 16px; border: 1px dashed var(--borde); border-radius: 12px; text-align: center; color: var(--gris); font-size: 14px; }
#ya-panel .cta { text-decoration: none; }
