/* ============================================================================
   Marca por operador (white-label) — Backoffice + Portal Empresa
   Archivo IDÉNTICO en ambos paneles (mismo criterio que premium.css).
   REGLA: ningún color de cliente literal. Todo sale de --marca (lo inyecta el
   layout desde la marca del operador o de configuración) vía color-mix.
   --fuente-marca la inyecta el layout si la marca define una fuente.
   Ver docs/marca-operador.md.
   ============================================================================ */

:root {
  --fuente-marca: var(--ui);
  --marca-tinta: color-mix(in srgb, var(--marca) 12%, #050505);
}

/* ----------------------------- Riel: logo de marca ----------------------------- */
.tf-marca { min-width: 0; }
.tf-marca__nombre {
  font-family: var(--fuente-marca); font-weight: 800; letter-spacing: .01em;
  background: linear-gradient(100deg, var(--on-surface) 0%, var(--on-surface) 40%, var(--marca-claro) 50%, var(--on-surface) 60%, var(--on-surface) 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  animation: tf-marca-brillo-texto 9s ease-in-out 1.2s infinite;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 128px;
}
.tf-marca__logo {
  position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--marca) 35%, transparent));
  /* backwards (no both): al terminar la entrada, el :hover vuelve a poder mover el logo */
  animation: tf-marca-entrada .9s cubic-bezier(.2,.9,.25,1.15) backwards;
  transition: transform .35s cubic-bezier(.2,.9,.25,1.3);
}
.tf-marca__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Reflejo "foil": barrido de luz recortado con la forma EXACTA del logo (mask = el mismo archivo). */
.tf-marca__logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, color-mix(in srgb, #fff 75%, var(--marca)) 50%, transparent 65%);
  background-size: 300% 100%; background-position: 150% 0; mix-blend-mode: soft-light;
  -webkit-mask: var(--logo-url) center / contain no-repeat; mask: var(--logo-url) center / contain no-repeat;
  animation: tf-marca-foil 7s ease-in-out 1s infinite;
}
.tf-rail__brand:hover .tf-marca__logo { transform: scale(1.06); }
/* Riel de escritorio: el logo es protagonista (centrado y grande, legible) con el nombre debajo.
   En el riel horizontal de pantallas angostas (≤940px) se queda en fila, a 40px. */
@media (min-width: 941px) {
  .tf-rail__brand.tf-marca { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 8px 18px; overflow: visible; }
  .tf-rail__brand.tf-marca .tf-marca__logo { width: 104px; height: 104px;
    filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--marca) 35%, transparent)); }
  .tf-rail__brand.tf-marca .tf-marca__nombre { max-width: 186px; font-size: 1.15rem; }
  /* El riel es sticky a 100vh: si su contenido es más alto que la ventana (Backoffice tiene muchas
     opciones), sin scroll propio las últimas quedaban fuera de alcance. */
  .tf-rail { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--marca) 35%, transparent) transparent; }
}

@keyframes tf-marca-foil { 0%, 62% { background-position: 150% 0; } 85%, 100% { background-position: -50% 0; } }
@keyframes tf-marca-brillo-texto { 0%, 70% { background-position: 100% 0; } 90%, 100% { background-position: 0% 0; } }
@keyframes tf-marca-entrada { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* ================================ LOGIN DE MARCA ================================
   _LayoutAcceso: escena a pantalla completa. Capas (de atrás hacia adelante):
   aurora (gradiente vivo de --marca) → carretera en perspectiva con carriles que
   avanzan → estelas de luz (autos) → grano → contenido (logo + tarjeta de vidrio). */
.acc { min-height: 100vh; min-height: 100dvh; position: relative; overflow: hidden; background: var(--ground); color: var(--on-surface); isolation: isolate; }
.acc-fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 110%, color-mix(in srgb, var(--marca) 16%, var(--ground)) 0%, var(--ground) 60%); }

/* Aurora: dos manchas de luz de la marca que respiran y derivan lentamente */
.acc-aurora { position: absolute; inset: -20%; filter: blur(70px); opacity: .55; }
.acc-aurora::before, .acc-aurora::after { content: ""; position: absolute; border-radius: 50%; }
.acc-aurora::before { width: 55vmax; height: 55vmax; left: 5%; top: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--marca) 55%, transparent) 0%, transparent 65%);
  animation: acc-deriva-a 22s ease-in-out infinite alternate; }
