/* YaloMedical × Plenum · registro del evento. Paleta del manual de marca (navy, azul, celeste, oro). */
:root {
  --navy: #0e2238;
  --navy-0: #081627;
  --navy-2: #16304d;
  --azul: #3c7ab0;
  --celeste: #7db6e6;
  --oro: #e9c25e;
  --oro-2: #b4862a;
  --tinta: #13243a;
  --gris: #5d6b7d;
  --gris-2: #8a97a8;
  --linea: #e1e8f0;
  --fondo: #f2f5f9;
  --error: #d64545;
  --ok: #1f9d6b;
  --radio: 18px;
  --sombra: 0 1px 2px rgba(14, 34, 56, .06), 0 10px 30px -12px rgba(14, 34, 56, .18);
  --sombra-2: 0 30px 80px -24px rgba(8, 22, 39, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --f-texto: 'Poppins', system-ui, sans-serif;
  --f-titulo: 'Saira', 'Poppins', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--f-texto); color: var(--tinta); background: var(--fondo); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-titulo); font-stretch: 118%; margin: 0; letter-spacing: .005em; }
button, input, select { font: inherit; }
a { color: var(--azul); }
[hidden] { display: none !important; }

/* ---------- Animaciones base ---------- */
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-14px) rotate(-5deg); } }
@keyframes deriva1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 6%) scale(1.12); } }
@keyframes deriva2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-10%, 4%) scale(.92); } }
@keyframes brillo { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 107, .55); } 70% { box-shadow: 0 0 0 10px rgba(31, 157, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0); } }
@keyframes sacudir { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes onda { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
@keyframes confeti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }

.aparece { animation: aparecer .7s var(--ease) both; }
.escalonado > * { animation: subir .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
.sacude { animation: sacudir .5s both; }

/* ---------- Fondo vivo (manchas de color que se mueven + grilla) ---------- */
.oscuro { background: var(--navy-0); color: #fff; }
.fondo-vivo { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% 0%, #12304f 0%, var(--navy-0) 60%); }
.fondo-vivo i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.fondo-vivo .b1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, #2b6aa3, transparent 65%); animation: deriva1 18s ease-in-out infinite; }
.fondo-vivo .b2 { width: 50vmax; height: 50vmax; right: -20vmax; top: 10vmax; background: radial-gradient(circle, rgba(233, 194, 94, .55), transparent 62%); animation: deriva2 22s ease-in-out infinite; }
.fondo-vivo .b3 { width: 46vmax; height: 46vmax; left: 20vmax; bottom: -30vmax; background: radial-gradient(circle, #1f4f7d, transparent 65%); animation: deriva1 26s ease-in-out infinite reverse; }
.fondo-vivo .grilla { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%); }

/* ---------- Landing ---------- */
.land { min-height: 100vh; min-height: 100dvh; background: var(--navy-0); }
.land main { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 14px 12px 20px; }
.hero { position: relative; color: #fff; text-align: center; padding: 6px 8px 20px; }
.marcas { display: flex; align-items: center; justify-content: center; gap: 14px; }
.marcas img { height: auto; display: block; }
.marcas .yalo { width: 78px; }
.marcas .plenum { width: 92px; opacity: .95; }
.marcas .x { width: 1px; height: 30px; background: linear-gradient(transparent, rgba(255, 255, 255, .5), transparent); }
.chip-evento { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #cfe0f2; backdrop-filter: blur(6px); }
.chip-evento i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulso 2s infinite; }
.hero h1 { font-size: clamp(25px, 7vw, 34px); font-weight: 800; line-height: 1.05; margin-top: 10px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #f7dc8f, var(--oro) 40%, #d9a83f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 8px auto 0; max-width: 380px; color: #a9bfd6; font-size: 13px; line-height: 1.45; }
.implante { position: absolute; right: -6px; top: 34px; width: 54px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); animation: flotar 6s ease-in-out infinite; pointer-events: none; }
.implante.izq { left: -4px; right: auto; top: 70px; width: 34px; opacity: .55; animation-duration: 8s; animation-delay: -3s; filter: blur(.6px) drop-shadow(0 12px 16px rgba(0, 0, 0, .4)); }
@media (min-width: 600px) { .implante { width: 76px; right: -40px; } .implante.izq { width: 46px; left: -36px; } }

.tarjeta { position: relative; background: #fff; border-radius: 24px; box-shadow: var(--sombra-2); padding: 16px 14px 0; border: 1px solid rgba(255, 255, 255, .6); animation: aparecer .8s var(--ease) .15s both; }
@media (min-width: 560px) { .tarjeta { padding: 24px 24px 0; } }
.pie { text-align: center; color: #7f97b2; font-size: 12px; padding: 16px 16px 4px; position: relative; z-index: 1; }
.pie a { color: #b9cde3; text-decoration: none; }

.paso { font-family: var(--f-titulo); font-stretch: 118%; font-weight: 700; font-size: 13px; color: var(--navy); margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; }
.paso .opc { font-family: var(--f-texto); font-stretch: normal; font-weight: 400; font-size: 11.5px; color: var(--gris-2); background: #f1f5f9; padding: 2px 8px; border-radius: 999px; }

.campo { margin-bottom: 9px; position: relative; }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (max-width: 340px) { .fila2 { grid-template-columns: 1fr; } }

input[type='text'], input[type='email'], input[type='tel'], input[type='password'], select {
  width: 100%; border: 1.5px solid var(--linea); border-radius: 14px; padding: 13px 14px; font-size: 16px;
  background: #f8fafc; color: var(--tinta); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .2s var(--ease);
}
input::placeholder { color: #9aa8b8; }
input:hover { border-color: #cfdae6; }
input:focus, select:focus { border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px rgba(60, 122, 176, .14); }
.con-error input { border-color: var(--error); background: #fff8f8; }
.valido input { border-color: #a8dcc6; padding-right: 40px; background: #fff; }
.valido::after { content: ''; position: absolute; right: 13px; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; animation: pop .35s var(--ease); pointer-events: none; }
.msj-error { color: var(--error); font-size: 12.5px; margin: 5px 2px 0; animation: subir .25s var(--ease); }

.sugerencias { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.sugerencias:empty { display: none; }
.sugerencia { border: 0; background: #e8f1fb; color: var(--azul); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 500; cursor: pointer; animation: aparecer .25s var(--ease) both; transition: background .15s; }
.sugerencia:hover { background: #d8e8f8; }

.combo { position: relative; }
.combo input { padding-right: 48px; }
.campo.valido:has(.combo)::after { right: 52px; }
.combo .flecha { position: absolute; right: 5px; top: 5px; width: 40px; height: calc(100% - 10px); border: 0; border-radius: 10px; background: #e9eff6; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .15s; -webkit-tap-highlight-color: transparent; }
.combo .flecha:hover { background: #dce6f1; }
.combo .flecha svg { transition: transform .25s var(--ease); }
.combo.abierto .flecha svg { transform: rotate(180deg); }
.combo .lista { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 5px; list-style: none; background: #fff; border: 1px solid var(--linea); border-radius: 14px; box-shadow: 0 24px 50px -12px rgba(14, 34, 56, .3); max-height: 240px; overflow-y: auto; overscroll-behavior: contain; animation: aparecer .2s var(--ease) both; }
.combo .lista li { padding: 11px 12px; border-radius: 9px; font-size: 15px; cursor: pointer; transition: background .12s; }
.combo .lista li:hover, .combo .lista li.activo { background: #eef4fa; }
.combo .lista li[aria-selected='true'] { background: var(--navy); color: #fff; }
.combo .lista li.nueva { color: var(--azul); font-weight: 500; border-top: 1px solid var(--linea); border-radius: 0 0 9px 9px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; border: 1.5px solid var(--linea); background: #fff; border-radius: 999px; padding: 8px 13px; font-size: 13.5px; cursor: pointer; color: var(--tinta); transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.chip:hover { border-color: #c9d6e4; transform: translateY(-1px); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed='true'] { background: linear-gradient(135deg, var(--navy-2), var(--navy)); border-color: var(--navy); color: #fff; box-shadow: 0 8px 18px -8px rgba(14, 34, 56, .6); animation: pop .3s var(--ease); }
.chip[aria-pressed='true']::before { content: '✓ '; color: var(--oro); font-weight: 700; }

.barra-envio { position: sticky; bottom: 0; margin: 14px -14px 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255, 255, 255, .7), #fff 35%); border-radius: 0 0 24px 24px; backdrop-filter: blur(8px); }
@media (min-width: 560px) { .barra-envio { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; } }
.legal { font-size: 11px; color: var(--gris-2); line-height: 1.35; margin: 7px 2px 0; text-align: center; }

.boton { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: 15px; padding: 15px; font-weight: 600; font-size: 16.5px; text-decoration: none; color: var(--navy); background: linear-gradient(100deg, #e3ad45, #f5d47e 50%, #e3ad45); background-size: 200% 100%; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(227, 173, 69, .75); transition: transform .15s var(--ease), box-shadow .2s, background-position .5s; touch-action: manipulation; }
.boton::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: brillo 3.2s ease-in-out infinite; }
.boton:hover { background-position: 100% 0; box-shadow: 0 16px 30px -10px rgba(227, 173, 69, .9); }
.boton:active { transform: scale(.985); }
.boton:disabled { opacity: .75; cursor: wait; }
.boton.cargando::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(14, 34, 56, .25); border-top-color: var(--navy); animation: girar .7s linear infinite; }
.boton.sec { background: var(--navy); color: #fff; box-shadow: none; }
.enlace { border: 0; background: none; color: var(--azul); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; cursor: pointer; padding: 4px; }
.oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso-error { background: #fdeeee; color: #b33434; border: 1px solid #f6d2d2; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.aviso-ok { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #eaf7f1; color: #17694a; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; animation: aparecer .4s var(--ease) both; }
.aviso-ok .enlace { font-size: 13px; color: #17694a; }

/* Éxito */
.exito { text-align: center; padding: 22px 6px 26px; position: relative; }
.exito .sello { position: relative; width: 84px; height: 84px; margin: 4px auto 16px; }
.exito .sello::before, .exito .sello::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--oro); animation: onda 1.6s var(--ease) .3s both; }
.exito .sello::after { animation-delay: .6s; }
.exito .sello svg { position: relative; width: 84px; height: 84px; }
.exito .sello circle { fill: var(--navy); }
.exito .sello path { fill: none; stroke: var(--oro); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: trazo .6s var(--ease) .25s forwards; }
.exito h2 { font-size: 26px; color: var(--navy); animation: subir .5s var(--ease) .35s both; }
.exito p { color: var(--gris); line-height: 1.55; margin: 8px 0 20px; animation: subir .5s var(--ease) .45s both; }
.exito .boton, .exito .enlace { animation: subir .5s var(--ease) .55s both; }
.exito .enlace { margin-top: 14px; display: inline-block; }
.confeti { position: absolute; left: 50%; top: 58px; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: confeti 1.4s cubic-bezier(.2, .7, .3, 1) both; }

/* ---------- Login ---------- */
.login { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
.login-card { width: 100%; max-width: 380px; padding: 30px 26px 22px; border-radius: 26px; text-align: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(18px); box-shadow: var(--sombra-2); }
.login-logo { width: 150px; display: block; margin: 0 auto; }
.login-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; color: #8fb0cf; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.login-sep::before, .login-sep::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); }
.login h1 { font-size: 26px; font-weight: 800; }
.login-sub { color: #9db4cc; font-size: 13.5px; margin: 6px 0 18px; line-height: 1.45; }
.campo-icono { position: relative; display: block; margin-bottom: 12px; }
.campo-icono svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #7f9ab6; stroke-width: 1.7; }
.campo-icono input { padding-left: 44px; background: rgba(255, 255, 255, .95); border-color: transparent; }
.login .aviso-error { text-align: left; }
.login-pie { color: #6f8aa6; font-size: 11.5px; margin: 16px 0 0; }

/* ---------- Panel ---------- */
.panel-body { background: var(--fondo); }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(8, 22, 39, .92); backdrop-filter: blur(14px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar .in { max-width: 1240px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .logo { height: 34px; }
.topbar .titulo { display: flex; flex-direction: column; line-height: 1.15; margin-right: auto; }
.topbar .titulo b { font-family: var(--f-titulo); font-stretch: 118%; font-size: 16px; }
.topbar .titulo span { color: #8fb0cf; font-size: 12px; }
.envivo { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #bfe8d5; background: rgba(31, 157, 107, .14); border: 1px solid rgba(31, 157, 107, .35); padding: 5px 10px; border-radius: 999px; }
.envivo i { width: 7px; height: 7px; border-radius: 50%; background: #2ecc8f; animation: pulso 2s infinite; }
.btn-top { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 11px; padding: 8px 12px; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-top:hover { background: rgba(255, 255, 255, .12); }
.btn-top.oro { background: linear-gradient(100deg, #e3ad45, #f5d47e); color: var(--navy); border: 0; }
.btn-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.panel { max-width: 1240px; margin: 0 auto; padding: 22px 18px 56px; }
.dias-filtro { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; padding: 5px; background: #fff; border-radius: 14px; border: 1px solid var(--linea); width: fit-content; max-width: 100%; }
.dias-filtro a { padding: 8px 13px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--gris); text-decoration: none; transition: background .15s, color .15s; white-space: nowrap; }
.dias-filtro a:hover { background: #f1f5f9; color: var(--navy); }
.dias-filtro a.activo { background: var(--navy); color: #fff; box-shadow: 0 6px 14px -6px rgba(14, 34, 56, .6); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { position: relative; overflow: hidden; background: #fff; border-radius: var(--radio); padding: 18px; border: 1px solid var(--linea); box-shadow: var(--sombra); transition: transform .25s var(--ease), box-shadow .25s; }
.kpi:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(14, 34, 56, .35); }
.kpi .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #edf3fa; color: var(--azul); margin-bottom: 12px; }
.kpi .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi .n { font-family: var(--f-titulo); font-stretch: 118%; font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1; }
.kpi .l { font-size: 12.5px; color: var(--gris); margin-top: 6px; line-height: 1.35; }
.kpi .meta { height: 5px; border-radius: 5px; background: #edf2f7; margin-top: 12px; overflow: hidden; }
.kpi .meta i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--azul), var(--celeste)); transition: width 1.2s var(--ease) .3s; }
.kpi.oro { background: linear-gradient(145deg, #12304f, var(--navy-0)); border: 0; color: #fff; }
.kpi.oro::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 194, 94, .35), transparent 70%); }
.kpi.oro .ico { background: rgba(233, 194, 94, .15); color: var(--oro); }
.kpi.oro .n { color: var(--oro); }
.kpi.oro .l { color: #a9bfd6; }

.grilla { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.caja { grid-column: span 12; background: #fff; border-radius: var(--radio); border: 1px solid var(--linea); padding: 18px 18px 16px; min-width: 0; box-shadow: var(--sombra); }
.caja h2 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.caja .sub { color: var(--gris-2); font-size: 12px; margin: 0 0 14px; }
@media (min-width: 900px) {
  .c8 { grid-column: span 8; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
}
.grafico { position: relative; height: 260px; }
.grafico.alto { height: 320px; }
.dona-wrap { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; }
.dona-wrap .grafico { height: 210px; }
.leyenda { display: grid; gap: 6px; font-size: 12.5px; max-height: 210px; overflow: auto; }
.leyenda div { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; }
.leyenda i { width: 10px; height: 10px; border-radius: 3px; }
.leyenda b { color: var(--navy); font-weight: 600; }
.vacio { color: var(--gris-2); font-size: 14px; padding: 26px 0; text-align: center; }
.nota { color: var(--gris); font-size: 12.5px; margin-top: 10px; }

.tabla-wrap { overflow-x: auto; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #edf1f6; white-space: nowrap; }
th { color: var(--gris-2); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; background: #fafbfd; position: sticky; top: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f7fafd; }
td.calor { text-align: center; font-weight: 600; border-radius: 6px; transition: transform .15s; }
.persona { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--azul), var(--navy)); flex: none; }
.persona small { display: block; color: var(--gris-2); font-size: 11.5px; }
.tag { display: inline-block; background: #eef4fa; color: var(--navy-2); border-radius: 7px; padding: 3px 8px; font-size: 11.5px; margin: 1px 3px 1px 0; }
.wa { display: inline-flex; align-items: center; gap: 6px; color: #128c55; text-decoration: none; font-weight: 500; }
.wa svg { width: 15px; height: 15px; fill: currentColor; }
.tabla-wrap a.mail { color: var(--azul); text-decoration: none; }
.buscador { position: relative; margin-bottom: 12px; }
.buscador svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--gris-2); stroke-width: 1.8; }
.buscador input { padding-left: 40px; }
.borrar { border: 0; background: none; color: #b8c3cf; cursor: pointer; font-size: 14px; padding: 4px 8px; border-radius: 8px; transition: background .15s, color .15s; }
.borrar:hover { background: #fdecea; color: var(--error); }

/* ---------- Hoja del QR ---------- */
.qr-hoja { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #fff; padding: 32px 16px; text-align: center; }
.qr-hoja img.logo { width: 240px; }
.qr-hoja h1 { font-size: 36px; line-height: 1.1; font-weight: 800; }
.qr-hoja h1 em { font-style: normal; color: var(--oro); }
.qr-hoja .qr { background: #fff; border-radius: 26px; padding: 18px; width: min(420px, 86vw); box-shadow: var(--sombra-2); }
.qr-hoja .qr svg { display: block; width: 100%; height: auto; }
.qr-hoja .url { color: var(--celeste); font-size: 16px; }
.no-imprimir { position: fixed; top: 12px; right: 12px; z-index: 5; }
@media print { .no-imprimir { display: none; } .oscuro, .qr-hoja { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.kpis > :nth-child(2) { --i: 1; } .kpis > :nth-child(3) { --i: 2; } .kpis > :nth-child(4) { --i: 3; } .kpis > :nth-child(5) { --i: 4; }
.grilla { align-items: start; }
.c8 .grafico { height: 330px; }

/* Panel: agregar persona a mano */
.btn-top.nuevo { background: #fff; color: var(--navy); border: 0; font-weight: 600; }
.btn-top.nuevo:hover { background: #e9f1fa; }
.modal { border: 0; padding: 0; border-radius: 22px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--sombra-2); color: var(--tinta); }
.modal[open] { animation: aparecer .3s var(--ease) both; }
.modal::backdrop { background: rgba(8, 22, 39, .55); backdrop-filter: blur(4px); }
.modal form { padding: 20px 20px 0; }
.modal-cab { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-cab h2 { font-size: 20px; color: var(--navy); }
.modal-cab p { margin: 4px 0 0; color: var(--gris); font-size: 12.5px; }
.modal .cerrar { border: 0; background: #f1f5f9; color: var(--gris); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; flex: none; }
.modal .cerrar:hover { background: #e6edf4; }
.modal-pie { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 16px -20px 0; padding: 14px 20px; background: #fff; border-top: 1px solid var(--linea); }
.btn-sec { border: 1.5px solid var(--linea); background: #fff; color: var(--navy); border-radius: 14px; padding: 0 18px; font-weight: 500; cursor: pointer; }
.btn-sec:hover { background: #f5f8fb; }
.modal .boton { padding: 13px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--sombra-2); font-size: 14px; animation: subir .35s var(--ease) both; }
b.manual { color: var(--oro-2); font-weight: 600; }

/* Beneficio por registrarse: antes (chip dorado) y después (ticket) */
@keyframes destello { 0%, 100% { box-shadow: 0 0 0 0 rgba(233, 194, 94, .45); } 50% { box-shadow: 0 0 0 8px rgba(233, 194, 94, 0); } }
.chip-beneficio { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 14px 5px 5px; border-radius: 999px; background: linear-gradient(100deg, rgba(233, 194, 94, .22), rgba(233, 194, 94, .08)); border: 1px solid rgba(233, 194, 94, .55); color: #f6dea0; font-size: 13px; font-weight: 500; animation: destello 2.4s ease-in-out infinite; }
.chip-beneficio b { background: linear-gradient(100deg, #e3ad45, #f5d47e); color: var(--navy); border-radius: 999px; padding: 4px 10px; font-family: var(--f-titulo); font-stretch: 118%; font-weight: 800; font-size: 15px; }
.ticket { position: relative; display: grid; grid-template-columns: 104px 1fr; text-align: left; margin: 4px 0 8px; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 34px -16px rgba(14, 34, 56, .45); animation: subir .5s var(--ease) .5s both; }
.ticket .t-izq { background: linear-gradient(150deg, #e3ad45, #f5d47e); color: var(--navy); display: grid; place-content: center; text-align: center; padding: 14px 8px; position: relative; }
.ticket .t-izq::after { content: ''; position: absolute; right: -1px; top: 8px; bottom: 8px; border-right: 2px dashed rgba(14, 34, 56, .25); }
.ticket .t-izq b { font-family: var(--f-titulo); font-stretch: 118%; font-weight: 800; font-size: 30px; line-height: 1; }
.ticket .t-izq span { font-size: 11px; font-weight: 600; letter-spacing: .04em; margin-top: 3px; }
.ticket .t-der { background: var(--navy); color: #fff; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.ticket .t-tit { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.ticket .t-der strong { font-size: 16px; font-weight: 600; }
.ticket .t-der small { color: #9db4cc; font-size: 11.5px; }
.ticket::before, .ticket::after { content: ''; position: absolute; left: 96px; width: 16px; height: 16px; border-radius: 50%; background: #fff; z-index: 1; }
.ticket::before { top: -8px; } .ticket::after { bottom: -8px; }
.t-nota { font-size: 12.5px !important; margin: 0 0 18px !important; }

.ticket .t-izq span { font-family: var(--f-titulo); font-stretch: 118%; font-size: 15px; font-weight: 800; letter-spacing: .12em; }
