@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  /* PALETA VANGUARDISTA DE ALTO IMPACTO */
  --color-primary: #0A2540;
  --color-primary-light: #163860;
  --color-primary-dark: #061525;
  --color-primary-rgb: 10, 37, 64;

  --color-accent: #0052FF;
  --color-accent-light: #3D7CFF;
  --color-accent-dark: #0041CC;
  --color-accent-rgb: 0, 82, 255;

  --color-highlight: #00D09C;
  --color-highlight-hover: #00B587;
  --color-warning: #FF9900;
  --color-danger: #EF4444;
  --color-success: #10B981;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-bg-elevated: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-subtle: #EDF2F7;

  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-text-inverse: #FFFFFF;

  /* Aliases para integración con componentes */
  --brand-navy: #0A2540;
  --brand-navy-light: #163860;
  --brand-navy-dark: #061525;
  --brand-orange: #0052FF; /* Azul eléctrico vanguardista */
  --brand-orange-hover: #0041CC;
  --brand-emerald: #00D09C; /* Verde esmeralda de conversión */
  --brand-emerald-hover: #00B587;
  --bg-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;

  /* Tipografía */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sombras y Glassmorphism */
  --shadow-sm: 0 2px 6px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 8px 20px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 36px rgba(10, 37, 64, 0.12);
  --shadow-xl: 0 24px 50px rgba(10, 37, 64, 0.16);
  --shadow-glow: 0 0 24px rgba(0, 82, 255, 0.25);
  --shadow-emerald: 0 0 24px rgba(0, 208, 156, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.section-title, .hero-title, .tracking-title, .cta-title, .section-tag, .fresno-tag {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Layout */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(13,35,58,0.05);
  transition: all 0.3s ease;
}

.top-bar {
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}

.top-bar .contact-info { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top-bar .contact-info span { display: flex; align-items: center; gap: 0.375rem; }
.top-bar .contact-info i { color: var(--brand-orange); }
.top-bar .contact-info .divider { color: #94a3b8; display: none; }
@media (min-width: 768px) { .top-bar .contact-info .divider { display: inline-block; } }

.top-bar .phone-link { color: #fff; font-weight: 600; transition: color 0.2s; display: flex; align-items: center; gap: 0.25rem; }
.top-bar .phone-link:hover { color: var(--brand-orange); }

.nav-container { max-width: 1440px; margin: 0 auto; padding: 0 1rem 0 1.5rem; }
@media (min-width: 1024px) { .nav-container { padding-left: 2.5rem; padding-right: 2.5rem; } }

.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 5.25rem; height: 5.5rem; }

/* Logo */
.logo-link { display: flex; align-items: center; flex-shrink: 0; padding: 0.25rem 0; }
.logo-img { 
  height: 4.25rem; 
  max-height: 72px; 
  width: auto; 
  object-fit: contain; 
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
}
.logo-link:hover .logo-img { transform: scale(1.03); }
@media (max-width: 640px) {
  .logo-img { height: 3.25rem; max-height: 54px; }
}

/* Desktop Nav */
.desktop-nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }
.desktop-nav a {
  font-size: 0.8125rem; font-weight: 600; color: #334155;
  text-transform: capitalize; transition: all 0.25s ease;
  position: relative; padding-bottom: 0.35rem;
}
.desktop-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
  background: var(--brand-orange); border-radius: 3px; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.desktop-nav a:hover { color: var(--brand-orange); }
.desktop-nav a:hover::after { width: 100%; }
.desktop-nav a.active { color: var(--brand-orange); font-weight: 800; }
.desktop-nav a.active::after { width: 100%; box-shadow: 0 2px 8px rgba(0, 82, 255, 0.4); }

/* CTA Button */
.cta-track { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .cta-track { display: flex; } }
.btn-track {
  background: var(--brand-orange); color: #fff;
  padding: 0.625rem 1.25rem; border-radius: 0.75rem;
  font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 82, 255,0.25);
  transition: all 0.3s; display: flex; align-items: center; gap: 0.5rem;
}
.btn-track:hover { background: var(--brand-orange-hover); box-shadow: 0 8px 24px rgba(0, 82, 255,0.35); transform: translateY(-2px); }

/* Mobile Menu Button */
.mobile-menu-btn { display: flex; padding: 0.5rem; border-radius: 0.5rem; color: var(--brand-navy); }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
.mobile-menu-btn:hover { background: #f1f5f9; }

/* Mobile Menu */
.mobile-menu { display: none; background: #fff; border-bottom: 1px solid #e2e8f0; padding: 1rem 1.5rem 1.5rem; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 0.75rem 1rem; border-radius: 0.5rem;
  font-weight: 500; color: #334155; transition: all 0.2s;
}
.mobile-menu a.active { color: var(--brand-orange); background: #eff6ff; font-weight: 700; border-left: 3px solid var(--brand-orange); }
.mobile-menu .divider { border-top: 1px solid #e2e8f0; margin: 0.5rem 0; }
.mobile-menu .cta-group { margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu .btn-track-mobile { width: 100%; text-align: center; justify-content: center; }

/* Hero Section */
.hero-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(13,35,58,0.95) 0%, rgba(24,54,84,0.88) 100%),
              url('https://static.wixstatic.com/media/f25717_aaf3a02bcc8a485cb7c4251c99c99269~mv2.jpg') center/cover no-repeat;
  color: #fff; padding: 4.5rem 1rem 3.75rem; text-align: center;
}
@media (min-width: 1024px) { .hero-section { padding: 5.5rem 1.5rem 4.5rem; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0, 82, 255,0.2); border: 1px solid rgba(0, 82, 255,0.4);
  color: var(--brand-orange); padding: 0.5rem 1rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.5rem; backdrop-filter: blur(4px);
}
.hero-badge i { font-size: 0.875rem; }

.hero-title { font-size: 2.5rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .hero-title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }

.hero-text { font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 42rem; margin: 0 auto 2.5rem; font-weight: 400; line-height: 1.7; }
@media (min-width: 640px) { .hero-text { font-size: 1.125rem; } }

/* Tracking Box */
.tracking-box {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 1.5rem 2rem; border-radius: 1.5rem; backdrop-filter: blur(8px);
  max-width: 28rem; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.tracking-title { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.tracking-title i { color: var(--brand-orange); }
.track-form { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .track-form { flex-direction: row; } }
.track-input {
  flex: 1; background: rgba(255,255,255,0.9); color: #1e293b;
  padding: 0.875rem 1.25rem; border-radius: 0.75rem; font-size: 0.875rem;
  border: none; outline: none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.track-input::placeholder { color: #94a3b8; }
.track-input:focus { outline: 2px solid var(--brand-orange); }
.btn-track-submit {
  background: var(--brand-orange); color: #fff;
  padding: 0.875rem 1.5rem; border-radius: 0.75rem;
  font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 82, 255,0.3); transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-track-submit:hover { background: var(--brand-orange-hover); transform: translateY(-1px); }
.track-note { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 0.75rem; text-align: center; }

/* Fresno Banner */
.fresno-banner {
  max-width: 80rem; margin: 2rem auto; padding: 0 1rem; position: relative; z-index: 10;
}
@media (min-width: 768px) {
  .fresno-banner { margin: 2.5rem auto; padding: 0 1.5rem; }
}
.fresno-card {
  background: var(--brand-navy); color: #fff; border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(13,35,58,0.25); padding: 1.125rem 1.25rem;
  display: flex; flex-direction: column; gap: 1rem; border: 1.5px solid rgba(0, 82, 255,0.35);
}
@media (min-width: 768px) {
  .fresno-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.5rem 2.25rem; border-radius: 1.5rem; gap: 1.5rem; }
}
.fresno-left { display: flex; align-items: center; gap: 1rem; text-align: left; flex: 1; }
.fresno-icon {
  width: 2.75rem; height: 2.75rem; background: var(--brand-orange); color: #fff;
  border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0, 82, 255,0.3);
}
@media (min-width: 768px) {
  .fresno-icon { width: 3.25rem; height: 3.25rem; border-radius: 1rem; font-size: 1.5rem; }
}
.fresno-tag { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-orange); margin-bottom: 0.2rem; display: block; }
.fresno-title { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.25; }
@media (min-width: 768px) { .fresno-title { font-size: 1.35rem; } }
.fresno-desc { font-size: 0.75rem; color: rgba(255,255,255,0.75); line-height: 1.45; margin-top: 0.2rem; }
.fresno-desc strong { color: #fff; font-weight: 700; }
.fresno-cta {
  background: var(--brand-orange); color: #fff; padding: 0.625rem 1.25rem;
  border-radius: 0.75rem; font-weight: 800; font-size: 0.8125rem; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 82, 255,0.3); transition: all 0.3s;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; flex-shrink: 0;
}
@media (min-width: 768px) { .fresno-cta { padding: 0.75rem 1.5rem; font-size: 0.875rem; } }
.fresno-cta:hover { background: var(--brand-orange-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 82, 255,0.35); }

/* Section Common - Espaciado Optimizado sin desperdicio */
.section { padding: 2.75rem 1rem 3.25rem; }
@media (min-width: 1024px) { .section { padding: 3.25rem 1.5rem 3.75rem; } }

/* Reducir espacio superior masivo tras banner Fresno para centrado perfecto */
.fresno-banner + .section,
.section-especiales {
  padding-top: 1rem !important;
}
@media (min-width: 768px) {
  .fresno-banner + .section,
  .section-especiales {
    padding-top: 1.25rem !important;
  }
}
.section-header { text-align: center; max-width: 48rem; margin: 0 auto 2rem; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--brand-orange); margin-bottom: 0.35rem; }
.section-title { font-size: 1.875rem; font-weight: 800; color: var(--brand-navy); text-transform: uppercase; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-subtitle { color: var(--text-muted); margin-top: 0.5rem; font-size: 0.9375rem; }

/* Cards */
.card { background: #fff; border-radius: 1.5rem; border: 1px solid #e2e8f0; box-shadow: 0 4px 20px -4px rgba(13,35,58,0.06); transition: all 0.3s; }
.card:hover { box-shadow: 0 20px 40px -10px rgba(0, 82, 255,0.12); transform: translateY(-4px); }
.card-icon { width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1.5rem; }
.card-title { font-size: 1.5rem; font-weight: 800; color: var(--brand-navy); margin-bottom: 1rem; text-align: center; }
.card-list { text-align: left; }
.card-list li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.card-list i { color: var(--brand-orange); flex-shrink: 0; margin-top: 0.125rem; font-size: 0.875rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 700; color: var(--brand-orange); font-size: 0.875rem; margin-top: 1rem; transition: gap 0.2s; }
.card-link:hover { gap: 0.625rem; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

/* Carousel */
.carousel-section { background: #0f172a; border-radius: 1.5rem; padding: 3rem 1rem; margin: 2.5rem auto; max-width: 80rem; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.carousel-section::before { content: ''; position: absolute; inset: 0; opacity: 0.08; background: radial-gradient(var(--brand-orange) 1px, transparent 1px); background-size: 16px 16px; }
.carousel-header { text-align: center; margin-bottom: 2rem; position: relative; z-index: 10; }
.carousel-title { font-size: 2rem; font-weight: 800; color: #fff; text-transform: uppercase; }
.carousel-subtitle { color: rgba(255,255,255,0.6); margin-top: 0.5rem; font-size: 0.875rem; }
.carousel-wrapper { position: relative; max-width: 72rem; margin: 0 auto; overflow: hidden; border-radius: 1rem; border: 1px solid rgba(71,85,105,0.5); background: #1e293b; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.carousel-inner { display: flex; transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.carousel-slide { flex: 0 0 100%; height: 22rem; position: relative; }
@media (min-width: 640px) { .carousel-slide { height: 26rem; } }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.5s, transform 0.5s; }
.carousel-slide:hover img { opacity: 1; transform: scale(1.02); }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(13, 35, 58, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.carousel-btn:hover {
  background: var(--brand-orange);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 22px rgba(0, 82, 255, 0.45);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
  box-shadow: 0 4px 10px rgba(0, 82, 255, 0.3);
}
.carousel-btn i {
  transition: transform 0.2s ease;
  pointer-events: none;
}
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }
.carousel-btn.prev:hover i { transform: translateX(-2px); }
.carousel-btn.next:hover i { transform: translateX(2px); }

@media (max-width: 640px) {
  .carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  .carousel-btn.prev { left: 0.5rem; }
  .carousel-btn.next { right: 0.5rem; }
}

/* Tips Grid */
.tips-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 640px) { .tips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tips-grid { grid-template-columns: repeat(4, 1fr); } }
.tip-card { background: #fff; border-radius: 1.5rem; border: 1px solid #e2e8f0; box-shadow: 0 4px 20px -4px rgba(13,35,58,0.06); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s; }
.tip-card:hover { box-shadow: 0 20px 40px -10px rgba(0, 82, 255,0.12); transform: translateY(-4px); }
.tip-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
.tip-title { font-weight: 700; color: var(--brand-navy); font-size: 1rem; margin-bottom: 0.75rem; }
.tip-list { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; }
.tip-list li { margin-bottom: 0.5rem; }
.tip-list strong { color: var(--text-dark); font-weight: 700; }
.tip-note { margin-top: 2rem; background: var(--brand-navy); color: #fff; border-radius: 1rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .tip-note { flex-direction: row; align-items: center; justify-content: space-between; } }
.tip-note-text { font-size: 0.875rem; color: rgba(255,255,255,0.8); font-weight: 500; }
.tip-note-text strong { color: #fff; font-weight: 700; }
.btn-cta-sm { background: var(--brand-orange); color: #fff; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 4px 14px rgba(0, 82, 255,0.2); transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-cta-sm:hover { background: var(--brand-orange-hover); transform: translateY(-2px); }

/* Quote Section */
.quote-section { background: #fffde7; border: 1px solid #fde68a; border-radius: 1.5rem; padding: 2rem 1.5rem; max-width: 80rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .quote-section { flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem 3rem; } }
.quote-left { text-align: center; }
@media (min-width: 768px) { .quote-left { text-align: left; flex: 1; } }
.quote-label { display: inline-block; background: var(--brand-orange); color: #fff; padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.quote-title { font-size: 1.75rem; font-weight: 800; color: var(--brand-navy); text-transform: uppercase; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .quote-title { font-size: 2.25rem; } }
.quote-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.quote-right { text-align: center; flex-shrink: 0; }
.quote-img { width: 12rem; max-width: 100%; height: auto; margin-bottom: 1rem; }
.quote-cta { background: var(--brand-navy); color: #fff; padding: 0.75rem 2rem; border-radius: 1rem; font-weight: 800; font-size: 0.875rem; text-transform: uppercase; box-shadow: 0 4px 14px rgba(13,35,58,0.3); transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.quote-cta:hover { background: var(--brand-navy-light); transform: translateY(-2px); }

/* Promos */
.promos-section { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 1.5rem; padding: 2rem 1.5rem; max-width: 80rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .promos-section { flex-direction: row; align-items: stretch; justify-content: space-between; padding: 2.5rem; } }
.promos-left { text-align: center; }
@media (min-width: 768px) { .promos-left { text-align: left; flex: 1; } }
.promos-tag { background: var(--brand-orange); color: #fff; padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; display: inline-block; }
.promos-title { font-size: 1.75rem; font-weight: 800; color: var(--brand-navy); text-transform: uppercase; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .promos-title { font-size: 2.25rem; } }
.promos-date { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; }
.promos-size { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.promos-size strong { color: var(--brand-navy); font-weight: 800; font-size: 1.125rem; }
.promos-price { font-size: 3rem; font-weight: 800; color: var(--brand-orange); margin: 0.5rem 0; }
@media (min-width: 768px) { .promos-price { font-size: 4rem; } }
.promo-code { background: #fff; padding: 1rem; border-radius: 0.75rem; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.promo-code-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.375rem; }
.promo-code-value { font-family: monospace; font-size: 0.875rem; font-weight: 700; color: var(--brand-navy); background: #f8fafc; padding: 0.5rem 1rem; border-radius: 0.375rem; border: 1px solid #e2e8f0; display: block; user-select: all; text-align: center; }
.promos-right { text-align: center; background: var(--brand-navy); color: #fff; padding: 2rem; border-radius: 1.5rem; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.promos-icon { font-size: 3.5rem; color: var(--brand-orange); margin-bottom: 1rem; }
.promos-cta-title { font-weight: 800; font-size: 1rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.promos-cta-desc { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.btn-print { background: var(--brand-orange); color: #fff; padding: 0.875rem 2rem; border-radius: 1rem; font-weight: 800; font-size: 0.875rem; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0, 82, 255,0.3); transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-print:hover { background: var(--brand-orange-hover); transform: translateY(-2px); }

/* About Grid */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 768px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }
.about-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.5rem; padding: 1.5rem; box-shadow: 0 4px 20px -4px rgba(13,35,58,0.06); transition: all 0.3s; }
.about-card:hover { box-shadow: 0 20px 40px -10px rgba(0, 82, 255,0.12); transform: translateY(-4px); }
.about-year { color: var(--brand-orange); font-weight: 800; font-size: 2rem; margin-bottom: 0.25rem; text-transform: uppercase; }
.about-card h3 { font-weight: 800; color: var(--brand-navy); font-size: 1.125rem; margin-bottom: 0.5rem; }
.about-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; }

/* Mission Vision Values */
.mvv-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 1024px) { .mvv-grid { grid-template-columns: repeat(3, 1fr); } }
.mvv-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.5rem; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 20px -4px rgba(13,35,58,0.06); transition: all 0.3s; }
.mvv-card:hover { box-shadow: 0 20px 40px -10px rgba(0, 82, 255,0.12); transform: translateY(-4px); }
.mvv-icon { width: 3.5rem; height: 3.5rem; border-radius: 1.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.mvv-title { font-size: 1.5rem; font-weight: 800; color: var(--brand-navy); margin-bottom: 1rem; }
.mvv-text { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.mvv-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; color: var(--brand-navy); }
.mvv-footer i { transition: transform 0.2s; }
.mvv-card:hover .mvv-footer i { transform: translateX(4px); }

/* Values Grid */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.value-item { padding: 0.75rem 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.75rem; font-weight: 700; color: var(--brand-navy); font-size: 0.8125rem; display: flex; align-items: center; gap: 0.5rem; }
.value-item i { color: var(--brand-orange); }

/* Coverage */
.coverage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 640px) { .coverage-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .coverage-grid { grid-template-columns: repeat(6, 1fr); } }
.coverage-item { background: #fff; padding: 0.875rem 1rem; border-radius: 1rem; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); font-size: 0.75rem; font-weight: 700; color: var(--brand-navy); display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.2s; cursor: default; }
.coverage-item:hover { border-color: var(--brand-orange); }
.coverage-item i { color: var(--brand-orange); }

/* CTA Contact */
.cta-contact {
  background: var(--brand-navy);
  color: #fff;
  padding: 1.75rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
@media (min-width: 1024px) {
  .cta-contact {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 2.25rem 2.5rem;
    gap: 2rem;
  }
}
.cta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-orange);
  margin-bottom: 0.25rem;
  display: block;
}
.cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .cta-title {
    font-size: 1.875rem;
  }
}
.cta-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }
}
@media (min-width: 1024px) {
  .cta-buttons {
    justify-content: flex-start;
  }
}
.btn-cta-lg {
  background: var(--brand-orange);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 18px rgba(0, 82, 255,0.3);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}
.btn-cta-lg:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 82, 255,0.4);
}

/* Footer */
.site-footer {
  background: #0A192F;
  color: #94a3b8;
  font-size: 0.8125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}
.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  text-align: left;
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
    padding: 2.75rem 1.5rem 1.5rem;
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-start;
  }
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .footer-logo {
    justify-content: flex-start;
  }
}
.footer-logo-img {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}
.footer-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 24rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .footer-desc {
    margin: 0;
  }
}
.footer-social {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .footer-social {
    justify-content: flex-start;
  }
}
.social-link {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--brand-orange);
  transform: translateY(-2px);
}
.footer-nav h4,
.footer-contact h4 {
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #1e293b;
}

/* Nav en móvil: 2 columnas compactas para aprovechar espacio vertical */
.footer-nav ul,
.footer-nav-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.35rem 1rem !important;
  font-size: 0.75rem;
  text-align: left;
  max-width: 18rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .footer-nav ul,
  .footer-nav-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    margin: 0;
    max-width: none;
  }
}
.footer-nav a {
  color: #94a3b8;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--brand-orange);
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  align-items: center;
}
@media (min-width: 768px) {
  .footer-contact ul {
    align-items: flex-start;
  }
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
}
.footer-contact i {
  color: var(--brand-orange);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 0.75rem 1rem 0.875rem;
  margin-top: 0.5rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-bottom-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
}
@media (min-width: 640px) {
  .footer-bottom-main {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.footer-links a {
  color: #64748b;
  transition: color 0.2s;
  font-size: 0.7rem;
}
.footer-links a:hover {
  color: #fff;
}
.footer-legal {
  font-size: 0.65rem;
  color: #64748b;
  line-height: 1.35;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40; opacity: 0; transition: opacity 0.3s; }
.mobile-menu-overlay.open { display: block; opacity: 1; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }

/* Float animation - subtle floating motion */
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Float slower - for larger elements */
@keyframes float-slow { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
.animate-float-slow { animation: float-slow 4s ease-in-out infinite; }

/* Pulse glow - for CTA buttons */
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 4px 14px rgba(0, 82, 255,0.25); } 50% { box-shadow: 0 8px 28px rgba(0, 82, 255,0.45); } }
.animate-pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }

/* Shimmer sweep - for tracking box and cards */
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.animate-shimmer { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); background-size: 200% 100%; animation: shimmer 2.5s ease-in-out infinite; }

/* Gradient text shimmer */
@keyframes gradient-shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.animate-gradient-text { background: linear-gradient(90deg, var(--brand-orange), #ff9a7b, var(--brand-orange)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradient-shimmer 5s ease-in-out infinite; }

/* Float for icons/trucks */
@keyframes float-icon { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-6px) rotate(1deg); } 75% { transform: translateY(6px) rotate(-1deg); } }
.animate-float-icon { animation: float-icon 4s ease-in-out infinite; }

/* Subtle bounce on hover */
@keyframes pop-in { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.animate-pop-hover:hover { animation: pop-in 0.4s ease-out; }

/* Shimmer overlay for cards */
@keyframes shimmer-overlay { 0% { opacity: 0; transform: translateX(-100%); } 50% { opacity: 0.1; } 100% { opacity: 0; transform: translateX(100%); } }
.animate-shimmer-overlay::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transform: translateX(-100%); animation: shimmer-overlay 2.5s ease-in-out infinite; pointer-events: none; }

/* Subtle rotate on hover for icons */
.animate-rotate-hover:hover { animation: spin 0.6s ease-out; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-brand-orange { color: var(--brand-orange); }
.text-brand-navy { color: var(--brand-navy); }
.bg-brand-navy { background: var(--brand-navy); }
.bg-brand-orange { background: var(--brand-orange); }

/* ==========================================
   TRACKING MODAL & UNIFIED TRACKING SYSTEM
   ========================================== */
body.tracking-modal-open {
  overflow: hidden;
}

.tracking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tracking-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tracking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 35, 58, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tracking-modal-container {
  position: relative;
  z-index: 10;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(13, 35, 58, 0.4);
  width: 100%;
  max-width: 44rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tracking-modal-overlay.active .tracking-modal-container {
  transform: translateY(0) scale(1);
}

.tracking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.tracking-modal-header-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tracking-modal-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
}

.tracking-modal-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
}

.tracking-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s;
  cursor: pointer;
}

.tracking-modal-close:hover {
  background: #f1f5f9;
  color: var(--brand-navy);
}

.tracking-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Buscador dentro del modal */
.tracking-search-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .tracking-search-form {
    flex-direction: column;
  }
}

.tracking-search-input-wrap {
  position: relative;
  flex: 1;
}

.tracking-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
}

.tracking-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--brand-navy);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tracking-search-input:focus {
  border-color: var(--brand-orange);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.15);
}

