/* ============================================================
   Transportes Condal — diseño v2
   Vanilla CSS, sin frameworks. Tipografía Inter (Google Fonts).
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #eef2f8;
  --bg-dark: #0f172a;
  --text: #0f172a;
  --text-soft: #334155;
  --text-mute: #64748b;
  --accent: #1e40af;
  --accent-2: #3b82f6;
  --accent-light: #dbeafe;
  --teal: #0891b2;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius: 12px;
  --radius-lg: 18px;
  --max: 1180px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, .15);
  /* Fuentes — Plus Jakarta Sans para titulares (display), Inter para cuerpo */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Focus visible — anillo de marca, mejor para a11y que el outline default */
*:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.contact-card:focus-visible,
.svc:focus-visible {
  outline-offset: 4px;
}

/* Display font — Plus Jakarta Sans — para titulares con personalidad */
.section-title,
.hero-text h1,
.cta-inner h2,
.zones-cloud-head h3,
.svc h3,
.step-card h3 {
  font-family: var(--font-display);
  font-feature-settings: 'ss01', 'cv11';
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-2); }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-logo {
  height: 58px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* Hamburger button — solo visible en mobile */
.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .18s, border-color .18s;
}
.hamburger:hover { background: var(--bg-soft); border-color: var(--accent-2); }
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Drawer menu — slide-down debajo del topbar */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-menu.is-open {
  max-height: 320px;
}
.mobile-menu a {
  padding: 14px 28px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--bg-soft); color: var(--accent); }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, var(--shadow-sm);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, transparent 38%, rgba(255,255,255,.32) 50%, transparent 62%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events: none;
  z-index: 1;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary > * { position: relative; z-index: 2; }
.btn-primary:hover { background: var(--accent-2); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 12px;
}

/* ── Eyebrow + section titles ───────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  /* Tinte teal — diferencia respecto al azul corporativo del resto.
     Pequeño detalle que rompe la monotonía azul. */
  color: var(--teal);
  margin-bottom: 16px;
  padding: 5px 14px;
  background: linear-gradient(135deg, rgba(8, 145, 178, .08), rgba(59, 130, 246, .08));
  border: 1px solid rgba(8, 145, 178, .18);
  border-radius: 99px;
}
.eyebrow.center { display: block; text-align: center; margin-left: auto; margin-right: auto; max-width: max-content; }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 16px;
  /* Gradiente animado slate-900 → blue-900 → teal — premium con un
     leve shimmer al revelar. Fallback al color sólido en navegadores
     sin background-clip:text. */
  color: var(--text);
  background: linear-gradient(110deg, #0f172a 0%, #1e3a8a 45%, #0891b2 70%, #1e3a8a 95%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 1.6s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-revealed .section-title,
.is-revealed.section-title {
  background-position: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .section-title { transition: none; background-position: 0 0; }
}
.section-title.center { text-align: center; }
.section-sub {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 0 36px;
  line-height: 1.6;
}
.section-title.center + .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
.section-sub.subtle {
  font-size: 18px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: .005em;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* Full viewport menos la altura del topbar sticky (78px desktop,
     68px mobile — override en la media query). dvh evita el corte
     por la barra del navegador en mobile. */
  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  display: flex;
  flex-direction: column;
  padding: 56px 0 48px;
  overflow: hidden;
  background: #0a0e1f; /* fallback antes de que cargue la imagen */
  color: #fff;
}
/* Capa imagen — separada del overlay para poder animar (Ken Burns) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('hero.jpg') center / cover no-repeat;
  z-index: 0;
  animation: hero-kenburns 15s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: 60% 50%;
}
@keyframes hero-kenburns {
  from { transform: scale(1)    translate(0, 0); }
  to   { transform: scale(1.15) translate(-2%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
/* hero-inner crece y centra contenido vertical; stats-bar queda abajo
   por flujo natural (margin-top: auto en .stats-bar). */
.hero-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Overlay azul oscuro + radials decorativos. Encima de la imagen
   (z-index 1) para que el texto destaque sobre cualquier escena. */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(96, 165, 250, .22), transparent 60%),
    radial-gradient(700px 400px at 5% 60%, rgba(59, 130, 246, .16), transparent 60%),
    linear-gradient(to right, rgba(2, 6, 23, .94) 0%, rgba(8, 12, 28, .88) 45%, rgba(15, 23, 42, .78) 80%, rgba(15, 23, 42, .72) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  /* Sutil viñeta inferior para fundir hacia el siguiente bloque */
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, .35));
  pointer-events: none;
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding-bottom: 88px;
}
.hero .stats-bar { z-index: 3; }

