/* ==========================================================================
   Ontime Servicio de Transporte — style.css
   Diseño moderno, profesional, 100% responsive.
   ========================================================================== */

:root {
  --navy-900: #070c17;
  --navy-800: #0b1220;
  --navy-700: #10192e;
  --blue-800: #142a63;
  --blue-700: #1e3a8a;
  --blue-600: #2547a8;
  --blue-500: #2563eb;
  /* Acentos alineados a la marca real (presentación On Time 2026: navy + azul, sin cian/ámbar) */
  --cyan-400: #6690e0;
  --cyan-300: #a9c2ea;
  --gray-50: #f7f9fc;
  --gray-100: #eef1f7;
  --gray-200: #dde3ee;
  --gray-400: #9aa5b8;
  --gray-600: #5b667a;
  --gray-800: #2a3143;
  --white: #ffffff;

  --font-heading: 'Poppins', 'Manrope', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 18, 32, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.18);

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --transition: 0.25s var(--ease-out-quart);
  --transition-fast: 0.15s var(--ease-out-quart);
  --transition-layout: 0.4s var(--ease-out-quint);
  --header-h: 84px;
}

/* --- Movimiento reducido: respeta la preferencia del sistema en todo el sitio --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-pop { opacity: 1 !important; transform: none !important; }
}

/* --- Reset --- */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--navy-800); }
h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--gray-600); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff;
  padding: 12px 18px; z-index: 10000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,0.35); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30,58,138,0.45); }
.btn-primary:active { transform: scale(0.97); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-900); transform: translateY(-2px); }
.btn-dark:active, .btn-outline:active, .btn-whatsapp:active { transform: scale(0.97); }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 0px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0);
  transition: box-shadow 0.3s var(--ease-out-quart);
}
/*
  El fondo + blur viven en un ::before (en vez de ir directo en .site-header) a
  propósito: backdrop-filter en un ancestro crea su propio "containing block"
  para los descendientes con position:fixed, y eso atrapaba el menú móvil
  (#main-nav) dentro de la altura del header en vez de cubrir toda la pantalla.
  Con el blur aislado en el pseudo-elemento, .site-header solo queda con
  position:sticky (que no genera ese problema) y el menú fixed vuelve a usar
  el viewport completo como referencia.
*/
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 12, 23, 0.85); backdrop-filter: blur(10px);
  transition: background var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex-shrink: 0; }
