* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  /* Fondo azul tipo cielo con un degradado suave */
  background: radial-gradient(circle at top,
    #38bdf8 0%,   /* celeste */
    #1d4ed8 40%,  /* azul medio */
    #020617 100%  /* azul muy oscuro abajo */
  ) !important;

  color: #f9fafb;
  min-height: 100vh;
  overflow: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

#root {
  width: 100%;
  height: 100%;
}


#particlesCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#app-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login box más compacto */
.login-container {
  /* Fondo más elegante con degradado */
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.95),
    rgba(10, 10, 20, 0.92)
  );
  
  border-radius: 20px;

  /* Glow suave */
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(120, 180, 255, 0.12);

  /* Borde elegante */
  border: 1px solid rgba(150, 170, 255, 0.18);

  padding: 32px 36px;
  max-width: 520px;
  width: 95%;
  max-height: 80vh;
  overflow: auto;

  /* Animación al entrar y suavidad al pasar mouse */
  transition: all 0.35s ease;
}

/* Hover del cuadro (muy sutil, profesional) */
.login-container:hover {
  transform: translateY(-3px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(140, 190, 255, 0.18);
  border-color: rgba(180, 200, 255, 0.25);
}



/* App principal, tamaño grande como antes */
.app-shell {
  background: rgba(15, 23, 42, 1); /* más sólido */
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: 32px 40px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0; /* SIN bordes → pantalla completa */
}


.login-header {
  text-align: center;
  margin-bottom: 20px;
}

.app-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.app-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 4px;
}

.lang-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.lang-toggle button {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
}

.lang-toggle button:hover {
  background: rgba(30, 64, 175, 0.9);
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: #e5e7eb;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.9rem;
}

button.primary {
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: #022c22;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 8px;
}

button.secondary {
  background: transparent;
  color: #e5e7eb;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
}

button.primary:hover {
  filter: brightness(1.1);
}

button.secondary:hover {
  background: rgba(15, 23, 42, 0.9);
}

.error-text {
  color: #fecaca;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.9);
  color: #9ca3af;
}

.tab.active {
  background: rgba(37, 99, 235, 0.9);
  color: #e5e7eb;
  border-color: rgba(129, 140, 248, 0.9);
}

.tab-panel {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 16px;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 8px;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(55, 65, 81, 0.9);
  padding: 6px 4px;
  text-align: left;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

/* Botonera de exportación */
.export-buttons {
  margin-top: 8px;
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.export-buttons button {
  font-size: 0.75rem;
}
/* Dashboard donut details modal */
.dashboard-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dashboard-modal-box {
  background: #020617;
  color: #e5e7eb;
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 960px;
  width: 95%;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.dashboard-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dashboard-modal-header h2 {
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-modal-close {
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
}

.dashboard-modal-section {
  margin-top: 12px;
}

.dashboard-modal-section h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.dashboard-modal-empty {
  font-size: 0.8rem;
  opacity: 0.7;
}

.dashboard-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 4px;
}

.dashboard-modal-table th,
.dashboard-modal-table td {
  border: 1px solid rgba(55, 65, 81, 0.8);
  padding: 4px 6px;
  text-align: left;
}

.dashboard-modal-table th {
  background: rgba(15, 23, 42, 0.9);
  font-weight: 600;
}
.login-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 12px 14px;
  border-radius: 10px;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.login-input:focus {
  border-color: rgba(120, 180, 255, 0.45);
  box-shadow: 0 0 12px rgba(120, 180, 255, 0.25);
  outline: none;
}
.login-button {
  background: linear-gradient(135deg, #00c46b, #009e55);
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-button:hover {
  background: linear-gradient(135deg, #00d478, #00b662);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 255, 150, 0.25);
}
.login-title {
  text-shadow: 0 0 12px rgba(120, 180, 255, 0.25);
  letter-spacing: 0.5px;
}
/* ==== 3D Animated Dashboard Header (All Trucks) ==== */

.ats-3d-wrapper {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 16px;
  border-radius: 24px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.35), transparent 55%),
    #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 26px 80px rgba(15, 23, 42, 1);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.ats-3d-wrapper::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(circle at top, rgba(148, 163, 184, 0.12) 0, transparent 55%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9) 0, transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.ats-3d-left,
.ats-3d-right {
  position: relative;
  z-index: 1;
}

.ats-3d-left-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ats-3d-app-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.ats-3d-pill {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.7);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 78, 59, 0.8);
  color: #bbf7d0;
}

.ats-3d-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.ats-3d-lottie {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 8px;
}

.ats-3d-subtitle {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 12px;
}

.ats-3d-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ats-3d-kpi-card {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: hidden;
}

.ats-3d-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.ats-3d-kpi-card:hover::before {
  opacity: 1;
}

.ats-3d-kpi-label {
  font-size: 0.78rem;
  opacity: 0.78;
  margin-bottom: 2px;
}

.ats-3d-kpi-value {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ats-3d-kpi-unit {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-left: 4px;
}

.ats-3d-kpi-trend {
  margin-top: 4px;
  font-size: 0.72rem;
  color: #bbf7d0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ats-3d-spark {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.9), transparent);
  opacity: 0.7;
  transform: translateX(-100%);
  animation: ats-slideSpark 2s linear infinite;
}

@keyframes ats-slideSpark {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.ats-3d-right-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 500;
}

.ats-3d-right-sub {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.ats-3d-bar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

.ats-3d-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ats-3d-bar-label {
  width: 130px;
  opacity: 0.8;
}

.ats-3d-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.5);
  overflow: hidden;
  position: relative;
}

.ats-3d-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #22c55e, #0ea5e9);
  width: 0%;
  transition: width 0.7s ease-out;
}

.ats-3d-bar-value {
  width: 40px;
  text-align: right;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {
  .ats-3d-wrapper {
    grid-template-columns: 1fr;
  }
  .ats-3d-lottie {
    width: 180px;
  }
  .ats-3d-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
/* ---- Inventory visual summary ---- */

.inventory-summary-wrapper {
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.20), transparent 55%),
    rgba(15, 23, 42, 0.95);
  display: flex;
  gap: 16px;
}

.inventory-summary-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inventory-summary-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.inventory-summary-sub {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.inventory-summary-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.6);
  background: rgba(6, 78, 59, 0.8);
  color: #bbf7d0;
}

.inventory-summary-alert .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.inventory-summary-alert.has-alert {
  border-color: rgba(248, 113, 113, 0.9);
  background: rgba(127, 29, 29, 0.9);
  color: #fecaca;
}

.inventory-summary-alert.has-alert .dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.inventory-summary-right {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inventory-kpi-card {
  position: relative;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  overflow: hidden;
}

.inventory-kpi-label {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-bottom: 2px;
}

.inventory-kpi-value {
  font-size: 1.4rem;
  font-weight: 600;
}

.inventory-kpi-foot {
  font-size: 0.72rem;
  opacity: 0.8;
  margin-top: 2px;
}

.inventory-kpi-spark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 1), transparent);
  animation: inventorySpark 2s linear infinite;
  opacity: 0.9;
}

