/* ============================================================
   Faraón Gestión Ambiental — sistema de diseño
   ============================================================ */

:root {
  --bg: #0a0f0c;
  --bg-alt: #0e1512;
  --surface: #141b17;
  --surface-2: #1b2420;
  --border: #263029;
  --border-strong: #38453c;
  --text: #f2f5f1;
  --text-dim: #a7b3ac;
  --text-faint: #6d766f;
  --accent: #3fa446;
  --accent-light: #93d657;
  --accent-dark: #0e3b2e;
  --accent-soft: rgba(63, 164, 70, 0.16);
  --glow: rgba(147, 214, 87, 0.5);

  --font-display: "Clash Display", "Montserrat", "Segoe UI", sans-serif;
  --font-body: "General Sans", "Open Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1180px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip; /* nada que se salga por los costados (hojas, efectos) agranda el ancho en celulares */
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.08;
}
h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  text-transform: none;
}
h3 {
  font-size: 20px;
  text-transform: none;
}
p {
  color: var(--text-dim);
  margin: 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(147, 214, 87, 0.28);
  box-shadow: 0 0 0 1px rgba(147, 214, 87, 0.04), 0 6px 22px -10px rgba(147, 214, 87, 0.45);
}
/* Brillo que recorre el cartel cada tanto */
.pill-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(147, 214, 87, 0.16) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: pillSheen 5s ease-in-out 1.4s infinite;
}
/* Punto "En vivo": núcleo que late + dos ondas tipo radar */
.pill-badge .dot {
  position: relative;
  width: 8px;
  height: 8px;
  margin: 0 3px 0 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #effcd9, var(--accent-light) 55%, var(--accent) 100%);
  box-shadow: 0 0 8px 2px var(--glow);
  flex-shrink: 0;
  animation: liveBeat 2s ease-in-out infinite;
}
.pill-badge .dot::before,
.pill-badge .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent-light);
  animation: livePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pill-badge .dot::after {
  animation-delay: 1s;
}
@keyframes liveBeat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 6px 1px var(--glow); opacity: 1; }
  50% { transform: scale(0.82); box-shadow: 0 0 14px 4px var(--glow); opacity: 0.75; }
}
@keyframes livePing {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(3.2); opacity: 0; }
}
@keyframes pillSheen {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .pill-badge::after,
  .pill-badge .dot,
  .pill-badge .dot::before,
  .pill-badge .dot::after {
    animation: none;
  }
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), filter 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #08130a;
  box-shadow: 0 10px 28px -8px rgba(63, 164, 70, 0.65);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(63, 164, 70, 0.8);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 12, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 60px;
  height: 60px;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.3px;
  font-weight: 400;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  border-color: var(--accent-light);
}
.main-nav a.nav-whatsapp {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 34% 26%, #e9fccd, var(--accent-light) 42%, var(--accent) 76%, var(--accent-dark) 100%);
  color: #08130a;
  box-shadow: 0 8px 20px -6px rgba(63, 164, 70, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.main-nav a.nav-whatsapp:hover {
  color: #08130a;
  border-color: transparent;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 26px -6px rgba(63, 164, 70, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

/* ---- Desplegable de Servicios ---- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--text);
}
.nav-dropdown-toggle.active {
  border-color: var(--accent-light);
}
.nav-dropdown-toggle .chev {
  transition: transform 0.35s var(--ease-out);
  opacity: 0.7;
}
.nav-dropdown.open .chev {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent-light);
}
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 330px;
  transform: translate(-50%, -10px) scale(0.97);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
  z-index: 70;
}
.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.25s ease, transform 0.4s var(--ease-out), visibility 0s;
}
/* Flechita que conecta el panel con "Servicios" */
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #121a15;
  border-left: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
  transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown-inner {
  position: relative;
  padding: 10px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 29, 23, 0.97), rgba(12, 18, 14, 0.97));
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(147, 214, 87, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
/* Línea de brillo verde arriba */
.nav-dropdown-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0.7;
}
.nav-dropdown-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 8px 12px 10px;
}
.main-nav .nav-dropdown-inner a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: none;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-6px);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.3s ease, transform 0.4s var(--ease-out);
}
.nav-dropdown.open .nav-dropdown-inner a {
  opacity: 1;
  transform: none;
  transition-delay: 0s, 0s, calc(0.06s + var(--d) * 0.04s), calc(0.06s + var(--d) * 0.04s);
}
/* Mini badge glossy con el ícono de cada servicio */
.dd-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08130a;
  background: radial-gradient(circle at 30% 22%, #e9fccd, var(--accent-light) 40%, var(--accent) 78%, var(--accent-dark) 120%);
  box-shadow: 0 6px 14px -6px rgba(63, 164, 70, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(8, 19, 10, 0.25);
  transition: transform 0.35s var(--ease-out), box-shadow 0.25s ease;
}
/* Reflejo superior tipo vidrio */
.dd-icon::after {
  content: "";
  position: absolute;
  inset: 1px 3px auto;
  height: 45%;
  border-radius: 9px 9px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.dd-icon svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.3));
}
.nav-dropdown-inner a:hover .dd-icon,
.nav-dropdown-inner a:focus-visible .dd-icon {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 8px 18px -6px rgba(147, 214, 87, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -2px 3px rgba(8, 19, 10, 0.25);
}
.dd-title {
  flex: 1;
}
.dd-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-faint);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
}
.dd-arrow {
  position: absolute;
  right: 14px;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--accent-light);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
}
.nav-dropdown-inner a:hover .dd-num,
.nav-dropdown-inner a:focus-visible .dd-num {
  opacity: 0;
  transform: translateX(6px);
}
.main-nav .nav-dropdown-inner a:hover,
.main-nav .nav-dropdown-inner a:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
}
.nav-dropdown-inner a:hover .dd-arrow,
.nav-dropdown-inner a:focus-visible .dd-arrow {
  opacity: 1;
  transform: none;
}
.main-nav .nav-dropdown-inner a.dd-all {
  justify-content: center;
  margin-top: 6px;
  padding: 12px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
}
.main-nav .nav-dropdown-inner a.dd-all:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.service-row {
  scroll-margin-top: 96px;
}
.service-row:target {
  box-shadow: inset 3px 0 0 var(--accent-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Hero: foto real (camión + operario) de fondo, con degradé para
   que se integre al fondo oscuro y el texto quede legible.
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 120px;
  border-bottom: 1px solid var(--border);
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 40%;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: bottom right;
  filter: saturate(1.05) contrast(1.03);
  transform: translateZ(0);
}
.hero-photo-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(10, 15, 12, 0.94) 47%, rgba(10, 15, 12, 0.62) 60%, rgba(10, 15, 12, 0.15) 74%, transparent 84%),
    linear-gradient(180deg, rgba(10, 15, 12, 0.25) 0%, transparent 22%, transparent 72%, var(--bg) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content {
  max-width: 600px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero h1 span {
  color: var(--accent-light);
  text-shadow: 0 0 40px rgba(147, 214, 87, 0.35);
}
.hero p.lead {
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 36px;
  color: var(--text-dim);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 56px;
  max-width: 480px;
}
.hero-stat {
  border-top: 2px solid var(--accent);
  padding-top: 10px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}
.hero-stat .label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* entrada escalonada del contenido del hero (sin depender de scroll) */
.hero-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: heroEnter 0.9s var(--ease-out) forwards;
}
@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Sistema de aparición por sección (scroll reveal) ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .leaf, .bird, .hero-scene-world, .reveal, .reveal-scale, .hero-enter {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- Banner de página interna ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 100% at 15% 0%, rgba(63, 164, 70, 0.16), transparent 65%),
    var(--bg);
}
.page-hero .container {
  position: relative;
}
.page-hero p {
  max-width: 520px;
  margin-top: 14px;
  font-size: 15.5px;
}

