/* =========================================================================
   DOMINET S.A.S. — MOTOPUTUMAYO & D&N TRANSPORTE
   MASTER 3D METALLIC & KINETIC GLASS DESIGN SYSTEM
   Ultra-Professional Mobile-First UI · Liquid Chrome · Titanium · 24K Gold · Emerald
   Optimized for: Smartphones (Android / iPhone), Outdoor Legibility, Real GPS Operations
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700;800&display=swap');

:root {
  /* Color Canvas */
  --bg-main: #060911;
  --bg-darker: #020408;
  --surface-base: rgba(10, 16, 29, 0.88);
  --surface-elevated: rgba(15, 23, 42, 0.92);
  --surface-card: rgba(13, 20, 36, 0.85);
  --surface-metal: rgba(22, 33, 56, 0.75);

  /* Metallic Gradients & Shimmer */
  --metal-chrome: linear-gradient(135deg, #ffffff 0%, #e2e8f0 22%, #94a3b8 48%, #cbd5e1 75%, #ffffff 100%);
  --metal-chrome-dark: linear-gradient(135deg, #475569 0%, #64748b 25%, #94a3b8 50%, #475569 75%, #334155 100%);
  --metal-titanium: linear-gradient(135deg, #1e293b 0%, #334155 30%, #475569 50%, #334155 70%, #0f172a 100%);
  --metal-titanium-dark: linear-gradient(145deg, #090e1a 0%, #131c31 45%, #0d1527 80%, #050811 100%);
  --metal-gold-vip: linear-gradient(135deg, #b45309 0%, #f59e0b 25%, #fef08a 50%, #d97706 75%, #92400e 100%);
  --metal-emerald-pulse: linear-gradient(135deg, #047857 0%, #10b981 30%, #6ee7b7 55%, #059669 80%, #064e3b 100%);
  --metal-cyan-electric: linear-gradient(135deg, #0369a1 0%, #0ea5e9 30%, #38bdf8 55%, #00f2fe 80%, #0284c7 100%);
  --metal-cobalt: linear-gradient(135deg, #1e3a8a 0%, #2563eb 32%, #60a5fa 55%, #3b82f6 80%, #1d4ed8 100%);

  /* Borders & Bevels */
  --bevel-top: 1.5px solid rgba(255, 255, 255, 0.38);
  --bevel-bottom: 1.5px solid rgba(0, 0, 0, 0.7);
  --border-metal-subtle: rgba(148, 183, 255, 0.18);
  --border-metal-strong: rgba(148, 183, 255, 0.42);
  --border-metal-gold: rgba(245, 158, 11, 0.45);
  --border-metal-emerald: rgba(16, 185, 129, 0.45);
  --border-metal-cyan: rgba(56, 189, 248, 0.45);

  /* 3D Volumetric Shadows */
  --shadow-3d-card: 0 20px 48px -10px rgba(0, 0, 0, 0.85), 0 8px 18px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -1.5px 2px rgba(0, 0, 0, 0.5);
  --shadow-3d-card-hover: 0 28px 60px -12px rgba(0, 0, 0, 0.95), 0 12px 24px rgba(37, 99, 235, 0.25), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.6);
  --shadow-3d-btn: 0 10px 28px -4px rgba(37, 99, 235, 0.65), 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1.5px 1px rgba(255, 255, 255, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.45);
  --shadow-3d-btn-emerald: 0 10px 28px -4px rgba(16, 185, 129, 0.65), 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1.5px 1px rgba(255, 255, 255, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.45);
  --shadow-3d-btn-gold: 0 10px 26px -4px rgba(245, 158, 11, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1.5px 1px rgba(255, 255, 255, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.45);

  /* Typography Colors */
  --text-hi: #ffffff;
  --text-mid: #cbd5e1;
  --text-low: #94a3b8;
  --text-accent-cyan: #38bdf8;
  --text-accent-gold: #fbbf24;
  --text-accent-emerald: #34d399;

  /* Sizing & Transitions */
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-kinetic: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   BASE & RESET
   ========================================================================= */
* {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg-darker);
}

body {
  background-color: var(--bg-main);
  background-image:
    radial-gradient(1200px 900px at 0% -10%, rgba(37, 99, 235, 0.22) 0px, transparent 60%),
    radial-gradient(1100px 800px at 100% 100%, rgba(16, 185, 129, 0.16) 0px, transparent 60%),
    radial-gradient(800px 600px at 50% 50%, rgba(56, 189, 248, 0.08) 0px, transparent 70%),
    radial-gradient(900px 700px at 100% 0%, rgba(79, 70, 229, 0.18) 0px, transparent 65%);
  background-attachment: fixed;
  color: var(--text-hi);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display Fonts */
h1, h2, h3, .font-display, .brand-badge, .btn-dominet-primary, .btn-dominet-emerald, .price-tag-3d {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -0.015em;
}

.font-mono-num {
  font-family: 'JetBrains Mono', monospace;
}

/* Ambient 3D Sci-Fi Grid */
.bg-grid {
  position: fixed;
  inset: 0;
  background-size: 38px 38px;
  background-image:
    linear-gradient(to right, rgba(148, 183, 255, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 183, 255, 0.038) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 95% 75% at 50% 30%, black 45%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 30%, black 45%, transparent 95%);
  pointer-events: none;
  z-index: 0;
  animation: grid-drift 80s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 38px 38px; }
}

/* =========================================================================
   3D METALLIC GLASS CARDS & SURFACES
   ========================================================================= */
.dominet-card {
  background: var(--metal-titanium-dark);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border-metal-subtle);
  border-top: var(--bevel-top);
  border-bottom: var(--bevel-bottom);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3d-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.24s var(--ease-kinetic), box-shadow 0.24s ease, border-color 0.24s ease;
}

/* Ambient light specular sweep across top rim */
.dominet-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.75) 30%, rgba(56, 189, 248, 0.9) 50%, rgba(255, 255, 255, 0.75) 70%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.dominet-card-elevated {
  box-shadow: var(--shadow-3d-card-hover);
}

.dominet-card-elevated:hover {
  transform: translateY(-2.5px) scale(1.006);
  border-color: var(--border-metal-strong);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.95), 0 14px 28px rgba(0, 229, 255, 0.2), inset 0 1.5px 2px rgba(255, 255, 255, 0.5);
}

/* =========================================================================
   3D HERO SHOWCASE & CINEMATIC FLEET BANNER
   ========================================================================= */
.hero-showcase-3d {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 16, 29, 0.98) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.9), 0 0 30px rgba(14, 165, 233, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-showcase-3d::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: hero-specular-pass 8s infinite;
  pointer-events: none;
}

@keyframes hero-specular-pass {
  0%, 75% { left: -100%; }
  85%, 100% { left: 160%; }
}

/* 3D Poster thumbnail frame */
.fleet-poster-frame-3d {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: perspective(800px) rotateY(-2deg) rotateX(2deg);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.fleet-poster-frame-3d:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 229, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* =========================================================================
   3D METALLIC BADGES & SEALS
   ========================================================================= */
.metallic-badge-3d {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.metallic-badge-cyan {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.4) 0%, rgba(14, 165, 233, 0.25) 100%);
  border-left: 1px solid rgba(56, 189, 248, 0.4);
  border-right: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.metallic-badge-gold {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.45) 0%, rgba(245, 158, 11, 0.25) 100%);
  border-left: 1px solid rgba(245, 158, 11, 0.5);
  border-right: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde047;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.metallic-badge-emerald {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.45) 0%, rgba(16, 185, 129, 0.25) 100%);
  border-left: 1px solid rgba(16, 185, 129, 0.5);
  border-right: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* =========================================================================
   3D METALLIC SERVICE SELECTORS (VEHICLE TILES)
   ========================================================================= */
.service-selector {
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  transition: all 0.22s var(--ease-spring);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* Base inactive: dark brushed titanium plate */
.service-selector:not(.border-2) {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(9, 14, 26, 0.95) 100%);
  border: 1.5px solid rgba(148, 183, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.service-selector:not(.border-2):hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.75), 0 0 15px rgba(56, 189, 248, 0.2);
}

.service-selector:active {
  transform: translateY(2px) scale(0.975);
}

/* Active 3D Metallic Cards */
#btn-service-mototaxi.border-blue-500,
.service-selector.border-blue-500 {
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 2px solid #3b82f6 !important;
  border-top: 2px solid #93c5fd !important;
  border-bottom: 2px solid #1e3a8a !important;
  box-shadow: 0 16px 36px -6px rgba(37, 99, 235, 0.55), 0 0 24px rgba(59, 130, 246, 0.4), inset 0 1.5px 1px rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
}

#btn-service-motocarguero.border-indigo-500,
.service-selector.border-indigo-500 {
  background: linear-gradient(145deg, rgba(67, 56, 202, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 2px solid #6366f1 !important;
  border-top: 2px solid #c7d2fe !important;
  border-bottom: 2px solid #312e81 !important;
  box-shadow: 0 16px 36px -6px rgba(99, 102, 241, 0.55), 0 0 24px rgba(99, 102, 241, 0.4), inset 0 1.5px 1px rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
}

#btn-service-taxi.border-amber-500,
.service-selector.border-amber-500 {
  background: linear-gradient(145deg, rgba(180, 83, 9, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 2px solid #f59e0b !important;
  border-top: 2px solid #fde047 !important;
  border-bottom: 2px solid #78350f !important;
  box-shadow: 0 16px 36px -6px rgba(245, 158, 11, 0.55), 0 0 24px rgba(245, 158, 11, 0.4), inset 0 1.5px 1px rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
}

/* 3D Price badges inside vehicle cards */
.price-pill-3d {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* =========================================================================
   RECESSED 3D METALLIC INPUTS & SELECTS
   ========================================================================= */
.dominet-input {
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.9) 0%, rgba(11, 16, 29, 0.85) 100%);
  border: 1.5px solid rgba(148, 183, 255, 0.2);
  border-top: 1.5px solid rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-hi);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  caret-color: var(--text-accent-cyan);
}

.dominet-input:hover {
  border-color: rgba(56, 189, 248, 0.38);
}

.dominet-input:focus {
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.95) 0%, rgba(13, 20, 36, 0.9) 100%);
  border-color: #38bdf8;
  border-top-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 0 20px rgba(56, 189, 248, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.5);
  outline: none;
}

/* =========================================================================
   TACTILE 3D METALLIC BUTTONS (MAXIMUM PERSUASION)
   ========================================================================= */
.btn-dominet-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 30%, #3b82f6 55%, #1d4ed8 80%, #1e40af 100%);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(147, 197, 253, 0.5);
  border-top: 2px solid rgba(255, 255, 255, 0.65);
  border-bottom: 2px solid rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3d-btn);
  transition: transform 0.18s var(--ease-kinetic), box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-dominet-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -90%;
  width: 65%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-kinetic);
}

