/* NOC-TI-WORD · logo animado común EN 3D (portal HOGAR, TNC, LIFE y Móvil).
   Uso: <span class="logo-vivo" style="--t:120px">…</span>  (ver LOGO_VIVO en el js de cada app).
   v2 (2026-11-19): el logo flota y gira en 3D, las órbitas están inclinadas en profundidad (pasan por delante y por
   detrás del disco), el aro y el disco tienen capas a distinta profundidad, y se inclina hacia el dedo / el mouse
   (logo-vivo.js pone --rx y --ry). Respeta «reducir movimiento». */
.logo-vivo { --t: 120px; --rx: 0deg; --ry: 0deg; position: relative; display: inline-block; flex: none;
  width: var(--t); height: var(--t); vertical-align: middle; perspective: calc(var(--t) * 5);
  transform-style: preserve-3d; }
.logo-vivo span { position: absolute; border-radius: 50%; }
/* el cuerpo del logo: se inclina hacia el puntero y además se mece solo en 3D */
.logo-vivo .lv-flota { inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s ease-out; }
.logo-vivo .lv-flota::before { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.logo-vivo .lv-flota > * { animation-fill-mode: both; }
.logo-vivo .lv-flota { animation: lvMece 9s ease-in-out infinite; }
/* aro de luz (adelante) */
.logo-vivo .lv-aro { inset: 0; translate: 0 0 calc(var(--t) * .07);
  background: conic-gradient(from 0deg, #22D3EE, #1A8FD0 28%, rgba(26,143,208,0) 44%, #F59A2A 66%, rgba(245,154,42,0) 84%, #22D3EE);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - max(2px, var(--t) * .028)), #000 calc(100% - max(1.5px, var(--t) * .02)));
          mask: radial-gradient(farthest-side, transparent calc(100% - max(2px, var(--t) * .028)), #000 calc(100% - max(1.5px, var(--t) * .02)));
  filter: drop-shadow(0 0 calc(var(--t) * .055) rgba(34,211,238,.7)); animation: lvGira 5s linear infinite; }
/* ondas de señal (atrás del disco) */
.logo-vivo .lv-onda { inset: 8%; translate: 0 0 calc(var(--t) * -.06);
  border: max(1px, calc(var(--t) * .013)) solid rgba(34,211,238,.55); animation: lvOnda 3s ease-out infinite; }
.logo-vivo .lv-onda.dos { animation-delay: 1.5s; border-color: rgba(245,154,42,.45); }
/* el disco con el logo: un poco adelante, con brillo que lo cruza y sombra de profundidad */
.logo-vivo .lv-disco { inset: 8%; overflow: hidden; display: grid; place-items: center; translate: 0 0 calc(var(--t) * .04);
  background: radial-gradient(circle at 50% 38%, #FFFFFF 0%, #EEF4FA 58%, #D3E2F0 100%);
  box-shadow: 0 0 0 1px rgba(95,195,236,.6), 0 0 calc(var(--t) * .2) rgba(34,211,238,.35), 0 0 calc(var(--t) * .4) rgba(26,143,208,.3),
              inset 0 calc(var(--t) * -.05) calc(var(--t) * .1) rgba(12,60,108,.18); }
.logo-vivo .lv-disco img { width: 86%; height: 86%; object-fit: contain; border-radius: 0; background: none; box-shadow: none; margin: 0;
  animation: lvRespira 7s ease-in-out infinite; }
.logo-vivo .lv-disco::after { content: ""; position: absolute; inset: -30%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.85) 50%, transparent 58%);
  transform: translateX(-110%); animation: lvBrillo 5s ease-in-out infinite; pointer-events: none; }
/* ÓRBITA 1: inclinada en 3D, con sus 3 satélites que pasan por delante y por detrás */
.logo-vivo .lv-orbita { inset: calc(var(--t) * -.1); border: 1px dashed rgba(95,195,236,.45); transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateX(68deg) rotateZ(0deg); animation: lvOrbita 9s linear infinite; }
.logo-vivo .lv-orbita i { position: absolute; left: 50%; top: 0; border-radius: 50%; background: #22D3EE;
  width: max(4px, calc(var(--t) * .07)); height: max(4px, calc(var(--t) * .07)); transform: translate(-50%, -50%) rotateX(-68deg);
  box-shadow: 0 0 calc(var(--t) * .09) 2px rgba(34,211,238,.85); }
.logo-vivo .lv-orbita i:nth-child(2) { left: 93.3%; top: 75%; background: #F59A2A; box-shadow: 0 0 calc(var(--t) * .09) 2px rgba(245,154,42,.85); }
.logo-vivo .lv-orbita i:nth-child(3) { left: 6.7%; top: 75%; width: max(3px, calc(var(--t) * .045)); height: max(3px, calc(var(--t) * .045)); }
/* ÓRBITA 2: anillo cruzado (como un átomo / la red que rodea el planeta) */
.logo-vivo::after { content: ""; position: absolute; inset: calc(var(--t) * -.04); border-radius: 50%; pointer-events: none;
  border: max(1px, calc(var(--t) * .012)) solid transparent; border-top-color: rgba(163,230,53,.7); border-bottom-color: rgba(52,211,153,.55);
  filter: drop-shadow(0 0 calc(var(--t) * .04) rgba(163,230,53,.6));
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateY(72deg) rotateZ(0deg); animation: lvOrbita2 7s linear infinite; }
/* sombra en el «piso»: da sensación de que flota */
.logo-vivo::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: calc(var(--t) * -.16); height: calc(var(--t) * .08);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(34,211,238,.35), transparent); pointer-events: none;
  animation: lvSombra 9s ease-in-out infinite; }
.logo-vivo.chico .lv-orbita, .logo-vivo.chico .lv-onda.dos, .logo-vivo.chico::before { display: none; }   /* en barras: más sobrio */
.logo-vivo.chico::after { inset: calc(var(--t) * -.02); }
@keyframes lvGira { to { transform: rotate(360deg); } }
@keyframes lvMece {
  0%, 100% { transform: translateY(0) rotateX(var(--rx)) rotateY(calc(var(--ry) - 16deg)) rotateX(6deg); }
  25% { transform: translateY(calc(var(--t) * -.05)) rotateX(var(--rx)) rotateY(var(--ry)) rotateX(-4deg); }
  50% { transform: translateY(0) rotateX(var(--rx)) rotateY(calc(var(--ry) + 16deg)) rotateX(6deg); }
  75% { transform: translateY(calc(var(--t) * -.05)) rotateX(var(--rx)) rotateY(var(--ry)) rotateX(-4deg); } }
@keyframes lvOrbita { to { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateX(68deg) rotateZ(360deg); } }
@keyframes lvOrbita2 { to { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateY(72deg) rotateZ(-360deg); } }
@keyframes lvOnda { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes lvRespira { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.05) rotate(-4deg); } }
@keyframes lvBrillo { 0%, 55% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
@keyframes lvSombra { 0%, 50%, 100% { opacity: .9; transform: scaleX(1); } 25%, 75% { opacity: .55; transform: scaleX(.8); } }
@media (prefers-reduced-motion: reduce) {
  .logo-vivo span, .logo-vivo img, .logo-vivo .lv-disco::after, .logo-vivo::after, .logo-vivo::before { animation: none !important; } }
/* nombre de cada app (NOC-TI-WORD HOGAR · TNC · LIFE): la palabra lleva los colores ciudad · campo · selva */
.marca-app { background: linear-gradient(90deg, #38BDF8, #A3E635 50%, #34D399, #38BDF8); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; letter-spacing: .04em;
  animation: marcaApp 6s ease-in-out infinite; }
@keyframes marcaApp { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .marca-app { animation: none; } }