.logo-img { height: 30px; width: auto; display: block; }
.footer-logo-img { height: 36px; margin-bottom: 4px; }
.logo-tagline { font-size: 0.55rem; letter-spacing: 2px; color: var(--gray-400); font-weight: 600; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav li { flex-shrink: 0; }
.main-nav a {
  display: block; color: rgba(255,255,255,0.82); font-weight: 600; font-size: 0.9rem; padding: 10px 12px;
  border-radius: 999px; white-space: nowrap; transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active { background: rgba(102,144,224,0.15); color: var(--cyan-300); }

.header-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.phone-link { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 0.92rem; }
.phone-link svg path { fill: var(--cyan-400); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 32px; height: 26px; justify-content: center; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55), 0 10px 30px rgba(37,211,102,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 10px 30px rgba(37,211,102,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 10px 30px rgba(37,211,102,0.45); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; background: radial-gradient(circle at 80% 20%, var(--blue-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  color: #fff; padding: 110px 0 90px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(102,144,224,0.12);
  border: 1px solid rgba(102,144,224,0.35); color: var(--cyan-300); font-weight: 700; font-size: 0.82rem;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--cyan-400); }
.hero-lead { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }

.hero-visual { position: relative; padding: 0 18px 34px 0; }
.hero-photo-wrap {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2;
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }

.img-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); background: #fff; }
.img-frame img { width: 100%; height: auto; display: block; }
.img-frame p { padding: 16px 20px 20px; margin: 0; }

.hero-float-badge {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(11,18,32,0.85); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.14);
  padding: 14px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-width: 260px;
}
.hero-float-badge .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(102,144,224,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-float-badge strong { display: block; font-size: 0.9rem; color: #fff; }
.hero-float-badge span { font-size: 0.76rem; color: rgba(255,255,255,0.6); }
.hero-float-badge--top { top: -22px; left: -18px; }
.hero-float-badge--bottom { bottom: 12px; right: -18px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; padding: 22px 18px 40px; }
}
@media (max-width: 560px) {
  .hero-float-badge { padding: 10px 14px; gap: 8px; max-width: 200px; }
  .hero-float-badge--top { top: 4px; left: 4px; }
  .hero-float-badge--bottom { bottom: 24px; right: 4px; }
}

/* ==========================================================================
   Barra de confianza / stats
   ========================================================================== */
.trust-bar { background: var(--gray-50); padding: 46px 0; border-bottom: 1px solid var(--gray-200); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-grid .stat-number { font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; color: var(--blue-700); }
.trust-grid .stat-label { font-size: 0.85rem; color: var(--gray-600); font-weight: 600; }
@media (max-width: 768px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; color: var(--blue-600); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 12px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.section-head.align-left { margin: 0 0 40px; text-align: left; }

.bg-alt { background: var(--gray-50); }
.bg-dark { background: var(--navy-900); color: #fff; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: #000; }

/* --- Grids de tarjetas --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 36px 32px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon-box {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--blue-700), var(--navy-800)); margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--blue-600); font-size: 0.9rem; }

/* --- Carrusel de beneficios (rota automáticamente para no dejar espacio vacío junto al texto) --- */
.benefit-carousel {
  position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 32px 32px 24px;
}
.benefit-carousel-track { position: relative; min-height: 112px; }
.benefit-slide {
  position: absolute; inset: 0; display: flex; gap: 16px; align-items: flex-start;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.5s var(--ease-out-quart), transform 0.5s var(--ease-out-quart);
}
.benefit-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.benefit-slide .num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-700); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-heading); }
.benefit-slide h4 { font-size: 1.05rem; color: var(--navy-800); margin-bottom: 6px; }
.benefit-slide p { font-size: 0.92rem; margin: 0; }
@media (max-width: 640px) { .benefit-carousel-track { min-height: 148px; } }

.benefit-progress { height: 3px; background: var(--gray-100); border-radius: 999px; overflow: hidden; margin-top: 22px; }
.benefit-progress-fill { height: 100%; width: 0%; background: var(--blue-600); border-radius: 999px; }

.benefit-carousel-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.benefit-dots { display: flex; gap: 2px; }
.benefit-dots button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); transition: background var(--transition), transform var(--transition); }
.benefit-dots button:hover::before { background: var(--gray-400); }
.benefit-dots button.is-active::before { background: var(--blue-600); transform: scale(1.35); }
.benefit-pause {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); flex-shrink: 0; transition: background var(--transition), color var(--transition);
}
.benefit-pause:hover { background: var(--gray-100); color: var(--navy-800); }

@media (prefers-reduced-motion: reduce) {
  .benefit-progress { display: none; }
}

/* CTA final */
.cta-band {
  background: linear-gradient(120deg, var(--blue-800), var(--navy-900));
  color: #fff; border-radius: var(--radius-lg); padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.75); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 768px) { .cta-band { padding: 40px 26px; text-align: center; justify-content: center; } }

/* --- FAQ acordeón --- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left; font-weight: 700; font-family: var(--font-heading); font-size: 1rem; color: var(--navy-800);
}
.faq-question .chev { transition: transform 0.3s var(--ease-out-quart); flex-shrink: 0; }
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.faq-answer {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition-layout);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; padding: 0 24px; }
.faq-item.open .faq-answer-inner { padding: 0 24px 22px; }
.faq-answer p { font-size: 0.95rem; }

/* --- Muro de logos de clientes reales (index.php, nosotros.php) --- */
.logo-wall {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px;
}
.logo-wall .logo-item {
  display: flex; align-items: center; justify-content: center; height: 92px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 16px 20px; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.logo-wall .logo-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); border-color: var(--gray-200); }
