/* NOC-TI-WORD — Portal y app de clientes (mismos colores que el sitio y el software) */
:root {
  --fondo: #07060F; --tarjeta: #13102A; --tarjeta-2: #1A1638; --violeta: #7C3AED; --violeta-c: #A78BFA; --cian: #22D3EE;
  --texto: #F0EEFF; --sub: #9AA0CC; --verde: #10B981; --rojo: #EF4444; --ambar: #F59E0B;
  --borde: rgba(167,139,250,.18); --borde-f: rgba(167,139,250,.34);
  --titulos: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --letra: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --menu-alto: 64px;
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100svh; font-family: var(--letra); color: var(--texto); line-height: 1.5;
  background: radial-gradient(900px 500px at 80% -10%, rgba(124,58,237,.28), transparent 60%), var(--fondo); }
h1, h2 { font-family: var(--titulos); letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 600; }
h2 { font-size: 1.05rem; }
p { color: var(--sub); margin: 0 0 1em; }
a { color: var(--cian); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* ── formularios ── */
label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--sub); font-weight: 500; }
input, select, textarea { width: 100%; min-width: 0; color: var(--texto); background: #0A0817; border: 1px solid var(--borde-f);
  border-radius: 11px; padding: 12px 14px; font-size: 1rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cian); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.boton { border: 0; border-radius: 12px; padding: 14px 20px; font-family: var(--titulos); font-weight: 600; font-size: 1rem;
  color: #fff; background: linear-gradient(135deg, var(--violeta), #5B21B6); box-shadow: 0 10px 26px -12px rgba(124,58,237,.9);
  transition: transform .15s, filter .15s; }
.boton:active { transform: scale(.97); }
.boton:disabled { opacity: .6; cursor: wait; }
.boton-borde { background: transparent; border: 1px solid var(--borde-f); box-shadow: none; }
.boton-chico { padding: 9px 14px; font-size: .9rem; }
.boton-texto { background: none; border: 0; color: var(--violeta-c); font-weight: 600; padding: 6px 4px; }
.boton-texto.peligro { color: var(--rojo); }
.mensaje { margin: 0; min-height: 1.3em; font-weight: 500; }
.mensaje.ok { color: var(--verde); } .mensaje.error { color: var(--rojo); }
.formulario { display: flex; flex-direction: column; gap: 12px; }
.doble { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doble > * { min-width: 0; }
.form-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.form-cab h2 { margin: 0; }
.nota { font-size: .88rem; margin: 0; }
.nota.ambar { color: var(--ambar); margin-top: 10px; }
.legal { font-size: .8rem; border-left: 3px solid var(--borde-f); padding-left: 10px; }

/* ── ingreso ── */
#vistaIngreso { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
/* manchas de luz con degradados (sin filter: blur, que traba los celulares de gama baja) */
.ingreso-fondo i { position: absolute; border-radius: 50%; opacity: .55; }
.ingreso-fondo i:nth-child(1) { width: 480px; height: 480px; background: radial-gradient(circle, #7C3AED, transparent 65%); top: -180px; left: -160px; }
.ingreso-fondo i:nth-child(2) { width: 420px; height: 420px; background: radial-gradient(circle, #22D3EE, transparent 65%); bottom: -190px; right: -160px; opacity: .3; }
.ingreso-fondo i:nth-child(3) { width: 320px; height: 320px; background: radial-gradient(circle, #5B21B6, transparent 65%); top: 40%; left: 55%; }
.ingreso { position: relative; width: 100%; max-width: 400px; background: rgba(19,16,42,.94);
  border: 1px solid var(--borde-f); border-radius: 22px; padding: 30px 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 80px -40px rgba(124,58,237,.8); animation: entrar .5s ease both; }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } }
.ingreso-logo { width: 72px; height: 72px; margin: 0 auto; border-radius: 18px; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(34,211,238,.4)); }
.ingreso h1 { text-align: center; font-size: 1.7rem; margin: 4px 0 0; }
.ingreso > p { text-align: center; margin: 0; }
.ayuda { font-size: .84rem; text-align: center; }
.campo-clave { position: relative; display: block; }
.campo-clave input { padding-right: 46px; }
.ver-clave { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.1rem;
  padding: 8px; opacity: .7; }
.elegir-empresa p { margin: 0 0 8px; color: var(--texto); }
.elegir-empresa button { display: block; width: 100%; text-align: left; margin-bottom: 8px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--borde-f); background: #0A0817; color: var(--texto); font-weight: 600; }
.descargar-app { text-align: center; text-decoration: none; font-size: .92rem; }
.empresas-app { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.empresas-app span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--sub);
  border: 1px solid var(--borde); border-radius: 999px; padding: 4px 10px 4px 4px; }
.empresas-app img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #fff; }

/* ── barra y menú ── */
.barra { position: sticky; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(7,6,15,.97);
  border-bottom: 1px solid var(--borde); }
.marca { display: flex; align-items: center; gap: 10px; font-family: var(--titulos); font-weight: 600; min-width: 0; }
.marca img { border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.04); flex: none; }
.marca div { display: flex; flex-direction: column; min-width: 0; }
.marca span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.marca small { font-family: var(--mono); font-size: .72rem; color: var(--sub); font-weight: 500; }
.campana { position: relative; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 12px; width: 42px; height: 42px;
  font-size: 1.15rem; }
.globo { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--rojo);
  color: #fff; font: 700 .7rem/19px var(--letra); text-align: center; animation: latir 1.6s ease-in-out infinite; }
@keyframes latir { 50% { transform: scale(1.15); } }
.contenido { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(var(--menu-alto) + var(--seguro-abajo) + 24px); }
.pantalla { display: flex; flex-direction: column; gap: 14px; animation: aparecer .28s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } }
.menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--menu-alto) + var(--seguro-abajo)); padding-bottom: var(--seguro-abajo);
  background: rgba(13,11,30,.98); border-top: 1px solid var(--borde); }