@keyframes inventorySpark {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 900px) {
  .inventory-summary-wrapper {
    flex-direction: column;
  }
  .inventory-summary-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .inventory-summary-right {
    grid-template-columns: 1fr;
  }
}

/* Filas con stock por debajo del mínimo */
.inventory-low-stock {
  background: rgba(127, 29, 29, 0.3);
}

.inventory-low-stock td {
  border-color: rgba(248, 113, 113, 0.8);
}
/* LOGIN BOX - Azul oscuro que combina con el fondo */
.login-container {
  width: 420px;
  margin: 0 auto;
  margin-top: 120px;
  padding: 28px 32px;

  background: rgba(5, 35, 90, 0.55); /* Azul profundo transparente */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.35);
}
/* POSICIÓN FINAL DEL LOGIN (debajo, en Florida) */
.login-container {
  margin-top: 260px !important;   /* AJUSTAR ALTURA */
  transform: translateX(2px) !important; /* MOVERLO A LA DERECHA */
}

/* ===========================
   MAPA USA + CAMIONES (NUEVO)
=========================== */

#usa-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mapa de USA con sombra animada suave */
#usa-map-overlay::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  background-image: url("usa-map.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.32;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.55));
  animation: usaSoftPulse 10s ease-in-out infinite;
}

/* Animación de respiración suave del mapa */
@keyframes usaSoftPulse {
  0% {
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
  }
  50% {
    filter: drop-shadow(0 22px 50px rgba(15, 23, 42, 0.85));
  }
  100% {
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
  }
}

/* ===========================
   MARCADOR ALL TRUCKS (PUNTO VERDE)
=========================== */

.ats-marker {
  position: absolute;
 
  top: 75%;    /* un poco más abajo en la peninsula */
  left: 65%;   /* un poquito más a la izquierda */
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
}




/* Punto verde principal en Florida (más pro) */
.ats-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle,
    #4ade80 0%,
    #22c55e 40%,
    #15803d 100%
  );
  box-shadow:
    0 0 8px rgba(74, 222, 128, 0.9),
    0 0 20px rgba(34, 197, 94, 0.95),
    0 0 40px rgba(22, 163, 74, 0.9);
  animation: atsCorePulse 1.8s ease-in-out infinite;
}

/* Halo tipo radar que se expande */
.ats-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle,
    rgba(74, 222, 128, 0.6) 0%,
    rgba(74, 222, 128, 0.15) 35%,
    rgba(74, 222, 128, 0) 70%
  );
  transform: scale(1);
  opacity: 0.8;
  animation: atsRadarPing 2.4s ease-out infinite;
}

/* Pulso interno */
@keyframes atsCorePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 6px rgba(74, 222, 128, 0.8),
      0 0 16px rgba(34, 197, 94, 0.9);
  }
  50% {
    transform: scale(1.15);
    box-shadow:
      0 0 10px rgba(74, 222, 128, 1),
      0 0 26px rgba(34, 197, 94, 1);
  }
}

/* Anillo que sale como radar */
@keyframes atsRadarPing {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}


.ats-label {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(34, 197, 94, 0.8);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

@keyframes atsPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.25);
  }
}