.tracking-search-btn {
  background: var(--brand-orange);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}

.tracking-search-btn:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
}

/* Estados inicial, cargando y error */
.tracking-initial-hint,
.tracking-loading-state,
.tracking-error-state {
  text-align: center;
  padding: 2.5rem 1rem;
}

.tracking-spinner {
  width: 2.75rem;
  height: 2.75rem;
  border: 3px solid #fed7aa;
  border-top-color: var(--brand-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

/* Resumen Principal */
.tracking-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.tracking-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tracking-carrier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  border-width: 1px;
}

.btn-copy-tracking {
  color: #94a3b8;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-copy-tracking:hover {
  color: var(--brand-navy);
  background: #e2e8f0;
}

.tracking-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
}

/* Stepper */
.tracking-stepper {
  position: relative;
  margin: 1.5rem 0 1.25rem;
}

.tracking-stepper-line {
  position: absolute;
  top: 15px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.tracking-stepper-progress {
  height: 100%;
  background: var(--brand-orange);
  transition: width 0.5s ease;
}

.tracking-stepper-steps {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

.tracking-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 25%;
  text-align: center;
}

.tracking-step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.tracking-step-item.completed .tracking-step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.tracking-step-item.active .tracking-step-circle {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.2);
}

.tracking-step-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tracking-step-item.active .tracking-step-label {
  color: var(--brand-orange);
}