.hero-text { position: relative; }
.hero-text h1 { position: relative; }

/* Eyebrow con dot cyan pulsante a la izquierda — "live indicator",
   transmite operativa real, en marcha. */
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero .eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 0 0 rgba(103, 232, 249, .55);
  animation: hero-eyebrow-pulse 2.2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes hero-eyebrow-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(103, 232, 249, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(103, 232, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow::before { animation: none; }
}
.hero .eyebrow {
  /* En modo dark el eyebrow azul claro queda más vivo */
  color: #93c5fd;
  background: rgba(147, 197, 253, .12);
  border: 1px solid rgba(147, 197, 253, .25);
}
.hero-text h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.grad {
  /* Gradiente con tonos cyan/teal para que brille sobre el fondo oscuro
     y rompa la monotonía azul del hero. */
  background: linear-gradient(120deg, #a5f3fc 0%, #67e8f9 35%, #67d4ea 65%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(103, 232, 249, .25));
}
.hero .lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255, 255, 255, .88);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.55;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .35);
}
.hero .lead strong {
  color: #fff;
  font-weight: 700;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* En el hero oscuro, el primario brilla más */
.hero .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4);
}
.hero .btn-primary:hover { background: #f1f5f9; color: var(--accent); }
.hero .btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }

/* Punto base reutilizado en chips de zonas */
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.dot.blue { background: var(--accent-2); }
.dot.teal { background: var(--teal); }

/* Stats al pie del hero — pastillas independientes (no banner unificado).
   Cada stat es una card con su fondo oscuro translúcido, borde sutil y
   gradient text. En desktop quedan en línea con un gap; en mobile se
   colocan en 2 cols con la misma estética compacta. */
.stats-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin: -8px auto 0;
  max-width: 620px;
}
.stat {
  position: relative;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 22px 24px;
  border-radius: 16px;
  box-shadow:
    0 14px 32px -12px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
/* Decoración: línea fina superior con gradient — detalle premium */
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .55), transparent);
}
.stat:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, .35);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #a5f3fc, #67e8f9 50%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat span {
  font-size: 11px;
  color: rgba(255, 255, 255, .72);
  margin-top: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

/* ── Sections genéricas ──────────────────────────────────── */
.section { padding: 72px 0; }
.section-light {
  background: linear-gradient(180deg, #f1f5fb 0%, #e3ecf8 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Sutil glow azul en lo alto de las secciones claras (echo del hero) */
.section-light::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  width: 900px; height: 460px;
  background: radial-gradient(closest-side, rgba(30, 64, 175, .12), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.section-light > .container { position: relative; z-index: 1; }

/* ── Servicios — grid 4 cols × 2 filas, todas iguales ────── */
.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.svc {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 30px;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  box-shadow:
    0 1px 2px rgba(30, 64, 175, .05),
    0 4px 12px -4px rgba(30, 64, 175, .08);
  display: flex;
  flex-direction: column;
}
/* SPOTLIGHT EFFECT: un haz de luz azul que sigue al cursor sobre la
   card. JS actualiza --mx/--my en mousemove. Por defecto invisible. */
.svc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
                              rgba(59, 130, 246, .14),
                              rgba(59, 130, 246, .04) 28%,
                              transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 0;
}
.svc:hover::before { opacity: 1; }
/* Línea fina de gradient arriba que aparece al hover */
.svc::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--teal));
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 2;
}
.svc:hover {
  border-color: rgba(30, 64, 175, .18);
  transform: translateY(-4px);
  box-shadow:
    0 28px 56px -18px rgba(30, 64, 175, .22),
    0 0 0 1px rgba(30, 64, 175, .06);
}
.svc:hover::after { opacity: 1; }
.svc:hover .svc-icon-wrap {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 14px 28px -8px rgba(30, 64, 175, .4);
}

/* Contenido por encima del spotlight */
.svc > * { position: relative; z-index: 1; }

.svc-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px -6px rgba(30, 64, 175, .35);
  transition: transform .4s ease, box-shadow .4s ease;
  flex-shrink: 0;
}
.svc-icon-wrap svg { width: 24px; height: 24px; stroke-width: 1.6; }