/* ---- Secciones genéricas ---- */
section {
  padding: 92px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  text-wrap: balance; /* reparte los títulos largos en líneas parejas */
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---- Insignias de ícono (badges premium con degradé) ---- */
.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent-light), var(--accent) 60%, var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px -8px rgba(63, 164, 70, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.icon-badge svg {
  color: #08130a;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.25));
}
.service-card:hover .icon-badge,
.value-card:hover .icon-badge {
  transform: rotate(-6deg) scale(1.06);
}

/* ---- Cards de servicio ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.service-card {
  background: linear-gradient(180deg, var(--surface), var(--surface) 70%, var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(160px 120px at var(--mx, 50%) var(--my, 0%), rgba(147, 214, 87, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
}
.service-card h3 {
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
}

/* ---- Nosotros ---- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.about-art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.about-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.about-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-dim);
}
.about-list svg {
  flex-shrink: 0;
  color: var(--accent-light);
  margin-top: 2px;
}

.value-card {
  transition: transform 0.3s var(--ease-out);
}

/* ---- Franja de contacto rápido ---- */
.cta-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  padding: 60px 0;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 120% at 90% 50%, rgba(255, 255, 255, 0.12), transparent 70%);
}
.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-strip h2 {
  font-size: 27px;
}
.cta-strip .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.cta-strip .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* ---- Contacto ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child {
  border-bottom: none;
}
.contact-row svg {
  flex-shrink: 0;
  color: var(--accent-light);
  margin-top: 2px;
}
.contact-row .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.contact-row .value {
  font-size: 15px;
  color: var(--text);
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
  filter: grayscale(0.4) invert(0.92) contrast(0.9);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer p {
  font-size: 12px;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-faint);
}
.footer-links a:hover {
  color: var(--accent-light);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    height: calc(100vh - 76px);
    z-index: 60;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    /* se oculta recortándolo en su lugar (no corriéndolo fuera de pantalla),
       así no agranda el ancho de la página en celulares */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path 0.3s var(--ease-out), visibility 0s linear 0.3s;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .main-nav.open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.3s var(--ease-out), visibility 0s;
  }
  .main-nav a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }
  /* En celular, el desplegable pasa a ser un acordeón dentro del menú */
  .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: none;
    font-size: 13.5px;
  }
  .nav-dropdown-panel,
  .nav-dropdown.open .nav-dropdown-panel {
    position: static;
    width: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease-out);
  }
  .nav-dropdown.open .nav-dropdown-panel {
    grid-template-rows: 1fr;
  }
  .nav-dropdown-panel::before {
    display: none;
  }
  .nav-dropdown-inner {
    min-height: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: none;
    backdrop-filter: none;
  }
  .nav-dropdown.open .nav-dropdown-inner {
    padding-bottom: 10px;
  }
  .nav-dropdown-inner::before,
  .nav-dropdown-label {
    display: none;
  }
  .main-nav .nav-dropdown-inner a {
    padding: 11px 8px;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }
  .hero-photo img {
    left: 0;
    width: 100%;
    height: 60%;
    opacity: 0.55;
  }
  .hero-photo-fade {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(10, 15, 12, 0.55) 30%, rgba(10, 15, 12, 0.55) 55%, var(--bg) 100%);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* ---- Botón flotante de WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* pulsos tipo radar, escalonados */