.acc-aurora::after { width: 45vmax; height: 45vmax; right: 0; top: 25%;
  background: radial-gradient(circle, color-mix(in srgb, var(--marca-profundo) 70%, transparent) 0%, transparent 65%);
  animation: acc-deriva-b 28s ease-in-out infinite alternate; }
:root[data-theme="light"] .acc-aurora { opacity: .35; }

/* Carretera en perspectiva: plano inclinado con borde luminoso y carril central discontinuo */
.acc-carretera { position: absolute; left: 50%; bottom: -8vh; width: 70vmax; height: 75vh;
  transform: translateX(-50%) perspective(380px) rotateX(64deg); transform-origin: 50% 100%;
  background:
    linear-gradient(90deg, transparent 0 3%, color-mix(in srgb, var(--marca) 70%, transparent) 3% 3.6%, transparent 3.6% 96.4%, color-mix(in srgb, var(--marca) 70%, transparent) 96.4% 97%, transparent 97%),
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--marca) 9%, var(--ground)) 100%);
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 30%); mask: linear-gradient(180deg, transparent 0%, #000 30%);
  box-shadow: 0 0 60px color-mix(in srgb, var(--marca) 25%, transparent); }
.acc-carretera::before { /* carril central que avanza hacia el espectador */
  content: ""; position: absolute; left: calc(50% - 4px); top: 0; bottom: 0; width: 8px;
  background: repeating-linear-gradient(180deg, var(--marca-claro) 0 46px, transparent 46px 110px);
  filter: drop-shadow(0 0 6px var(--marca)); animation: acc-avanza 1.1s linear infinite; }
.acc-carretera::after { /* cuadrícula sutil del asfalto, también en movimiento */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--marca) 14%, transparent) 0 1px, transparent 1px 90px);
  animation: acc-avanza-grid 2.2s linear infinite; }
:root[data-theme="light"] .acc-carretera::before { background: repeating-linear-gradient(180deg, var(--marca-profundo) 0 46px, transparent 46px 110px); }

/* Estelas de luz: autos que cruzan de lado a lado a distintas alturas y velocidades */
.acc-luces span { position: absolute; left: 0; height: 2px; width: 28vw; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--marca-claro) 85%, #fff), transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--marca) 60%, transparent);
  animation: acc-estela 7s linear infinite; }
.acc-luces span:nth-child(1) { top: 18%; animation-delay: 0s; animation-duration: 6.5s; }
.acc-luces span:nth-child(2) { top: 31%; animation-delay: 2.2s; animation-duration: 8s; width: 18vw; }
.acc-luces span:nth-child(3) { top: 46%; animation-delay: 4.1s; animation-duration: 5.6s; }
.acc-luces span:nth-child(4) { top: 62%; animation-delay: 1.3s; animation-duration: 9s; width: 22vw; animation-direction: reverse; }
.acc-luces span:nth-child(5) { top: 74%; animation-delay: 3.4s; animation-duration: 7.4s; width: 14vw; animation-direction: reverse; }
.acc-luces span:nth-child(6) { top: 9%;  animation-delay: 5.2s; animation-duration: 10s; width: 34vw; }

/* Grano: textura muy leve para que el gradiente no se vea "plano" */
.acc-grano { position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: radial-gradient(color-mix(in srgb, var(--on-surface) 60%, transparent) 1px, transparent 1px);
  background-size: 3px 3px; }

/* --------------------------------- Contenido --------------------------------- */
.acc-escena { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; justify-items: center;
  grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); padding: clamp(56px, 8vh, 96px) 16px 40px; max-width: 1180px; margin: 0 auto; }
@media (min-width: 920px) { .acc-escena { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-left: 32px; padding-right: 32px; } }

.acc-marca { text-align: center; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 920px) { .acc-marca { align-items: flex-start; text-align: left; } }

/* Logo protagonista: entrada (sin giro) + aro foil que recorre el borde + reflejo sobre el logo */
.acc-logo { --tam: clamp(150px, 26vw, 300px); position: relative; width: var(--tam); height: var(--tam); display: grid; place-items: center;
  animation: acc-logo-entrada 1.4s cubic-bezier(.16,.9,.24,1.12) both; }