/* ===========================
   CAMIONES
=========================== */

.truck-icon {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 26px;
}

.truck-emoji {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.85));
}

.truck-label {
  margin-top: 4px;
  font-size: 13px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  color: white;
  backdrop-filter: blur(4px);
  font-weight: 600;
}

/* Ubicaciones en el mapa */


/* Brillo especial para Florida */
.truck-florida .truck-emoji {
  animation: glowTruck 1.8s ease-in-out infinite;
}

@keyframes glowTruck {
  0% { filter: drop-shadow(0 0 2px #fff); }
  50% { filter: drop-shadow(0 0 12px #00eaff); }
  100% { filter: drop-shadow(0 0 2px #fff); }
}
/* POSICIÓN Y GLOW DEL LOGIN - versión PRO */
.login-container {
  margin-top: 45px !important;            /* posición que ya dejaste */
  transform: translateX(-180px) !important;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.7),
    0 0 40px rgba(56, 189, 248, 0.35);    /* halo azul pro */
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* ===========================
   TYPEWRITER - ALL TRUCKS
=========================== */

.typewriter-banner {
  position: absolute;
  top: 18px;             /* si lo quieres mas arriba/abajo, ajusta este valor */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.typewriter {
  font-size: 1.05rem;
  border-right: 2px solid #22c55e;
  padding-right: 6px;
  white-space: nowrap;
  overflow: hidden;
  color: #e5e7eb;
  animation: caret 0.8s steps(1) infinite;
}

@keyframes caret {
  50% {
    border-color: transparent;
  }
}

/* ===========================
   SPARKLES SUAVES DE FONDO
=========================== */

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0%, rgba(248, 250, 252, 0.2) 60%, transparent 100%);
  box-shadow:
    0 0 4px rgba(248, 250, 252, 0.9),
    0 0 12px rgba(148, 163, 184, 0.8);
  opacity: 0.7;
  pointer-events: none;
  animation: sparkFloat 10s linear infinite;
}

/* Posiciones repartidas por el mapa */
.spark-1 { top: 22%; left: 30%; animation-delay: 0s; }
.spark-2 { top: 30%; left: 50%; animation-delay: 2s; }
.spark-3 { top: 18%; left: 65%; animation-delay: 4s; }
.spark-4 { top: 55%; left: 40%; animation-delay: 1s; }
.spark-5 { top: 62%; left: 25%; animation-delay: 3s; }
.spark-6 { top: 45%; left: 72%; animation-delay: 5s; }
/* Sparkles extras */
.spark-7  { top: 12%; left: 8%; }
.spark-8  { top: 18%; left: 22%; }
.spark-9  { top: 9%;  left: 38%; }
.spark-10 { top: 25%; left: 44%; }
.spark-11 { top: 14%; left: 62%; }
.spark-12 { top: 6%;  left: 72%; }
.spark-13 { top: 22%; left: 83%; }

.spark-14 { top: 38%; left: 5%; }
.spark-15 { top: 46%; left: 18%; }
.spark-16 { top: 33%; left: 29%; }
.spark-17 { top: 41%; left: 52%; }
.spark-18 { top: 36%; left: 70%; }
.spark-19 { top: 48%; left: 88%; }

.spark-20 { top: 63%; left: 10%; }
.spark-21 { top: 58%; left: 27%; }
.spark-22 { top: 72%; left: 37%; }
.spark-23 { top: 66%; left: 55%; }
.spark-24 { top: 75%; left: 67%; }
.spark-25 { top: 61%; left: 82%; }
.spark-26 { top: 78%; left: 92%; }

/* Animación suave */
.spark-7, .spark-8, .spark-9, .spark-10, .spark-11, .spark-12, .spark-13,
.spark-14, .spark-15, .spark-16, .spark-17, .spark-18, .spark-19,
.spark-20, .spark-21, .spark-22, .spark-23, .spark-24, .spark-25, .spark-26 {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  position: absolute;
  animation: sparklePulse 4s infinite ease-in-out;
  filter: drop-shadow(0 0 4px white);
}


@keyframes sparkFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.0;
  }
  10% {
    opacity: 0.8;
  }
  60% {
    transform: translateY(-40px) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translateY(-70px) scale(1.5);
    opacity: 0;
  }
}
/* ===========================
   BURST DE PALABRAS MECANICAS EN FLORIDA
=========================== */

.ats-burst {
  position: absolute;
  top: -6px;                /* ajusta si quieres las palabras un poco mas arriba/abajo */
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #e5e7eb;
  text-shadow:
    0 0 6px rgba(15, 23, 42, 0.9),
    0 0 12px rgba(15, 23, 42, 0.9);
}

/* Palabras individuales que salen del punto */
.burst-word {
  position: absolute;
  opacity: 0;
  white-space: nowrap;
  animation: wordBurst 4.5s ease-out infinite;
}

/* Usamos variables CSS para direccion del movimiento */
.burst-word.w1 { --dx: -70px; --dy: -40px; animation-delay: 0s;   }
.burst-word.w2 { --dx: -40px; --dy: -70px; animation-delay: 0.4s; }
.burst-word.w3 { --dx:  40px; --dy: -70px; animation-delay: 0.8s; }
.burst-word.w4 { --dx:  75px; --dy: -30px; animation-delay: 1.2s; }
.burst-word.w5 { --dx:  80px; --dy:  25px; animation-delay: 1.6s; }
.burst-word.w6 { --dx:  40px; --dy:  60px; animation-delay: 2.0s; }
.burst-word.w7 { --dx: -40px; --dy:  60px; animation-delay: 2.4s; }
.burst-word.w8 { --dx: -80px; --dy:  20px; animation-delay: 2.8s; }

@keyframes wordBurst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.35);
  }
  10% {
    opacity: 1;
  }
  55% {
    opacity: 1;
    transform: translate(var(--dx), var(--dy)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) * 1.3)) scale(1.05);
  }
}
/* ---- Mechanic portal layout ---- */