.svc h3 {
  font-size: 18px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.svc p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.svc p strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 980px) {
  .services-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-bento { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Zonas — radio de acción + watermark ────────────────── */
.zones-head {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

/* Wrap relativo: marca de agua absolute al fondo, SVG del polígono encima. */
.zones-radius-wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 580 / 540;
}
.zones-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 4px 14px;
  padding: 60px 80px;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  /* Máscara ajustada al círculo perfecto (r=225 sobre viewBox 580×540
     ≈ 38% del lado menor). Fundido suave en el borde para integrar
     el watermark con el contorno radar. */
  mask-image: radial-gradient(circle 38% at 50% 50%, #000 75%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 38% at 50% 50%, #000 75%, transparent 100%);
}
.zones-watermark .wm-item {
  font-size: 13px;
  font-weight: 500;
  /* Tinte azulado de marca en lugar de gris neutro */
  color: rgba(30, 64, 175, .22);
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.45;
}
/* Las top-N reciben un punto más oscuro y peso para que el ojo encuentre
   las grandes sin perder el efecto de marca de agua. */
.zones-watermark .wm-item.is-big {
  font-weight: 600;
  color: rgba(30, 64, 175, .32);
}

.zones-radius {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
/* El path se dibuja con stroke-dashoffset CUANDO ENTRA EN VIEWPORT
   (no al cargar). --path-len lo asigna JS desde getTotalLength().
   La animación se dispara cuando el wrapper recibe .is-revealed. */
.radius-shape {
  filter: drop-shadow(0 16px 36px rgba(30, 64, 175, .18));
  stroke-dasharray: var(--path-len, 2400);
  stroke-dashoffset: var(--path-len, 2400);
}
.zones-radius-wrap.is-revealed .radius-shape {
  animation: radius-draw 1.8s ease-out forwards;
}
@keyframes radius-draw {
  to { stroke-dashoffset: 0; }
}

/* Aparición escalonada de cada punto + etiqueta (delay vía --d inline).
   También condicional a .is-revealed para que arranque con el scroll. */
@keyframes city-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.zones-radius .extreme,
.zones-radius .city-inner {
  opacity: 0;
}
.zones-radius-wrap.is-revealed .extreme,
.zones-radius-wrap.is-revealed .city-inner {
  animation: city-fade-in .55s ease-out forwards;
  animation-delay: var(--d, 0s);
}

/* Anillos guía concéntricos — feel de radar. Muy sutil, sin robar protagonismo. */
.zones-radius .guide-ring {
  fill: none;
  stroke: rgba(30, 64, 175, .14);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.zones-radius .guide-cross {
  stroke: rgba(30, 64, 175, .10);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

/* Base operativa en el centro (El Papiol — HQ) */
.zones-radius .center-base .center-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 8px rgba(30, 64, 175, .45));
}
.zones-radius .center-base .center-pulse {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.5;
  transform-origin: 290px 270px;
  /* Sin vector-effect: el stroke se escala con la animación, así
     queda más fino al inicio (cerca del centro) y se afina al llegar
     al borde por el fade. Vibe radar limpio. */
  animation: center-pulse 4s cubic-bezier(.2, .7, .2, 1) infinite;
}
@keyframes center-pulse {
  0%   { transform: scale(.02); opacity: .9; }
  85%  { opacity: .15; }
  100% { transform: scale(1);   opacity: 0; }
}

/* Extremos: protagonistas, color accent, peso 700, pulse sutil tras aparecer */
.zones-radius .extreme circle {
  fill: var(--accent-2);
  stroke: #fff;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, .25));
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse-dot 4.5s ease-in-out infinite;
  animation-delay: calc(var(--d, 0s) + 1s);
}
.zones-radius .extreme text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  fill: var(--text);
  letter-spacing: -0.015em;
  /* Halo blanco para tapar la marca de agua que quede detrás del texto */
  paint-order: stroke fill;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}
@keyframes pulse-dot {
  0%, 75%, 100% { transform: scale(1); }
  85%           { transform: scale(1.35); }
}

/* Internas (las "gordas"): más discretas, color secundario */
.zones-radius .city-inner circle {
  fill: rgba(30, 64, 175, .55);
  stroke: #fff;
  stroke-width: 1.5;
}
.zones-radius .city-inner text {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--text-soft);
  letter-spacing: -0.01em;
  paint-order: stroke fill;
  stroke: #fff;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .radius-shape { animation: none; stroke-dashoffset: 0; }
  .zones-radius .extreme,
  .zones-radius .city-inner { opacity: 1; animation: none; }
  .zones-radius .extreme circle { animation: none; }
}

/* ── Cursor blob global ──────────────────────────────────── */
/* Halo azul tenue que sigue al cursor por toda la página. JS
   actualiza --cx/--cy con easing. Solo se muestra en desktop con
   ratón (no en touch). Z-index bajo para no tapar contenido. */
.cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
                              rgba(59, 130, 246, .22) 0%,
                              rgba(8, 145, 178, .14) 30%,
                              rgba(59, 130, 246, .04) 55%,
                              transparent 70%);
  filter: blur(28px);
  transform: translate3d(calc(var(--cx, 50vw) - 50%), calc(var(--cy, 50vh) - 50%), 0);
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}
body.has-pointer .cursor-blob {
  opacity: 1;
}
@media (hover: none), (max-width: 1023px), (prefers-reduced-motion: reduce) {
  .cursor-blob { display: none; }
}