.btn-dominet-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(37, 99, 235, 0.75), 0 0 25px rgba(59, 130, 246, 0.4), inset 0 2px 1px rgba(255, 255, 255, 0.6);
}

.btn-dominet-primary:hover::after {
  left: 130%;
}

.btn-dominet-primary:active {
  transform: translateY(1.5px) scale(0.985);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Emerald Button (Confirmations & High Trust) */
.btn-dominet-emerald {
  background: linear-gradient(135deg, #065f46 0%, #059669 30%, #10b981 55%, #047857 80%, #064e3b 100%);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(167, 243, 208, 0.5);
  border-top: 2px solid rgba(255, 255, 255, 0.65);
  border-bottom: 2px solid rgba(6, 78, 59, 0.9);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3d-btn-emerald);
  transition: transform 0.18s var(--ease-kinetic), box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-dominet-emerald::after {
  content: '';
  position: absolute;
  top: 0; left: -90%;
  width: 65%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-kinetic);
}

.btn-dominet-emerald:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(16, 185, 129, 0.75), 0 0 25px rgba(16, 185, 129, 0.4), inset 0 2px 1px rgba(255, 255, 255, 0.6);
}

.btn-dominet-emerald:hover::after {
  left: 130%;
}

.btn-dominet-emerald:active {
  transform: translateY(1.5px) scale(0.985);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Gold VIP Button */
.btn-dominet-gold {
  background: var(--metal-gold-vip);
  color: #0b0f19;
  font-weight: 900;
  border: 1px solid rgba(254, 240, 138, 0.6);
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(120, 53, 15, 0.9);
  box-shadow: var(--shadow-3d-btn-gold);
  transition: transform 0.18s var(--ease-kinetic), filter 0.18s ease;
  cursor: pointer;
}

.btn-dominet-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(245, 158, 11, 0.75), 0 0 25px rgba(245, 158, 11, 0.45);
}