.mech-portal {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 20px;
}

.mech-wo-list {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 12px;
}

.mech-wo-list-inner {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 480px;
  overflow-y: auto;
}

.mech-wo-card {
  width: 100%;
  text-align: left;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.95);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mech-wo-card:hover {
  border-color: rgba(59, 130, 246, 0.9);
}

.mech-wo-card.active {
  border-color: rgba(59, 130, 246, 1);
  background: radial-gradient(circle at top left, rgba(59,130,246,0.3), transparent 55%),
              rgba(15, 23, 42, 0.98);
}

.mech-wo-card-title {
  font-weight: 600;
}

.mech-wo-card-sub {
  opacity: 0.8;
}

.mech-wo-card-meta {
  font-size: 0.75rem;
  opacity: 0.75;
}

.mech-wo-detail {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 16px;
}

.mech-wo-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.mech-wo-form {
  margin-bottom: 12px;
}

.mech-empty {
  font-size: 0.85rem;
  opacity: 0.8;
  padding: 8px 4px;
}

/* ---- Timeline estilo scroll (basado en timeline.html) ---- */

.mech-timeline-wrapper {
  margin-top: 8px;
  border-top: 1px dashed rgba(55, 65, 81, 0.9);
  padding-top: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.mech-timeline {
  position: relative;
  padding-left: 56px;
}

.mech-timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #22c55e, #0ea5e9);
  opacity: 0.4;
}

.mech-event {
  position: relative;
  padding-left: 4px;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.mech-event.show {
  opacity: 1;
  transform: translateY(0);
}

.mech-dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.25);
}

.mech-event h3 {
  margin: 0 0 2px;
  font-size: 0.9rem;
}

.mech-event span {
  font-size: 0.75rem;
  opacity: 0.7;
}

.mech-event p {
  margin: 2px 0 0;
  font-size: 0.8rem;
}

.mech-event-foot {
  margin-top: 2px;
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Badge para el rol de mecánico en el top bar */
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
  margin-right: 8px;
}

@media (max-width: 900px) {
  .mech-portal {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   FIX CONTRASTE - TEXTO BLANCO BRILLANTE EN EL MECANIC PORTAL
   ============================================================ */

/* Texto general dentro del portal */
.mech-portal,
.mech-portal * {
  color: #ffffff !important;
}

/* Fondo ligeramente más claro para formularios */
.mech-wo-detail,
.mech-wo-list {
  background: rgba(10, 20, 35, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Inputs y selects */
.mech-portal input,
.mech-portal select,
.mech-portal textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.mech-portal input::placeholder,
.mech-portal textarea::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* Títulos */
.mech-wo-card-title,
.section-title {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Etiquetas de formulario */
.mech-wo-form label {
  color: #e2e8f0 !important;
}

/* Timeline */
.mech-event h3,
.mech-event p,
.mech-event-foot,
.mech-event span {
  color: #ffffff !important;
}

/* Timeline dots */
.mech-dot {
  background: #00e676 !important;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.9) !important;
}

/* Línea vertical del timeline */
.mech-timeline-line {
  background: linear-gradient(to bottom, #00e5ff, #00e676) !important;
}

/* Tarjetas en la columna izquierda */
.mech-wo-card {
  background: rgba(12, 22, 39, 0.9) !important;
  color: #ffffff !important;
}

.mech-wo-card.active {
  border-color: #4fd1ff !important;
  background: rgba(20, 35, 60, 0.95) !important;
}

.mech-wo-card-sub,
.mech-wo-card-meta {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Rol badge */
.role-badge {
  background: rgba(34, 197, 94, 0.18) !important;
  border: 1px solid rgba(34, 197, 94, 0.9) !important;
  color: #b5ffd3 !important;
}
/* ============================================================
   MECHANIC PORTAL - NEON BLUE WORKSHOP THEME
   ============================================================ */

.mech-portal {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 20px;
}

/* Texto general blanco brillante */
.mech-portal,
.mech-portal * {
  color: #f9fbff;
}

/* Columnas base */
.mech-wo-list,
.mech-wo-detail {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 60%),
              rgba(4, 10, 25, 0.98);
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.9);
  padding: 14px;
}

/* Lista izquierda */
.mech-wo-list-inner {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 480px;
  overflow-y: auto;
}

.mech-wo-card {
  width: 100%;
  text-align: left;
  border-radius: 11px;
  border: 1px solid transparent;
  background: rgba(10, 20, 40, 0.95);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}

.mech-wo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.9);
}

.mech-wo-card.active {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(96, 165, 250, 1);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.4), transparent 55%),
              rgba(7, 16, 32, 0.98);
  box-shadow: 0 0 22px rgba(96, 165, 250, 0.8);
}

.mech-wo-card-title {
  font-weight: 600;
}

.mech-wo-card-sub {
  opacity: 0.8;
}

.mech-wo-card-meta {
  font-size: 0.78rem;
  opacity: 0.9;
}

/* Columna derecha */
.mech-wo-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.mech-wo-form {
  margin-bottom: 12px;
}

.mech-empty {
  font-size: 0.85rem;
  opacity: 0.8;
  padding: 8px 4px;
}

/* Inputs, selects y textareas – tema oscuro */
.mech-portal input,
.mech-portal select,
.mech-portal textarea {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #f9fafb;
  padding: 6px 10px;
  font-size: 0.85rem;
  outline: none;
}

.mech-portal input:focus,
.mech-portal select:focus,
.mech-portal textarea:focus {
  border-color: rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.8);
}