.menu button { position: relative; background: none; border: 0; color: var(--sub); font-size: .7rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.menu button span { font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.menu button[aria-current="page"] { color: var(--texto); }
.menu button[aria-current="page"] span { transform: translateY(-2px) scale(1.12); }
.menu button[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--cian); box-shadow: 0 0 12px var(--cian); }
.menu .globo { top: 6px; right: calc(50% - 22px); }

/* ── tarjetas ── */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 18px; padding: 18px; }
.alerta { border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; }
.alerta.rojo { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.45); }
.alerta.ambar { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.45); }
.alerta.ambar b { color: #FCD34D; }
.alerta b { color: #FCA5A5; font-family: var(--titulos); }
.alerta span { color: var(--texto); font-size: .92rem; }
.alerta .boton { justify-self: start; }
.hero { border-color: var(--borde-f); background: linear-gradient(160deg, rgba(124,58,237,.26), var(--tarjeta) 62%); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%); pointer-events: none; }
.saludo { color: var(--texto); font-family: var(--titulos); font-size: 1.35rem; margin-bottom: 6px; }
.estado-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { font-family: var(--mono); font-size: .76rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; }
.chip.verde { color: var(--verde); } .chip.ambar { color: var(--ambar); } .chip.rojo { color: var(--rojo); }
.plan { color: var(--sub); font-size: .92rem; }
.hero-pago { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.anillo { position: relative; width: 116px; height: 116px; flex: none; }
.anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo circle { fill: none; stroke-width: 10; }
.anillo .pista { stroke: rgba(255,255,255,.07); }
.anillo .avance { stroke: var(--cian); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 - 326.7 * var(--p));
  transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1), stroke .3s; }