/* Origen y Destino */
.tracking-route-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}

.tracking-route-col {
  flex: 1;
}

.tracking-route-tag {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.tracking-route-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.3;
}

.tracking-route-arrow {
  padding: 0 0.5rem;
}

.btn-download-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-download-label:hover {
  background: #dbeafe;
}

/* Línea de Tiempo */
.tracking-timeline-section {
  background: #ffffff;
}

.tracking-timeline-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tracking-timeline-list {
  position: relative;
  padding-left: 1.5rem;
}

.tracking-timeline-list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-event-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline-event-item:last-child {
  margin-bottom: 0;
}

.timeline-event-marker {
  position: absolute;
  left: -1.5rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #cbd5e1;
  z-index: 2;
}

.timeline-event-item.latest .timeline-event-marker {
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.3);
}

.timeline-event-content {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.timeline-event-item.latest .timeline-event-content {
  background: #fffaf5;
  border-color: #ffedd5;
}

.btn-tracking-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-navy);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-tracking-action:hover {
  background: var(--brand-orange);
}

/* ==========================================================================
   MAPA DE COBERTURA Y PINGS ANIMADOS (RADAR)
   ========================================================================== */
.coverage-map-wrapper {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 45px -10px rgba(10, 37, 64, 0.08), 0 0 0 1px rgba(10, 37, 64, 0.06);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.map-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #0a2540;
  color: #ffffff;
}