.wa-pulse {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-light);
  opacity: 0;
  animation: waPulseRing 3s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.wa-pulse-2 {
  animation-delay: 1.5s;
}

/* anillo con degradé cónico girando */
.wa-ring {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  z-index: 1;
  background: conic-gradient(from 0deg, var(--accent-dark), var(--accent-light), var(--accent), var(--accent-dark));
  animation: waRingSpin 5s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
}

/* hojas verdes orbitando alrededor del botón */
.wa-leaves {
  position: absolute;
  inset: -11px;
  width: calc(100% + 22px);
  height: calc(100% + 22px);
  z-index: 0;
  overflow: visible;
  pointer-events: none;
  animation: waRingSpin 14s linear infinite;
  filter: drop-shadow(0 2px 3px rgba(4, 12, 6, 0.55));
  will-change: transform;
}
.wa-leaves .vein {
  fill: none;
  stroke: rgba(8, 30, 14, 0.55);
  stroke-width: 0.7;
  stroke-linecap: round;
}
.wa-leaves .vein-side {
  stroke-width: 0.5;
  stroke: rgba(8, 30, 14, 0.4);
}
.wa-leaves .shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 0.8;
  stroke-linecap: round;
}
/* al pasar el mouse, todo lo que gira se detiene */
.whatsapp-float:hover .wa-leaves,
.whatsapp-float:hover .wa-ring,
.whatsapp-float:focus-visible .wa-leaves,
.whatsapp-float:focus-visible .wa-ring {
  animation-play-state: paused;
}

/* núcleo del botón: degradé radial glossy + sombras internas para dar profundidad */
.wa-core {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08130a;
  background: radial-gradient(circle at 34% 26%, #e9fccd, var(--accent-light) 42%, var(--accent) 76%, var(--accent-dark) 100%);
  box-shadow:
    0 12px 26px -6px rgba(8, 26, 12, 0.55),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.55),
    inset 0 -7px 10px rgba(8, 19, 10, 0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.wa-core svg {
  filter: drop-shadow(0 1px 1px rgba(8, 19, 10, 0.25));
  transform: translateY(-1px);
}
.whatsapp-float:hover .wa-core {
  transform: scale(1.08);
  box-shadow:
    0 16px 32px -6px rgba(8, 26, 12, 0.65),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.6),
    inset 0 -7px 10px rgba(8, 19, 10, 0.4);
}
.whatsapp-float:active .wa-core {
  transform: scale(0.96);
}

@keyframes waPulseRing {
  0% { transform: scale(0.82); opacity: 0.7; }
  75% { opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes waRingSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
  .wa-core {
    width: 36px;
    height: 36px;
  }
  .wa-leaves {
    inset: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-pulse,
  .wa-ring {
    animation: none;
    opacity: 0;
  }
  .wa-leaves {
    animation: none;
  }
}

/* ============================================================
   Transición entre secciones (solo Inicio): la línea se dibuja
   desde el centro, aparece un emblema con hoja, sale una ráfaga
   de hojas y la sección siguiente se "abre" como una hoja
   ============================================================ */
body.home .hero,
body.home .alt {
  border-top: none;
  border-bottom: none;
}
.leaf-divider {
  position: relative;
  z-index: 5;
  height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ld-line {
  position: absolute;
  top: 0;
  width: 50%;
  height: 1px;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out) 0.15s;
}
.ld-line-l {
  right: 50%;
  transform-origin: right center;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--accent-light));
}
.ld-line-r {
  left: 50%;
  transform-origin: left center;
  background: linear-gradient(270deg, transparent, var(--border-strong) 30%, var(--accent-light));
}
.ld-line::after {
  content: "";
  position: absolute;
  inset: -3px 0;
  background: inherit;
  filter: blur(4px);
  opacity: 0.6;
}
.leaf-divider.on .ld-line {
  transform: scaleX(1);
}
/* Emblema del separador: esfera de vidrio con hoja (mismo diseño que el de la
   órbita), con anillo de luz y ondas. Es un botón: al tocarlo suelta hojas. */
.ld-emblem {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transform: scale(0) rotate(-90deg);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* al terminar de entrar queda sin transformación, así se ve nítido */
.leaf-divider.on .ld-emblem {
  transform: none;
}
.ld-emblem .core-orb {
  width: 100%;
  height: 100%;
  box-shadow: 0 0 0 7px var(--bg), 0 0 0 8px rgba(147, 214, 87, 0.28), 0 14px 34px -8px rgba(63, 164, 70, 0.9),
    0 0 30px 4px rgba(147, 214, 87, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.6), inset 0 -9px 14px rgba(8, 30, 14, 0.45);
  transition: transform 0.25s var(--ease-out);
}
.ld-emblem .core-orb::before {
  top: 4px;
  left: 10px;
  right: 10px;
}
.ld-emblem .core-orb::after {
  top: 10px;
  right: 12px;
}
.ld-emblem .core-ring {
  inset: -12px;
}
.ld-emblem .core-wave {
  inset: 0;
}
.ld-emblem:hover .core-orb {
  transform: scale(1.08);
}
.ld-emblem:active .core-orb {
  transform: scale(0.9);
}
/* destello al tocarlo */
.ld-emblem.pressed .core-orb {
  animation: ldPress 0.7s ease-out;
}
.ld-emblem.pressed::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #d8f7ae;
  pointer-events: none;
  animation: ldPressRing 0.7s ease-out forwards;
}
@keyframes ldPress {
  0% { transform: scale(0.88); filter: brightness(1.35); }
  60% { transform: scale(1.1); filter: brightness(1.1); }
  100% { transform: scale(1); filter: none; }
}
@keyframes ldPressRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}
.ld-burst {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
}
.ld-leaf {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(4, 12, 6, 0.55));
}
.ld-leaf .vein {
  fill: none;
  stroke: rgba(8, 30, 14, 0.5);
  stroke-width: 0.7;
  stroke-linecap: round;
}
.leaf-divider.on .ld-leaf {
  animation: ldBurst 2.2s cubic-bezier(0.22, 0.8, 0.3, 1) calc(0.25s + var(--delay)) forwards;
}
.leaf-divider .ld-leaf.pop {
  animation: ldBurst 1.9s cubic-bezier(0.22, 0.8, 0.3, 1) var(--delay) forwards;
}
@keyframes ldBurst {
  0% { transform: translate(-50%, -50%) scale(0.2) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(var(--s)) rotate(var(--r));
    opacity: 0;
  }
}