.anillo.ambar .avance { stroke: var(--ambar); }
.anillo.rojo .avance { stroke: var(--rojo); }
.anillo > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anillo strong { font-family: var(--titulos); font-size: 2rem; line-height: 1; }
.anillo small { color: var(--sub); font-size: .72rem; text-align: center; }
.hero-datos { display: flex; flex-direction: column; min-width: 0; }
.hero-datos small { color: var(--sub); font-size: .76rem; }
.hero-datos strong { font-family: var(--titulos); font-size: 1.12rem; margin-bottom: 6px; }
.hero-datos .valor { font-size: 1.5rem; color: var(--texto); }
.estado-nota { margin: 4px 0 12px; font-size: .9rem; }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.red { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.red b { display: block; font-size: .95rem; }
.red small { color: var(--sub); font-size: .82rem; }
.punto { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--sub); }
.punto.verde { background: var(--verde); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulso 2s infinite; }
.punto.rojo { background: var(--rojo); box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: pulso 1.4s infinite; }
.punto.ambar { background: var(--ambar); }
@keyframes pulso { 70% { box-shadow: 0 0 0 10px rgba(0,0,0,0); } }
.rapidos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rapidos button { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 16px; color: var(--texto); padding: 12px 4px;
  font-size: .74rem; font-weight: 600; line-height: 1.25; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .15s, border-color .15s; }
.rapidos button:active { transform: scale(.95); border-color: var(--cian); }
.rapidos span { font-size: 1.45rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(34,211,238,.15)); }

.factura-mes { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(34,211,238,.14), var(--tarjeta) 70%); border-color: rgba(34,211,238,.3); }
.factura-mes div { display: flex; flex-direction: column; }
.factura-mes small { color: var(--sub); font-size: .8rem; }
.factura-mes strong { font-family: var(--titulos); font-size: 1.5rem; }

.medios { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.medio { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #0A0817; border: 1px dashed var(--borde-f);
  border-radius: 12px; padding: 12px 14px; }
.medio > div { min-width: 0; }
.medio small { display: block; color: var(--sub); font-size: .8rem; }
.medio b { font-family: var(--mono); font-size: 1.05rem; word-break: break-all; }
.copiar { flex: none; background: rgba(255,255,255,.06); border: 1px solid var(--borde-f); color: var(--texto); border-radius: 9px;
  padding: 8px 12px; font-weight: 600; }
.archivo { position: relative; border: 1.5px dashed var(--borde-f); border-radius: 12px; padding: 16px; text-align: center; color: var(--texto); }
.archivo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.archivo-chico { padding: 10px; font-size: .9rem; }
.vista-previa { max-height: 220px; object-fit: contain; border-radius: 10px; background: #000; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opciones label { position: relative; }
.opciones input { position: absolute; opacity: 0; }
.opciones span { display: block; padding: 12px; border: 1px solid var(--borde-f); border-radius: 12px; color: var(--texto); text-align: center; }
.opciones input:checked + span { border-color: var(--cian); background: rgba(34,211,238,.1); }
.opciones input:focus-visible + span { outline: 2px solid var(--cian); }

.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--borde); font-size: .93rem; }
.lista li:last-child { border-bottom: 0; }
.lista li.tocable { cursor: pointer; }
.lista small { display: block; color: var(--sub); }
.lista .vacio { color: var(--sub); justify-content: center; }
.etiqueta { font-family: var(--mono); font-size: .74rem; white-space: nowrap; }
.etiqueta.verde { color: var(--verde); } .etiqueta.rojo { color: var(--rojo); } .etiqueta.ambar { color: var(--ambar); } .etiqueta.cian { color: var(--cian); }
.lista li.anuncio { border-left: 3px solid var(--cian); padding-left: 10px; }
.lista li.anuncio.mantenimiento { border-left-color: var(--ambar); }
.lista li.anuncio.afectacion { border-left-color: var(--rojo); }
.lista li.anuncio small { white-space: pre-line; }
.pie { text-align: center; color: var(--sub); font-size: .8rem; padding: 4px 16px 10px; margin: 0; }

/* ── chat ── */
.chat { gap: 0; height: calc(100svh - 64px - var(--menu-alto) - var(--seguro-abajo) - 34px); min-height: 380px; }
.chat-cab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--tarjeta); border: 1px solid var(--borde);
  border-radius: 18px 18px 0 0; }
.chat-cab b { display: block; }
.chat-cab small { color: var(--sub); font-size: .8rem; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; flex: none;
  background: linear-gradient(135deg, var(--violeta), var(--cian)); }
