/* AA Transporte — Design System v1.0 */
:root {
  --primary: #1a2744;
  --primary-dark: #0f1729;
  --primary-light: #2a3f6b;
  --secondary: #f5b700;
  --secondary-dark: #d9a200;
  --accent: #00a8e8;
  --accent-light: #33c3ff;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #1a2332;
  --text-secondary: #5a6b7d;
  --text-muted: #8a9aad;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --whatsapp: #25d366;
  --smart-track-red: #e31e24;
  --header-h: 72px;
  --header-h-mobile: 64px;
  --max-w: 1280px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(26, 39, 68, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 39, 68, 0.15);
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header p { color: var(--text-secondary); margin-top: 0.75rem; font-size: 1.05rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 183, 0, 0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
  transform: translateY(-2px);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--transition), box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header.hidden { transform: translateY(-100%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.logo-link { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-aa {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.logo-aa .a1 { color: var(--primary); }
.logo-aa .a2 { color: var(--secondary); }
.logo-text {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
  line-height: 1.2;
}
.nav-desktop { display: none; gap: 1.5rem; align-items: center; }
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}
.nav-desktop a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: none;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}
.header-phone:hover { color: var(--accent); }
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile {
  position: fixed;
  top: var(--header-h-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  padding: 2rem 1.25rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 999;
  overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav-mobile .btn { width: 100%; margin-top: 1.5rem; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-phone { display: block; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none; }
}

@media (max-width: 767px) {
  :root { --header-h: var(--header-h-mobile); }
  html { scroll-padding-top: calc(var(--header-h-mobile) + 16px); }
  .header { height: var(--header-h-mobile); }
}

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(245,183,0,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,168,232,0.1) 0%, transparent 40%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
}
.hero-content { color: #fff; }
.hero-content .section-label { color: var(--secondary); }
.hero-content h1 { color: #fff; margin: 0.5rem 0 1rem; }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  padding: 0.4rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
}
.trust-badge svg { width: 14px; height: 14px; fill: var(--secondary); }

/* CSS Van Art */
.hero-visual { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.van-scene { position: relative; width: 280px; height: 200px; }
.van-body {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 90px;
  background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
  border-radius: 8px 20px 4px 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.van-cab {
  position: absolute;
  bottom: 40px;
  left: calc(50% - 100px);
  width: 55px;
  height: 70px;
  background: linear-gradient(180deg, #f5f5f5 0%, #ddd 100%);
  border-radius: 12px 4px 0 0;
  box-shadow: inset -5px 0 10px rgba(0,0,0,0.05);
}
.van-window {
  position: absolute;
  top: 12px;
  left: 8px;
  right: 8px;
  height: 28px;
  background: linear-gradient(180deg, #87ceeb 0%, #5ba3c9 100%);
  border-radius: 4px;
}
.van-plate {
  position: absolute;
  bottom: 55px;
  left: calc(50% - 30px);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
  z-index: 2;
}
.van-wheel {
  position: absolute;
  bottom: 28px;
  width: 36px;
  height: 36px;
  background: #333;
  border-radius: 50%;
  border: 4px solid #555;
}
.van-wheel::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: #888;
  border-radius: 50%;
}
.van-wheel.w1 { left: calc(50% - 75px); }
.van-wheel.w2 { left: calc(50% + 45px); }
.van-road {
  position: absolute;
  bottom: 20px;
  left: -20%;
  right: -20%;
  height: 24px;
  background: #444;
  border-radius: 4px;
}
.van-road::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, #fff 0, #fff 20px, transparent 20px, transparent 40px);
  transform: translateY(-50%);
}
.float-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  animation: float 3s ease-in-out infinite;
}
.float-card.gps { top: 0; right: 0; animation-delay: 0s; }
.float-card.ton { bottom: 60px; left: -20px; animation-delay: 1.5s; }
.float-card .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .van-scene { width: 340px; height: 240px; }
  .van-body { width: 240px; height: 100px; }
}

/* Tracking */
.tracking { background: var(--surface); }
.tracking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
.feature-tabs { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-tab {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}
.feature-tab:hover { border-color: var(--accent-light); }
.feature-tab.active {
  border-color: var(--accent);
  background: rgba(0,168,232,0.05);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.15);
}
.feature-tab h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.feature-tab p { font-size: 0.85rem; color: var(--text-secondary); display: none; }
.feature-tab.active p { display: block; }
.feature-tab-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-size: 1rem;
}

.map-demo {
  position: relative;
  aspect-ratio: 4/3;
  background: #e8f4ea;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-road {
  position: absolute;
  background: #b8c5d6;
  border-radius: 4px;
}
.map-road.r1 { width: 70%; height: 8px; top: 45%; left: 10%; transform: rotate(-8deg); }
.map-road.r2 { width: 8px; height: 55%; top: 20%; left: 55%; }
.map-route {
  position: absolute;
  top: 30%;
  left: 15%;
  width: 60%;
  height: 40%;
  border: 2px dashed var(--accent);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: route-dash 20s linear infinite;
}
@keyframes route-dash {
  to { stroke-dashoffset: -100; }
}
.map-vehicle {
  position: absolute;
  top: 42%;
  left: 48%;
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: top 4s ease-in-out, left 4s ease-in-out;
}
.vehicle-pulse {
  position: absolute;
  inset: -20px;
  border: 2px solid var(--smart-track-red);
  border-radius: 50%;
  animation: vehicle-pulse 2s ease-out infinite;
  opacity: 0.6;
}
@keyframes vehicle-pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.vehicle-icon {
  width: 48px;
  height: 48px;
  background: #888;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.vehicle-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 4px;
  white-space: nowrap;
}
.map-header-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: var(--smart-track-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  z-index: 10;
}
.map-stats {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  z-index: 10;
}
.map-stat {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.7rem;
}
.map-stat strong {
  display: block;
  font-size: 1rem;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.geofence {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #fff;
  box-shadow: var(--shadow);
}
.geofence.g1 { top: 25%; left: 25%; }
.geofence.g2 { top: 60%; left: 70%; }
.geofence.g3 { top: 35%; left: 75%; }

.track-input-wrap {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.track-input-wrap input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}
.track-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.2);
}

@media (min-width: 1024px) {
  .tracking-grid { grid-template-columns: 1fr 1.2fr; }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.service-card.featured {
  border-color: var(--secondary);
  box-shadow: 0 0 0 1px var(--secondary);
}
.service-card.featured::before {
  content: 'Más popular';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
}
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card .price { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; }
.service-features { margin: 1rem 0 1.5rem; }
.service-features li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}
.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* Process */
.process { background: var(--surface); }
.timeline { max-width: 600px; margin: 0 auto; position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--secondary));
}
.timeline-step {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2rem;
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 1;
}
.timeline-step.highlight .timeline-dot {
  border-color: var(--secondary);
  background: var(--secondary);
}
.timeline-step h3 { margin-bottom: 0.35rem; }
.timeline-step p { color: var(--text-secondary); font-size: 0.9rem; }
.badge-diff {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(245,183,0,0.08);
}
.cta-banner::before { width: 300px; height: 300px; top: -100px; right: -50px; }
.cta-banner::after { width: 200px; height: 200px; bottom: -80px; left: -40px; }
.cta-banner-inner {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-ctas { justify-content: center; }

/* Quote Form */
.quote { background: var(--bg); }
.quote-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.quote-sidebar {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
}
.quote-sidebar h3 { color: #fff; margin-bottom: 1rem; }
.quote-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.quote-benefits li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
}
.quote-phone {
  display: block;
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
}
.quote-phone:hover { color: #fff; }

.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.progress-wrap { margin-bottom: 2rem; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}
.form-step { display: none; animation: fadeIn 0.4s ease; }
.form-step.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-step h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group .hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.15);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--error); }
.form-error { color: var(--error); font-size: 0.8rem; margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.radio-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) { .radio-cards { grid-template-columns: repeat(3, 1fr); } }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}
.radio-card label .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.radio-card input:checked + label {
  border-color: var(--accent);
  background: rgba(0,168,232,0.05);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.2);
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.checkbox-group input { width: auto; margin-top: 0.25rem; }
.checkbox-group label { font-size: 0.85rem; color: var(--text-secondary); }
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show { display: block; }
.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.5s ease;
}
@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.ticket-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0;
}
.form-success .hero-ctas { justify-content: center; margin-top: 1.5rem; }

