/* Panel de vozalma IA — estilos compartidos.
   Paleta de la marca: azul noche + terracota sobre crema. Tipografía Plus Jakarta Sans. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --noche: #141b33;
  --noche-2: #23305a;
  --noche-claro: #e7eaf3;
  --brasa: #c1502c;
  --brasa-2: #a84324;
  --brasa-claro: #fbeae3;
  --fondo: #f7f5f1;
  --superficie: #ffffff;
  --texto: #1d2233;
  --texto-2: #6b7288;
  --borde: #e4e2dd;
  --ok: #2f7d55;
  --ok-claro: #e3f2e9;
  --alerta: #b5771a;
  --alerta-claro: #fbf1dc;
  --error: #b73a3a;
  --error-claro: #f8e3e3;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(20, 27, 51, .05), 0 6px 18px rgba(20, 27, 51, .06);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--texto);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); font-size: 15px; line-height: 1.45; }
a { color: var(--brasa); }
h1 { font-size: 1.55rem; margin: 0 0 4px; letter-spacing: -.02em; }
h2 { font-size: 1.1rem; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 0 0 8px; }
.sub { color: var(--texto-2); margin: 0 0 20px; }
small { font-size: 12.5px; }

/* Estructura */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.lateral { background: var(--noche); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.marca { display: flex; gap: 10px; align-items: center; margin: 0 6px 22px; }
.marca .logo { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.marca .logo svg { width: 24px; height: 24px; display: block; }
.marca b { display: block; font-size: 15px; line-height: 1.15; letter-spacing: -.02em; }
.marca small { opacity: .65; font-size: 12px; }
.lateral nav a { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; padding: 9px 12px; border-radius: 10px; opacity: .82; margin-bottom: 2px; font-size: 14.5px; }
.lateral nav a:hover { background: rgba(255,255,255,.08); opacity: 1; }
.lateral nav a.activo { background: var(--brasa); opacity: 1; font-weight: 600; }
.lateral .quien { margin-top: 22px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 13px; }
.lateral .quien b { display: block; }
.lateral .quien span { opacity: .6; }
.lateral .salir { margin-top: 8px; font-size: 13px; opacity: .6; cursor: pointer; padding: 0 12px; }
.lateral .salir:hover { opacity: 1; }
.contenido { padding: 28px 32px 60px; max-width: 1400px; width: 100%; min-width: 0; }
.menu-movil { display: none; }

/* Componentes */
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px; box-shadow: var(--sombra); }
.rejilla { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rejilla2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.kpi small { color: var(--texto-2); display: block; font-size: 13px; }
.kpi b { font-size: 1.7rem; letter-spacing: -.03em; }
.kpi .pie { font-size: 12px; color: var(--texto-2); }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.espacio { flex: 1; }
.mt { margin-top: 18px; }

.boton, button { font: inherit; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; background: var(--noche); color: #fff; font-weight: 600; }
.boton:hover, button:hover { background: var(--noche-2); }
.boton.brasa, button.brasa { background: var(--brasa); }
.boton.brasa:hover, button.brasa:hover { background: var(--brasa-2); }
.boton.sec, button.sec { background: var(--noche-claro); color: var(--noche); }
.boton.peligro, button.peligro { background: var(--error-claro); color: var(--error); }
button:disabled { opacity: .5; cursor: default; }
button.chico { padding: 5px 10px; font-size: 13px; }

input, select, textarea { font: inherit; border: 1px solid var(--borde); border-radius: 10px; padding: 9px 11px; background: #fff; color: var(--texto); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brasa-claro); border-color: var(--brasa); }
label { display: block; font-size: 13px; color: var(--texto-2); margin-bottom: 12px; }
label > input, label > select, label > textarea { margin-top: 4px; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-2); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--borde); }
td { padding: 10px; border-bottom: 1px solid var(--borde); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.clic { cursor: pointer; }
tr.clic:hover td { background: var(--fondo); }
.tabla-scroll { overflow-x: auto; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--noche-claro); color: var(--noche); white-space: nowrap; }
.chip.ok { background: var(--ok-claro); color: var(--ok); }
.chip.alerta { background: var(--alerta-claro); color: var(--alerta); }
.chip.error { background: var(--error-claro); color: var(--error); }
.chip.brasa { background: var(--brasa-claro); color: var(--brasa); }
.chip.gris { background: #eeece8; color: #777; }

.aviso { padding: 12px 14px; border-radius: 12px; background: var(--alerta-claro); color: #6d4a0f; font-size: 14px; margin-bottom: 16px; }
.aviso.info { background: var(--noche-claro); color: var(--noche); }
.aviso.error { background: var(--error-claro); color: var(--error); }
.aviso a { color: inherit; font-weight: 600; }
.vacio { color: var(--texto-2); text-align: center; padding: 30px; }

.barra { height: 8px; border-radius: 99px; background: var(--noche-claro); overflow: hidden; margin-top: 6px; }
.barra i { display: block; height: 100%; background: var(--brasa); }
.barra.lleno i { background: var(--error); }

.pestanas { display: flex; gap: 4px; border-bottom: 1px solid var(--borde); margin-bottom: 18px; flex-wrap: wrap; }
.pestanas button { background: none; color: var(--texto-2); border-radius: 10px 10px 0 0; padding: 10px 14px; font-weight: 500; }
.pestanas button:hover { background: var(--fondo); color: var(--texto); }
.pestanas button.activa { color: var(--brasa); border-bottom: 2px solid var(--brasa); font-weight: 600; }

/* Modal y notificaciones */
.modal-fondo { position: fixed; inset: 0; background: rgba(20, 27, 51, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 18px; padding: 22px; width: min(680px, 100%); max-height: 90vh; overflow-y: auto; }
.modal.ancho { width: min(900px, 100%); }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--noche); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 60; box-shadow: var(--sombra); max-width: 420px; }
.toast.error { background: var(--error); }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 25% 0 0; z-index: 40; transform: translateX(-105%); transition: transform .2s; height: 100vh; }
  .lateral.abierto { transform: none; }
  .menu-movil { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--noche); color: #fff; position: sticky; top: 0; z-index: 30; }
  .menu-movil button { background: rgba(255,255,255,.15); padding: 6px 12px; }
  .contenido { padding: 18px 16px 60px; }
  .form2, .form3 { grid-template-columns: 1fr; }
}

/* =====================================================================================
   Movimiento: entrada con brillo, botones de gel líquido, en vivo y app en el teléfono.
   Todo respeta "reducir movimiento" del teléfono (al final).
   ===================================================================================== */
:root {
  --resorte: cubic-bezier(.34, 1.56, .64, 1);
  --suave: cubic-bezier(.2, .8, .2, 1);
  --brillo-brasa: rgba(193, 80, 44, .55);
  --brillo-noche: rgba(35, 48, 90, .45);
}
html { -webkit-tap-highlight-color: transparent; }
body { background: radial-gradient(1200px 600px at 85% -10%, rgba(193, 80, 44, .07), transparent 60%), var(--fondo); background-attachment: fixed; }

/* Entrada de cada pantalla: aparece desde un resplandor */
.contenido { position: relative; }
.contenido.entrando { animation: vz-entrar .6s var(--suave) both; }
.contenido.entrando::before {
  content: ''; position: absolute; inset: -40px 0 auto; height: 320px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 70% at 30% 0%, var(--brillo-brasa), transparent 70%), radial-gradient(50% 60% at 80% 10%, var(--brillo-noche), transparent 70%);
  filter: blur(30px); animation: vz-resplandor 1s var(--suave) both;
}
.contenido.entrando .tarjeta, .contenido.entrando .barra-ia, .contenido.entrando .kpi { animation: vz-subir .55s var(--suave) both; }
.contenido.entrando .tarjeta:nth-child(2), .contenido.entrando .kpi:nth-child(2) { animation-delay: .05s; }
.contenido.entrando .tarjeta:nth-child(3), .contenido.entrando .kpi:nth-child(3) { animation-delay: .1s; }
.contenido.entrando .tarjeta:nth-child(4), .contenido.entrando .kpi:nth-child(4) { animation-delay: .15s; }
.contenido.entrando .tarjeta:nth-child(n+5) { animation-delay: .2s; }
.contenido.saliendo { animation: vz-salir .16s ease-in both; }
@keyframes vz-entrar { from { opacity: 0; filter: blur(8px) brightness(1.25); transform: translateY(10px) scale(.995); } }
@keyframes vz-salir { to { opacity: 0; filter: blur(6px) brightness(1.2); transform: scale(.99); } }
@keyframes vz-subir { from { opacity: 0; transform: translateY(14px); } }
@keyframes vz-resplandor { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }

/* Cambio en vivo: un pulso de luz sobre lo que se actualizó */
.contenido.vivo-pulso::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(193, 80, 44, .35), 0 0 60px -10px var(--brillo-brasa);
  animation: vz-pulso 1.4s var(--suave) both;
}
@keyframes vz-pulso { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

.pildora-vivo {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600;
  color: #fff; background: rgba(20, 27, 51, .78); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 10px 30px -8px rgba(20, 27, 51, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
  animation: vz-caer .45s var(--resorte) both; white-space: nowrap;
}
.pildora-vivo i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.pildora-vivo.saliendo { animation: vz-irse .4s ease-in both; }
@keyframes vz-caer { from { opacity: 0; transform: translate(-50%, -16px) scale(.9); } }
@keyframes vz-irse { to { opacity: 0; transform: translate(-50%, -12px) scale(.95); } }

.vivo { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8a8fa3; flex: none; }
.vivo.conectado { background: #3ddc84; animation: vz-latido 2.4s ease-out infinite; }
@keyframes vz-latido { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } }
.lateral .vivo-texto { display: flex; align-items: center; gap: 6px; margin-top: 6px; opacity: .7; font-size: 12px; }
.lateral .vivo-texto em { font-style: normal; }

/* Botones de gel líquido: brillo que sigue al dedo, gota de luz al tocar y rebote al soltar */
.boton, button { position: relative; overflow: hidden; isolation: isolate; --tinte: var(--noche);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tinte) 78%, #fff) 0%, var(--tinte) 48%, color-mix(in srgb, var(--tinte) 86%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -3px 8px rgba(0, 0, 0, .16), 0 8px 18px -10px color-mix(in srgb, var(--tinte) 75%, transparent);
  transition: transform .45s var(--resorte), box-shadow .3s ease, filter .3s ease; text-decoration: none; }