.acc-logo img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1;
  filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--marca) 30%, transparent)) drop-shadow(0 0 2px color-mix(in srgb, var(--marca) 50%, transparent));
  animation: acc-flota 6s ease-in-out 1.4s infinite; }
.acc-logo__icono { width: 62%; height: 62%; color: var(--marca); position: relative; z-index: 1; animation: acc-flota 6s ease-in-out 1.4s infinite; }
/* Reflejo foil recortado con la silueta del logo */
.acc-logo__foil { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(118deg, transparent 38%, color-mix(in srgb, #fff 80%, var(--marca)) 49%, color-mix(in srgb, #fff 40%, var(--marca)) 51%, transparent 62%);
  background-size: 320% 100%; background-position: 160% 0; mix-blend-mode: soft-light;
  -webkit-mask: var(--logo-url) center / contain no-repeat; mask: var(--logo-url) center / contain no-repeat;
  animation: acc-foil 5.5s cubic-bezier(.45,0,.2,1) 1.6s infinite, acc-flota 6s ease-in-out 1.4s infinite; }
/* Aro: destello cónico que gira alrededor del borde del logo */
.acc-logo__aro { position: absolute; inset: -5%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--marca-claro) 95%, #fff) 28deg, transparent 70deg, transparent 180deg, color-mix(in srgb, var(--marca) 80%, transparent) 210deg, transparent 250deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 8px var(--marca)); animation: acc-gira 6s linear infinite, acc-aparece 1s ease 1.2s both; }
.acc-logo__halo { position: absolute; inset: -18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--marca) 32%, transparent) 0%, transparent 62%);
  animation: acc-respira 5s ease-in-out infinite; }

/* Armado por piezas (Marca:PiezasLogo): capas del mismo tamaño que el logo, apiladas.
   1) el soporte (aro + disco) aparece; 2) el vehículo llega desde el FONDO de la escena, desde el
   punto de fuga de la carretera, creciendo hasta su lugar; 3) el resto de piezas llega en BLOQUES
   desde el frente (grandes y desenfocadas, como si vinieran hacia la cámara) y encajan;
   4) destello al quedar armado, y recién ahí arrancan el aro de luz y el reflejo. */
.acc-logo--armado { animation: none; }
.acc-logo__piezas { position: relative; z-index: 1; width: 100%; height: 100%;
  filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--marca) 30%, transparent)) drop-shadow(0 0 2px color-mix(in srgb, var(--marca) 50%, transparent));
  animation: acc-flota 6s ease-in-out 2.8s infinite; }
.acc-logo .acc-pieza { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: none; will-change: transform, opacity, filter; }
.acc-logo .acc-pieza--base { animation: acc-pieza-base .8s cubic-bezier(.2,.8,.2,1) .1s both; }
.acc-logo .acc-pieza--fondo { transform-origin: 50% 46%; animation: acc-pieza-fondo 1.5s cubic-bezier(.2,.75,.25,1) .45s both; }
.acc-logo .acc-pieza--frente { --dx: 0%; --dy: 34%;
  animation: acc-pieza-frente .8s cubic-bezier(.16,.84,.3,1) both; animation-delay: calc(1.25s + var(--i, 0) * .2s); }
.acc-logo .acc-pieza--frente:nth-child(3n+1) { --dx: -26%; --dy: 18%; }
.acc-logo .acc-pieza--frente:nth-child(3n+2) { --dx: 26%; --dy: 22%; }
.acc-logo__destello { position: absolute; inset: -8%; border-radius: 50%; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, #fff 55%, var(--marca)) 0%, color-mix(in srgb, var(--marca) 35%, transparent) 30%, transparent 62%);
  mix-blend-mode: screen; animation: acc-destello 1.1s ease-out 2.25s both; }
.acc-logo--armado .acc-logo__aro { animation: acc-gira 6s linear infinite, acc-aparece 1s ease 2.3s both; }
.acc-logo--armado .acc-logo__foil { animation: acc-foil 5.5s cubic-bezier(.45,0,.2,1) 3.2s infinite, acc-flota 6s ease-in-out 2.8s infinite; }
.acc-logo--armado ~ .acc-nombre { animation: acc-sube .9s cubic-bezier(.2,.8,.2,1) 1.9s both, acc-brillo-nombre 6s linear 2.8s infinite; }
.acc-logo--armado ~ .acc-lema { animation-delay: 2.1s; }
.acc-logo--armado ~ .acc-panel { animation-delay: 2.25s; }