.mech-portal input::placeholder,
.mech-portal textarea::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

/* Arreglo de SELECT (status) oscuro + opciones oscuras */
.mech-portal select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #38bdf8 50%),
                    linear-gradient(135deg, #38bdf8 50%, transparent 50%);
  background-position:
      calc(100% - 16px) 50%,
      calc(100% - 10px) 50%;
  background-size: 6px 6px,
                   6px 6px;
  background-repeat: no-repeat;
}

.mech-portal select option {
  background: #020617;
  color: #f9fafb;
}

/* Timeline wrapper */
.mech-timeline-wrapper {
  margin-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
  padding-top: 12px;
  max-height: 320px;
  overflow-y: auto;
}

/* Timeline base */
.mech-timeline {
  position: relative;
  padding-left: 56px;
}

.mech-timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.95),
    rgba(34, 197, 94, 0.95)
  );
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  opacity: 0.7;
}

/* Eventos del timeline: scroll reveal */
.mech-event {
  position: relative;
  padding-left: 4px;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.35s ease-out,
    transform 0.35s ease-out;
}

.mech-event.show {
  opacity: 1;
  transform: translateY(0);
}

.mech-dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow:
    0 0 0 5px rgba(34, 197, 94, 0.3),
    0 0 18px rgba(34, 197, 94, 0.9);
}

.mech-event h3 {
  margin: 0 0 2px;
  font-size: 0.9rem;
}

.mech-event span {
  font-size: 0.75rem;
  opacity: 0.75;
}

.mech-event p {
  margin: 2px 0 0;
  font-size: 0.8rem;
}

.mech-event-foot {
  margin-top: 2px;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Badge para el rol de mecánico en el top bar */
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.35), transparent 60%);
  border: 1px solid rgba(34, 197, 94, 0.9);
  color: #bbf7d0;
  margin-right: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .mech-portal {
    grid-template-columns: 1fr;
  }
}
/* --------------------------------------------------
   Login buttons row
   -------------------------------------------------- */
.login-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-start;
}

/* --------------------------------------------------
   Customer portal
   -------------------------------------------------- */
.customer-portal {
  max-width: 900px;
  margin: 40px auto;
}

.customer-form-card {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 55%),
              rgba(15, 23, 42, 0.98);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.85);
  padding: 18px 22px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.95);
}

.customer-form-card h2 {
  margin: 0 0 4px;
}

.customer-form-card p {
  margin: 0 0 14px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.customer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.customer-form-grid .form-group-full {
  grid-column: 1 / -1;
}

.customer-portal input,
.customer-portal textarea {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #f9fafb;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.customer-portal input:focus,
.customer-portal textarea:focus {
  border-color: rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.7);
  outline: none;
}

.customer-btn-row {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.customer-message {
  margin-top: 8px;
  font-size: 0.8rem;
  opacity: 0.85;
}

.customer-message-success {
  color: #4ade80;
}

.role-badge.customer-role {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.35), transparent 60%);
  border-color: rgba(59, 130, 246, 0.9);
  color: #bfdbfe;
}

@media (max-width: 900px) {
  .customer-form-grid {
    grid-template-columns: 1fr;
  }
}
.ats-live-timeline-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: radial-gradient(circle at top left,
    rgba(56,189,248,0.14),
    rgba(15,23,42,0.9));
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: 0 18px 45px rgba(15,23,42,0.6);
  max-height: 340px;
  display: flex;
  flex-direction: column;
}

.ats-live-timeline-header {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ats-live-timeline-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.ats-live-timeline-empty {
  font-size: 0.85rem;
  opacity: 0.75;
}

.ats-live-tl-item {
  position: relative;
  padding: 8px 0 8px 10px;
  border-left: 1px solid rgba(148,163,184,0.4);
  margin-bottom: 6px;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.ats-live-tl-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #22c55e 0, #16a34a 55%, #052e16 100%);
  box-shadow: 0 0 12px rgba(34,197,94,0.9);
}

.ats-live-tl-show {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.ats-live-tl-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ats-live-tl-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37,99,235,0.2);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,0.6);
}