a.boton { display: inline-block; }
.boton::before, button::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(140px circle at var(--x, 50%) var(--y, 0%), rgba(255, 255, 255, .38), transparent 60%);
}
.boton:hover, button:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--tinte) 72%, #fff) 0%, var(--tinte) 50%, color-mix(in srgb, var(--tinte) 86%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -3px 8px rgba(0, 0, 0, .14), 0 10px 26px -8px color-mix(in srgb, var(--tinte) 85%, transparent); }
.boton:hover::before, button:hover::before { opacity: 1; }
.boton:active, button:active { transform: scale(.95, .92); transition-duration: .12s; }
.boton.gel, button.gel { animation: vz-gel .6s var(--resorte); }
@keyframes vz-gel { 0% { transform: scale(.95, .92); } 35% { transform: scale(1.05, .97); } 60% { transform: scale(.98, 1.03); } 80% { transform: scale(1.01, .99); } 100% { transform: scale(1); } }
.boton .gota, button .gota, .lateral nav a .gota, .barra-movil a .gota {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%); animation: vz-gota .65s var(--suave) forwards;
}
@keyframes vz-gota { to { transform: scale(26); opacity: 0; } }
.boton.brasa, button.brasa { --tinte: var(--brasa); }
.boton.sec, button.sec { --tinte: #dfe3ee; color: var(--noche);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 6px rgba(20, 27, 51, .08), 0 6px 14px -10px rgba(20, 27, 51, .4); }
.boton.sec .gota, button.sec .gota { background: radial-gradient(circle, rgba(193, 80, 44, .35), transparent 70%); }
.boton.peligro, button.peligro { --tinte: #f3d6d6; color: var(--error); }
.boton.brasa:hover, button.brasa:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 28px -6px var(--brillo-brasa); }
button:disabled, button:disabled:hover { filter: saturate(.4); box-shadow: none; transform: none; }
.pestanas button { --tinte: transparent; background: none; box-shadow: none; }
.pestanas button:hover { background: var(--fondo); box-shadow: none; }
.pestanas button.activa { text-shadow: 0 0 18px var(--brillo-brasa); }

/* Campos: brillo suave al escribir */
input, select, textarea { transition: border-color .2s ease, box-shadow .3s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brasa); box-shadow: 0 0 0 4px var(--brasa-claro), 0 0 22px -6px var(--brillo-brasa); }

