/* 1. VARIABLES (SIEMPRE PRIMERO) */
@import "./base/variables.css";

/* 2. RESET */
@import "./base/reset.css";

/* 3. BASE GLOBAL (tipografías, body, etc) */
@import "./base/animations.css";

/* 4. LAYOUT (estructura) */
@import "./layout/header.css?v=20260705-passenger-header-up";
@import "./layout/containers.css";
@import "./layout/grid.css";
@import "./layout/app-layout.css";

/* 5. COMPONENTES (botones, cards, etc) */
@import "./components/cards.css";
@import "./components/cuentas.css?v=20260607-mobile-pages-2x2";
@import "./components/home-promos.css?v=20260820-promo-bg-admin";
@import "./components/modals.css";
@import "./components/overlays.css";
@import "./components/forms.css";
@import "./components/ripple.css";
@import "./components/search.css";

/* 6. PÁGINAS (LO MÁS ESPECÍFICO) */
@import "./pages/driver.css";
@import "./pages/servicios.css";
@import "./pages/actividad.css?v=20260605-rating-premium";
@import "./pages/detalle-viaje.css?v=20260605-rating-premium";
@import "./components/trip-finished.css?v=20260629-email-receipt";
@import "./pages/pagos.css?v=20260607-payments-mobile";
@import "./pages/configuracion.css?v=20260607-config-functional";
@import "./pages/ganancias.css?v=20260605-earnings-page";
@import "./pages/seguridad.css?v=20260607-support-grid-fix";
@import "./pages/ayuda.css?v=20260712-assistance-footer-clearance";
@import "./pages/soporte.css?v=20260607-support-grid-fix";
@import "./pages/recarga.css?v=20260602-recarga-premium";
@import "./pages/recibo.css";
@import "./pages/legal.css?v=20260607-legal-mobile-grid";
@import "./pages/noticias.css?v=20260629-news-push";

/* 7. 🔥 OVERRIDES GLOBALES (ESTO TE FALTA) */
@import "./components/map-motion.css?v=20260710-route-camera";
@import "./components/arrival.css?v=20260628-dark-route-locked";

.leaflet-marker-icon.bego-map-icon,
.bego-map-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.22));
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.bego-map-icon-moto,
.bego-map-icon-car {
  filter: drop-shadow(0 8px 10px rgba(37, 99, 235, 0.28));
  transition: none;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.leaflet-marker-icon.bego-map-icon-passenger-dot,
.bego-map-icon-passenger-dot {
  overflow: visible !important;
  filter: none !important;
  width: 56px !important;
  height: 56px !important;
}

.bego-passenger-location {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.bego-passenger-location__beam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 58px;
  transform: translate(-50%, -96%) rotate(-32deg);
  transform-origin: 50% 100%;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.34) 0%,
    rgba(37, 99, 235, 0.2) 44%,
    rgba(37, 99, 235, 0) 100%
  );
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: 0.86;
  filter: blur(0.2px);
}

.bego-passenger-location__accuracy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.12) 48%, rgba(37, 99, 235, 0) 72%);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.bego-passenger-location__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.bego-passenger-location__core {
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #1d8cff;
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(29, 140, 255, 0.18);
}

.leaflet-marker-icon.bego-map-icon-passenger-dot,
.bego-map-icon-passenger-dot {
  width: 20px !important;
  height: 20px !important;
}

.leaflet-marker-icon.bego-map-icon-destination,
.bego-map-icon-destination {
  width: 20px !important;
  height: 20px !important;
  filter: none !important;
}

.bego-route-point {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bego-route-point-origin {
  border-radius: 50%;
  background: #f8fafc;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.34),
    0 0 0 2px rgba(255, 255, 255, 0.72);
}

.bego-route-point-destination {
  border-radius: 2px;
  background: #f8fafc;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.34),
    0 0 0 2px rgba(255, 255, 255, 0.72);
}

.bego-route-point-stopover {
  border-radius: 50%;
  background: #f8fafc;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.34),
    0 0 0 2px rgba(255, 255, 255, 0.72);
}

.bego-route-point__core {
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: #111113;
}

.leaflet-tooltip.bego-route-label {
  max-width: min(78vw, 360px);
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  color: #f8fafc;
  background: rgba(17, 17, 19, 0.94);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.58);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.leaflet-tooltip.bego-route-label::before {
  border: 0;
}

.leaflet-tooltip.bego-route-label-origin {
  text-align: left;
}

.leaflet-tooltip.bego-route-label-destination {
  text-align: right;
}

.btn-pago.btn-pago-indisponible {
  opacity: 0.62;
  cursor: pointer;
  border: 1px dashed rgba(148, 163, 184, 0.22);
}

.btn-pago.btn-pago-indisponible::before {
  content: "Bientot";
  position: absolute;
  top: 5px;
  right: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.22);
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 900;
}

.btn-pago.btn-pago-indisponible:hover,
.btn-pago.btn-pago-indisponible:focus-visible {
  opacity: 0.78;
  border-color: rgba(96, 165, 250, 0.36);
}

.btn-pago-wallet {
  min-height: 0;
  flex-direction: row;
  gap: 10px;
  isolation: isolate;
  padding-right: 34px;
}

.btn-pago-wallet[data-wallet-discount="active"] {
  border: 1px solid rgba(96, 165, 250, 0.28);
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.38), transparent 36%),
    var(--bg-card);
}

.btn-pago-wallet[data-wallet-discount="active"]::before {
  content: attr(data-wallet-badge);
  position: absolute;
  top: 5px;
  right: 7px;
  z-index: 2;
  max-width: 42px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.24);
  border: 1px solid rgba(147, 197, 253, 0.32);
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}

.btn-pago-wallet .btn-pago-main {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  line-height: 1.15;
  text-align: center;
}

.wallet-discount-badge {
  display: none;
}

.btn-pago-wallet.activo[data-wallet-discount="active"]::before {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

