:root {
  --negro: #0E0B16; --texto: #1D1530; --sec: #625C75; --terc: #8C869C;
  --borde: #E4E0EC; --fondo: #F6F5F9; --blanco: #FFFFFF;
  --violeta: #4F17A8; --violeta-2: #3A0F80; --violeta-suave: #EFE8FA;
  --naranja: #FF610F; --naranja-suave: #FFF0E7; --cian: #05BFE0;
  --verde: #12805C; --verde-suave: #E3F5EE; --rojo: #C2341B; --rojo-suave: #FDECE8; --amarillo-suave: #FFF6DB;
  --radio: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--violeta); }
h2 { font-size: 20px; margin: 0 0 4px; letter-spacing: -.01em; }
h3 { font-size: 16px; margin: 0; }
.sec { color: var(--sec); }
.chico { font-size: 13px; }
:focus-visible { outline: 3px solid var(--cian); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn { appearance: none; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; min-height: 42px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primario { background: var(--violeta); color: #fff; }
.btn-primario:hover:not(:disabled) { background: var(--violeta-2); }
.btn-naranja { background: var(--naranja); color: #fff; }
.btn-naranja:hover:not(:disabled) { background: #E45305; }
.btn-secundario { background: var(--blanco); border-color: var(--borde); color: var(--texto); }
.btn-secundario:hover:not(:disabled) { background: #F1EEF6; }
.btn-fantasma { background: transparent; color: var(--sec); }
.btn-fantasma:hover:not(:disabled) { background: #ECE9F2; color: var(--texto); }
.btn-peligro { background: var(--rojo-suave); color: var(--rojo); }
.btn-peligro:hover:not(:disabled) { background: #FBD9D1; }
.btn-chico { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-bloque { width: 100%; }
.btn-grande { min-height: 56px; font-size: 17px; border-radius: 14px; padding: 12px 22px; }

/* ---------- Formularios ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sec); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--borde); border-radius: 10px; background: var(--blanco); font-size: 16px; color: var(--texto); font-weight: 500;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violeta); box-shadow: 0 0 0 3px rgba(79, 23, 168, .15); }
.error { color: var(--rojo); background: var(--rojo-suave); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 0; }
.ayuda { color: var(--sec); font-size: 13px; margin: 0; }
.check-linea { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--texto); cursor: pointer; }
.check-linea input { width: 18px; height: 18px; accent-color: var(--violeta); }
.grilla-form { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grilla-form.dos { grid-template-columns: 1fr 1fr; } .grilla-form .ancho { grid-column: 1 / -1; } }

/* ---------- Acceso ---------- */
.acceso { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.caja { width: min(400px, 100%); background: var(--blanco); border: 1px solid var(--borde); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px rgba(29, 21, 48, .06); }
.acceso-logo { width: 190px; height: auto; margin: 0 auto 4px; }
.caja h1 { margin: 0; font-size: 22px; text-align: center; letter-spacing: -.02em; }

/* ---------- Barra superior y pestañas ---------- */
.barra { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.barra-logo img { height: 34px; width: auto; display: block; }
.conexion { width: 10px; height: 10px; border-radius: 50%; background: var(--terc); flex: none; }
.conexion.ok { background: #22B07D; box-shadow: 0 0 0 3px rgba(34, 176, 125, .2); }
.conexion.mal { background: var(--rojo); animation: titilar 1s infinite; }
@keyframes titilar { 50% { opacity: .3; } }
.barra-der { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.yo { font-size: 13px; color: var(--sec); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yo b { color: var(--texto); }
@media (max-width: 520px) { .yo { display: none; } }

.pestanas { position: sticky; top: 55px; z-index: 25; display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; background: var(--fondo); border-bottom: 1px solid var(--borde); scrollbar-width: none; }
.pestanas::-webkit-scrollbar { display: none; }
.pestana { appearance: none; border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--sec); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.pestana:hover { background: #ECE9F2; color: var(--texto); }
.pestana[aria-selected=true] { background: var(--violeta); color: #fff; }
.pestana .cuenta { font-size: 12px; font-weight: 700; opacity: .75; }
.aviso-bloqueo { background: var(--amarillo-suave); color: #7A5A00; padding: 10px 16px; font-size: 14px; font-weight: 600; text-align: center; }

.contenido { max-width: 1100px; margin: 0 auto; padding: 16px 12px 80px; }
@media (min-width: 720px) { .contenido { padding: 22px 20px 80px; } }
.panel { background: var(--blanco); border: 1px solid var(--borde); border-radius: 18px; padding: 18px; }
.panel + .panel { margin-top: 14px; }
.cabecera-sec { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Asistentes ---------- */
.buscador { position: sticky; top: 108px; z-index: 20; background: var(--fondo); padding: 4px 0 10px; display: flex; flex-direction: column; gap: 10px; }
.buscar { position: relative; }
.buscar input { padding-left: 42px !important; min-height: 52px !important; font-size: 17px !important; border-radius: 14px !important; }
.buscar::before { content: ''; position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: var(--terc); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center/contain no-repeat; }
.buscar .limpiar { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: #ECE9F2; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--sec); }
.filtros { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro { flex: none; border: 1px solid var(--borde); background: var(--blanco); padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--sec); }
.filtro.on { background: var(--negro); border-color: var(--negro); color: #fff; }
.contadores { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--sec); }
.contadores b { color: var(--texto); }

.lista { background: var(--blanco); border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; }
.fila { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-top: 1px solid var(--borde); }
.fila:first-child { border-top: 0; }
.fila.presente { background: linear-gradient(90deg, rgba(18, 128, 92, .07), transparent 60%); }
.check { width: 46px; height: 46px; border-radius: 12px; border: 2px solid #CFC9DB; background: var(--blanco); cursor: pointer; display: grid; place-items: center; color: transparent; font-size: 22px; font-weight: 800; transition: .15s; }
.check:hover:not(:disabled) { border-color: var(--verde); }
.check.on { background: var(--verde); border-color: var(--verde); color: #fff; }
.check:disabled { cursor: not-allowed; opacity: .6; }
.fila-info { min-width: 0; }
.fila-nombre { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.fila-nombre b { font-weight: 800; }
.fila-mail { font-size: 13px; color: var(--sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
mark { background: #FFE6A8; color: inherit; border-radius: 3px; padding: 0 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { border: 1px solid var(--borde); background: var(--blanco); color: var(--terc); border-radius: 99px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; cursor: pointer; line-height: 1.5; }
.chip.on { background: var(--violeta-suave); border-color: #D6C6F2; color: var(--violeta); }
.chip:disabled { cursor: default; }
.chip.solo { cursor: default; }
.premio-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; background: var(--naranja-suave); color: #B44100; border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.icono-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: var(--sec); font-size: 18px; display: grid; place-items: center; }
.icono-btn:hover { background: #ECE9F2; color: var(--texto); }
.vacio-lista { padding: 40px 20px; text-align: center; color: var(--sec); }
.mas { display: block; margin: 12px auto 0; }

/* ---------- Sorteo ---------- */
.segmentado { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: #ECE9F2; border-radius: 14px; margin-bottom: 14px; }
.segmentado button { border: 0; background: transparent; border-radius: 10px; padding: 10px 8px; font-weight: 700; cursor: pointer; color: var(--sec); line-height: 1.25; }
.segmentado button small { display: block; font-weight: 500; font-size: 12px; }
.segmentado button[aria-pressed=true] { background: var(--blanco); color: var(--texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.estado-pantalla { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--blanco); border: 1px solid var(--borde); margin-bottom: 14px; }
.estado-pantalla .txt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.luz { width: 10px; height: 10px; border-radius: 50%; background: var(--terc); }
.luz.on { background: var(--naranja); box-shadow: 0 0 0 4px rgba(255, 97, 15, .2); }

.ultimo { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #7A3BE0 0%, var(--violeta) 45%, #26085A 100%); margin-bottom: 14px; }
.ultimo .premio { margin: 0; color: #FFD2B8; font-weight: 700; }
.ultimo .nombre { margin: 6px 0 4px; font-size: clamp(26px, 6vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ultimo .detalle { margin: 0; opacity: .85; font-size: 14px; }
.ultimo.ausente .nombre { text-decoration: line-through; opacity: .6; }
.ultimo.girando .nombre { opacity: .7; }
.ultimo .acciones { margin-top: 16px; }
.ultimo .btn-secundario { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; }
.ultimo .btn-secundario:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }
.ultimo .btn-blanco { background: #fff; color: var(--violeta); }

.premios-grilla { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 18px; }
.premio-card { background: var(--blanco); border: 1px solid var(--borde); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.premio-card.agotado { opacity: .6; }
.premio-card h3 { font-size: 17px; }
.barra-prog { height: 6px; border-radius: 6px; background: #ECE9F2; overflow: hidden; }
.barra-prog span { display: block; height: 100%; background: var(--naranja); border-radius: 6px; }
.meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--sec); gap: 8px; }
.meta b { color: var(--texto); }

.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--sec); padding: 8px 10px; border-bottom: 1px solid var(--borde); }
.tabla td { padding: 10px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla-scroll { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.badge.ganador { background: var(--verde-suave); color: var(--verde); }
.badge.ausente { background: var(--amarillo-suave); color: #8A6500; }
.badge.anulado, .badge.revertido { background: #ECE9F2; color: var(--sec); }
.badge.super { background: var(--violeta-suave); color: var(--violeta); }
.badge.mod { background: #E3F8FC; color: #04768B; }
.badge.pend { background: var(--amarillo-suave); color: #8A6500; }
.badge.off { background: var(--rojo-suave); color: var(--rojo); }
.tachado td { color: var(--terc); }
.tachado .nom { text-decoration: line-through; }

@media (max-width: 640px) {
  .tabla.responsiva thead { display: none; }
  .tabla.responsiva tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 4px; border-bottom: 1px solid var(--borde); }
  .tabla.responsiva td { border: 0; padding: 0; }
  .tabla.responsiva td.full { grid-column: 1 / -1; }
}

/* ---------- Premios (config) ---------- */
.premio-edit { display: grid; gap: 10px; grid-template-columns: 1fr 110px 220px; align-items: end; padding: 14px 0; border-top: 1px solid var(--borde); }
.premio-edit:first-of-type { border-top: 0; }
.premio-edit .cats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.premio-edit .acciones { grid-column: 1 / -1; justify-content: flex-end; }

/* ---------- Registro ---------- */
.log { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 4px; border-top: 1px solid var(--borde); align-items: center; }
.log:first-child { border-top: 0; }
.log-meta { font-size: 12px; color: var(--sec); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.log-desc { font-size: 14px; overflow-wrap: anywhere; }
.log.revertido .log-desc { color: var(--terc); text-decoration: line-through; }
.log.nuevo { animation: resaltar 2s ease; }
@keyframes resaltar { from { background: var(--amarillo-suave); } }

/* ---------- Usuarios ---------- */
.usuario { padding: 14px 0; border-top: 1px solid var(--borde); display: grid; gap: 10px; }
.usuario:first-child { border-top: 0; }
.usuario-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.usuario-cab b { overflow-wrap: anywhere; }
.permisos { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.link-caja { display: flex; gap: 8px; align-items: center; background: var(--violeta-suave); padding: 10px; border-radius: 12px; }
.link-caja input { font-size: 13px !important; min-height: 38px !important; }

/* ---------- Sponsors ---------- */
.sponsors-admin { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.sponsor { border: 1px solid var(--borde); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sponsor img { height: 60px; width: 100%; object-fit: contain; }
.sponsor .acciones { justify-content: center; }

/* ---------- Correos ---------- */
.banner { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.banner.amarillo { background: var(--amarillo-suave); color: #6B4E00; }
.banner.verde { background: var(--verde-suave); color: var(--verde); }
.vista { background: var(--fondo); border: 1px dashed #CFC9DB; border-radius: 12px; padding: 14px; white-space: pre-wrap; font-size: 14px; }
.envio { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--borde); }
.envio:first-child { border-top: 0; }

/* ---------- Diálogo y avisos ---------- */
.dialogo { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 80px rgba(14, 11, 22, .35); }
.dialogo::backdrop { background: rgba(14, 11, 22, .45); backdrop-filter: blur(2px); }
.dialogo form, .dialogo .cuerpo { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dialogo h2 { margin: 0; }
.dialogo .pie-dialogo { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.dialogo .pie-dialogo .izq { margin-right: auto; }
.cats-edit { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; width: min(440px, calc(100% - 24px)); }
.toast { background: var(--negro); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: subir .25s ease; }
.toast.error { background: var(--rojo); }
.toast.ok { background: var(--verde); }
@keyframes subir { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Tipos de asistente ---------- */
.tipo { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--borde); }
.tipo:first-child { border-top: 0; }
.tipo input { grid-column: 1; }
.tipo .chico { grid-column: 1; }
.tipo .acciones { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
@media (max-width: 520px) { .tipo { grid-template-columns: 1fr; } .tipo .acciones { grid-column: 1; grid-row: auto; justify-content: flex-start; } }

/* ---------- Sponsors: vista previa sobre fondo oscuro (los logos son blancos) ---------- */
.sponsor-logo { width: 100%; height: 76px; border-radius: 10px; background: #1D1530; display: grid; place-items: center; padding: 10px; }
.sponsor-logo img { max-height: 56px; max-width: 100%; height: auto; width: auto; object-fit: contain; }

.panel.peligro { border-color: #F3C2B8; }
.panel.peligro h2 { color: var(--rojo); }

.estado-correo { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }
.banner.rojo { background: var(--rojo-suave); color: var(--rojo); }

/* Sponsor que regala el premio */
.ultimo .gentileza { margin: 2px 0 0; font-size: 13px; color: rgba(255, 255, 255, .78); display: flex; gap: 6px; align-items: center; }
.ultimo .gentileza b { color: #fff; }
.sponsor-premio { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--violeta); }
@media (max-width: 640px) { .premio-edit { grid-template-columns: 1fr 96px; } .premio-edit .campo-sponsor { grid-column: 1 / -1; } }
.sponsor .tam { display: flex; align-items: center; gap: 6px; }
.sponsor .tam span { min-width: 46px; text-align: center; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.sponsor .web-sp { width: 100%; min-height: 34px !important; font-size: 12px !important; padding: 6px 8px !important; }

/* ---------- Escáner de entradas (QR de Eventbrite) ---------- */
body.con-escaner { overflow: hidden; }
.escaner { position: fixed; inset: 0; z-index: 60; background: #0E0B16; color: #fff; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); overflow-y: auto; }
.esc-cab { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 16px; }
.esc-cont { margin-left: auto; font-size: 13px; opacity: .75; font-variant-numeric: tabular-nums; }
.esc-cerrar { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.esc-camara { position: relative; flex: 1 1 auto; min-height: 240px; max-height: 62vh; background: #000; overflow: hidden; }
.esc-camara video { width: 100%; height: 100%; object-fit: cover; display: block; }
.esc-marco { position: absolute; left: 50%; top: 46%; width: min(64vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .38); outline: 3px solid rgba(255, 255, 255, .9); outline-offset: -3px; }
.esc-estado { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-weight: 700; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); padding: 0 16px; }
.esc-estado.error { color: #FFB4A8; }
.esc-manual { display: flex; gap: 8px; padding: 12px 16px; }
.esc-manual input { flex: 1; min-width: 0; background: rgba(255, 255, 255, .08) !important; color: #fff !important; border-color: rgba(255, 255, 255, .2) !important; }
.esc-resultado { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #fff; color: var(--texto);
  border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); animation: subir .25s ease both; }
@keyframes subir { from { transform: translateY(30%); opacity: 0; } }
@media (min-width: 700px) { .esc-resultado { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 16px; border-radius: 22px; animation: none; } }
.esc-sello { display: inline-block; margin: 0 0 8px; padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: 14px; }
.esc-resultado.ok .esc-sello { background: #DCFCE7; color: #166534; }
.esc-resultado.aviso .esc-sello { background: #FEF3C7; color: #92400E; }
.esc-resultado.error .esc-sello { background: #FEE2E2; color: #991B1B; }
.esc-nombre { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.esc-mail { margin: 4px 0 0; color: var(--sec); font-size: 14px; overflow-wrap: anywhere; }
.esc-sub { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--sec); }
.esc-chips .chip { font-size: 15px; padding: 9px 14px; }
.esc-sig { margin-top: 18px; min-height: 50px; font-size: 16px; }
.esc-buscar { width: 100%; }
.esc-lista { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.esc-opcion { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--borde); background: #fff; cursor: pointer; font: inherit; color: inherit; }
.esc-opcion:hover { border-color: var(--violeta); }
.esc-opcion small { color: var(--sec); }

/* Modal de tipo de asistente al dar el presente */
.tipos-modal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 14px 0 6px; }
.tipo-op { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--borde); border-radius: 12px; cursor: pointer; font-weight: 700; }
.tipo-op:has(input:checked) { border-color: var(--violeta); background: var(--violeta-suave); color: var(--violeta); }
.tipo-op input { width: 20px; height: 20px; accent-color: var(--violeta); }