.chat-mensajes { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(10,8,23,.65); border-left: 1px solid var(--borde); border-right: 1px solid var(--borde); overscroll-behavior: contain; }
.burbuja { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: .94rem; line-height: 1.45; word-wrap: break-word;
  animation: burbuja .25s ease both; color: var(--texto); }
@keyframes burbuja { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.burbuja.cliente { align-self: flex-end; background: linear-gradient(135deg, var(--violeta), #5B21B6); border-bottom-right-radius: 5px; }
.burbuja.bot, .burbuja.asesor { align-self: flex-start; background: var(--tarjeta-2); border: 1px solid var(--borde); border-bottom-left-radius: 5px; }
.burbuja.asesor { border-color: rgba(34,211,238,.35); }
.burbuja.sistema { align-self: center; background: none; color: var(--sub); font-size: .82rem; text-align: center; max-width: 92%; }
.burbuja .quien { display: block; font-size: .72rem; color: var(--cian); font-weight: 600; margin-bottom: 2px; }
.burbuja .hora { display: block; font-size: .66rem; opacity: .6; margin-top: 4px; text-align: right; }
.burbuja img { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; margin-bottom: 4px; }
.burbuja p { color: inherit; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 94%; animation: burbuja .3s .1s ease both; }
.chips button { background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.45); color: var(--texto); border-radius: 999px;
  padding: 7px 12px; font-size: .84rem; font-weight: 500; }
.chips button:active { background: rgba(34,211,238,.25); }
.escribiendo { align-self: flex-start; background: var(--tarjeta-2); border-radius: 16px; padding: 12px 14px; display: flex; gap: 4px; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--sub); animation: puntos 1s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; } .escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes puntos { 40% { transform: translateY(-5px); opacity: 1; } 0%, 80% { opacity: .4; } }
.chat-barra { display: flex; align-items: flex-end; gap: 8px; padding: 10px; background: var(--tarjeta); border: 1px solid var(--borde);
  border-radius: 0 0 18px 18px; }
.chat-barra textarea { resize: none; max-height: 120px; border-radius: 20px; padding: 10px 14px; }
.chat-adjuntar { position: relative; flex: none; width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.2rem;
  border-radius: 50%; background: rgba(255,255,255,.05); }
.chat-adjuntar input { position: absolute; inset: 0; opacity: 0; }
.chat-enviar { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; color: #fff; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--violeta), var(--cian)); }

/* ── soporte ── */
.segmento { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--tarjeta); border: 1px solid var(--borde);
  padding: 5px; border-radius: 14px; }
.segmento button { background: none; border: 0; color: var(--sub); padding: 10px 6px; border-radius: 10px; font-weight: 600; }
.segmento button[aria-selected="true"] { background: var(--violeta); color: #fff; }
.segmento b { background: rgba(255,255,255,.18); border-radius: 8px; padding: 0 6px; font-size: .78rem; }
.segmento b:empty { display: none; }
.clases { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clases button { text-align: left; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 16px; padding: 14px; color: var(--texto);
  display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
.clases button:active { transform: scale(.97); }
.clases span { font-size: 1.5rem; }
.clases b { font-family: var(--titulos); }
.clases small { color: var(--sub); font-size: .78rem; line-height: 1.35; }
.miniaturas { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.miniaturas:empty { display: none; }
.miniaturas figure { position: relative; margin: 0; width: 82px; height: 82px; }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--borde-f); }
.miniaturas button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: var(--rojo); color: #fff; font-weight: 700; line-height: 1; }
.solicitudes { display: flex; flex-direction: column; gap: 10px; }
.solicitud { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 16px; padding: 14px 16px; }
.solicitud summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.solicitud summary::-webkit-details-marker { display: none; }
.solicitud summary b { display: block; }
.solicitud summary small { color: var(--sub); font-size: .8rem; }
.solicitud .cun { display: block; font-family: var(--mono); font-size: .8rem; color: var(--cian); }
.solicitud .cuerpo { margin-top: 12px; border-top: 1px solid var(--borde); padding-top: 12px; display: grid; gap: 10px; }
.solicitud .cuerpo p { margin: 0; color: var(--texto); font-size: .9rem; white-space: pre-line; }
.linea { display: flex; gap: 0; margin: 4px 0; }
.linea span { flex: 1; text-align: center; font-size: .7rem; color: var(--sub); position: relative; padding-top: 16px; }
.linea span::before { content: ""; position: absolute; top: 3px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--tarjeta-2); border: 2px solid var(--borde-f); z-index: 1; }
.linea span::after { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--borde-f); }
.linea span:first-child::after { display: none; }
.linea span.hecho { color: var(--texto); }
.linea span.hecho::before { background: var(--verde); border-color: var(--verde); }
.linea span.hecho::after { background: var(--verde); }
.respuesta { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.3); border-radius: 12px; padding: 12px; }
.respuesta b { color: var(--verde); font-size: .85rem; }