.btn-dominet-gold:active {
  transform: translateY(1.5px) scale(0.985);
}

/* =========================================================================
   NAVIGATION TABS (DESKTOP)
   ========================================================================= */
.nav-tab {
  transition: all 0.2s var(--ease-kinetic);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.nav-tab:not(.active):hover {
  background: rgba(148, 183, 255, 0.12);
  border-color: rgba(148, 183, 255, 0.25);
  color: #f8fafc;
}

.nav-tab.active {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #60a5fa !important;
  border-top: 1.5px solid #ffffff !important;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* =========================================================================
   ERGONOMIC MOBILE BOTTOM NAVIGATION DOCK (SMARTPHONE OPTIMIZATION)
   ========================================================================= */
.mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1.5px solid rgba(148, 183, 255, 0.25);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom)) 0.5rem;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.25rem;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 700;
  transition: all 0.18s var(--ease-kinetic);
  touch-action: manipulation;
  user-select: none;
}

.dock-item i {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
  transition: transform 0.2s var(--ease-spring);
}

.dock-item:active {
  transform: scale(0.92);
}

.dock-item.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dock-item.active i {
  transform: translateY(-2px) scale(1.1);
  color: #00f2fe;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

/* Quick Floating Map Toggle on Mobile */
.mobile-map-toggle-pill {
  position: fixed;
  bottom: calc(4.8rem + env(safe-area-inset-bottom));
  right: 1rem;
  z-index: 45;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 20px rgba(2, 132, 199, 0.5);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  touch-action: manipulation;
  animation: float-pulse 3s ease-in-out infinite;
}

@keyframes float-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* =========================================================================
   3D MAP MARKERS & RADAR
   ========================================================================= */
.custom-marker-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75), 0 0 0 4px rgba(255, 255, 255, 0.15);
  border: 3px solid #ffffff;
  transition: transform 0.25s var(--ease-kinetic);
}