/* ── Sistema de reveal on scroll ─────────────────────────── */
/* Cualquier elemento con .reveal arranca invisible y desplazado un
   poco hacia abajo. Al añadirle .is-revealed (vía IntersectionObserver
   en JS) entra con un fade-in suave. */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.zones-foot {
  text-align: center;
  margin: 24px auto 0;
  color: var(--text-soft);
  font-size: 15px;
}
.zones-foot a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 760px) {
  .zones-radius .extreme text { font-size: 11px; }
  .zones-watermark .wm-item { font-size: 11px; }
  .zones-watermark { padding: 16px 20px; gap: 3px 10px; }
}

/* ── Cómo trabajamos — timeline horizontal ───────────────── */
/* 4 pasos con nodos circulares conectados por una línea de
   gradient. La línea cruza horizontalmente a la altura de los
   iconos. Las cards quedan blancas, encima de la línea. */
.process {
  --node-size: 72px;
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
/* Línea de conexión: gradient entre el centro del primer y último
   nodo, a la altura del centro del nodo (top-padding + node/2). */
.process::before {
  content: '';
  position: absolute;
  top: calc(36px + var(--node-size) / 2 - 1px);
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(30, 64, 175, 0) 0%,
    rgba(30, 64, 175, .35) 8%,
    rgba(8, 145, 178, .35) 92%,
    rgba(8, 145, 178, 0) 100%);
  z-index: 0;
}

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 64, 175, .15);
  box-shadow:
    0 28px 56px -18px rgba(30, 64, 175, .22),
    0 0 0 1px rgba(30, 64, 175, .06);
}
.step-card:hover .step-node {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 16px 32px -8px rgba(30, 64, 175, .35);
}

/* Badge "01-04" arriba a la derecha (decorativo, peso fuerte) */
.step-badge {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 99px;
  z-index: 2;
}

/* Nodo circular con icono — el "punto" de la timeline */
.step-node {
  width: var(--node-size);
  height: var(--node-size);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow:
    0 12px 28px -8px rgba(30, 64, 175, .4),
    0 0 0 6px rgba(255, 255, 255, 1),
    0 0 0 7px rgba(30, 64, 175, .12);
  transition: transform .4s ease, box-shadow .4s ease;
}
.step-node svg { width: 28px; height: 28px; stroke-width: 1.7; }

.step-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}
.step-card > p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
  text-align: center;
}

/* Lista de detalle dentro de cada paso */
.step-list {
  list-style: none;
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-soft);
}
.step-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--teal));
  box-shadow: 0 1px 3px rgba(30, 64, 175, .25);
}
.step-list li::after {
  content: '';
  position: absolute;
  left: 3.5px; top: 8.5px;
  width: 5px; height: 2.5px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

@media (max-width: 980px) {
  .process { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .process::before { display: none; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
}

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(120deg, var(--bg-dark), #1e3a8a);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 80% 50%, rgba(59, 130, 246, .25), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Contacto ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  box-shadow:
    0 1px 2px rgba(30, 64, 175, .05),
    0 4px 12px -4px rgba(30, 64, 175, .08);
  overflow: hidden;
}
/* Línea fina de gradient arriba que aparece al hover (igual que .svc) */
.contact-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--teal));
  opacity: 0;
  transition: opacity .35s ease;
}
.contact-card:hover {
  border-color: rgba(30, 64, 175, .18);
  color: var(--text);
  transform: translateY(-6px);
  box-shadow:
    0 28px 56px -18px rgba(30, 64, 175, .28),
    0 0 0 1px rgba(30, 64, 175, .06);
}
.contact-card:hover::after { opacity: 1; }
.contact-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px -6px rgba(30, 64, 175, .3);
  transition: transform .35s ease;
}
.contact-card:hover .contact-icon { transform: scale(1.05) rotate(-3deg); }
.contact-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.contact-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-mute);
}
.contact-card strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .75);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  /* Como el footer es oscuro, blanqueamos el logo (que es azul) para que
     tenga buen contraste sobre el fondo navy. */
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
  max-width: 320px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-h {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 6px;
}
.footer-cols a {
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
}
.footer-cols a:hover { color: #fff; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
}
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