/* ── perfil ── */
.perfil-cab { display: flex; align-items: center; gap: 14px; }
.perfil-cab b { display: block; font-family: var(--titulos); font-size: 1.15rem; }
.perfil-cab small { font-family: var(--mono); color: var(--sub); }
.iniciales { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--titulos); font-size: 1.4rem;
  font-weight: 700; background: linear-gradient(135deg, var(--violeta), var(--cian)); flex: none; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: .92rem; }
.datos dt { color: var(--sub); }
.datos dd { margin: 0; text-align: right; word-break: break-word; }
.enlaces { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.enlaces a { text-decoration: none; }

/* ── ventanas ── */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; overflow: auto;
  animation: aparecer .2s ease both; }
.modal.hoja { place-items: end center; padding: 0; }
.panel-hoja { width: 100%; max-width: 640px; max-height: 86svh; overflow: auto; background: var(--tarjeta); border: 1px solid var(--borde-f);
  border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + var(--seguro-abajo)); animation: subir .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes subir { from { transform: translateY(40px); opacity: .4; } }
.avisos li { align-items: flex-start; justify-content: flex-start; }
.avisos li .icono { font-size: 1.2rem; }
.avisos li.nuevo b::after { content: " •"; color: var(--cian); }
.documento { width: 100%; max-width: 560px; background: #fff; color: #1F1B2E; border-radius: 14px; padding: 24px; }
.documento h3 { font-family: var(--titulos); margin: 0; font-size: 1.25rem; color: #1F1B2E; }
.documento .cab { display: flex; justify-content: space-between; gap: 14px; border-bottom: 3px solid #7C3AED; padding-bottom: 12px; margin-bottom: 14px; }
.documento .cab img { width: 54px; height: 54px; object-fit: contain; }
.documento .cab .tipo { text-align: right; flex: none; max-width: 42%; font-size: .9rem; }
.documento .cab .tipo b { display: block; color: #5B21B6; font-family: var(--titulos); }
.documento p, .documento td { color: #3A3550; margin: 0; font-size: .92rem; }
.documento table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.documento td { padding: 7px 0; border-bottom: 1px solid #E6E2F3; }
.documento td:last-child { text-align: right; font-weight: 600; padding-left: 12px; }
.documento .total td { font-size: 1.15rem; color: #1F1B2E; border-bottom: 0; }
.documento .pagar { background: #F4F0FF; border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.documento .sello { margin-top: 12px; text-align: center; font-family: var(--mono); color: #059669; border: 2px solid #059669; border-radius: 8px;
  padding: 6px; transform: rotate(-2deg); }
.documento .botones { display: flex; gap: 10px; margin-top: 18px; }
.documento .botones button { flex: 1; }
.documento .boton-borde { color: #5B21B6; border-color: #C9B8F5; }
.aviso-flotante { position: fixed; left: 50%; bottom: calc(var(--menu-alto) + var(--seguro-abajo) + 14px); transform: translateX(-50%); z-index: 30;
  background: #1F1A40; border: 1px solid var(--borde-f); color: var(--texto); padding: 12px 18px; border-radius: 14px; max-width: 92vw;
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.8); animation: subir .3s ease both; font-size: .92rem; }

@media (max-width: 380px) {
  .doble { grid-template-columns: 1fr; }
  .hero-pago { gap: 12px; }
  .anillo { width: 100px; height: 100px; }
  .rapidos button { font-size: .68rem; }
}
@media (min-width: 900px) {
  .menu { left: 50%; right: auto; width: 640px; transform: translateX(-50%); border-radius: 18px 18px 0 0; border: 1px solid var(--borde); }
}
@media print {
  @page { margin: 12mm; }
  html, body { background: #fff; min-height: 0 !important; height: auto; }
  .vista, .barra, .menu, .aviso-flotante { display: none !important; }
  .modal { position: static; background: none; padding: 0; display: block !important; min-height: 0; overflow: visible; animation: none; }
  .modal[hidden] { display: none !important; }
  .documento { break-inside: avoid; }
  .documento { box-shadow: none; max-width: none; }
  .documento .botones { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══════════════════ FUTURISTA · inicio del portal (v7) ═══════════════════ */
/* lienzo de partículas y aurora detrás de la app */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#vistaCliente { position: relative; }
#vistaCliente::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 10% 4%, rgba(124,58,237,.32), transparent 60%),
    radial-gradient(520px 380px at 94% 16%, rgba(34,211,238,.20), transparent 62%),
    radial-gradient(640px 460px at 72% 104%, rgba(91,33,182,.28), transparent 60%);
  animation: auroraFx 20s ease-in-out infinite alternate; will-change: transform; }
@keyframes auroraFx { 0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-16px,0) scale(1.06); } 100% { transform: translate3d(0,10px,0) scale(1.03); } }
/* el contenido siempre por encima del fondo */
.barra, .contenido { position: relative; z-index: 2; }

/* entrada escalonada de las tarjetas del inicio */
section[data-pantalla="inicio"] > * { animation: subeFx .55s cubic-bezier(.2,.8,.2,1) both; }
section[data-pantalla="inicio"] > *:nth-child(1) { animation-delay: .03s; }
section[data-pantalla="inicio"] > *:nth-child(2) { animation-delay: .09s; }
section[data-pantalla="inicio"] > *:nth-child(3) { animation-delay: .15s; }
section[data-pantalla="inicio"] > *:nth-child(4) { animation-delay: .21s; }
section[data-pantalla="inicio"] > *:nth-child(5) { animation-delay: .27s; }
section[data-pantalla="inicio"] > *:nth-child(n+6) { animation-delay: .33s; }
@keyframes subeFx { from { opacity: 0; transform: translateY(18px); } }

/* ── tarjeta hero: vidrio + glow vivo + barrido de luz ── */
.hero { background: linear-gradient(160deg, rgba(124,58,237,.32), rgba(19,16,42,.82) 60%);
  border-color: var(--borde-f);
  box-shadow: 0 22px 60px -32px rgba(124,58,237,.85), inset 0 1px 0 rgba(255,255,255,.06);
  animation: subeFx .55s cubic-bezier(.2,.8,.2,1) both, heroGlow 6s ease-in-out infinite alternate; }
@supports (backdrop-filter: blur(6px)) { .hero { backdrop-filter: blur(7px); } }
@keyframes heroGlow {
  from { box-shadow: 0 22px 60px -34px rgba(124,58,237,.75), inset 0 1px 0 rgba(255,255,255,.05); }
  to   { box-shadow: 0 26px 74px -30px rgba(34,211,238,.6),  inset 0 1px 0 rgba(255,255,255,.09); } }
.hero::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 42%; left: -60%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.12), transparent);
  transform: skewX(-18deg); pointer-events: none; animation: barridoFx 7s ease-in-out infinite; }
@keyframes barridoFx { 0% { left: -60%; opacity: 0; } 8% { opacity: 1; } 42% { left: 150%; opacity: 1; }
  43%, 100% { left: 150%; opacity: 0; } }
.hero::after { animation: blobFx 10s ease-in-out infinite alternate; }
@keyframes blobFx { to { transform: translate(-20px, 16px) scale(1.18); } }
.hero > * { position: relative; z-index: 1; }
.saludo { text-shadow: 0 0 22px rgba(167,139,250,.35); }

/* ── anillo de días: glow neón pulsante según el estado ── */
.anillo { --glow: var(--cian); }
.anillo.ambar { --glow: var(--ambar); }
.anillo.rojo  { --glow: var(--rojo); }
.anillo .avance { animation: anilloGlow 3.2s ease-in-out infinite; }
@keyframes anilloGlow { 0%, 100% { filter: drop-shadow(0 0 3px var(--glow)); }
  50% { filter: drop-shadow(0 0 10px var(--glow)); } }
.anillo .pista { stroke: rgba(255,255,255,.06); }
.anillo strong { text-shadow: 0 0 20px rgba(34,211,238,.5); }
.hero-datos .valor { text-shadow: 0 0 18px rgba(124,58,237,.55); }

/* ── estado: punto del chip con brillo ── */
.chip.verde { text-shadow: 0 0 10px rgba(16,185,129,.55); }
.chip.ambar { text-shadow: 0 0 10px rgba(245,158,11,.55); }
.chip.rojo  { text-shadow: 0 0 10px rgba(239,68,68,.55); }

/* ── accesos rápidos: elevación y glow al tocar/pasar ── */
.rapidos button { transition: transform .18s, border-color .18s, box-shadow .22s; position: relative; z-index: 2; }
.rapidos button:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.6);
  box-shadow: 0 12px 28px -12px rgba(34,211,238,.6); }
.rapidos span { transition: transform .25s; }
.rapidos button:hover span { transform: translateY(-2px) scale(1.1); }

/* ── tarjeta de red: respira ── */
.tarjeta.red { position: relative; z-index: 2; }
.factura-mes strong { text-shadow: 0 0 18px rgba(34,211,238,.4); }

/* en pantallas anchas el fondo no debe tapar nada interactivo */
.menu { z-index: 7; }

/* logo animado común */
.ingreso-vivo { display: block; margin: 8px auto 18px; }

/* ── técnico virtual: Mi WiFi ── */
.wifi-banner { display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,.16), var(--tarjeta) 70%); border-color: rgba(16,185,129,.35); }
.wifi-banner div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wifi-banner small { color: var(--sub); font-size: .82rem; }
.wifi-icono { font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, rgba(16,185,129,.35), rgba(34,211,238,.15)); }
.rapidos.cinco { grid-template-columns: repeat(5, 1fr); }
.wifi-espera { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--cian); font-size: .92rem; }
.giro { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(34,211,238,.25); border-top-color: var(--cian);
  animation: girar .8s linear infinite; flex: none; }