.acc-nombre { font-family: var(--fuente-marca); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.02em; margin: 22px 0 4px; line-height: 1.05;
  background: linear-gradient(100deg, var(--marca-profundo) 0%, var(--marca) 25%, color-mix(in srgb, var(--marca-claro) 70%, #fff) 50%, var(--marca) 75%, var(--marca-profundo) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: acc-sube .9s cubic-bezier(.2,.8,.2,1) .5s both, acc-brillo-nombre 6s linear 1.4s infinite; }
.acc-lema { font-family: var(--fuente-marca); font-size: clamp(1rem, 1.6vw, 1.22rem); font-weight: 500; color: var(--on-surface); opacity: .85; margin: 0;
  animation: acc-sube .9s cubic-bezier(.2,.8,.2,1) .7s both; }
.acc-panel { font-family: var(--mono); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-surface-var); margin-top: 14px;
  display: inline-flex; align-items: center; gap: 10px; animation: acc-sube .9s cubic-bezier(.2,.8,.2,1) .85s both; }
.acc-panel::before { content: ""; width: 28px; height: 1px; background: var(--marca); box-shadow: 0 0 8px var(--marca); }

/* Tarjeta de vidrio */
.acc-tarjeta { width: 100%; max-width: 420px; min-width: 0; box-sizing: border-box; position: relative; border-radius: 22px; padding: clamp(22px, 3vw, 34px);
  background: color-mix(in srgb, var(--panel) 62%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--marca) 28%, transparent);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.65), inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
  animation: acc-tarjeta-entrada 1s cubic-bezier(.2,.8,.2,1) .9s both; }
.acc-tarjeta::before { /* filo superior que brilla */
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--marca-claro), transparent); box-shadow: 0 0 12px var(--marca); }
.acc-tarjeta h1, .acc-tarjeta .acc-titulo { font-family: var(--fuente-marca); font-weight: 700; font-size: 1.35rem; margin: 0 0 2px; }
.acc-tarjeta .form-control { background: color-mix(in srgb, var(--surface-bright) 80%, transparent); padding: .7rem .9rem; }
.acc-tarjeta .btn-primary { padding: .75rem; font-family: var(--fuente-marca); font-weight: 700; letter-spacing: .02em; position: relative; overflow: hidden;
  background: var(--marca-grad); border: none; }
.acc-tarjeta .btn-primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, #fff 45%, transparent) 50%, transparent 70%);
  animation: acc-boton 4.5s ease-in-out 2.4s infinite; }
:root[data-theme="light"] .acc-tarjeta { background: color-mix(in srgb, var(--panel) 72%, transparent); box-shadow: 0 30px 70px -30px rgba(40,30,10,.35); }

/* Pie a la derecha: el carril central de la carretera pasa por el centro de la base */
.acc-pie { position: absolute; left: 16px; right: 20px; bottom: 14px; text-align: right; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--on-surface-var); }
.acc-pie a { color: var(--on-surface-var); }
.acc-tema { position: fixed; top: 14px; right: 16px; z-index: 5; }