.logo-wall .logo-item img {
  max-width: 100%; max-height: 42px; width: auto; height: auto;
  filter: grayscale(1); opacity: 0.75; transition: filter var(--transition), opacity var(--transition);
}
.logo-wall .logo-item:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 480px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

/* --- Lista de municipios por estado (cobertura.php) --- */
.city-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--gray-200);
}
.city-grid li {
  position: relative; padding-left: 16px; font-size: 0.92rem; color: var(--gray-600);
}
.city-grid li::before {
  content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--blue-500);
}
.city-grid li:last-child { font-weight: 700; color: var(--navy-800); }
.city-grid li:last-child::before { background: var(--navy-800); }
@media (max-width: 480px) { .city-grid { grid-template-columns: 1fr; } }

/* --- Cobertura --- */
.coverage-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.coverage-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 18px 20px; }
.coverage-item .pin { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(37,99,235,0.1); display: flex; align-items: center; justify-content: center; }
/* La tarjeta siempre tiene fondo blanco (incluso dentro de secciones .bg-dark),
   así que su texto siempre debe ser oscuro, sin heredar el color claro de la sección. */
.coverage-item strong { color: var(--navy-800); }
.coverage-item p { color: var(--gray-600); }
@media (max-width: 640px) { .coverage-list { grid-template-columns: 1fr; } }

/* --- Tabla comparativa (servicios) --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 0.92rem; }
table.compare th { background: var(--navy-900); color: #fff; font-family: var(--font-heading); }
table.compare tr:last-child td { border-bottom: none; }
table.compare td:first-child { font-weight: 700; color: var(--navy-800); }

/* --- Contacto --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; color: var(--gray-800); transition: border-color var(--transition);
  background: var(--gray-50);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}
.field input.field-invalid, .field select.field-invalid, .field textarea.field-invalid { border-color: #dc2626; background: #fef2f2; }
.field textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: 0.78rem; color: var(--gray-400); margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 600; font-size: 0.92rem; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: rgba(37,99,235,0.08); display: flex; align-items: center; justify-content: center; }
.map-wrap { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-200); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* --- Aviso privacidad / legal --- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 34px; margin-bottom: 12px; }
.legal-content p, .legal-content li { color: var(--gray-600); margin-bottom: 12px; }
.legal-content li { margin-left: 20px; list-style: disc; }

/* --- Nav de anclas dentro de servicios.php --- */
.service-jumpnav { display: flex; gap: 10px; flex-wrap: wrap; padding: 22px 0 0; }
.service-jumpnav a {
  padding: 9px 18px; border-radius: 999px; background: var(--gray-100); color: var(--navy-800);
  font-weight: 700; font-size: 0.85rem; transition: background var(--transition), color var(--transition);
}
.service-jumpnav a:hover { background: var(--blue-600); color: #fff; }

/* --- Breadcrumb visual --- */
.breadcrumb-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 16px 0; }
.breadcrumb-bar ol { display: flex; gap: 8px; font-size: 0.85rem; color: var(--gray-600); flex-wrap: wrap; }
.breadcrumb-bar a { color: var(--blue-600); font-weight: 600; }
.breadcrumb-bar li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--gray-400); }