/* ── Responsive ──────────────────────────────────────────── */
/* Por defecto el botón Acceso muestra texto + flecha. En mobile
   se reemplaza por el icono de persona (--user). */
.btn-user { display: none; }

@media (max-width: 900px) {
  .hero-inner { padding-bottom: 56px; }
  .zones-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ── MOBILE — versión densa, optimizada ──────────────────── */
@media (max-width: 768px) {
  /* Container más estrecho */
  .container { padding: 0 18px; }

  /* Topbar 68px con contenido alineado AL BOTTOM. El logo PNG tiene
     algo de whitespace inferior que descentraba visualmente los
     elementos; pegándolo abajo el aire queda solo arriba. */
  .topbar-inner {
    height: 68px;
    gap: 8px;
    padding: 0 18px;
    align-items: flex-end;
  }
  .brand-logo { height: 44px; }
  .topbar .btn-access {
    width: 44px; height: 44px;
    padding: 10px;
    border-radius: 12px;
    gap: 0;
  }
  .topbar .btn-access .btn-user { width: 18px; height: 18px; }
  .hamburger { width: 44px; height: 44px; border-radius: 12px; }
  .hamburger span { width: 18px; }
  .topbar .btn-access .btn-text,
  .topbar .btn-access .btn-arrow { display: none; }
  .topbar .btn-access .btn-user { display: block; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* Section padding global reducido — adios a la densidad */
  .section { padding: 44px 0 !important; }

  /* Hero con respiro + foto reposicionada para mostrar el camión */
  .hero {
    /* Mobile topbar = 68px → resto eso para encajar full-viewport sin scroll falso */
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
    padding: 32px 0 32px !important;
    background: #0a0e1f !important;
  }
  /* Mobile: la imagen se desplaza al 75% horizontal para ver el camión */
  .hero::before {
    background: url('hero.jpg') 75% center / cover no-repeat !important;
  }
  /* Mobile: overlay oscuro pero permeable — el camión se intuye
     como ambiente sin tapar la legibilidad del texto. */
  .hero .hero-bg {
    background:
      linear-gradient(180deg,
        rgba(2, 6, 23, .94) 0%,
        rgba(8, 12, 28, .89) 50%,
        rgba(15, 23, 42, .80) 100%) !important;
  }
  .hero-inner { padding-bottom: 0 !important; padding-top: 0 !important; }
  /* Distribuye eyebrow ARRIBA, h1 CENTRO, lead ABAJO — mejor reparto
     vertical en pantallas largas. Reset de margins para que el flex
     gestione el spacing. */
  .hero .hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 100%;
    gap: 18px;
  }
  .hero .hero-text h1 { margin: 0 !important; }
  .hero .lead { margin: 0 !important; }
  .hero .eyebrow { margin: 0 !important; }
  .hero-text h1 { font-size: 36px !important; line-height: 1.1; margin-bottom: 16px; }
  .hero .lead { font-size: 14.5px; margin-bottom: 22px; }
  .hero .eyebrow { font-size: 10px; padding: 4px 12px; letter-spacing: 1.1px; margin-bottom: 14px; gap: 8px; }
  .hero .eyebrow::before { width: 6px; height: 6px; }

  /* Stats — 2 pastillas lado a lado en mobile (no apiladas) */
  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: -4px;
    padding: 0 !important;
  }
  .stat { padding: 18px 14px; border-radius: 14px; }
  .stat strong { font-size: 22px !important; }
  .stat span { font-size: 10px; margin-top: 6px; letter-spacing: 1px; }

  /* Section heads compactos */
  .section-title { font-size: 26px !important; line-height: 1.15 !important; letter-spacing: -0.02em; }
  .section-sub { font-size: 14.5px !important; line-height: 1.55; margin-bottom: 28px !important; }
  .eyebrow { font-size: 11px; padding: 4px 10px; letter-spacing: 1.2px; }

  /* Servicios compactos — 2 columnas en mobile */
  .services-bento {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 32px !important;
  }
  .svc { padding: 18px 14px 16px !important; }
  .svc h3 { font-size: 14.5px; margin-bottom: 6px; line-height: 1.2; }
  .svc p { font-size: 12.5px; line-height: 1.45; }
  .svc-icon-wrap { width: 38px; height: 38px; margin-bottom: 12px; border-radius: 10px; }
  .svc-icon-wrap svg { width: 18px; height: 18px; }

  /* Cómo trabajamos — cards colapsables (tap para expandir bullets) */
  .process { gap: 10px; margin-top: 32px !important; }
  .process::before { display: none; }
  .step-card {
    padding: 18px 18px 18px 76px;
    cursor: pointer;
    min-height: 0;
  }
  /* Layout horizontal compacto: nodo a la izquierda, contenido a la derecha */
  .step-card .step-node {
    position: absolute;
    top: 18px;
    left: 16px;
    width: 48px;
    height: 48px;
    margin: 0;
  }
  .step-card .step-node svg { width: 20px; height: 20px; }
  .step-card h3 {
    font-size: 16px;
    margin: 0 0 4px;
    text-align: left;
    padding-right: 28px; /* hueco para el chevron */
  }
  .step-card > p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    text-align: left;
  }
  .step-badge {
    top: 14px;
    right: 14px;
    padding: 2px 7px;
    font-size: 10px;
  }
  /* Chevron indicador de expand */
  .step-card::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: 22px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--accent-2);
    border-bottom: 2px solid var(--accent-2);
    transform: rotate(45deg);
    transition: transform .25s ease;
  }
  .step-card.is-open::after {
    transform: rotate(-135deg);
    bottom: 18px;
  }
  /* Lista de bullets oculta por defecto, visible al expandir */
  .step-list {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 0;
    margin: 0;
    transition: max-height .35s ease, margin .35s ease, padding .35s ease;
  }
  .step-card.is-open .step-list {
    max-height: 200px;
    padding: 14px 0 4px;
    margin-top: 12px;
    border-top: 1px dashed var(--border);
  }
  .step-list li { font-size: 12.5px; padding-left: 20px; }

  /* Cobertura — radio más grande en mobile, salimos del container
     para usar todo el ancho de la pantalla. Aspect-ratio casi cuadrado
     para ganar altura y dejar respiro a las labels exteriores. */
  .zones-head { margin-bottom: 24px; }
  #zonas .container > .zones-radius-wrap {
    max-width: none;
    margin-left: -18px;
    margin-right: -18px;
    aspect-ratio: 1 / 1.05;
  }
  .zones-watermark { padding: 70px 14px; gap: 3px 8px; }
  .zones-watermark .wm-item { font-size: 10.5px; line-height: 1.35; }
  /* Etiquetas SVG más grandes — el radio gana protagonismo */
  .zones-radius .extreme text { font-size: 17px; font-weight: 800; stroke-width: 5px; }
  .zones-radius .extreme circle { stroke-width: 2; }
  .zones-radius .city-inner text { font-size: 14px; font-weight: 700; stroke-width: 4.5px; }
  .zones-radius .sea-label { font-size: 9px; }
  .zones-foot { font-size: 14px; margin-top: 24px; padding: 0 8px; }

  /* CTA banner */
  .cta-band { padding: 48px 0; }
  .cta-inner { gap: 18px; }
  .cta-inner h2 { font-size: 22px !important; }
  .cta-inner p { font-size: 14.5px; }
  .cta-buttons { flex-direction: column; width: 100%; gap: 10px; }
  .cta-buttons .btn { width: 100%; padding: 13px 20px !important; font-size: 14px; }

  /* Contacto compacto — card horizontal: icono | valor (sin label).
     Una sola línea de altura por card. */
  .contact-grid { gap: 10px; margin-top: 28px; }
  .contact-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
  }
  .contact-card strong { font-size: 14.5px; line-height: 1.3; }
  .contact-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .contact-icon svg { width: 18px; height: 18px; }

  /* Footer */
  .footer { padding-top: 44px; }
  .footer-inner { padding-bottom: 32px; gap: 28px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-logo { height: 36px; }
  .footer-brand p { font-size: 13px; }
  .footer-bar-inner { font-size: 12px; }
}

/* Override para el bloque viejo de 560px (queda obsoleto, las reglas
   de 768px ya cubren todo lo importante). */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
}