/* La sección siguiente se despliega como una hoja que se abre */
.page-open {
  transform-origin: 50% 0;
  transform: perspective(1400px) rotateX(9deg) translateY(46px) scale(0.985);
  clip-path: inset(0 7% 0 7% round 30px 30px 0 0);
  opacity: 0.35;
  transition: transform 1.2s var(--ease-out), clip-path 1.2s var(--ease-out), opacity 0.9s ease;
}
.page-open.opened {
  transform: none;
  clip-path: inset(0 0 0 0 round 0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ld-line,
  .ld-emblem,
  .page-open {
    transition: none;
  }
  .leaf-divider.on .ld-leaf,
  .leaf-divider.on .ld-emblem,
  .ld-emblem .core-wave,
  .ld-emblem .core-ring,
  .ld-emblem .core-orb,
  .ld-emblem .core-orb::after {
    animation: none;
  }
}

/* ============================================================
   Páginas individuales de cada servicio
   ============================================================ */
/* Cards y bloques que llevan a la página del servicio */
a.service-card {
  display: flex;
  flex-direction: column;
}
a.service-card p {
  flex: 1;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
}
.card-more svg {
  transition: transform 0.25s var(--ease-out);
}
a.service-card:hover .card-more svg,
a.card-more:hover svg {
  transform: translateX(4px);
}
a.card-more:hover {
  color: var(--text);
}

/* Hero del servicio */
.svc-hero {
  padding: 64px 0 72px;
}
.svc-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.svc-hero h1 {
  font-size: clamp(32px, 4.8vw, 52px);
  max-width: 680px;
}
.svc-hero p {
  max-width: 560px;
  font-size: 16px;
  text-wrap: pretty; /* evita que quede una palabra sola en la última línea */
}
.svc-hero .hero-actions {
  margin-top: 30px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.breadcrumb a {
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.breadcrumb a:hover {
  color: var(--accent-light);
}
.breadcrumb span {
  opacity: 0.5;
}
.svc-hero-art {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}
.svc-hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(147, 214, 87, 0.3);
  animation: waRingSpin 40s linear infinite;
}
.svc-hero-ring.r2 {
  inset: 34px;
  border: 1px solid rgba(147, 214, 87, 0.14);
  background: radial-gradient(circle, rgba(63, 164, 70, 0.18), transparent 70%);
  animation: none;
}
.svc-hero-badge {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08130a;
  background: radial-gradient(circle at 30% 22%, #e9fccd, var(--accent-light) 40%, var(--accent) 78%, var(--accent-dark) 120%);
  box-shadow: 0 26px 50px -16px rgba(63, 164, 70, 0.7), inset 0 2px 2px rgba(255, 255, 255, 0.55),
    inset 0 -8px 14px rgba(8, 19, 10, 0.3);
  transform: rotate(-6deg);
  animation: svcFloat 6s ease-in-out infinite;
}
.svc-hero-badge::after {
  content: "";
  position: absolute;
  inset: 3px 8px auto;
  height: 45%;
  border-radius: 30px 30px 40px 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
}
.svc-hero-badge svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.3));
}
@keyframes svcFloat {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-10px); }
}

/* Qué incluye */
.svc-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.svc-feature {
  display: flex;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  transition: border-color 0.25s ease;
}
.svc-feature:hover {
  border-color: var(--accent);
}
.svc-feature h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.svc-feature p {
  font-size: 14.5px;
}
.svc-feature-check {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  background: var(--accent-soft);
  border: 1px solid rgba(147, 214, 87, 0.25);
}

/* Para quién es */
.svc-audience {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.svc-tag {
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.svc-tag:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--accent-soft);
}