/* --- Page hero interior (páginas que no son Inicio) --- */
.page-hero {
  background: radial-gradient(circle at 85% 15%, var(--blue-700) 0%, var(--navy-800) 60%, var(--navy-900) 100%);
  color: #fff; padding: 70px 0 64px; text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 640px; margin: 14px auto 0; }

/* --- Animación scroll-reveal ---
   Un solo patrón de entrada (fade + rise) para todo el sitio, pero NO se dispara
   de manera uniforme: los elementos dentro de un grid o de una lista de beneficios
   reciben un retraso incremental (stagger) para leerse como una secuencia, no como
   el mismo fundido repetido sección tras sección.

   Importante: el estado "oculto antes de animar" solo existe cuando <html> tiene
   la clase "js" (agregada por un script mínimo en el <head>). Sin JavaScript el
   contenido es 100% visible desde el primer render; el JS solo añade la animación,
   nunca decide si algo se ve. */
html.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-quart);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* Variante "pop": para elementos pequeños tipo insignia/notificación (escala en vez de desplazamiento) */
html.js .reveal-pop {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.5s var(--ease-out-quart), transform 0.5s var(--ease-out-quart);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal-pop.in-view { opacity: 1; transform: scale(1); }

/* Stagger para tarjetas dentro de un grid y para la lista de beneficios */
.grid-2 .reveal:nth-child(1), .grid-3 .reveal:nth-child(1), .grid-4 .reveal:nth-child(1) { --reveal-delay: 0s; }
.grid-2 .reveal:nth-child(2), .grid-3 .reveal:nth-child(2), .grid-4 .reveal:nth-child(2) { --reveal-delay: 0.08s; }
.grid-2 .reveal:nth-child(3), .grid-3 .reveal:nth-child(3), .grid-4 .reveal:nth-child(3) { --reveal-delay: 0.16s; }
.grid-3 .reveal:nth-child(4), .grid-4 .reveal:nth-child(4) { --reveal-delay: 0.24s; }
.grid-4 .reveal:nth-child(5) { --reveal-delay: 0.3s; }
.grid-4 .reveal:nth-child(6) { --reveal-delay: 0.36s; }

/* --- Coreografía de entrada del hero (Inicio) ---
   Mismo mecanismo que .reveal (IntersectionObserver), pero como el hero está
   siempre visible al cargar la página, el observer dispara la secuencia de
   inmediato: es el "un solo momento hero bien orquestado" en vez de reveals
   repetidos por scroll. */
.hero-badge, .hero h1, .hero-lead, .hero-actions { --reveal-delay: 0s; }
.hero-badge { --reveal-delay: 0s; }
.hero h1 { --reveal-delay: 0.1s; }
.hero-lead { --reveal-delay: 0.2s; }
.hero-actions { --reveal-delay: 0.3s; }
.hero-visual { --reveal-delay: 0.25s; }
.hero-float-badge--top { --reveal-delay: 0.65s; }
.hero-float-badge--bottom { --reveal-delay: 0.8s; }

/* --- Responsive: navegación móvil --- */
@media (max-width: 1180px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--navy-900);
    transform: translateX(100%); transition: transform var(--transition); overflow-y: auto; padding: 30px 24px; z-index: 999; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 16px 18px; font-size: 1.05rem; }
  .header-cta .phone-link { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .header-cta .btn { padding: 11px 18px; font-size: 0.85rem; }
  .logo-tagline { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.92rem; margin: 6px 0 16px; }
.footer-repse { font-size: 0.8rem; color: var(--cyan-300); font-weight: 700; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--cyan-300); }
.footer-contact { gap: 16px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; }
.footer-contact li svg { flex-shrink: 0; margin-top: 3px; }
.footer-contact li a { color: rgba(255, 255, 255, 0.85); }
.footer-contact li a:hover { color: var(--cyan-300); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0 28px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.56);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.65); }
.footer-bottom a:hover { color: var(--cyan-300); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Utilidades --- */
.text-center { text-align: center; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.order-2 { order: 2; }

/* Fila de dos columnas texto + imagen/tarjeta (servicios, nosotros, cobertura) */
.grid-2.split { align-items: center; gap: 56px; }
@media (max-width: 768px) { .grid-2.split { gap: 32px; } }

/* Lista de bullets con check (✔), usada en bloques de beneficios por servicio */
.check-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