.ats-live-tl-time {
  font-size: 0.75rem;
  opacity: 0.7;
}

.ats-live-tl-main {
  font-size: 0.8rem;
}

.ats-live-tl-title {
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 2px;
}

.ats-live-tl-note {
  opacity: 0.8;
  font-size: 0.78rem;
}
/* Layout principal del login con timeline al costado */
.login-main-layout {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 64px;
  pointer-events: none; /* dejamos que el canvas siga recibiendo hover */
}

.login-main-left,
.login-main-right {
  pointer-events: auto; /* pero los paneles sí son clickeables */
}

.login-main-left {
  flex: 0 0 420px;
}

.login-main-right {
  flex: 0 0 360px;
}

/* Card del timeline */
.login-live-timeline-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: radial-gradient(circle at top left,
    rgba(56,189,248,0.25),
    rgba(15,23,42,0.92));
  border: 1px solid rgba(148,163,184,0.65);
  box-shadow: 0 24px 60px rgba(15,23,42,0.85);
  max-height: 360px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(18px);
}

.login-live-timeline-header {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-live-timeline-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;

  /* 🔽 Ocultar scrollbar en todos los navegadores pero mantener el scroll */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge legacy */
}

.login-live-timeline-body::-webkit-scrollbar {
  width: 0px;                     /* Chrome, Edge, Safari */
  height: 0px;
}


.login-live-timeline-empty {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Items */
.login-live-tl-item {
  position: relative;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(15,23,42,0.88);
  box-shadow: 0 12px 28px rgba(15,23,42,0.85);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

/* pequeño punto glow arriba a la izquierda, pero sin linea */
.login-live-tl-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #22c55e 0, #16a34a 55%, #052e16 100%);
  box-shadow: 0 0 10px rgba(34,197,94,0.9);
}


.login-live-tl-show {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.login-live-tl-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.login-live-tl-status {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37,99,235,0.35);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,0.7);
}

.login-live-tl-time {
  font-size: 0.72rem;
  opacity: 0.8;
}

.login-live-tl-main {
  font-size: 0.78rem;
}

.login-live-tl-title {
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 1px;
}

.login-live-tl-note {
  opacity: 0.8;
  font-size: 0.75rem;
}
.login-new-layout {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;   /* centrar el login */
  align-items: center;       /* centrar el login */
  z-index: 30;               /* encima del canvas de fondo */
  pointer-events: auto;      /* MUY IMPORTANTE: permitir clics */
}

.login-side-timeline {
  position: absolute;
  left: 30px;          /* separación del borde */
  top: 0;
  bottom: 0;
  width: 360px;        /* ancho del panel */
  display: flex;
  align-items: flex-start;
  padding-top: 80px;   /* baja un poco para estética */
  pointer-events: auto;
}
.login-side-card {
  width: 100%;
  height: calc(100% - 100px);
  padding: 16px 20px;
  border-radius: 22px;

  background: radial-gradient(circle at top left,
    rgba(56,189,248,0.25),
    rgba(15,23,42,0.94));
  background-origin: border-box;

  border: 1px solid rgba(125,211,252,0.85); /* borde neon sutil */
  box-shadow:
    0 0 25px rgba(56,189,248,0.55),        /* glow turquesa */
    0 20px 60px rgba(15,23,42,0.9);        /* sombra profunda */

  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;

  /* Slide-in + fade */
  opacity: 0;
  transform: translateX(-30px) scale(0.98);
  animation: loginSideSlideIn 0.8s ease-out forwards;
  animation-delay: 0.15s;
}
@keyframes loginSideSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-40px) scale(0.96);
    box-shadow:
      0 0 0 rgba(56,189,248,0),
      0 10px 30px rgba(15,23,42,0.6);
  }
  60% {
    opacity: 1;
    transform: translateX(0) scale(1.0);
    box-shadow:
      0 0 22px rgba(56,189,248,0.65),
      0 24px 60px rgba(15,23,42,0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1.0);
    box-shadow:
      0 0 18px rgba(56,189,248,0.5),
      0 22px 50px rgba(15,23,42,0.9);
  }
}
.login-side-card {
  /* lo que ya tienes... */
  display: flex;
  flex-direction: column;
}

.login-live-timeline-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.login-live-timeline-body::-webkit-scrollbar {
  width: 0;
}

.login-live-timeline-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148,163,184,0.35);
  font-size: 0.75rem;
  line-height: 1.3;
  color: #e5e7eb;
  opacity: 0.85;
}


.login-track-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  pointer-events: auto;
}

.login-track-card {
  min-width: 360px;
  max-width: 480px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow: 0 18px 40px rgba(15,23,42,0.95);
  color: #e5e7eb;
  font-size: 0.8rem;
}