.map-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
}

.status-dot-pulse {
  width: 10px;
  height: 10px;
  background-color: #00D09C;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px #00D09C;
}

.status-dot-pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #00D09C;
  opacity: 0.7;
  animation: mapPingPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.map-filter-btn-group {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.map-filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.map-filter-btn:hover,
.map-filter-btn.active {
  background: #0052FF;
  border-color: #0052FF;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 82, 255, 0.4);
}

#coverage-map {
  width: 100%;
  height: 540px;
  background: #f1f5f9;
  z-index: 1;
}

@media (max-width: 768px) {
  #coverage-map {
    height: 420px;
  }
}

/* Animación de Ping para Marcadores Leaflet - Estilo Radar Limpio */
@keyframes mapPingPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.95;
    border-width: 2px;
  }
  70% {
    opacity: 0.35;
    border-width: 1.5px;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
    border-width: 1px;
  }
}

.map-ping-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-ping-ring {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(0, 82, 255, 0.7);
  box-shadow: 0 0 8px rgba(0, 82, 255, 0.35);
  animation: mapPingPulse 2.4s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
  pointer-events: none;
}

.map-ping-ring.delay {
  animation-delay: 1.2s;
}

.map-ping-dot {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0052FF;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 0 0 2px #ffffff, 0 3px 8px rgba(0, 82, 255, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.map-ping-container:hover .map-ping-dot {
  transform: scale(1.3);
}