/* --------------------------------- Keyframes --------------------------------- */
@keyframes acc-deriva-a { from { transform: translate(-6%, -4%) scale(1); } to { transform: translate(18%, 12%) scale(1.15); } }
@keyframes acc-deriva-b { from { transform: translate(8%, 6%) scale(1.1); } to { transform: translate(-20%, -10%) scale(.92); } }
@keyframes acc-avanza { from { background-position: 0 0; } to { background-position: 0 110px; } }
@keyframes acc-avanza-grid { from { background-position: 0 0; } to { background-position: 0 90px; } }
@keyframes acc-estela { 0% { transform: translateX(-40vw); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .7; } 100% { transform: translateX(130vw); opacity: 0; } }
@keyframes acc-logo-entrada { 0% { opacity: 0; transform: scale(.7); filter: blur(10px); } 70% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes acc-pieza-base { from { opacity: 0; transform: scale(.82); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes acc-pieza-fondo { 0% { opacity: 0; transform: translateY(5%) scale(.06); filter: blur(3px) brightness(2.4); } 22% { opacity: 1; } 80% { transform: translateY(-1%) scale(1.06); filter: blur(0) brightness(1.4); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes acc-pieza-frente { 0% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(2.4); filter: blur(12px); } 55% { opacity: 1; filter: blur(0); } 78% { transform: scale(.96); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes acc-destello { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: .8; } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes acc-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes acc-foil { 0%, 55% { background-position: 160% 0; } 80%, 100% { background-position: -60% 0; } }
@keyframes acc-gira { to { transform: rotate(360deg); } }
@keyframes acc-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes acc-respira { 0%, 100% { opacity: .6; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes acc-sube { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes acc-brillo-nombre { from { background-position: 0% 0; } to { background-position: 220% 0; } }
@keyframes acc-tarjeta-entrada { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes acc-boton { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Movimiento reducido: todo quieto (las entradas aparecen ya en su lugar), la escena se mantiene.
   También en pantallas táctiles: en la GPU de un celular la escena animada del login (aurora,
   carretera, luces, logo que flota/gira) se siente como lag; en escritorio sigue animada. */
@media (prefers-reduced-motion: reduce), (hover: none) and (pointer: coarse) {
  .tf-marca__logo, .tf-marca__logo::after, .tf-marca__nombre,
  .acc-aurora::before, .acc-aurora::after, .acc-carretera::before, .acc-carretera::after,
  .acc-luces span, .acc-logo, .acc-logo img, .acc-logo__icono, .acc-logo__foil, .acc-logo__aro, .acc-logo__halo,
  .acc-logo__piezas, .acc-logo .acc-pieza, .acc-logo--armado ~ .acc-nombre, .acc-logo--armado ~ .acc-lema, .acc-logo--armado ~ .acc-panel,
  .acc-nombre, .acc-lema, .acc-panel, .acc-tarjeta, .acc-tarjeta .btn-primary::after {
    animation: none !important; transition: none !important;
  }
  .acc-luces, .acc-logo__destello { display: none; }
}

@media (max-width: 919px) {
  .acc-carretera { width: 120vmax; height: 55vh; }
  .acc-logo { --tam: clamp(130px, 42vw, 200px); }
  .acc-nombre { margin-top: 14px; }
}
@media (max-width: 940px) {
  .tf-marca__nombre { max-width: 110px; }
  /* Riel horizontal (celular/tablet): el bloque de marca NO se encoge — si se encogía, su texto se
     salía por encima de los íconos y el primero quedaba montado sobre el logo. Solo logo + nombre
     (sin el subtítulo), y los íconos en fila deslizable sin aplastarse. */
  .tf-rail__brand.tf-marca { flex: none; padding: 4px 10px 4px 4px; }
  .tf-rail__brand.tf-marca small { display: none; }
  .tf-rail .tf-railitem { flex: none; }
  /* La barrita del ítem activo (vertical a la izquierda en escritorio) pasa a subrayado en la fila. */
  .tf-rail .tf-railitem.activo::before { left: 10px; right: 10px; top: auto; bottom: -6px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .tf-rail { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tf-rail::-webkit-scrollbar { display: none; }
}

/* Pantallas táctiles (celulares/tablets): sin animaciones INFINITAS decorativas ni desenfoques de
   fondo. En una GPU de celular se redibujan sin parar y se sienten como lag al hacer scroll; en
   escritorio (mouse) quedan igual. Lo funcional (el punto "en vivo") se mantiene. */
@media (hover: none) and (pointer: coarse) {
  .tf-marca__logo::after, .tf-marca__nombre, .tf-map .sweep, .tf-pin.live .ring { animation: none !important; }
  .tf-map .sweep { opacity: .14; }
  .tf-vidrio, .acc-tarjeta { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .acc-tarjeta { background: var(--panel); }
}

/* Login en tema oscuro: negro cálido (neutro, no color de cliente) con la tarjeta oscura, como la web
   pública del operador; el panel interno conserva su grafito + contenido claro. */
:root:not([data-theme="light"]) .acc { --ground: #11110F; --panel: #1A1916; --panel-2: #151412; --surface-bright: #201E1A;
  --outline: color-mix(in srgb, var(--marca) 30%, #2E2B25); }
