/* SIS Residentes: mismo estilo que los portales de SIS (azul marino, cian y morado), pensado para el celular */
:root {
  --bg: #0b1220; --panel: #131c2f; --panel-2: #1a2540; --line: #26334f; --text: #e8eefc; --muted: #8a99b8;
  --accent: #29c5f6; --accent-2: #7c5cff; --ok: #2ecc8f; --warn: #ffb020; --bad: #ff5d6c;
  --grad: linear-gradient(135deg, #29c5f6, #7c5cff);
  font-size: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #060a14; color: var(--text); font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: var(--text); background: #0e1627; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41,197,246,.18); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

/* marco de telefono en pantallas grandes; a pantalla completa en el celular */
body { display: grid; place-items: center; }
#telefono { position: relative; width: 100%; height: 100%; max-width: 430px; background: radial-gradient(900px 500px at 20% -10%, #16254a 0%, var(--bg) 62%); overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 560px) { #telefono { height: min(900px, 96vh); border-radius: 38px; border: 8px solid #1b2438; box-shadow: 0 30px 90px rgba(0,0,0,.65); } }
#pantalla { flex: 1; overflow-y: auto; overflow-x: hidden; padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 104px); scrollbar-width: none; }
#pantalla::-webkit-scrollbar { display: none; }
.pad-tabs { padding-bottom: 96px !important; }

/* barra inferior */
#tabs { position: absolute; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 10px); display: flex; background: rgba(19,28,47,.96); border: 1px solid var(--line); border-radius: 22px; padding: 6px; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
#tabs button { flex: 1; display: grid; justify-items: center; gap: 1px; padding: 7px 0; border-radius: 16px; color: var(--muted); font-size: .72rem; font-weight: 600; position: relative; }
#tabs button i { font-style: normal; font-size: 1.25rem; filter: grayscale(.6); }
#tabs button.on { background: var(--panel-2); color: var(--accent); }
#tabs button.on i { filter: none; }
#tabs b { position: absolute; top: 2px; right: 22%; background: var(--bad); color: #fff; border-radius: 999px; font-size: .68rem; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; animation: lat 1.4s infinite; }
@keyframes lat { 50% { transform: scale(1.18); } }

/* componentes */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff; }
.saludo { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; flex: none; }
.saludo h1 { font-size: 1.25rem; } .saludo p { color: var(--muted); font-size: .85rem; }
.chip-un { margin-left: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: .78rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.tarjeta { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 14px; }
.tarjeta h2 { font-size: 1.05rem; margin-bottom: 4px; } .ayuda { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.titulo-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 8px; }
.titulo-sec h2 { font-size: 1.05rem; } .titulo-sec a { color: var(--accent); font-size: .82rem; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 4px 11px; display: grid; justify-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.2; }
.tile i { font-style: normal; font-size: 1.9rem; } .tile:active { transform: scale(.96); border-color: var(--accent); }
.btn { display: block; width: 100%; padding: 14px; border-radius: 16px; font-weight: 700; text-align: center; background: var(--grad); color: #04141c; }
.btn.sec { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn.ok { background: linear-gradient(135deg, #17b978, #0e9a63); color: #03140c; }
.btn.mal { background: rgba(255,93,108,.14); border: 1px solid rgba(255,93,108,.55); color: #ffc2c8; }
.btn:disabled { opacity: .45; }
.fila-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.panico { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 17px; border-radius: 20px; background: linear-gradient(135deg, #ff6b78, #e8465a); font-weight: 800; font-size: 1.05rem; box-shadow: 0 8px 24px rgba(255,93,108,.3); margin: 4px 0 6px; }
.espera { border-color: rgba(255,176,32,.6); background: linear-gradient(180deg, rgba(255,176,32,.1), var(--panel)); }
.espera .quien { display: flex; gap: 12px; align-items: center; }
.pulso { width: 12px; height: 12px; border-radius: 50%; background: var(--warn); animation: lat 1.2s infinite; flex: none; }
.vc { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.vc .top { display: flex; gap: 12px; align-items: center; } .vc h3 { font-size: 1rem; } .vc .meta { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.ini { width: 44px; height: 44px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.etq { display: inline-block; border-radius: 8px; padding: 2px 9px; font-size: .72rem; font-weight: 700; border: 1px solid var(--line); margin-left: auto; white-space: nowrap; }
.etq.ok { color: #bff5dc; border-color: var(--ok); background: rgba(46,204,143,.1); } .etq.mal { color: #ffc2c8; border-color: var(--bad); background: rgba(255,93,108,.12); }
.etq.av { color: #ffe2a3; border-color: var(--warn); background: rgba(255,176,32,.12); } .etq.gr { color: var(--muted); }
.codigo { font: 800 2.1rem Consolas, monospace; letter-spacing: .3em; text-align: center; color: var(--accent); background: #0e1627; border: 2px dashed var(--accent); border-radius: 18px; padding: 16px 10px; margin: 14px 0; }
.segmento { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin-bottom: 14px; }
.segmento button { flex: 1; padding: 9px 2px; border-radius: 12px; font-size: .78rem; font-weight: 700; color: var(--muted); position: relative; }
.segmento button.on { background: var(--grad); color: #04141c; }
.vacio { text-align: center; padding: 34px 14px; color: var(--muted); } .vacio i { display: block; font-size: 3rem; font-style: normal; margin-bottom: 8px; } .vacio b { color: var(--text); display: block; margin-bottom: 4px; }
.fab { position: absolute; right: 18px; bottom: 96px; background: var(--grad); color: #04141c; font-weight: 800; padding: 14px 18px; border-radius: 999px; box-shadow: 0 10px 26px rgba(41,197,246,.35); }
.cab { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; } .cab h1 { font-size: 1.15rem; } .atras { width: 38px; height: 38px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 1.1rem; }
.pasos { display: flex; gap: 6px; margin: 4px 0 16px; } .pasos span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); } .pasos span.on { background: var(--grad); }
.campo { margin-bottom: 14px; } .campo > label { display: block; font-size: .82rem; font-weight: 700; margin: 0 2px 6px; } .campo small { display: block; color: var(--muted); margin: 5px 3px 0; font-size: .78rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; } .chips button { padding: 10px 14px; border-radius: 999px; background: var(--panel); border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem; }
.chips button.on { border-color: var(--accent); background: rgba(41,197,246,.12); color: var(--accent); }
.empresas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.empresas .tile { padding: 16px 4px 12px; } .empresas .tile.on { border-color: var(--accent); background: rgba(41,197,246,.12); }
.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; }
.interruptor input { display: none; } .sw { width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: .2s; }
.sw::after { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; } input:checked + .sw { background: var(--ok); } input:checked + .sw::after { left: 23px; }
.item-menu { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--line); } .item-menu i { font-style: normal; font-size: 1.3rem; width: 30px; text-align: center; }
.item-menu span { flex: 1; font-weight: 600; } .item-menu em { font-style: normal; color: var(--muted); }
.error { color: #ffc2c8; background: rgba(255,93,108,.14); border: 1px solid var(--bad); border-radius: 12px; padding: 10px 12px; font-size: .86rem; margin-bottom: 12px; }
.pronto { opacity: .8; } .pronto .etq { margin-left: 8px; }
.com { padding: 12px 2px; border-bottom: 1px solid var(--line); } .com:last-child { border: 0; } .com h3 { font-size: .95rem; } .com .f { color: var(--muted); font-size: .76rem; margin-bottom: 3px; } .com p { color: #c5d0e8; font-size: .86rem; line-height: 1.45; }

/* bienvenida */
.bienvenida { min-height: 100%; display: flex; flex-direction: column; text-align: center; }
.bienvenida .grande { font-size: 5.5rem; margin: 46px 0 12px; } .bienvenida h1 { font-size: 1.6rem; margin-bottom: 10px; } .bienvenida p { color: var(--muted); line-height: 1.5; padding: 0 10px; }
.puntos { display: flex; justify-content: center; gap: 8px; margin: 24px 0; } .puntos span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .puntos span.on { width: 24px; border-radius: 4px; background: var(--accent); }

/* hoja inferior (modales) */
#hoja { position: absolute; inset: 0; background: rgba(3,6,12,.72); display: flex; align-items: flex-end; z-index: 30; animation: apar .15s; }
#hoja-caja { width: 100%; background: var(--panel); border-radius: 26px 26px 0 0; border-top: 1px solid var(--line); padding: 22px 20px calc(env(safe-area-inset-bottom) + 22px); max-height: 88%; overflow-y: auto; }
@keyframes apar { from { opacity: 0; } }
#toast { position: absolute; left: 16px; right: 16px; top: calc(env(safe-area-inset-top) + 14px); background: #0f2a22; border: 1px solid var(--ok); color: #bff5dc; padding: 12px 14px; border-radius: 14px; z-index: 40; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
#toast.mal { background: #331218; border-color: var(--bad); color: #ffc2c8; } #toast.av { background: #33270a; border-color: var(--warn); color: #ffe2a3; }
.anillo { position: relative; width: 150px; height: 150px; margin: 14px auto; } .anillo svg { transform: rotate(-90deg); } .anillo .btn-p { position: absolute; inset: 14px; border-radius: 50%; background: linear-gradient(135deg, #ff6b78, #e8465a); font-size: 2.2rem; display: grid; place-items: center; user-select: none; touch-action: none; }
.faq summary { padding: 12px 2px; font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--line); } .faq p { padding: 10px 2px; color: #c5d0e8; font-size: .88rem; line-height: 1.5; }
.interruptor > div { flex: 1; } .interruptor > label { flex: none; display: block; }

/* ===================================================================================================================
   TEMA CLARO: blanco con tonos grises (16-oct), igual que la consola y los portales de SIS. Los colores vivos quedan
   solo para estados (verde = autorizado, ambar = aviso, rojo = denegar/panico).
   =================================================================================================================== */
:root {
  --bg: #f3f4f6; --panel: #ffffff; --panel-2: #f3f4f6; --line: #e2e5ea; --text: #1f2937; --muted: #6b7280;
  --accent: #374151; --accent-2: #9ca3af; --ok: #16a34a; --warn: #d97706; --bad: #dc2626;
  --grad: linear-gradient(135deg, #374151, #6b7280);
}
html, body { background: #e5e7eb; }
#telefono { background: linear-gradient(180deg, #f9fafb 0%, #eef0f3 100%); }
@media (min-width: 560px) { #telefono { border-color: #cfd4db; box-shadow: 0 30px 80px rgba(15,23,42,.22); } }
input, textarea, select { background: #fff; border-color: #d1d5db; }
input::placeholder, textarea::placeholder { color: #9ca3af; }
input:focus, textarea:focus, select:focus { border-color: #374151; box-shadow: 0 0 0 3px rgba(55,65,81,.14); }
#tabs { background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(15,23,42,.14); }
#tabs button.on { background: #eef0f3; color: #111827; }
.logo-mark, .avatar, .segmento button.on { color: #fff; }
.tarjeta, .vc { box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(15,23,42,.05); }
.tile:active { border-color: #374151; }
.btn { color: #fff; }
.btn.sec { background: #fff; color: #1f2937; border-color: #d1d5db; }
.btn.ok { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; }
.btn.mal { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.panico { color: #fff; box-shadow: 0 8px 22px rgba(220,38,38,.28); }
.espera { background: linear-gradient(180deg, #fffbeb, #fff); border-color: #fcd34d; }
.etq.ok { color: #166534; background: #dcfce7; } .etq.mal { color: #991b1b; background: #fee2e2; } .etq.av { color: #92400e; background: #fef3c7; }
.codigo { background: #f9fafb; color: #111827; border-color: #374151; }
.chips button.on, .empresas .tile.on { border-color: #374151; background: rgba(55,65,81,.07); color: #111827; }
.fab { color: #fff; box-shadow: 0 10px 24px rgba(31,41,55,.3); }
.error { color: #991b1b; background: #fef2f2; }
.com p, .faq p { color: #4b5563; }
#hoja { background: rgba(15,23,42,.5); }
#toast { background: #ecfdf5; color: #065f46; box-shadow: 0 10px 30px rgba(15,23,42,.2); }
#toast.mal { background: #fef2f2; color: #991b1b; } #toast.av { background: #fffbeb; color: #92400e; }
.anillo svg circle:first-child { stroke: #e2e5ea; }
.sw { background: #d1d5db; }

/* boton de licencia vencida */
.btn-lic { margin-top: 10px; padding: 10px; font-size: .86rem; } .btn-lic.on { background: #dcfce7 !important; border-color: #16a34a !important; color: #14532d !important; }
.qr-caja { background: #fff; border-radius: 18px; padding: 14px; width: fit-content; margin: 14px auto 6px; box-shadow: 0 6px 20px rgba(0,0,0,.18); } .qr-caja img { display: block; width: min(64vw, 260px); height: auto; }
.aviso-lic { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1.5px solid #f59e0b; color: #78350f; font-size: .9rem; line-height: 1.4; }

#suspendido { position: fixed; inset: 0; z-index: 99; background: rgba(15,23,42,.96); display: grid; place-items: center; padding: 24px; text-align: center; color: #fff; }
#suspendido[hidden] { display: none; } .susp-ico { font-size: 3.4rem; } #suspendido h2 { margin: 10px 0; } #suspendido p { font-size: 1.05rem; line-height: 1.5; color: #e5e7eb; }

/* ---- citofonia: chat con la porteria, timbre y llamada entrante ---- */
.ci-timbre { background: linear-gradient(135deg, #16a34a, #15803d) !important; color: #fff !important; font-size: 1.15rem; padding: 18px; box-shadow: 0 8px 22px rgba(22,163,74,.35); }
.ci-hilo { background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 12px; height: calc(100vh - 360px); min-height: 220px; max-height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.ci-b { max-width: 82%; padding: 9px 13px 6px; border-radius: 18px; display: grid; gap: 2px; word-break: break-word; }
.ci-b b { font-size: .72rem; opacity: .75; } .ci-b span { font-size: .98rem; line-height: 1.35; } .ci-b em { font-style: normal; font-size: .68rem; opacity: .7; justify-self: end; }
.ci-b.yo { align-self: flex-end; background: #16a34a; color: #fff; border-bottom-right-radius: 6px; }
.ci-b.ellos { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ci-sis { align-self: center; font-size: .78rem; color: var(--muted); background: rgba(0,0,0,.05); border-radius: 999px; padding: 3px 12px; }
.ci-dia { align-self: center; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 2px; }
.ci-barra { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; } .ci-barra .btn { width: auto; padding: 0 20px; } .ci-barra input { border-radius: 16px; }
#llamada { position: absolute; inset: 0; z-index: 60; background: linear-gradient(160deg, #15803d, #16a34a 55%, #22c55e); display: grid; place-items: center; padding: 24px; animation: apar .2s; }
#llamada .ll-caja { text-align: center; color: #fff; width: 100%; } #llamada h2 { font-size: 1.7rem; margin: 10px 0 4px; } #llamada p { opacity: .92; margin-bottom: 26px; }
#llamada .ll-ico { font-size: 5.5rem; animation: llTiembla 1s ease-in-out infinite; display: inline-block; }
#llamada .btn.mal { background: #fee2e2; color: #991b1b; border: 0; } #llamada .btn.ok { background: #fff; color: #15803d; }
@keyframes llTiembla { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-16deg); } 30% { transform: rotate(14deg); } 45% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } 75% { transform: rotate(0); } }

/* ---- tickets y solicitudes ---- */
.tk-tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tk-tipos button { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); font-size: .72rem; font-weight: 700; text-align: center; }
.tk-tipos button i { font-style: normal; font-size: 1.4rem; } .tk-tipos button.on { border-color: #16a34a; background: #dcfce7; color: #14532d; }
.tk-resp { margin-top: 10px; background: #eff6ff; border: 1.5px solid #93c5fd; border-radius: 12px; padding: 9px 12px; display: grid; gap: 3px; color: #1e3a8a; } .tk-resp b { font-size: .74rem; } .tk-resp span { font-size: .92rem; line-height: 1.35; }
.vc.tk-resuelto { border-color: #86efac; } .vc.tk-en_proceso { border-color: #fcd34d; } .vc.tk-cancelado { opacity: .7; }

/* ---- botones de accion de la app: Citofonia, Tickets y Reserva de areas (color y movimiento) ---- */
.acciones-app { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.acciones-col { display: grid; gap: 12px; margin-bottom: 14px; }
.accion { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 22px; padding: 16px 14px; color: #fff;
  box-shadow: 0 10px 24px var(--sombra, rgba(0,0,0,.25)); transition: transform .12s, filter .2s; }
.accion.ancho { grid-column: 1 / -1; margin-bottom: 14px; } .acciones-app + .accion.ancho { margin-top: 0; }
.accion:active { transform: scale(.97); } .accion:hover { filter: brightness(1.06); }
.accion::after { content: ""; position: absolute; top: 0; bottom: 0; width: 55%; left: -70%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent); transform: skewX(-18deg); animation: acBrillo 4.2s ease-in-out infinite; pointer-events: none; }
.accion .ac-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.24); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); display: grid; place-items: center; font-size: 1.9rem; transform-origin: 50% 20%; }
.accion .ac-t { min-width: 0; flex: 1; display: grid; gap: 1px; } .accion .ac-t b { font-size: 1.12rem; line-height: 1.15; text-shadow: 0 1px 3px rgba(0,0,0,.25); } .accion .ac-t small { font-size: .78rem; font-weight: 600; opacity: .94; line-height: 1.25; }
.accion .ac-go { flex: none; font-size: 1.7rem; font-weight: 300; opacity: .85; line-height: 1; }
.accion .ac-b { position: absolute; top: 8px; right: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #dc2626; color: #fff; font-style: normal; font-weight: 800; font-size: .82rem; display: grid; place-items: center; border: 2px solid #fff; animation: acPulso 1.4s ease-in-out infinite; }
.acciones-app .accion { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px 12px; } .acciones-app .accion .ac-go { display: none; } .acciones-app .accion .ac-t b { font-size: 1.05rem; }
.ac-cit { background: linear-gradient(135deg, #0f766e 0%, #22c55e 100%); --sombra: rgba(20,184,166,.4); } .ac-cit .ac-ic { animation: acTimbre 3.2s ease-in-out infinite; }
.ac-tk { background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%); --sombra: rgba(99,102,241,.4); } .ac-tk .ac-ic { animation: acInclina 3.6s ease-in-out infinite; }
.ac-res { background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%); --sombra: rgba(245,158,11,.42); } .ac-res .ac-ic { animation: acSalta 3.4s ease-in-out infinite; }
.ac-paq { background: linear-gradient(135deg, #be185d 0%, #f472b6 100%); --sombra: rgba(236,72,153,.42); } .ac-paq .ac-ic { animation: acSalta 3.4s ease-in-out infinite; }
@keyframes acBrillo { 0%, 55% { left: -70%; } 100% { left: 130%; } }
@keyframes acTimbre { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(-16deg); } 66% { transform: rotate(14deg); } 72% { transform: rotate(-10deg); } 78% { transform: rotate(8deg); } 84% { transform: rotate(-4deg); } }
@keyframes acInclina { 0%, 60%, 100% { transform: rotate(0) scale(1); } 70% { transform: rotate(-12deg) scale(1.1); } 80% { transform: rotate(10deg) scale(1.1); } 90% { transform: rotate(0) scale(1); } }
@keyframes acSalta { 0%, 60%, 100% { transform: translateY(0); } 68% { transform: translateY(-7px); } 76% { transform: translateY(0); } 82% { transform: translateY(-3px); } 88% { transform: translateY(0); } }
@keyframes acPulso { 50% { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(220,38,38,.25); } }
@media (prefers-reduced-motion: reduce) { .accion::after, .accion .ac-ic, .accion .ac-b { animation: none; } }

/* tarjeta «X llego» con ✕ para quitarla */
.tarjeta.llegada { position: relative; padding-right: 46px; }
.x-quitar { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.07); color: var(--muted); font-size: 1rem; font-weight: 700; display: grid; place-items: center; }
.x-quitar:active { background: rgba(0,0,0,.16); }

/* ---- llamada de voz ---- */
#voz { position: absolute; inset: 0; z-index: 70; background: linear-gradient(160deg, #0f172a, #1e3a8a 60%, #2563eb); display: grid; place-items: center; padding: 24px; animation: apar .2s; color: #fff; }
#voz .vz-caja { text-align: center; width: 100%; } #voz h2 { font-size: 1.7rem; margin: 14px 0 4px; } #voz p { opacity: .9; margin-bottom: 30px; min-height: 1.4em; }
#voz .vz-av { font-size: 4.5rem; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.16); display: inline-grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.08); }
#voz .vz-av.ring { animation: llTiembla 1s ease-in-out infinite; }
#voz.entrante, #voz:has(.entrante) { background: linear-gradient(160deg, #15803d, #16a34a 55%, #22c55e); }
#voz .vz-botones { display: flex; gap: 22px; justify-content: center; }
#voz .vz-b { display: grid; justify-items: center; gap: 6px; width: 92px; color: #fff; font-weight: 700; font-size: .82rem; }
#voz .vz-b i { font-style: normal; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 1.8rem; }
#voz .vz-b.rojo i { background: #dc2626; box-shadow: 0 6px 18px rgba(220,38,38,.5); } #voz .vz-b.verde i { background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); } #voz .vz-b.on i { background: #fff; }


/* ---- banner de avisos (web push) ---- */
#avisos-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #1f2937; color: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: .9rem; line-height: 1.35; }
#avisos-banner span { flex: 1 1 200px; }
#avisos-banner button { border: 0; border-radius: 12px; padding: 9px 14px; font-weight: 700; background: #16a34a; color: #fff; }
#avisos-banner button.sec, #avisos-banner button[data-x]:not([data-act]) { background: rgba(255, 255, 255, .14); }
.ver-chip { font-size: .72rem; color: #6b7280; opacity: .85; }