/* Variantes de Ping */
.map-ping-container.pin-hub .map-ping-dot {
  background: #0A2540;
  width: 30px;
  height: 30px;
  font-size: 13px;
  color: #00D09C;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #00D09C, 0 6px 16px rgba(10, 37, 64, 0.6);
}

.map-ping-container.pin-hub .map-ping-ring {
  border-color: rgba(0, 208, 156, 0.85);
  box-shadow: 0 0 12px rgba(0, 208, 156, 0.5);
  width: 38px;
  height: 38px;
}

.map-ping-container.pin-branch .map-ping-dot {
  background: #0052FF;
  width: 28px;
  height: 28px;
  font-size: 12px;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #0052FF, 0 6px 16px rgba(0, 82, 255, 0.5);
}

.map-ping-container.pin-branch .map-ping-ring {
  border-color: rgba(0, 82, 255, 0.85);
  box-shadow: 0 0 12px rgba(0, 82, 255, 0.5);
  width: 36px;
  height: 36px;
}

.map-ping-container.pin-pickup .map-ping-dot {
  background: #2563EB;
  width: 18px;
  height: 18px;
  font-size: 9px;
  box-shadow: 0 0 0 2px #ffffff, 0 2px 6px rgba(37, 99, 235, 0.35);
}

.map-ping-container.pin-pickup .map-ping-ring {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.25);
  width: 24px;
  height: 24px;
}