/* Tarjetas: se levantan con luz */
.tarjeta { transition: transform .35s var(--suave), box-shadow .35s ease, border-color .35s ease; }
@media (hover: hover) {
  .tarjeta:hover { border-color: rgba(193, 80, 44, .25); box-shadow: 0 1px 2px rgba(20, 27, 51, .05), 0 14px 34px -14px rgba(20, 27, 51, .25), 0 0 0 1px rgba(193, 80, 44, .06); }
}

/* Menú lateral: la pantalla activa brilla */
.lateral { background: linear-gradient(180deg, #141b33 0%, #172040 60%, #1b2550 100%); }
.lateral nav a { position: relative; overflow: hidden; isolation: isolate; transition: background .25s ease, opacity .25s ease, transform .4s var(--resorte); }
.lateral nav a:active { transform: scale(.97); }

/* Modales y avisos con entrada suave */
.modal-fondo { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: vz-aparecer .2s ease both; }
.modal-fondo .modal { animation: vz-modal .38s var(--resorte) both; box-shadow: 0 30px 80px -20px rgba(20, 27, 51, .5); }
.modal-fondo.cerrando { animation: vz-desaparecer .18s ease both; }
@keyframes vz-aparecer { from { opacity: 0; } }
@keyframes vz-desaparecer { to { opacity: 0; } }
@keyframes vz-modal { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.toast { animation: vz-caer-toast .4s var(--resorte) both; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(20, 27, 51, .88); }
.toast.error { background: rgba(183, 58, 58, .92); }
.toast.saliendo { animation: vz-desaparecer .35s ease both; }
@keyframes vz-caer-toast { from { opacity: 0; transform: translateY(14px) scale(.95); } }

/* ---------------------------------------------------------------- en el teléfono */
.barra-movil, .velo, .logo-movil { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .menu-movil { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(20, 27, 51, .86);
    -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 8px 24px -14px rgba(20, 27, 51, .6); }
  .menu-movil b { flex: 1; font-size: 16px; letter-spacing: -.01em; }
  .logo-movil { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .1); }
  .logo-movil svg { width: 18px; height: 18px; }
  .lateral { inset: 0 18% 0 0; padding-top: calc(20px + env(safe-area-inset-top)); transition: transform .35s var(--suave); box-shadow: 20px 0 60px -20px rgba(0, 0, 0, .5); }
  .app.menu-abierto .lateral { transform: none; }
  .velo { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(20, 27, 51, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .app.menu-abierto .velo { opacity: 1; pointer-events: auto; }
  .barra-movil { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 32;
    padding: 6px; border-radius: 22px; background: rgba(20, 27, 51, .78); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
    box-shadow: 0 16px 40px -14px rgba(20, 27, 51, .7), inset 0 1px 0 rgba(255, 255, 255, .14); }
  .barra-movil a { position: relative; overflow: hidden; isolation: isolate; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 7px 4px; border-radius: 16px; color: rgba(255, 255, 255, .7); text-decoration: none; transition: transform .4s var(--resorte), background .25s ease; }
  .barra-movil a span { font-size: 19px; line-height: 1.1; }
  .barra-movil a small { font-size: 10.5px; font-weight: 600; }
  .barra-movil a:active { transform: scale(.92); }
  .toast { left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); max-width: none; }
  .modal-fondo { align-items: end; padding: 0; }
  .modal-fondo .modal { width: 100%; border-radius: 22px 22px 0 0; max-height: 88vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation-name: vz-hoja; }
  @keyframes vz-hoja { from { transform: translateY(100%); } }
}

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

/* =====================================================================================
   Menú como la app del Santi: íconos en azulejo 3D (como los de iOS) y una burbuja de vidrio
   líquido que se estira hasta la pantalla elegida y se encoge con rebote (shell.js: moverVidrio).
   ===================================================================================== */
.lateral nav.nav { position: relative; display: flex; flex-direction: column; gap: 3px; }
.lateral nav.nav a.nav-item { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 14px; margin: 0;
  color: rgba(255, 255, 255, .62); font-weight: 600; font-size: 14px; opacity: 1; background: none; box-shadow: none;
  position: relative; z-index: 1; overflow: visible; transition: color .25s; }
.lateral nav.nav a.nav-item:hover { background: none; color: #fff; }
.lateral nav.nav a.nav-item.activo { background: none; box-shadow: none; color: #fff; font-weight: 700; }
.lateral nav.nav a.nav-item:active { transform: none; }

.nav-ico {
  --ic1: #1b2030; --ic2: #3a4256; --glow: rgba(255, 255, 255, .18);
  width: 34px; height: 34px; border-radius: 10px; flex: none; position: relative; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--ic2) 0%, var(--ic1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -3px 5px rgba(0, 0, 0, .42), inset 1px 0 0 rgba(255, 255, 255, .12),
    0 7px 12px -6px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 255, 255, .05);
  transform: perspective(220px) rotateX(12deg) rotateY(-8deg); transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s, filter .3s;
  filter: saturate(.75) brightness(.92);
}
.nav-ico::before { content: ''; position: absolute; inset: 0; border-radius: inherit;   /* brillo de arriba */
  background: radial-gradient(110% 70% at 28% -6%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 58%); }
.nav-ico::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 2px; height: 1px; border-radius: 2px; /* reflejo de abajo */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); }
.nav-ico svg { width: 18px; height: 18px; color: #fff; position: relative; z-index: 1; transform: translateZ(8px);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)) drop-shadow(0 -1px 0 rgba(255, 255, 255, .35)) drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.nav-ico.c-green  { --ic1: #0b7a3b; --ic2: #5cf08f; --glow: rgba(0, 255, 102, .55); }
.nav-ico.c-cyan   { --ic1: #0e6f86; --ic2: #4fe3f7; --glow: rgba(34, 211, 238, .55); }
.nav-ico.c-violet { --ic1: #5b34b8; --ic2: #c1a6ff; --glow: rgba(167, 139, 250, .55); }
.nav-ico.c-amber  { --ic1: #a35f0b; --ic2: #ffd166; --glow: rgba(251, 191, 36, .55); }
.nav-ico.c-gold   { --ic1: #8a5a00; --ic2: #ffcc4d; --glow: rgba(255, 204, 77, .6); }
.nav-ico.c-slate  { --ic1: #2b3242; --ic2: #7c879e; --glow: rgba(180, 190, 210, .4); }
.nav-ico.c-lime   { --ic1: #3f6212; --ic2: #bef264; --glow: rgba(190, 242, 100, .55); }
.nav-ico.c-rose   { --ic1: #9f1239; --ic2: #fb7185; --glow: rgba(251, 113, 133, .55); }
.nav-ico.c-blue   { --ic1: #1e40af; --ic2: #7cb7ff; --glow: rgba(96, 165, 250, .55); }
.nav-ico.c-teal   { --ic1: #0f6b63; --ic2: #5eead4; --glow: rgba(45, 212, 191, .55); }
.nav-ico.c-brasa  { --ic1: #8f3417; --ic2: #f08a5d; --glow: rgba(240, 110, 70, .6); }
.nav-ico.c-indigo { --ic1: #3730a3; --ic2: #a5b4fc; --glow: rgba(129, 140, 248, .55); }
@media (hover: hover) {
  .nav-item:hover .nav-ico { transform: perspective(220px) rotateX(4deg) rotateY(-16deg) translateZ(4px); filter: saturate(1) brightness(1.02); }
}
.nav-item.activo .nav-ico {
  transform: perspective(220px) rotateX(0) rotateY(0) translateZ(10px) scale(1.06); filter: saturate(1.1) brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 5px rgba(0, 0, 0, .4), 0 10px 18px -8px rgba(0, 0, 0, .9), 0 0 22px -4px var(--glow);
}
/* gelatina al recibir la burbuja */
@keyframes nav-jelly {
  0%   { transform: perspective(220px) translateZ(10px) scale(1, 1); }
  28%  { transform: perspective(220px) translateZ(14px) scale(1.25, .82) rotateY(-10deg); }
  50%  { transform: perspective(220px) translateZ(12px) scale(.9, 1.14) rotateY(6deg); }
  70%  { transform: perspective(220px) translateZ(10px) scale(1.08, .96); }
  85%  { transform: perspective(220px) translateZ(10px) scale(.98, 1.03); }
  100% { transform: perspective(220px) translateZ(10px) scale(1.06, 1.06); }
}
.nav-ico.jelly { animation: nav-jelly .7s cubic-bezier(.3, 1, .5, 1) both; }

/* la burbuja de vidrio líquido */
.nav-glass {
  position: absolute; left: 0; right: 0; top: 0; height: 48px; border-radius: 14px; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 40%, rgba(240, 110, 70, .16) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.08); backdrop-filter: blur(14px) saturate(180%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .35), inset 0 0 22px rgba(240, 110, 70, .14),
    0 12px 28px -14px rgba(240, 110, 70, .75), 0 2px 6px -2px rgba(0, 0, 0, .6);
  transition: top .45s cubic-bezier(.3, 1.5, .5, 1), height .45s cubic-bezier(.3, 1.5, .5, 1), opacity .25s, transform .3s;
  will-change: top, height; overflow: hidden;
}
.nav-glass::before { content: ''; position: absolute; inset: -40% -60%;      /* destello que recorre el vidrio */
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .28) 50%, transparent 58%);
  transform: translateX(-30%); transition: transform .9s ease; }
.nav-glass::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 1px; height: 1px;  /* borde refractado */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); }
.nav-glass.moving {
  transform: scaleX(.96);
  -webkit-backdrop-filter: blur(18px) saturate(220%) brightness(1.15); backdrop-filter: blur(18px) saturate(220%) brightness(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .35), inset 0 0 30px rgba(240, 110, 70, .24),
    0 16px 34px -14px rgba(240, 110, 70, .95);
}
.nav-glass.moving::before { transform: translateX(30%); }

/* En el teléfono: la barra de abajo con los mismos azulejos y la burbuja que se desliza de lado */
@media (max-width: 860px) {
  .barra-movil { position: fixed; }
  .barra-movil .nav-item { position: relative; z-index: 1; background: none !important; box-shadow: none !important; overflow: visible;
    gap: 4px; padding: 6px 2px 5px; color: rgba(255, 255, 255, .62); }
  .barra-movil .nav-item.activo { color: #fff; }
  .barra-movil .nav-item:active { transform: none; }
  .barra-movil .nav-ico { width: 32px; height: 32px; border-radius: 10px; }
  .barra-movil .nav-ico svg { width: 17px; height: 17px; }
  .barra-movil .nav-glass { top: 4px; bottom: auto; height: calc(100% - 8px); left: 0; right: auto; width: 66px; border-radius: 17px;
    transition: left .45s cubic-bezier(.3, 1.5, .5, 1), width .45s cubic-bezier(.3, 1.5, .5, 1), opacity .25s, transform .3s; will-change: left, width; }
  .barra-movil .nav-glass.moving { transform: scaleY(.94); }
}
@media (prefers-reduced-motion: reduce) { .nav-ico.jelly { animation: none; } }