/* Cómo trabajamos: línea de tiempo con nodos conectados por flechas */
.svc-steps {
  --gap: 28px;
  --node: 68px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.svc-step {
  position: relative;
  display: flex;
  flex-direction: column;
}
.svc-step .step-body {
  flex: 1; /* tarjetas de igual altura */
}
.step-node {
  position: relative;
  z-index: 2;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08130a;
  background: radial-gradient(circle at 34% 26%, #e9fccd, var(--accent-light) 42%, var(--accent) 76%, var(--accent-dark) 100%);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(147, 214, 87, 0.22), 0 16px 34px -10px rgba(63, 164, 70, 0.75),
    inset 0 2px 2px rgba(255, 255, 255, 0.55), inset 0 -7px 10px rgba(8, 19, 10, 0.35);
  transition: transform 0.4s var(--ease-out);
}
.step-icon {
  display: flex;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.3));
}
.step-num {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 28px;
  padding: 3px 6px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--accent-light);
  background: var(--bg);
  border: 1px solid rgba(147, 214, 87, 0.45);
}
.svc-step:hover .step-node {
  transform: translateY(-4px) rotate(-6deg);
}
.step-body {
  margin-top: 26px;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out);
}
.svc-step:hover .step-body {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.step-body h3 {
  font-size: 19.5px;
  font-weight: 600;
  letter-spacing: 0.02em; /* la Clash Display viene muy junta a este tamaño */
  line-height: 1.28;
  text-wrap: balance;
  margin-bottom: 14px;
}
/* rayita verde entre título y texto */
.step-body h3::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.3s var(--ease-out);
}
.svc-step:hover .step-body h3::after {
  width: 44px;
}
.step-body p {
  font-size: 14px;
}
/* el último paso es el resultado: se destaca */
.svc-step.is-final .step-body {
  border-color: rgba(147, 214, 87, 0.4);
  background: linear-gradient(160deg, rgba(63, 164, 70, 0.18), var(--surface) 60%);
  box-shadow: 0 18px 40px -20px rgba(147, 214, 87, 0.45);
}
.svc-step.is-final .step-node {
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(147, 214, 87, 0.5), 0 0 30px 4px rgba(147, 214, 87, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.55), inset 0 -7px 10px rgba(8, 19, 10, 0.35);
}

/* Nodos centrados sobre cada tarjeta */
.svc-step .step-node {
  align-self: center;
}
.svc-step .step-body {
  text-align: center;
}

/* Conector entre pasos: riel fino + punta de flecha tipo dardo.
   Va del borde derecho de un nodo al borde izquierdo del siguiente. */
.step-link {
  position: absolute;
  z-index: 1;
  top: calc(var(--node) / 2 - 1px);
  left: calc(50% + var(--node) / 2 + 12px);
  right: calc(var(--node) / 2 - 50% - var(--gap) + 12px);
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out) calc(0.35s + var(--i, 0) * 0.35s);
}
.svc-step.visible .step-link {
  transform: scaleX(1);
}
/* riel: se ilumina hacia la punta */
.step-link::before {
  content: "";
  position: absolute;
  inset: 0 12px 0 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(147, 214, 87, 0.08), rgba(147, 214, 87, 0.55));
}
/* puntos de inicio del riel, junto al nodo */
.step-link::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--glow);
  transform: translate(-50%, -50%);
}
.step-arrow {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  fill: var(--accent-light);
  filter: drop-shadow(0 0 4px rgba(147, 214, 87, 0.75));
  animation: stepArrow 4.8s ease-out infinite;
  animation-delay: calc(2s + var(--i, 0) * 1.2s + 1s);
}
/* cometa: una sola luz que recorre 1 > 2 > 3 > 4 en secuencia.
   Ciclo de 4,8s; cada tramo usa su franja de 1,2s. */
.step-flow {
  position: absolute;
  inset: -3px 12px -3px 0;
  overflow: hidden;
  border-radius: 4px;
}
.step-flow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: radial-gradient(ellipse at 70% 50%, #f6ffea 0%, rgba(201, 245, 146, 0.9) 22%, rgba(147, 214, 87, 0) 70%);
  opacity: 0;
  transform: translateX(-100%);
  animation: stepComet 4.8s linear infinite;
  animation-delay: calc(2s + var(--i, 0) * 1.2s);
}
@keyframes stepComet {
  0% { transform: translateX(-100%); opacity: 0; }
  2% { opacity: 1; }
  21% { opacity: 1; }
  25% { transform: translateX(225%); opacity: 0; }
  100% { transform: translateX(225%); opacity: 0; }
}
@keyframes stepArrow {
  0% { filter: drop-shadow(0 0 10px rgba(201, 245, 146, 1)); transform: translateY(-50%) scale(1.35); }
  12%, 100% { filter: drop-shadow(0 0 4px rgba(147, 214, 87, 0.75)); transform: translateY(-50%) scale(1); }
}
/* cada nodo se enciende cuando le llega la luz */
.step-node::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid var(--accent-light);
  opacity: 0;
  pointer-events: none;
  animation: stepNode 4.8s ease-out infinite;
  animation-delay: calc(2s + var(--i, 0) * 1.2s);
}
@keyframes stepNode {
  0% { opacity: 0.95; transform: scale(1); }
  14% { opacity: 0; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(1.4); }
}

