/* Dinámicas · Jóvenes con Propósito
   Colores tomados de los dos logos: azul marino de "JÓVENES" y naranja de "Propósito". */

:root {
  --noche: #050d1d;
  --azul: #0b2545;
  --azul-2: #13315c;
  --azul-3: #1d4580;
  --naranja: #f28c28;
  --naranja-2: #ff6a1a;
  --oro: #ffc15e;
  --rojo: #ff3d2e;
  --verde: #2fd47a;
  --texto: #ffffff;
  --texto-2: rgba(255, 255, 255, .72);
  --texto-3: rgba(255, 255, 255, .5);
  --tarjeta: rgba(255, 255, 255, .06);
  --borde: rgba(255, 255, 255, .12);
  --radio: 22px;
  --sombra: 0 18px 50px rgba(0, 0, 0, .45);
  --display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
  --cuerpo: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--cuerpo);
  color: var(--texto);
  background: var(--noche);
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(242, 140, 40, .28), transparent 60%),
    radial-gradient(90% 60% at 100% 110%, rgba(29, 69, 128, .55), transparent 60%),
    linear-gradient(180deg, #0a1a36 0%, var(--noche) 70%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }

/* ── Encabezado con los dos logos ─────────────────────────────── */
.cabecera {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 16px 4px;
  max-width: 720px; margin: 0 auto;
}
.cabecera .logo-iglesia { height: 38px; width: auto; display: block; }
.cabecera .logo-jovenes {
  width: 44px; height: 44px; border-radius: 50%; display: block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 6px 20px rgba(242, 140, 40, .45);
}

.contenedor { max-width: 720px; margin: 0 auto; padding: 4px 16px calc(28px + env(safe-area-inset-bottom)); }

/* ── Botones ──────────────────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 16px;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  transition: transform .12s ease, filter .2s ease, background .2s ease;
  user-select: none;
}
.boton:active { transform: scale(.97); }
.boton:disabled { opacity: .45; pointer-events: none; }
.boton svg { width: 22px; height: 22px; flex: none; }
.boton-principal {
  background: linear-gradient(135deg, var(--oro), var(--naranja) 45%, var(--naranja-2));
  color: #1a0d00; box-shadow: 0 10px 30px rgba(242, 140, 40, .45);
}
.boton-secundario { background: rgba(255, 255, 255, .1); border: 1px solid var(--borde); }
.boton-peligro { background: rgba(255, 61, 46, .14); color: #ff8a80; border: 1px solid rgba(255, 61, 46, .35); }
.boton-enorme { width: 100%; min-height: 72px; font-size: 1.35rem; border-radius: 22px; font-family: var(--display); letter-spacing: .06em; font-weight: 400; }
.boton-ancho { width: 100%; }
.boton-whatsapp { background: #25d366; color: #052e16; box-shadow: 0 8px 22px rgba(37, 211, 102, .3); text-decoration: none; margin-bottom: 8px; }
.boton-texto { background: none; color: var(--texto-2); min-height: 44px; padding: 0 12px; text-decoration: underline; text-underline-offset: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--borde); color: var(--texto-2);
}
.punto-vivo { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(47, 212, 122, .7); animation: latido-punto 1.6s infinite; }
@keyframes latido-punto { 70% { box-shadow: 0 0 0 9px rgba(47, 212, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 212, 122, 0); } }

/* ════════════════════════════════════════════════════════════════
   PANTALLA DEL PÚBLICO
   ════════════════════════════════════════════════════════════════ */
.sala { min-height: 100dvh; display: flex; flex-direction: column; }
.sala main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px 16px 8px; }
.nombre-dinamica {
  margin: 0 0 6px; font-size: .95rem; font-weight: 600; color: var(--oro);
  text-transform: uppercase; letter-spacing: .14em; max-width: 100%; overflow-wrap: anywhere;
}
.vista { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; animation: entrar .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes entrar { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* Apodo del participante */
.barra-apodo { display: flex; justify-content: center; padding: 2px 16px 0; }
.mi-apodo {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 7px 12px 7px 14px; border-radius: 999px; font-size: .88rem; color: var(--texto-2);
  background: rgba(255, 255, 255, .08); border: 1px solid var(--borde);
}
.mi-apodo b { color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-apodo svg { width: 17px; height: 17px; color: var(--oro); flex: none; }
.mi-apodo:active { transform: scale(.97); }
.anonimo { margin: 8px 0 0; font-size: .85rem; color: var(--texto-3); }
.boton-azar { margin-bottom: 10px; }

/* Esperando */
.anillos { position: relative; width: min(56vw, 220px, 28dvh); aspect-ratio: 1; margin: 12px auto 18px; }
.anillos span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(242, 140, 40, .55); animation: onda 3s cubic-bezier(.2, .6, .4, 1) infinite; }
.anillos span:nth-child(2) { animation-delay: 1s; }
.anillos span:nth-child(3) { animation-delay: 2s; }
@keyframes onda { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.anillos img {
  position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%;
  box-shadow: 0 0 0 5px #fff, 0 0 60px rgba(242, 140, 40, .65);
  animation: respirar 3s ease-in-out infinite;
}
@keyframes respirar { 50% { transform: scale(1.05); box-shadow: 0 0 0 5px #fff, 0 0 90px rgba(255, 193, 94, .85); } }

.titular { font-family: var(--display); font-weight: 400; line-height: .95; margin: 0; letter-spacing: .04em; }
.titular-esperando { font-size: clamp(2.6rem, 13vw, 4.2rem); }
.titular-esperando .letra { display: inline-block; animation: ola 2.2s ease-in-out infinite; }
@keyframes ola { 0%, 60%, 100% { transform: translateY(0); color: #fff; } 30% { transform: translateY(-10px); color: var(--oro); } }
.frase { min-height: 2.8em; margin: 8px 0 10px; color: var(--texto-2); font-size: 1.08rem; transition: opacity .4s ease; }
.frase.oculta { opacity: 0; }

/* Activa: el botón ¡PARA! */
.titular-mira { font-size: clamp(2.4rem, 12vw, 3.6rem); }
.icono-video { width: 52px; height: 40px; margin: 0 0 6px; }
.instruccion { font-size: 1.05rem; color: var(--texto-2); margin: 6px 0 min(28px, 3dvh); }
.instruccion-abajo { margin: min(24px, 3dvh) 0 0; color: var(--texto-2); font-size: .98rem; line-height: 1.45; }
.instruccion-abajo b { color: #fff; }
.boton-para {
  position: relative; width: min(52vw, 210px, 27dvh); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #ff8a5c 0%, var(--rojo) 42%, #c4160b 100%);
  box-shadow: 0 0 0 8px rgba(255, 61, 46, .14), 0 18px 44px rgba(255, 61, 46, .4), inset 0 -12px 26px rgba(0, 0, 0, .25), inset 0 8px 20px rgba(255, 255, 255, .22);
  animation: brillo 3.2s ease-in-out infinite;
  touch-action: manipulation;
}
.boton-para span { font-family: var(--display); font-size: clamp(2.6rem, 12vw, 3.6rem); letter-spacing: .03em; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .22); }
.boton-para:active { transform: scale(.93); }
/* Brillo suave, sin latir: el botón está ahí, pero no le pide a nadie que lo toque. */
@keyframes brillo { 50% { box-shadow: 0 0 0 8px rgba(255, 61, 46, .2), 0 18px 54px rgba(255, 61, 46, .55), inset 0 -12px 26px rgba(0, 0, 0, .25), inset 0 8px 20px rgba(255, 255, 255, .22); } }

.onda-toque { position: fixed; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 193, 94, .85), rgba(255, 61, 46, 0) 70%); transform: translate(-50%, -50%) scale(0); animation: estallido .7s ease-out forwards; z-index: 50; }
@keyframes estallido { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.destello { position: fixed; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255, 193, 94, .55), transparent 65%); pointer-events: none; animation: destello .9s ease-out forwards; z-index: 40; }
@keyframes destello { from { opacity: 1; } to { opacity: 0; } }

/* Ya votó */
.sello-listo {
  width: min(120px, 16dvh); height: min(120px, 16dvh); border-radius: 50%; display: grid; place-items: center; margin: 6px auto 14px;
  background: radial-gradient(circle at 35% 30%, #ffd894, var(--naranja) 55%, #c85a00);
  box-shadow: 0 0 0 8px rgba(242, 140, 40, .2), 0 20px 50px rgba(242, 140, 40, .5);
  animation: sello .6s cubic-bezier(.2, 1.4, .4, 1);
}
.sello-listo svg { width: 55%; height: 55%; stroke: #fff; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: trazo .5s .25s ease forwards; }
@keyframes sello { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.titular-listo { font-size: clamp(2.8rem, 13vw, 4.2rem); }
.mensaje-video { font-size: 1.15rem; line-height: 1.4; margin: 8px 0 16px; color: #fff; }
.mensaje-video strong { color: var(--oro); }

/* Barra de cuántos dijeron ¡PARA! */
.medidor { width: 100%; }
.medidor-barra { position: relative; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.medidor-relleno { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--oro), var(--naranja), var(--rojo)); transition: width .5s cubic-bezier(.2, .9, .3, 1); }
.medidor-mitad { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; background: rgba(255, 255, 255, .7); }
.medidor-texto { display: flex; justify-content: space-between; font-size: .9rem; color: var(--texto-2); margin-top: 8px; }
.medidor-texto b { color: #fff; font-size: 1.05rem; }

/* Detenida */
.rayos { position: relative; width: min(180px, 24dvh); height: min(180px, 24dvh); margin: 0 auto 10px; display: grid; place-items: center; }
.rayos::before {
  content: ''; position: absolute; inset: -30px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 193, 94, .35) 0deg 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
  animation: girar 14s linear infinite;
}
.rayos .icono-alto { position: relative; width: 64%; height: 64%; }
@keyframes girar { to { transform: rotate(360deg); } }
.titular-detenida { font-size: clamp(3.2rem, 16vw, 5.2rem); background: linear-gradient(180deg, #fff 30%, var(--oro)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Pie: compartir y estado de la conexión */
.pie-sala { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px calc(14px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; width: 100%; }
.conexion { font-size: .82rem; color: var(--texto-3); display: inline-flex; align-items: center; gap: 6px; }
.conexion.caida { color: #ffb4a8; }
.conexion.caida .punto-vivo { background: var(--rojo); animation: none; }

/* Hoja inferior (compartir) */
.velo { position: fixed; inset: 0; background: rgba(2, 6, 15, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: aparecer .2s ease; }
@keyframes aparecer { from { opacity: 0; } }
.hoja { width: 100%; max-width: 520px; max-height: 100dvh; overflow-y: auto; background: linear-gradient(180deg, #11284d, #0a1830); border: 1px solid var(--borde); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); text-align: center; animation: subir .3s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes subir { from { transform: translateY(100%); } }
.hoja-cabecera { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 2px; }
.hoja-cabecera .boton-volver { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.boton-volver { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px 0 6px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid var(--borde); font-weight: 600; font-size: .9rem; }
.boton-volver svg { width: 20px; height: 20px; }
.hoja h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: .04em; }
.hoja p { margin: 0 0 10px; color: var(--texto-2); font-size: .92rem; }
.hoja .qr { width: min(48vw, 190px, 26dvh); padding: 10px; border-radius: 18px; margin-bottom: 8px; }
.hoja .boton { min-height: 46px; }
.qr { background: #fff; border-radius: 22px; padding: 14px; width: min(72vw, 280px); margin: 0 auto 14px; box-shadow: var(--sombra); }
.qr img { width: 100%; height: auto; display: block; }
.codigo-grande, .hoja .codigo-grande { font-family: var(--display); font-size: 1.7rem; letter-spacing: .3em; color: var(--oro); margin: 0 0 10px; padding-left: .3em; }
.fila-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pista { margin: 10px 0 0 !important; font-size: .85rem; color: var(--texto-3) !important; }
.pista b, .proyectar p b { color: var(--oro); }

.aviso-flotante { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #fff; color: var(--azul); font-weight: 700; padding: 12px 20px; border-radius: 14px; box-shadow: var(--sombra); z-index: 100; animation: subir-aviso .25s ease; max-width: calc(100vw - 32px); text-align: center; }
@keyframes subir-aviso { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ════════════════════════════════════════════════════════════════
   PANEL DEL PASTOR
   ════════════════════════════════════════════════════════════════ */
.panel h1, .panel h2 { font-family: var(--display); font-weight: 400; letter-spacing: .04em; margin: 0; }
.saludo { margin: 8px 0 4px; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1; }
.saludo em { font-style: normal; color: var(--oro); }
.bajada { margin: 4px 0 14px; color: var(--texto-2); }

/* Entrar */
.entrar { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px 16px; text-align: center; }
.entrar .logos-entrar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 18px; }
.entrar .logos-entrar .logo-jovenes { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 50px rgba(242, 140, 40, .5); animation: respirar 3.4s ease-in-out infinite; }
.entrar > .logo-iglesia { height: 70px; width: auto; display: block; }
.formulario { width: 100%; max-width: 380px; display: grid; gap: 12px; margin-top: 18px; text-align: left; }
.campo label { display: block; font-size: .85rem; font-weight: 600; color: var(--texto-2); margin: 0 0 6px 4px; }
.campo input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--borde); background: rgba(255, 255, 255, .07); font-size: 1rem; outline: none; transition: border-color .2s, background .2s; }
.campo input:focus { border-color: var(--naranja); background: rgba(255, 255, 255, .1); }
.campo-codigo { width: 100%; min-height: 72px; border-radius: 18px; border: 2px solid var(--borde); background: rgba(255, 255, 255, .07); text-align: center; font-family: var(--display); font-size: 2.4rem; letter-spacing: .35em; padding-left: .35em; text-transform: uppercase; outline: none; }
.campo-codigo:focus { border-color: var(--naranja); }
.error-form { color: #ffb4a8; font-size: .92rem; min-height: 1.3em; margin: 0 4px; }

/* Tarjetas de funcionalidades */
.funciones { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .funciones { grid-template-columns: 1fr 1fr; } }
.funcion {
  position: relative; overflow: hidden; text-align: left; border-radius: var(--radio); padding: 20px;
  min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: linear-gradient(140deg, rgba(255, 106, 26, .95), rgba(242, 140, 40, .9) 45%, rgba(255, 193, 94, .85));
  box-shadow: 0 14px 40px rgba(242, 140, 40, .35); color: #1a0d00;
  transition: transform .15s ease;
}
.funcion:active { transform: scale(.98); }
.funcion h2 { font-size: 2rem; line-height: 1; }
.funcion p { margin: 0; font-weight: 500; opacity: .85; }
.funcion .icono-funcion { position: absolute; right: -18px; top: -18px; width: 104px; height: 104px; opacity: .16; }
.funcion-pronto { background: var(--tarjeta); border: 1px dashed var(--borde); box-shadow: none; color: var(--texto-3); pointer-events: none; }

/* Lista de dinámicas creadas */
.crear { display: flex; gap: 10px; margin: 0 0 18px; }
.crear input { flex: 1; min-width: 0; min-height: 56px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--borde); background: rgba(255, 255, 255, .07); font-size: 1rem; outline: none; }
.crear input:focus { border-color: var(--naranja); }
.crear .boton { flex: none; min-height: 56px; }
.lista { display: grid; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 18px; background: var(--tarjeta); border: 1px solid var(--borde);
  transition: background .2s, transform .12s;
}
.item:active { transform: scale(.985); background: rgba(255, 255, 255, .1); }
.item .item-texto { flex: 1; min-width: 0; }
.item .item-nombre { font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .item-datos { font-size: .85rem; color: var(--texto-3); margin-top: 2px; }
.item svg { width: 20px; height: 20px; color: var(--texto-3); flex: none; }
.vacio { text-align: center; padding: 34px 16px; color: var(--texto-3); border: 1px dashed var(--borde); border-radius: var(--radio); }

.estado { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; flex: none; }
.estado::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.estado-esperando { background: rgba(255, 193, 94, .14); color: var(--oro); }
.estado-activa { background: rgba(47, 212, 122, .15); color: var(--verde); }
.estado-activa::before { animation: latido-punto 1.4s infinite; box-shadow: 0 0 0 0 rgba(47, 212, 122, .7); }
.estado-detenida { background: rgba(255, 61, 46, .15); color: #ff8a80; }

/* Barra superior de las vistas internas */
.barra { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; }
.barra .volver { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid var(--borde); flex: none; }
.barra .volver svg { width: 22px; height: 22px; }
.barra h1 { font-size: 1.35rem; line-height: 1.05; flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Control en vivo */
.marcador {
  position: relative; border-radius: 22px; padding: 14px; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  background: linear-gradient(160deg, rgba(29, 69, 128, .55), rgba(11, 37, 69, .6)); border: 1px solid var(--borde);
  transition: background .4s ease, box-shadow .4s ease;
}
.marcador.mayoria { background: linear-gradient(160deg, #ff5a2e, #e0300f); box-shadow: 0 0 0 4px rgba(255, 193, 94, .5), 0 20px 60px rgba(255, 61, 46, .55); animation: alerta 1s ease-in-out infinite; }
@keyframes alerta { 50% { box-shadow: 0 0 0 10px rgba(255, 193, 94, .25), 0 20px 70px rgba(255, 61, 46, .75); } }
.anillo { position: relative; width: min(42vw, 170px); aspect-ratio: 1; }
.anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo .pista { stroke: rgba(255, 255, 255, .12); }
.anillo .avance { stroke: url(#degradado-anillo); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2, .9, .3, 1); }
.marcador.mayoria .anillo .avance { stroke: #fff; }
.anillo .mitad { stroke: rgba(255, 255, 255, .8); }
.anillo-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anillo-centro .grande { font-family: var(--display); font-size: clamp(2.2rem, 11vw, 3.2rem); line-height: 1; }
.anillo-centro .grande small { font-size: .45em; color: var(--texto-2); }
.marcador.mayoria .anillo-centro .grande small { color: rgba(255, 255, 255, .85); }
.anillo-centro .pequeno { font-size: .72rem; color: var(--texto-2); font-weight: 600; margin-top: 2px; }
.marcador.mayoria .anillo-centro .pequeno { color: #fff; }
.marcador-datos { display: grid; gap: 4px; }
.porcentaje { font-family: var(--display); font-size: clamp(2.6rem, 13vw, 3.4rem); line-height: 1; letter-spacing: .02em; margin-bottom: 4px; }
.dato { font-size: .88rem; color: var(--texto-2); }
.dato b { color: #fff; font-size: 1.05rem; }
.marcador.mayoria .dato { color: rgba(255, 255, 255, .85); }
.alerta-mayoria { grid-column: 1 / -1; text-align: center; font-family: var(--display); font-size: clamp(1.4rem, 6.5vw, 2rem); letter-spacing: .04em; }
.acciones { display: grid; gap: 8px; margin: 12px 0; }
.acciones .boton-enorme { min-height: 60px; font-size: 1.25rem; }
.acciones .fila-botones .boton, .acciones .boton-secundario { min-height: 48px; padding: 0 12px; font-size: .95rem; white-space: nowrap; }
.anillo .avance.cero { stroke-opacity: 0; }

.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.qr-fila { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.qr-fila .qr { width: min(34vw, 132px); padding: 8px; border-radius: 14px; margin: 0; flex: none; box-shadow: none; }
.qr-datos { min-width: 0; }
.qr-datos h2 { font-size: 1rem !important; color: var(--texto-2); margin: 0 !important; }
.qr-datos .codigo-grande { font-size: 2rem; margin: 2px 0 2px; padding-left: 0; }
.tarjeta-qr .enlace { font-size: .78rem; color: var(--texto-3); word-break: break-all; margin: 0; }
.tarjeta-qr .boton-whatsapp { min-height: 48px; }
.fila-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fila-3 .boton { min-height: 44px; padding: 0 6px; gap: 6px; font-size: .82rem; }
.fila-3 .boton svg { width: 18px; height: 18px; }
.pie-control { display: flex; justify-content: center; gap: 18px; }
.boton-texto-peligro { color: #ff8a80; }

/* Apodos conectados (panel) */
.tarjeta h2 { font-size: 1.1rem; margin: 0 0 2px; }
.tarjeta .nota { margin: 0 0 8px; font-size: .78rem; color: var(--texto-3); }
.apodos { display: flex; flex-wrap: wrap; gap: 6px; max-height: 104px; overflow-y: auto; }
.apodos span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--borde); font-size: .8rem; font-weight: 600; }
.apodos .mas { background: none; border-style: dashed; color: var(--texto-3); }

/* Proyectar el QR en la pantalla grande */
.proyectar { position: fixed; inset: 0; z-index: 90; background: radial-gradient(circle at 50% 30%, #13315c, #050d1d 75%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; padding: 3vh 4vw; text-align: center; }
.proyectar .proyectar-logos { display: flex; align-items: center; gap: 3vw; }
.proyectar .proyectar-logos .logo-jovenes { width: 13vh; height: 13vh; border-radius: 50%; box-shadow: 0 0 0 4px #fff; }
.proyectar .proyectar-logos .logo-iglesia { height: 11vh; }
.proyectar h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vh, 4.5rem); margin: 0; letter-spacing: .04em; }
.proyectar .qr { width: min(52vh, 80vw); padding: 2vh; }
.proyectar p { margin: 0; font-size: clamp(1rem, 3vh, 1.8rem); color: var(--texto-2); }
.proyectar .codigo-grande { font-size: clamp(2rem, 6vh, 4rem); margin: 0; }
.proyectar .cerrar { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.proyectar .cerrar svg { width: 26px; height: 26px; }

/* Diálogo de confirmación propio (sin ventanas del navegador) */
.dialogo { width: 100%; max-width: 420px; margin: 16px; align-self: center; background: linear-gradient(180deg, #13315c, #0a1830); border: 1px solid var(--borde); border-radius: 22px; padding: 18px; text-align: center; animation: entrar .3s ease; }
.dialogo h2 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin: 0 0 8px; }
.dialogo p { color: var(--texto-2); margin: 0 0 14px; }
.dialogo .error-form { color: #ffb4a8; margin: -8px 0 12px; min-height: 0; }
.dialogo input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--borde); background: rgba(255, 255, 255, .07); margin-bottom: 16px; outline: none; }

.cerrar-sesion { display: block; margin: 18px auto 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