/* Tooltip / Etiqueta Flotante opcional en el ping */
.map-ping-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10, 37, 64, 0.9);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-ping-container:hover .map-ping-label {
  opacity: 1;
  transform: translateX(-50%) translateY(7px);
}

/* Leaflet Popup Estilizado */
.leaflet-popup-content-wrapper {
  background: #ffffff !important;
  border-radius: 1rem !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 20px 30px -8px rgba(10, 37, 64, 0.2), 0 0 0 1px rgba(10, 37, 64, 0.06) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
  font-family: 'Inter', sans-serif !important;
}

.leaflet-popup-tip-container {
  margin-top: -1px;
}

.custom-popup-card {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  min-width: 260px;
  max-width: 310px;
}

.popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.popup-badge.badge-hub {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.popup-badge.badge-branch {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.popup-badge.badge-pickup {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.popup-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0A2540;
  margin: 0 0 0.4rem 0;
  font-family: 'Outfit', sans-serif;
}

.popup-desc {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.popup-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

.popup-detail-row i {
  color: #0052FF;
  font-size: 0.875rem;
  margin-top: 2px;
}

.popup-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: #0052FF;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.5rem;
  text-decoration: none !important;
  transition: background 0.2s;
}

.popup-action-btn:hover {
  background: #0041CC;
}

/* Tarjetas de Ciudad en el Grid */
.city-card-interactive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.city-card-interactive:hover,
.city-card-interactive.active-city {
  border-color: #0052FF;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 82, 255, 0.12);
}

.city-card-interactive .city-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 0.625rem;
  background: #eff6ff;
  color: #0052FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.city-card-interactive:hover .city-icon-box {
  background: #0052FF;
  color: #ffffff;
}

.city-card-interactive.is-hub .city-icon-box {
  background: #ecfdf5;
  color: #047857;
}

.city-card-interactive.is-hub:hover .city-icon-box {
  background: #00D09C;
  color: #0A2540;
}