@media (max-width: 860px) {
  .svc-steps {
    grid-template-columns: 1fr;
    --gap: 22px;
    --node: 58px;
  }
  .svc-step {
    display: grid;
    grid-template-columns: var(--node) 1fr;
    gap: 18px;
    align-items: start;
  }
  .svc-step .step-body {
    margin-top: 0;
    text-align: left;
  }
  .svc-step .step-node {
    align-self: start;
  }
  .step-body h3::after {
    margin-left: 0;
  }
  /* en celular la línea baja vertical, de nodo a nodo */
  .step-link {
    top: calc(var(--node) + 12px);
    bottom: calc(var(--gap) * -1 + 12px);
    left: calc(var(--node) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
    transform: scaleY(0);
    transform-origin: center top;
  }
  .svc-step.visible .step-link {
    transform: scaleY(1);
  }
  .step-link::before {
    inset: 0 0 12px 0;
    background: linear-gradient(180deg, rgba(147, 214, 87, 0.08), rgba(147, 214, 87, 0.55));
  }
  .step-link::after {
    left: 50%;
    top: -1px;
  }
  .step-arrow {
    right: auto;
    top: auto;
    left: 50%;
    bottom: -3px;
    transform: translateX(-50%) rotate(90deg);
    animation-name: stepArrowV;
  }
  @keyframes stepArrowV {
    0% { filter: drop-shadow(0 0 10px rgba(201, 245, 146, 1)); transform: translateX(-50%) rotate(90deg) scale(1.35); }
    12%, 100% { filter: drop-shadow(0 0 4px rgba(147, 214, 87, 0.75)); transform: translateX(-50%) rotate(90deg) scale(1); }
  }
  .step-flow {
    inset: 0 -3px 12px -3px;
  }
  .step-flow::before {
    width: auto;
    height: 45%;
    right: 0;
    background: radial-gradient(ellipse at 50% 70%, #f6ffea 0%, rgba(201, 245, 146, 0.9) 22%, rgba(147, 214, 87, 0) 70%);
    transform: translateY(-100%);
    animation-name: stepCometV;
  }
  @keyframes stepCometV {
    0% { transform: translateY(-100%); opacity: 0; }
    2% { opacity: 1; }
    21% { opacity: 1; }
    25% { transform: translateY(225%); opacity: 0; }
    100% { transform: translateY(225%); opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .step-link {
    transition: none;
    transform: none !important;
  }
  .step-flow::before,
  .step-node::after,
  .step-arrow {
    animation: none;
  }
}

/* Resto de los servicios (solo títulos) */
.svc-others {
  padding-top: 80px;
}
.svc-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.svc-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease-out);
}
.svc-tile-title {
  flex: 1;
}
.svc-tile-arrow {
  display: flex;
  color: var(--accent-light);
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
}
a.svc-tile:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-2px);
}
a.svc-tile:hover .svc-tile-arrow {
  opacity: 1;
  transform: translateX(3px);
}
a.svc-tile:hover .dd-icon {
  transform: rotate(-8deg) scale(1.08);
}
.svc-tile.current {
  border-color: rgba(147, 214, 87, 0.45);
  color: var(--text);
  background: linear-gradient(135deg, rgba(63, 164, 70, 0.14), transparent);
}
.svc-tile-here {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
}
.nav-dropdown-inner a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
}

@media (max-width: 860px) {
  .svc-hero-grid,
  .svc-audience {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .svc-hero-art {
    display: none;
  }
  .svc-features,
  .svc-tiles {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .svc-hero-ring,
  .svc-hero-badge {
    animation: none;
  }
}

/* ---- "Para quién es" en órbita giratoria ---- */
.svc-tags.is-orbit {
  position: relative;
  display: block;
  height: 300px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y; /* en celular: deslizar al costado gira, vertical sigue scrolleando */
}
.svc-tags.is-orbit.is-dragging {
  cursor: grabbing;
}
.svc-tags.is-orbit.is-dragging .svc-tag {
  cursor: grabbing;
}
.svc-tags.is-orbit .svc-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  white-space: nowrap;
  will-change: transform, opacity;
  background: rgba(20, 29, 23, 0.92);
  backdrop-filter: blur(6px);
}
/* la etiqueta que pasa por adelante se ilumina */
.svc-tags.is-orbit .svc-tag.is-front {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: linear-gradient(135deg, rgba(63, 164, 70, 0.28), rgba(20, 29, 23, 0.95));
  box-shadow: 0 10px 30px -10px rgba(147, 214, 87, 0.55);
}
.svc-tags.is-orbit .svc-tag {
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
/* destello cuando el cometa pasa por una etiqueta */
.svc-tags.is-orbit .svc-tag.is-hit {
  border-color: #d8f7ae;
  color: #effcd9;
  box-shadow: 0 0 0 4px rgba(147, 214, 87, 0.12), 0 0 26px 2px rgba(147, 214, 87, 0.55);
  transition: border-color 0.08s ease, color 0.08s ease, box-shadow 0.08s ease;
}

/* Órbita: anillo con profundidad (más brillante adelante) + órbita punteada interior */
.orbit-track {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(63, 164, 70, 0.14), rgba(63, 164, 70, 0.04) 60%, transparent);
  pointer-events: none;
}
.orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.orbit-svg ellipse {
  fill: none;
  stroke-linecap: round;
}
.orbit-base {
  stroke-width: 1.4;
}
.orbit-inner {
  stroke: rgba(147, 214, 87, 0.22);
  stroke-width: 1.2;
  stroke-dasharray: 0.15 1.6;
  animation: orbitInner 60s linear infinite;
}
.is-paused .orbit-inner {
  animation-play-state: paused;
}
@keyframes orbitInner {
  to { stroke-dashoffset: 100; }
}
.orbit-tail {
  stroke: #b5ec74;
}

/* Cometa: esfera de luz con halo */
.orbit-comet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #ffffff 0%, #effcd9 30%, #b5ec74 60%, rgba(147, 214, 87, 0) 72%);
  box-shadow: 0 0 10px 3px rgba(201, 245, 146, 0.85), 0 0 26px 8px rgba(147, 214, 87, 0.45), 0 0 50px 14px rgba(63, 164, 70, 0.25);
  will-change: transform, opacity;
}