.custom-marker-pin:hover {
  transform: scale(1.15) translateY(-3px);
}

.pin-moto {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.pin-carguero {
  background: linear-gradient(135deg, #0284c7, #075985);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.pin-passenger {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.pin-dest {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

/* Radar pulse wave */
.radar-pulse-real {
  position: relative;
  width: 86px;
  height: 86px;
}

.radar-pulse-real::before,
.radar-pulse-real::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: rgba(56, 189, 248, 0.4);
  animation: pulse-wave 2.2s linear infinite;
}

.radar-pulse-real::after {
  animation-delay: 1.1s;
}

@keyframes pulse-wave {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Driver marker live glow */
.driver-live-glow {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: driver-glow 2s ease-out infinite;
}

@keyframes driver-glow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  100% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
}

/* =========================================================================
   3D MODAL STYLING & POP-IN
   ========================================================================= */
.modal-3d-content {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 14, 26, 0.99) 100%);
  border: 1.5px solid rgba(148, 183, 255, 0.35);
  border-top: 2px solid rgba(255, 255, 255, 0.65);
  border-bottom: 2px solid rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(37, 99, 235, 0.25);
  animation: modal-pop 0.34s var(--ease-spring);
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Leaflet Dark Theme */
.leaflet-popup-content-wrapper {
  background: rgba(13, 20, 36, 0.98) !important;
  color: var(--text-hi) !important;
  border: 1px solid var(--border-metal-strong);
  border-radius: var(--radius-md) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(14px);
}

.leaflet-popup-tip {
  background: rgba(13, 20, 36, 0.98) !important;
}

.leaflet-container {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.leaflet-bar a {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #cbd5e1 !important;
  border-color: rgba(148, 183, 255, 0.2) !important;
}

/* =========================================================================
   RESPONSIVE OPTIMIZATIONS FOR ALL SMARTPHONES
   ========================================================================= */
/* Evita el retardo táctil y selecciones accidentales */
button, a, .nav-tab, select, .service-selector, .dock-item {
  touch-action: manipulation;
}

/* Scroll elástico nativo para iOS y Android */
aside, .overflow-y-auto {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Safe areas para Notch, Dynamic Island y Barra Gestual */
header {
  padding-top: env(safe-area-inset-top);
}

body {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Altura adaptable para el mapa en celulares */
@media (max-width: 767px) {
  .app-map {
    height: 46vh;
    min-height: 290px;
  }
  @supports (height: 100dvh) {
    .app-map {
      height: 46dvh;
    }
  }

  /* Reducir ruido en cabecera móvil */
  .brand-badge {
    display: none;
  }
  #header-user-label {
    display: none;
  }
  
  /* Fuentes optimizadas para lectura en exteriores bajo el sol */
  body {
    font-size: 15px;
  }
  
  /* Tamaño táctil aumentado en formularios para dedos grandes */
  .dominet-input, select, input {
    font-size: 16px !important;
    min-height: 46px;
  }
}

@media (min-width: 768px) {
  .app-tall {
    height: calc(100vh - 96px);
  }
  @supports (height: 100dvh) {
    .app-tall {
      height: calc(100dvh - 96px);
    }
  }
}

/* Pantallas muy pequeñas (< 375px) como iPhone SE o Galaxy A antiguo */
@media (max-width: 374px) {
  .service-selector {
    padding: 0.6rem 0.4rem;
  }
  .service-selector .font-extrabold {
    font-size: 0.75rem;
  }
}

/* Scrollbars Premium */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 16, 29, 0.6);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.3) 0%, rgba(37, 99, 235, 0.4) 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.6) 0%, rgba(37, 99, 235, 0.7) 100%);
}