.quote-form-wrap { min-width: 0; }

@media (min-width: 1024px) {
  .quote-layout { grid-template-columns: 320px 1fr; }
  .quote-sidebar { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.trust-feature {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}
.trust-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.trust-feature h4 { margin-bottom: 0.25rem; }
.trust-feature p { font-size: 0.9rem; color: var(--text-secondary); }
.trust-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.counter-box {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
}
.counter-box .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.counter-box .label { font-size: 0.8rem; color: var(--text-secondary); }
.quality-badge {
  margin-top: 2rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
}
.quality-badge span {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* Coverage */
.coverage-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.panama-map {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.panama-map svg { width: 100%; height: auto; max-height: 320px; }
.map-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-dot.active { background: var(--accent); animation: pulse-dot 2s infinite; }
.legend-dot.scheduled { background: var(--text-muted); }
.zone-cards { display: grid; gap: 1rem; }
.zone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.zone-card.active { border-left: 4px solid var(--accent); }
.zone-card h4 { font-size: 1rem; }
.zone-card span { font-size: 0.85rem; color: var(--text-secondary); }
.zone-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.zone-badge.active { background: rgba(0,168,232,0.15); color: var(--accent); }
.zone-badge.scheduled { background: var(--bg); color: var(--text-muted); }

@media (min-width: 1024px) {
  .coverage-layout { grid-template-columns: 1fr 1fr; }
}

/* FAQ */
.faq { background: var(--surface); }
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-list summary {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.faq-cta-card {
  background: linear-gradient(135deg, var(--whatsapp), #128c7e);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}
.faq-cta-card h3 { color: #fff; margin-bottom: 0.5rem; }
.faq-cta-card p { opacity: 0.9; margin-bottom: 1.5rem; font-size: 0.9rem; }
.faq-cta-card .btn { background: #fff; color: var(--whatsapp); border-color: #fff; }
.faq-cta-card .btn:hover { background: rgba(255,255,255,0.9); }

@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: 1fr 300px; }
  .faq-cta-card { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.contact-method {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-method:last-of-type { border-bottom: none; }
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-icon.wa { background: rgba(37,211,102,0.15); }
.contact-icon.phone { background: rgba(26,39,68,0.1); }
.contact-icon.email { background: rgba(0,168,232,0.1); }
.contact-icon.hours { background: rgba(245,183,0,0.2); }
.contact-method h4 { margin-bottom: 0.15rem; }
.contact-method a, .contact-method p { color: var(--text-secondary); font-size: 0.95rem; text-decoration: none; }
.contact-method a:hover { color: var(--accent); }
.pulse-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  margin-left: 0.5rem;
  animation: pulse-dot 2s infinite;
}
.badge-immediate {
  display: inline-block;
  font-size: 0.65rem;
  background: var(--success);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: 600;
}
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.social-links a:hover { background: var(--accent); color: #fff; }
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.footer .logo-aa { font-size: 2rem; }
.footer .logo-text { color: rgba(255,255,255,0.7); }
.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer ul li { margin-bottom: 0.5rem; }
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.footer a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* WhatsApp Float */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
}
.wa-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  font-size: 1.75rem;
  text-decoration: none;
  transition: transform var(--transition);
}
.wa-float a:hover { transform: scale(1.08); color: #fff; }
.wa-float .tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.wa-float:hover .tooltip { opacity: 1; }

/* Utilities */
.text-center { text-align: center; }
.hidden { display: none !important; }