/* Emblema central */
.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 15;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* ondas que se expanden desde la esfera */
.core-wave {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(147, 214, 87, 0.55);
  opacity: 0;
  animation: coreWave 3.6s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.core-wave.w2 {
  animation-delay: 1.8s;
}
@keyframes coreWave {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}
/* círculo punteado que gira en sentido contrario */
.core-dash {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px dotted rgba(147, 214, 87, 0.4);
  animation: coreSpin 24s linear infinite reverse;
}
/* anillo de luz: degradé cónico con una sola franja brillante que gira */
.core-ring {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(147, 214, 87, 0.15) 70%, #c8f28a 92%, #ffffff 97%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 4px rgba(147, 214, 87, 0.9));
  animation: coreSpin 3.2s linear infinite;
}
.is-paused .core-ring,
.is-paused .core-dash {
  animation-play-state: paused;
}
@keyframes coreSpin {
  to { transform: rotate(360deg); }
}
/* esfera de vidrio con la hoja */
.core-orb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 24%, #f4ffe6 0%, #c8f28a 18%, var(--accent-light) 40%, var(--accent) 72%, var(--accent-dark) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px -10px rgba(63, 164, 70, 0.9),
    0 0 36px 4px rgba(147, 214, 87, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.6),
    inset 0 -10px 16px rgba(8, 30, 14, 0.45);
  animation: coreBreath 3.6s ease-in-out infinite;
}
/* reflejo tipo vidrio en la parte de arriba */
.core-orb::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 12px;
  right: 12px;
  height: 42%;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
/* brillo chico que titila */
.core-orb::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
  animation: coreTwinkle 3.6s ease-in-out infinite;
}
.core-orb svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35)) drop-shadow(0 2px 3px rgba(8, 30, 14, 0.35));
}
@keyframes coreBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes coreTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1); }
}
@media (max-width: 860px) {
  .svc-tags.is-orbit {
    height: 340px;
  }
  .svc-tags.is-orbit .svc-tag {
    font-size: 12.5px;
    padding: 8px 14px;
  }
  .orbit-core {
    transform: translate(-50%, -50%) scale(0.82);
  }
}

/* ============================================================
   Unidades en alquiler
   ============================================================ */
.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.unit-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
  scroll-margin-top: 96px;
}
.unit-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(147, 214, 87, 0.08);
}
.unit-card:target {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(147, 214, 87, 0.18);
}
/* panel superior con la unidad: cuadrícula técnica + resplandor */
.unit-visual {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 70% at 50% 60%, rgba(63, 164, 70, 0.28), transparent 70%),
    linear-gradient(rgba(147, 214, 87, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(147, 214, 87, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    #0c130f;
}
/* piso bajo la unidad */
.unit-visual::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 34px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
}
.unit-icon {
  position: relative;
  z-index: 1;
  display: flex;
  color: var(--accent-light);
  filter: drop-shadow(0 0 14px rgba(147, 214, 87, 0.35));
  transition: transform 0.5s var(--ease-out);
}
.unit-card:hover .unit-icon {
  transform: translateX(8px) scale(1.05);
}
.unit-num {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
}
.unit-status {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-light);
  background: rgba(10, 15, 12, 0.7);
  border: 1px solid rgba(147, 214, 87, 0.3);
  backdrop-filter: blur(6px);
}
.unit-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px 2px var(--glow);
  animation: liveBeat 2s ease-in-out infinite;
}
.unit-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
}
.unit-body h3 {
  font-size: 19px;
  letter-spacing: 0.015em;
  line-height: 1.28;
  text-wrap: balance;
  margin-bottom: 10px;
}
.unit-body p {
  font-size: 14px;
  flex: 1;
}
.unit-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 20px;
}
.unit-use {
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
}
.unit-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-soft);
  border: 1px solid rgba(147, 214, 87, 0.3);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.unit-cta svg:last-child {
  transition: transform 0.25s var(--ease-out);
}
.unit-cta:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #08130a;
  border-color: transparent;
}
.unit-cta:hover svg:last-child {
  transform: translateX(4px);
}

/* Tarjetas con foto real de la unidad */
.unit-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transition: transform 0.8s var(--ease-out), filter 0.4s ease;
  filter: saturate(1.05) contrast(1.03);
}
.unit-card.has-photo:hover .unit-photo {
  transform: scale(1.06);
}
.unit-card.has-photo .unit-icon {
  display: none;
}
/* degradé abajo para fundir la foto con la tarjeta, y arriba para leer los carteles */
.unit-card.has-photo .unit-visual::after {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 10, 0.55) 0%, transparent 28%),
    linear-gradient(0deg, rgba(20, 27, 23, 0.95) 0%, rgba(20, 27, 23, 0.35) 22%, transparent 45%);
}
.unit-card.has-photo .unit-num,
.unit-card.has-photo .unit-status {
  z-index: 2;
}
.unit-card.has-photo .unit-num {
  color: rgba(255, 255, 255, 0.8);
}

/* Adelanto en Inicio */
.units-home-head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.unit-tile .dd-icon svg {
  stroke-width: 2.6;
}