@keyframes girar { to { transform: rotate(360deg); } }
.wifi-estado { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; font-size: 1.02rem; }
.wifi-mensaje { margin: 0 0 14px; font-size: .92rem; line-height: 1.5; }
.wifi-sub { font-size: .9rem; margin: 16px 0 4px; color: var(--sub); font-weight: 600; }
.wifi-hora { margin-top: 10px; color: var(--sub); font-size: .8rem; }
.wifi-ayuda { padding: 0 6px; color: var(--sub); }
.fila-check { flex-direction: row; align-items: center; gap: 8px; }
.fila-check input { width: auto; }

/* ── «Su mes» ── */
.informe-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.informe-cifras div { background: rgba(34,211,238,.07); border: 1px solid var(--borde); border-radius: 12px; padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; }
.informe-cifras strong { font-size: 1.15rem; color: var(--cian); }
.informe-cifras small { color: var(--sub); font-size: .75rem; }


/* botón «No lo reconozco» en la lista de equipos conectados (reportar al proveedor) */
.lista li { display: flex; align-items: center; gap: 10px; }
.lista li > div { flex: 1; min-width: 0; }
.boton-peligro { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; white-space: nowrap; }
.boton-peligro:hover { background: #FECACA; }
.boton-peligro.boton-ok { background: #DCFCE7; color: #166534; border-color: #86EFAC; }