.login-track-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.login-track-desc {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.login-track-form {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.login-track-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: rgba(15,23,42,0.9);
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.login-track-input:focus {
  outline: none;
  border-color: rgba(94,234,212,0.9);
  box-shadow: 0 0 0 1px rgba(94,234,212,0.6);
}

.login-track-button {
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: white;
}

.login-track-button:disabled {
  opacity: 0.7;
  cursor: default;
}

.login-track-result {
  margin-top: 6px;
  font-size: 0.78rem;
}

.login-track-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.login-track-row span:first-child {
  opacity: 0.7;
}

.login-track-row strong {
  font-weight: 600;
}

.login-track-note {
  margin-top: 4px;
  flex-direction: column;
  align-items: flex-start;
}
.login-shop-panel {
  position: absolute;
  right: 30px;
  bottom: 40px;
  pointer-events: auto;
}

.login-shop-card {
  min-width: 260px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(15,23,42,0.94);
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow: 0 18px 40px rgba(15,23,42,0.95);
  color: #e5e7eb;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-shop-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.login-shop-lines div {
  line-height: 1.3;
}
.login-shop-maps-link {
  display: block;
  margin-top: 8px;
  color: #8ac6ff;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.login-shop-maps-link:hover {
  color: #b3deff;
}
/* Oculta cualquier imagen dentro del cuadro de info del taller */
.login-shop-panel img {
  display: none !important;
}

/* Si hay un enlace "Open in Google Maps" lo ocultamos también */
.login-shop-panel a {
  display: none !important;
}
/* =========================================================
   LAYOUT PARA IPAD / TABLET (SIN ACHICAR NADA)
   ========================================================= */
@media (max-width: 1200px) {
  /* Permitimos scroll vertical por si la altura no alcanza */
  body {
    overflow-y: auto;
  }

  /* El contenedor principal pasa a columna */
  .login-new-layout {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px;
  }

  /* Todos los paneles que antes eran absolutos ahora son bloques normales */
  .login-side-timeline,
  .login-shop-panel,
  .login-track-panel {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }

  /* El cuadro de login mantiene tamaño, solo se centra y sin transform */
  .login-container {
    position: static;
    margin: 24px auto 8px !important;
    transform: none !important;
    max-width: 470px;   /* mismo tamaño visual, solo limite de ancho */
  }

  /* Si existe alguna card dentro de esos paneles, que aproveche el ancho */
  .login-side-card,
  .login-shop-card,
  .login-track-card {
    width: 100%;
    max-width: 100%;
  }
}
/* Orden en iPad: LOGIN primero, luego LIVE WORK ORDERS, luego SHOP INFO */
@media (max-width: 1200px) {
  /* LOGIN primero */
  .login-container {
    order: 1;
  }

  /* Timeline (LIVE WORK ORDERS FEED) debajo del login */
  .login-side-timeline {
    order: 2;
  }

  /* Info del taller / tracking al final */
  .login-shop-panel,
  .login-track-panel {
    order: 3;
  }
}

/* ===========================
   AJUSTES LOGIN + LAYOUT EN IPAD / TABLET
   =========================== */

/* Login más pequeño por defecto */
.login-container {
  max-width: 360px;
  width: 100%;
  padding: 22px 24px;
}

/* Layout base del login (alineado pero sin romper nada) */
.login-main-layout {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 64px;
  pointer-events: none;
}

.login-main-left,
.login-main-right {
  pointer-events: auto;
}

/* Para pantallas tipo iPad / laptop pequeña */
@media (max-width: 1024px) {
  .login-main-layout {
    flex-direction: column;        /* uno debajo del otro */
    align-items: center;
    justify-content: center;
    padding: 24px 20px;           /* menos padding para que no se corte */
    gap: 20px;
  }

  /* Paneles ocupan el ancho disponible */
  .login-main-left,
  .login-main-right {
    flex: 0 0 auto;
    width: 100%;
    max-width: 480px;
  }

  /* Timeline arriba o abajo (aquí lo coloco arriba) */
  .login-main-right {
    order: -1;
  }

  /* Login más compacto en tablet y centrado */
  .login-container {
    max-width: 320px;
    margin: 0 auto;
    padding: 20px 22px;
    margin-top: 0 !important;
    transform: none !important;   /* quita el desplazamiento raro de Florida en iPad */
  }
}

/* Para móviles / pantallas bien pequeñas */
@media (max-width: 768px) {
  .login-main-layout {
    padding: 16px 12px;
    gap: 16px;
  }

  .login-container {
    max-width: 300px;
    padding: 18px 20px;
  }

  .typewriter-banner {
    top: 8px;
    font-size: 0.9rem;
  }
}
/* ============================================
   LOGIN TODAVÍA MÁS PEQUEÑO Y MÁS A LA DERECHA
   PARA TABLET / IPAD
   ============================================ */

@media (max-width: 1024px) {
  .login-container {
    max-width: 260px !important;   /* más pequeño */
    width: 100%;
    padding: 16px 18px !important; /* compacta aún más */
    margin-left: auto !important;  /* lo empuja a la derecha */
    margin-right: 0 !important;
    transform: none !important;
  }

  /* El layout sigue siendo vertical, pero alineado un poco hacia la derecha */
  .login-main-layout {
    align-items: flex-end !important;  /* empuja todo a la derecha */
    padding-right: 30px !important;    /* ajusta la posición */
    padding-left: 10px !important;
  }

  /* Paneles laterales centrados debajo */
  .login-main-left,
  .login-main-right {
    width: 100%;
    max-width: 500px;
  }
}

/* En pantallas más pequeñas aún (modo portrait en iPad) */
@media (max-width: 820px) {
  .login-container {
    max-width: 240px !important;   /* incluso más pequeño */
    padding: 14px 16px !important;
    margin-left: auto !important;
    margin-right: 10px !important;  /* lo mueve más a la derecha */
  }

  .login-main-layout {
    padding-right: 40px !important; 
  }
}
/* ============================================================
   LOGIN MÁS PEQUEÑO Y DESPLAZADO A LA DERECHA (IPAD / TABLET)
   ============================================================ */

@media (max-width: 1024px) {
  .login-container {
    max-width: 230px !important;      /* 🔥 más pequeño */
    padding: 14px 16px !important;     /* compacto */
    margin-left: auto !important;      /* empuja hacia la derecha */
    margin-right: 30px !important;     /* lo mueve AÚN más a la derecha */
    transform: none !important;
  }

  .login-main-layout {
    padding-right: 40px !important;    /* ajusta grupo completo un poco a la derecha */
    padding-left: 10px !important;
  }
}

/* Versión más agresiva para iPad vertical */
@media (max-width: 820px) {
  .login-container {
    max-width: 210px !important;      /* 🔥 aún más pequeño */
    padding: 12px 14px !important;
    margin-right: 35px !important;    /* corre más a la derecha */
  }

  .login-main-layout {
    padding-right: 50px !important;   /* desplaza todo el bloque un poco más */
  }
}
/* ============================================================
   LOGIN MÁS PEQUEÑO EN PC (DESKTOP) — GLOBAL
   ============================================================ */

.login-container {
  max-width: 300px !important;     /* 🔥 más pequeño en PC */
  padding: 18px 20px !important;   /* compacto pero elegante */
  transform: none !important;
  margin: 0 auto;                  /* centrado en desktop */
}

/* ============================================================
   LOGIN MÁS PEQUEÑO Y CORRIDO A LA DERECHA EN TABLET/IPAD
   ============================================================ */

@media (max-width: 1024px) {
  .login-container {
    max-width: 230px !important;     /* pequeño en iPad landscape */
    padding: 14px 16px !important;
    margin-left: auto !important;     /* corre hacia la derecha */
    margin-right: 30px !important;
  }

  .login-main-layout {
    padding-right: 40px !important;
    padding-left: 10px !important;
  }
}

@media (max-width: 820px) {
  .login-container {
    max-width: 210px !important;     /* aún más pequeño en iPad portrait */
    padding: 12px 14px !important;
    margin-right: 35px !important;    /* más a la derecha */
  }

  .login-main-layout {
    padding-right: 50px !important;
  }
}
/* ============================================================
   IPAD / TABLET — LOGIN PRIMERO, LIVE WORK ORDERS DESPUÉS
   ============================================================ */

@media (max-width: 1024px) {

  /* El layout vertical para tablet */
  .login-main-layout {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }

  /* LOGIN VA PRIMERO */
  .login-container {
    order: 1 !important;
  }

  /* EL PANEL LIVE WORKORDER VA DESPUÉS */
  .login-main-left {
    order: 2 !important;
  }

  /* El panel de la derecha (shop info, etc.) queda al final */
  .login-main-right {
    order: 3 !important;
  }
}
/* Layout general del login (ya debes tener algo similar) */
.login-layout {
  display: flex;
  gap: 24px;
}

/* En pantallas pequeñas (iPad vertical, teléfono), apilar y poner login primero */
@media (max-width: 1024px) {
  .login-layout {
    flex-direction: column;
  }

  /* Asegura que el LOGIN se vea primero */
  .login-main {
    order: 1;
  }

  /* Y el FEED debajo del login */
  .login-feed {
    order: 2;
  }
}
/* ===========================
   IPAD / TABLET: LOGIN PRIMERO
   =========================== */
@media (max-width: 1024px) {

  /* Permitimos scroll vertical en tablet */
  body {
    overflow-y: auto !important;
  }

  /* El contenedor general del login y los widgets */
  .login-new-layout {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;   /* TODO EN COLUMNA */
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 16px 12px !important;
    gap: 12px !important;
  }

  /* LOGIN (centro) → PRIMERO */
  .login-center-panel {
    order: 1;
    display: flex;
    justify-content: center;
  }

  /* Cuadro de login, más pequeño y centrado */
  .login-container {
    max-width: 280px !important;
    width: 100% !important;
    margin: 0 auto 8px auto !important;
    transform: none !important;   /* quita el corrimiento a la izquierda */
  }

  /* LIVE WORK ORDERS FEED → SEGUNDO */
  .login-side-timeline {
    order: 2;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Otros paneles debajo */
  .login-shop-panel {
    order: 3;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .login-track-panel {
    order: 4;
    position: static !important;
    width: 100% !important;
    margin: 8px 0 0 0 !important;
    transform: none !important;
  }
}