@media (max-width: 1000px) {
  .units-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .units-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .unit-status .dot {
    animation: none;
  }
}

/* ============================================================
   Cobertura nacional (Inicio): mapa de Argentina + cifras
   ============================================================ */
.coverage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(63, 164, 70, 0.1), transparent 70%), var(--bg);
}
.coverage-head {
  margin-bottom: 40px;
}
.coverage-head p {
  margin: 16px auto 0;
  max-width: 600px;
  font-size: 16px;
  text-wrap: balance;
}
/* cifras a los costados y el mapa en el centro */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 400px) 1fr;
  gap: 40px;
  align-items: center;
}
.coverage-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cov-stat {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out);
}
.cov-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.35s var(--ease-out);
}
.cov-stat:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.cov-stat:hover::before {
  width: 56px;
}
.cov-stat .num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cov-stat .label {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  line-height: 1.35;
}
.cov-stat .label small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-faint);
}
/* línea que conecta cada cifra con el mapa */
.cov-stat {
  overflow: visible;
}
.cov-stat::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  pointer-events: none;
}
.side-left .cov-stat {
  text-align: right;
}
.side-left .cov-stat::before {
  left: auto;
  right: 22px;
}
.side-left .cov-stat::after {
  left: 100%;
  background: linear-gradient(90deg, rgba(147, 214, 87, 0.5), transparent);
}
.side-right .cov-stat::after {
  right: 100%;
  background: linear-gradient(270deg, rgba(147, 214, 87, 0.5), transparent);
}
/* las del medio, un poco más cerca del mapa: arco suave */
.side-left .cov-stat:nth-child(2) {
  transform: translateX(18px);
}
.side-right .cov-stat:nth-child(2) {
  transform: translateX(-18px);
}
.side-left .cov-stat:nth-child(2):hover,
.side-right .cov-stat:nth-child(2):hover {
  transform: translateY(-3px);
}

/* Mapa */
.coverage-map {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* resplandor suave detrás del mapa, centrado en la zona de Buenos Aires */
.coverage-map::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-40%, -30%);
  background: radial-gradient(closest-side, rgba(147, 214, 87, 0.16), transparent);
  pointer-events: none;
}
.ar-map {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 18.6 / 35.4;
  overflow: visible;
}
.ar-land path {
  fill: url(#arFill);
  stroke: var(--accent-light);
  stroke-width: 1.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(147, 214, 87, 0.45));
}
/* cuadrícula de puntos dentro del país */
.ar-land path#arMain {
  paint-order: stroke;
}
.ar-land::after {
  content: none;
}
.ar-glow {
  pointer-events: none;
  mix-blend-mode: screen;
}
.ar-route {
  fill: none;
  stroke: rgba(147, 214, 87, 0.5);
  stroke-width: 0.06;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.1s var(--ease-out) var(--d);
}
.ar-flow {
  fill: none;
  stroke: #e3fbc4;
  stroke-width: 0.1;
  stroke-linecap: round;
  stroke-dasharray: 6 94;
  stroke-dashoffset: 106;
  opacity: 0;
  filter: drop-shadow(0 0 0.25px #c8f28a);
}
.coverage-map.drawn .ar-route {
  stroke-dashoffset: 0;
}
.coverage-map.drawn .ar-flow {
  opacity: 1;
  transition: opacity 0.4s ease calc(var(--d) + 1s);
  animation: arFlow 3s linear infinite;
  animation-delay: calc(var(--d) + 1s + var(--f));
}
@keyframes arFlow {
  from { stroke-dashoffset: 106; }
  to { stroke-dashoffset: 0; }
}
.ar-city {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.2);
  transition: opacity 0.4s ease var(--d), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d);
}
.coverage-map.drawn .ar-city {
  opacity: 1;
  transform: none;
}
.ar-city-halo {
  fill: rgba(147, 214, 87, 0.18);
}
.ar-city-dot {
  fill: #d8f7ae;
  filter: drop-shadow(0 0 0.2px #93d657);
}
.ar-city:hover .ar-city-halo {
  fill: rgba(147, 214, 87, 0.45);
}
.ar-hq-dot {
  fill: #ffffff;
}
.ar-hq-ring {
  fill: var(--accent-light);
  filter: drop-shadow(0 0 0.35px #93d657);
}
.ar-hq-wave {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 0.08;
  transform-box: fill-box;
  transform-origin: center;
  animation: arWave 2.6s ease-out infinite;
}
.ar-hq-wave.w2 {
  animation-delay: 1.3s;
}
@keyframes arWave {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.lg-hq {
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-light), 0 0 10px 3px var(--glow);
}
.lg-cov {
  background: #d8f7ae;
  box-shadow: 0 0 0 3px rgba(147, 214, 87, 0.25);
}

/* pantallas medianas: mapa arriba, las 6 cifras en grilla abajo */
@media (max-width: 960px) {
  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .coverage-map {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 20px;
  }
  .ar-map {
    max-width: 280px;
  }
  .coverage-stats {
    gap: 16px;
  }
  .side-left .cov-stat {
    text-align: left;
  }
  .side-left .cov-stat::before {
    left: 22px;
    right: auto;
  }
  .cov-stat::after {
    display: none;
  }
  .side-left .cov-stat:nth-child(2),
  .side-right .cov-stat:nth-child(2) {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ar-route,
  .ar-city {
    transition: none;
  }
  .ar-flow,
  .ar-hq-wave {
    animation: none;
  }
}
