/* =========================================================
   Servicios Eléctricos Llamas — styles.css
   Paleta extraída de la tarjeta y el volante (carpeta
   "Contenido actual"): azul noche #141B39 + amarillo #FBBE19.
   Mobile-first. Variables CSS, Flexbox y Grid.
   ========================================================= */

:root {
  /* Marca */
  --navy: #141B39;
  --navy-2: #0F1530;
  --navy-3: #1C2552;
  --navy-4: #252E63;
  --yellow: #FBBE19;
  --yellow-2: #FFD54F;
  --white: #FFFFFF;
  --paper: #F5F6FA;
  --ink: #141B39;
  --muted: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .12);
  --wa: #25D366;
  --danger: #FF6B6B;

  /* Tipografía */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --container: 1320px;
  --gutter: 24px;
  --gl: var(--gutter); /* aire a la izquierda */
  --gr: var(--gutter); /* aire a la derecha */
  --radius: 22px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--navy); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { position: relative; z-index: 2; width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Botones ---------- */
.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ico--arrow { fill: none; transition: transform .3s var(--ease); }
#i-arrow path { stroke-width: var(--sw, 2.4); }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 2px solid transparent; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn::after { /* brillo que cruza al pasar el mouse */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover .ico--arrow { transform: translateX(5px); }
.btn:active { transform: scale(.96); }

.btn--primary { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 24px -8px rgba(251, 190, 25, .65); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -8px rgba(251, 190, 25, .8); background: var(--yellow-2); }
.btn--primary:active { transform: translateY(0) scale(.96); }

.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--yellow); color: var(--yellow); background: rgba(251, 190, 25, .08); }

/* Botón que llama la atención sin necesidad de hover */
.btn--attn { animation: attn-ring 2.6s ease-out infinite; }
.btn--attn::after { animation: attn-shine 3.6s ease-in-out 1.2s infinite; }
.btn--attn .ico:first-child { animation: attn-wiggle 3.6s ease-in-out 1.2s infinite; transform-origin: 50% 80%; }
.btn--attn:hover, .btn--attn:hover::after, .btn--attn:hover .ico:first-child { animation-play-state: paused; }
@keyframes attn-ring { 0% { box-shadow: 0 8px 24px -8px rgba(251, 190, 25, .65), 0 0 0 0 rgba(251, 190, 25, .55); } 70%, 100% { box-shadow: 0 8px 24px -8px rgba(251, 190, 25, .65), 0 0 0 18px rgba(251, 190, 25, 0); } }
@keyframes attn-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes attn-wiggle { 0%, 52%, 100% { transform: rotate(0); } 56% { transform: rotate(-16deg); } 62% { transform: rotate(14deg); } 68% { transform: rotate(-10deg); } 74% { transform: rotate(8deg); } 80% { transform: rotate(0); } }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.ripple { /* feedback al hacer clic (lo crea script.js) */
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: rgba(20, 27, 57, .28); transform: scale(0); animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
/* El desenfoque va en un pseudo-elemento: un backdrop-filter en el header
   volvería "relativo" al menú móvil (position: fixed) y lo recortaría. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: 101; opacity: 0; transition: opacity .3s;
  background: rgba(15, 21, 48, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled::before { opacity: 1; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; z-index: 102; }

.brand { position: relative; z-index: 101; display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--yellow); color: var(--navy); transition: transform .4s var(--ease);
}
.brand__mark svg { width: 22px; height: 22px; fill: currentColor; }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__text { min-width: 0; white-space: nowrap; display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 800; line-height: .95; text-transform: uppercase; }
.brand__l1 { font-size: 1.4rem; letter-spacing: .05em; line-height: 1; }
.brand__l1 i { font-style: normal; color: var(--yellow); }
.brand__l2 { margin-top: 2px; font-size: 1.06rem; font-weight: 800; letter-spacing: .2em; color: var(--white); }

.urg-pill {
  display: none; align-items: center; gap: 8px; margin-left: auto;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; background: rgba(251, 190, 25, .12); color: var(--yellow);
  border: 1px solid rgba(251, 190, 25, .35);
}
.urg-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(251, 190, 25, .7); animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 9px rgba(251, 190, 25, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 190, 25, 0); } }

/* Menú móvil */
.nav {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--navy-2);
  clip-path: circle(0 at calc(100% - 44px) 34px); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.nav.is-open { clip-path: circle(150% at calc(100% - 44px) 34px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.nav__list { display: flex; flex-direction: column; gap: 6px; }
.nav__list a {
  display: block; padding: 6px 0; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; text-transform: uppercase; line-height: 1.1;
  opacity: 0; transform: translateX(-20px); transition: opacity .4s, transform .5s var(--ease), color .2s;
}
.nav.is-open .nav__list a { opacity: 1; transform: none; }
.nav.is-open .nav__list li:nth-child(1) a { transition-delay: .15s; }
.nav.is-open .nav__list li:nth-child(2) a { transition-delay: .22s; }
.nav.is-open .nav__list li:nth-child(3) a { transition-delay: .29s; }
.nav.is-open .nav__list li:nth-child(4) a { transition-delay: .36s; }
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--yellow); }
.nav__cta { align-self: flex-start; }

.nav-toggle {
  position: relative; z-index: 102; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 12px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Cable eléctrico animado (fondo) ---------- */
main { position: relative; }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wire__track { stroke: rgba(255, 255, 255, .09); stroke-width: 6; }
.wire__glow { stroke: var(--yellow); stroke-width: 16; opacity: .16; }
.wire__lit { stroke: var(--yellow); stroke-width: 4; }
.wire__pulse { stroke: #FFF6D6; stroke-width: 4; stroke-dasharray: 10 90; animation: flow 1.5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -100; } }
.wire__tip { transition: opacity .3s; }
.tip-dot { fill: #FFF6D6; }
.tip-ring { fill: none; stroke: var(--yellow); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 1.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.node { fill: var(--navy); stroke: rgba(251, 190, 25, .4); stroke-width: 3; transition: fill .4s, stroke .4s; }
.node-core { fill: rgba(251, 190, 25, .4); transition: fill .4s; }
.node-halo { fill: none; stroke: var(--yellow); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.node-g.on .node { stroke: var(--yellow); fill: var(--navy-3); }
.node-g.on .node-core { fill: var(--yellow); }
.node-g.on .node-halo { animation: ring 2s ease-out infinite; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; min-height: 100svh;
  padding: calc(var(--header-h) + 36px) 0 90px; background: var(--navy); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.4px); background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 80%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); transition: transform .6s ease-out; }
.glow--a { width: 480px; height: 480px; right: -120px; top: 5%; background: rgba(251, 190, 25, .22); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow);
}
.eyebrow .dot { width: 26px; height: 3px; border-radius: 3px; background: var(--yellow); }

.hero__title {
  margin: 18px 0 22px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.2rem, 15.6vw, 5.6rem); line-height: .88; letter-spacing: .005em;
}
.line { display: block; overflow: hidden; padding-block: .04em; white-space: nowrap; }
.line--accent { color: var(--yellow); filter: drop-shadow(0 0 22px rgba(251, 190, 25, .38)); }
.ch { display: inline-block; }
.js .ch { transform: translateY(110%) rotate(6deg); }
.is-in .ch { animation: char-in .9s var(--ease) calc(var(--i) * 45ms + .15s) forwards; }
@keyframes char-in { to { transform: none; } }
.is-in .line--accent { animation: flicker 2.2s 1.2s both; }
@keyframes flicker {
  0%, 18%, 22%, 62%, 66%, 100% { filter: drop-shadow(0 0 22px rgba(251, 190, 25, .5)); opacity: 1; }
  20%, 64% { filter: drop-shadow(0 0 0 rgba(251, 190, 25, 0)); opacity: .75; }
}

.hero__lead { font-size: clamp(1.1rem, 3.6vw, 1.45rem); line-height: 1.4; color: var(--muted); max-width: 30ch; }
.nowrap { white-space: nowrap; }
/* El casillero reserva el ancho de la palabra más larga (el texto no salta de línea al escribir/borrar);
   el subrayado va en la palabra y mide justo lo que ella. text-decoration no altera el alto de la línea. */
.typed-slot { display: inline-block; min-width: 8.2ch; text-align: left; white-space: nowrap; }
.typed { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 4px; vertical-align: -.18em; background: var(--yellow); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__desc { max-width: 46ch; margin-top: 18px; font-size: 1.02rem; line-height: 1.6; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 52px; font-size: .95rem; color: var(--muted); }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .ico { color: var(--yellow); fill: none; stroke: currentColor; }
.hero__meta a:hover { color: var(--yellow); }

/* Tablero 3D */
.hero__visual { position: relative; width: min(100%, 440px); margin-inline: auto; perspective: 1100px; }
.visual__halo { position: absolute; inset: 6% -6% 10%; border-radius: 40%; background: radial-gradient(closest-side, rgba(251, 190, 25, .28), transparent); filter: blur(24px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .75; } }
.panel { position: relative; transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; filter: drop-shadow(0 22px 26px rgba(4, 7, 25, .45)); }
.tablero { width: 100%; height: auto; overflow: visible; }

/* Tablero: palancas que 'saltan' de vez en cuando (se heredan por <use>) */
.t-lever { animation: var(--an, none) 9s ease-in-out infinite; animation-delay: var(--bd, 0s); }
.t-led { animation: var(--al, none) 9s ease-in-out infinite; animation-delay: var(--bd, 0s); }
@keyframes tlever { 0%, 42%, 100% { transform: translateY(0); } 50%, 88% { transform: translateY(20px); } }
@keyframes tled { 0%, 42%, 100% { opacity: 1; } 50%, 88% { opacity: .15; } }

.badge24 {
  position: absolute; z-index: 3; right: -10px; top: -26px; width: 132px; padding: 8px 8px 4px;
  background: linear-gradient(150deg, #2A3573 0%, #1A2250 55%, #141B39 100%); border: 2px solid var(--yellow); border-radius: 22px; text-align: center;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .6), 0 0 0 6px rgba(251, 190, 25, .1); animation: float 5s ease-in-out infinite;
}
.badge24__label { display: block; font-family: var(--font-display); font-weight: 800; font-size: .9rem; letter-spacing: .12em; color: var(--white); }
.badge24 svg { width: 100%; height: auto; }
.badge24__ring { animation: spin 12s linear infinite; }
.badge24__num { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 56px; fill: var(--white); }
.badge24__h { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 22px; fill: var(--yellow); }
@keyframes spin { to { transform: rotate(-360deg); } }
@keyframes float { 50% { transform: translateY(-9px); } }

.wire-start { position: absolute; left: calc(50% - 1px); bottom: 0; width: 2px; height: 2px; pointer-events: none; } /* sólo marca el punto de partida */
.wire-nub { fill: var(--navy-2); stroke: var(--yellow); stroke-width: 3; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint__label { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.scroll-hint__btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--yellow); color: var(--yellow); transition: background .3s, color .3s; }
.scroll-hint__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
.scroll-hint:hover .scroll-hint__btn { background: var(--yellow); color: var(--navy); }
.scroll-hint:hover .scroll-hint__label { color: var(--yellow); }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* ---------- Cinta ---------- */
.marquee {
  position: relative; z-index: 3; overflow: hidden; background: var(--yellow); color: var(--navy);
  padding: 20px 0; border-block: 6px solid var(--navy-2);
  box-shadow: 0 0 0 6px var(--yellow);
}
.marquee { background-image: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.marquee__group span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2rem); text-transform: uppercase; letter-spacing: .02em; }
.marquee__group svg { width: 22px; height: 22px; fill: var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: clamp(60px, 7.5vw, 104px); }
/* Un único degradado continuo en <main>: las secciones no tienen cortes de color */
main { background: linear-gradient(180deg, #141B39 0%, #0F1530 24%, #1A2350 48%, #121A3E 64%, #0F1530 84%, #0F1530 100%); }
.section--last { padding-bottom: clamp(56px, 7vw, 90px); }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.title {
  margin-top: 14px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.8rem, 10vw, 5.6rem); line-height: .92; letter-spacing: .005em;
}
.title--md { font-size: clamp(2.5rem, 8vw, 4.4rem); }
.title em { font-style: normal; color: var(--yellow); }
.lead { margin-top: 22px; max-width: 46ch; font-size: 1.12rem; color: var(--muted); }

/* Titulares: cada palabra sube desde una máscara */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em; margin-block: -.06em; }
.w > span { display: inline-block; }
.js .w > span { transform: translateY(105%); }
.is-in .w > span { animation: char-in .9s var(--ease) calc(var(--i) * 80ms) forwards; }

/* Reveal on scroll */
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: rise .9s var(--ease) var(--d, 0s) backwards; }
.js [data-reveal="scale"].is-in { animation-name: pop; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } }

/* ---------- Tarjetas de servicios ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-height: 250px; padding: 26px; border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 20px 40px -24px rgba(0, 0, 0, .6);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .75), 0 0 0 3px var(--yellow); }
.card > * { position: relative; }
.card__num { position: absolute; right: 22px; top: 18px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: rgba(20, 27, 57, .28); transition: color .3s; }
.card:hover .card__num { color: var(--navy); }
.card__icon {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--yellow);
  transition: transform .5s var(--ease), background .3s;
}
.card__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.card:hover .card__icon { transform: rotate(-10deg) scale(1.1); background: var(--navy); }
.card:hover .card__icon svg { stroke: var(--yellow); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; line-height: 1.05; text-transform: uppercase; max-width: 14ch; }
.card__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: gap .3s var(--ease), border-color .3s;
}
.card__link svg { width: 18px; height: 18px; }
.card:hover .card__link { gap: 14px; border-color: var(--navy); }

.more { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.more__text { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 2rem; color: var(--yellow); }

/* ---------- Presupuesto ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 54px; align-items: center; }
.split__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 34px; }
.urg-note { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); }
.urg-note i { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); animation: pulse-dot 1.8s infinite; }

.sheet-wrap { perspective: 1200px; padding: 10px; }
.sheet {
  max-width: 430px; margin-inline: auto; overflow: hidden; border-radius: 24px; background: var(--navy);
  border: 3px solid var(--yellow); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8), 0 0 0 10px rgba(251, 190, 25, .07);
  transform: rotate(2.5deg); transition: transform .6s var(--ease);
}
.sheet-wrap:hover .sheet { transform: rotate(0) translateY(-6px); }
.sheet__top { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; padding: 18px 18px 14px; }
.sheet__brand { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: .95; text-transform: uppercase; }
.sheet__brand b:nth-child(2) { color: var(--yellow); }
.sheet__brand small { font-size: .7rem; letter-spacing: .15em; margin-top: 3px; }
.sheet__tag { justify-self: end; padding: 6px 10px; border-radius: 8px; background: var(--yellow); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .04em; font-style: italic; text-align: center; }
.sheet__valid { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.sheet__valid i { width: 30px; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .92); }
.sheet__body { margin: 0 12px; padding: 12px; border-radius: 14px; background: var(--white); color: var(--ink); }
.sheet__fields p { display: flex; align-items: flex-end; gap: 8px; font-size: .74rem; margin-bottom: 8px; }
.line-fill { flex: 1; height: 1px; background: rgba(20, 27, 57, .4); position: relative; top: -3px; }
.sheet__table { border: 1px solid rgba(20, 27, 57, .85); border-radius: 6px; overflow: hidden; }
.sheet__head, .sheet__row { display: grid; grid-template-columns: .7fr 2fr .9fr; }
.sheet__head { background: var(--navy); color: var(--white); font-size: .6rem; font-weight: 700; letter-spacing: .04em; }
.sheet__head span { padding: 6px 8px; }
.sheet__head span:nth-child(2) { text-align: center; }
.sheet__head span:nth-child(3) { text-align: right; }
.sheet__row { height: 24px; border-top: 1px solid rgba(20, 27, 57, .85); }
.sheet__row span + span { border-left: 1px solid rgba(20, 27, 57, .85); }
.sheet__row { position: relative; }
.sheet__row::after { /* resaltado que “escribe” cada renglón */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(251, 190, 25, .35);
}
.sheet-wrap.is-in .sheet__row::after { animation: scan 1.6s var(--ease) calc(var(--r, 0) * .25s + .6s) both; }
@keyframes scan { 0% { width: 0; opacity: 1; } 60% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
.sheet__total { display: grid; grid-template-columns: 2.7fr .9fr; border-top: 1px solid rgba(20, 27, 57, .85); font-size: .66rem; font-weight: 800; height: 26px; }
.sheet__total span:first-child { text-align: right; padding: 6px 10px; }
.sheet__total span + span { border-left: 1px solid rgba(20, 27, 57, .85); }
.sheet__foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; padding: 14px; font-size: .72rem; font-weight: 600; }
.sheet__foot svg { width: 15px; height: 15px; fill: var(--yellow); }
.sheet__foot svg:last-child { fill: none; stroke: var(--yellow); margin-left: 6px; }

/* ---------- Cobertura ---------- */
.coverage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.coverage__info {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2)); border: 1px solid var(--line);
}
.coverage__label { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.coverage__label .ico { fill: none; stroke: currentColor; }
.coverage__zone { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: .95; text-transform: uppercase; }
.coverage__note { color: var(--muted); font-size: .95rem; }
.zone-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.zone-form label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.zone-form input { width: 100%; padding: 14px 16px; border-radius: 14px; background: rgba(15, 21, 48, .7); border: 2px solid rgba(255, 255, 255, .14); outline: none; transition: border-color .25s, box-shadow .25s, background .25s; }
.zone-form input::placeholder { color: rgba(255, 255, 255, .38); }
.zone-form input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(251, 190, 25, .18); background: rgba(15, 21, 48, .95); }
.zone-form input[aria-invalid="true"] { border-color: var(--danger); animation: shake .4s; }
.zone-form .field__err { margin-top: -4px; min-height: 0; }
.zone-form .btn { margin-top: 4px; }


.coverage__map { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(251, 190, 25, .5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); background: var(--navy-3); }
#map { position: absolute; inset: 0; background: var(--navy-3); }
.map-fallback { position: absolute; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--navy-3); color: var(--muted); transition: opacity .4s; }
.map-fallback.is-hidden { opacity: 0; pointer-events: none; }

/* Leaflet adaptado a la marca */
.leaflet-container { font-family: var(--font-body); background: var(--navy-3); }
.leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) saturate(.55) brightness(.95) contrast(.92); }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--navy); color: var(--yellow); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--navy-3); }
.leaflet-control-attribution { background: rgba(15, 21, 48, .8) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--yellow) !important; }
.zone-poly { animation: dash 24s linear infinite; transition: fill-opacity .3s; }
@keyframes dash { to { stroke-dashoffset: -240; } }
.leaflet-tooltip.zone-tip { background: var(--yellow); color: var(--navy); border: 0; font-weight: 700; border-radius: 10px; padding: 8px 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.leaflet-tooltip.zone-tip::before { display: none; }
.zone-pin { position: relative; }
.zone-pin span { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--navy); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.zone-pin span svg { width: 22px; height: 22px; fill: currentColor; }
.zone-pin::before { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--yellow); animation: ring 2s ease-out infinite; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 54px; align-items: start; }
.contact > * { min-width: 0; }
.plug-end { width: 64px; height: 64px; margin-bottom: 26px; margin-left: 0; transition: filter .5s; }
.plug-end svg { width: 100%; height: 100%; overflow: visible; transform-origin: center; }
.plug-end rect { fill: var(--navy); stroke: var(--yellow); stroke-width: 3; transition: fill .5s; }
.plug-end .slot { fill: rgba(251, 190, 25, .4); stroke: none; transition: fill .4s; }
.plug-end.on { filter: drop-shadow(0 0 14px rgba(251, 190, 25, .65)); }
.plug-end.on svg { animation: socket-pop .8s var(--ease); }
.plug-end.on rect:first-child { fill: var(--navy-3); }
.plug-end.on .slot { fill: var(--yellow); }
@keyframes socket-pop { 40% { transform: scale(1.12); } }

.phone {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 18px 8px 14px;
  border-radius: 999px; background: var(--yellow); color: var(--navy);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 12px 30px -10px rgba(251, 190, 25, .6);
}
.phone:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 40px -10px rgba(251, 190, 25, .8); }
.phone:hover .ico--arrow { transform: translateX(6px); }
.phone:active { transform: scale(.97); }
.phone__ico { display: grid; place-items: center; width: 26px; height: 26px; }
.phone__ico svg { width: 23px; height: 23px; fill: var(--navy); stroke: var(--navy); stroke-width: .9; stroke-linejoin: round; }
.phone__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 4.4vw, 1.5rem); letter-spacing: .01em; }
.phone .ico--arrow { stroke: var(--navy); --sw: 3.2; width: 18px; height: 18px; }

.zone-chip { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; color: var(--muted); }
.zone-chip .ico { margin-top: 2px; }
.zone-chip .ico { fill: none; stroke: var(--yellow); }
.zone-chip b { color: var(--white); }

.bizcard {
  display: flex; align-items: center; gap: 18px; margin-top: 36px; padding: 18px; max-width: 480px;
  border-radius: 20px; background: var(--white); color: var(--ink);
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .7); transition: transform .5s var(--ease);
}
.bizcard:hover { transform: rotate(-1.5deg) translateY(-4px); }
.bizcard img { width: 92px; height: 92px; object-fit: contain; flex: none; }
.bizcard__role { font-size: 1.25rem; font-weight: 500; line-height: 1.1; }
.bizcard__name { display: inline-block; font-size: 1.3rem; font-weight: 800; line-height: 1.2; border-bottom: 4px solid var(--yellow); padding-bottom: 2px; }
.bizcard__list { margin-top: 10px; font-size: .75rem; line-height: 1.5; color: rgba(20, 27, 57, .75); }

.form {
  padding: clamp(22px, 4vw, 36px); border-radius: 28px;
  background: linear-gradient(170deg, var(--navy-3), rgba(28, 37, 82, .6)); border: 1px solid var(--line);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9);
}
.form__title { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; text-transform: uppercase; line-height: 1; }
.form__sub { margin: 8px 0 22px; color: var(--muted); font-size: .95rem; }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 460px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.field label span { color: var(--muted); font-weight: 400; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; background: rgba(15, 21, 48, .7);
  border: 2px solid rgba(255, 255, 255, .14); outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FBBE19' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.multi__btn {
  min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; text-align: left;
  border-radius: 14px; background-color: rgba(15, 21, 48, .7); border: 2px solid rgba(255, 255, 255, .14); outline: none;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.multi__btn:focus-visible, .multi__btn[aria-expanded="true"] { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(251, 190, 25, .18); }
.multi__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .38); }
.multi__btn.has-value .multi__text { color: var(--white); }
.multi__chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.multi__btn[aria-expanded="true"] .multi__chev { transform: rotate(180deg); }
.multi { position: relative; }
.multi__panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; padding: 6px; max-height: 270px; overflow-y: auto; border-radius: 14px; background: var(--navy-2); border: 2px solid rgba(255, 255, 255, .2); box-shadow: 0 24px 44px -12px rgba(0, 0, 0, .75); }
.multi__panel[hidden] { display: none; }
.field .check { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .95rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; transition: background .2s; }
.field .check:hover { background: rgba(251, 190, 25, .08); }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; padding: 0; border-radius: 5px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .32); background: transparent center / 12px no-repeat; transition: background-color .2s, border-color .2s;
}
.check input:checked {
  border-color: var(--yellow); background-color: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141B39' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.check input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.field.is-invalid .multi__btn { border-color: var(--danger); animation: shake .4s; }
.field select option { background: var(--navy); color: var(--white); }
.field input:not([type="checkbox"])::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(251, 190, 25, .18); background: rgba(15, 21, 48, .95); }
.field.is-invalid input:not([type="checkbox"]), .field.is-invalid select { border-color: var(--danger); animation: shake .4s; }
.field.is-valid input:not([type="checkbox"]), .field.is-valid select { border-color: rgba(251, 190, 25, .6); }
.field__err { min-height: 0; margin-top: 6px; font-size: .8rem; color: var(--danger); font-weight: 500; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form__status { min-height: 1.4em; margin-top: 14px; font-size: .9rem; text-align: center; color: var(--yellow); font-weight: 600; }
.form .btn--block { margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 3; background: #0B1029; }
.hazard { height: 16px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--navy) 14px 28px); }
.footer .container { z-index: 1; }
.footer__grid { display: grid; gap: 40px 32px; padding-block: 64px 44px; grid-template-columns: 1fr; }
.footer__col ul { display: grid; gap: 10px; color: var(--muted); font-size: .95rem; }
.footer__col a:not(.btn):not(.brand) { transition: color .2s, padding-left .25s var(--ease); }
.footer__col ul a:hover { color: var(--yellow); padding-left: 4px; }
.footer__h { margin-bottom: 18px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.footer__who { margin-top: 18px; font-weight: 600; }
.footer__pitch { margin-top: 6px; max-width: 30ch; color: var(--muted); font-size: .95rem; }
.urg-pill--footer { display: inline-flex; margin: 20px 0 0; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact .ico { color: var(--yellow); margin-top: 2px; }
.footer__contact .ico--stroke { fill: none; stroke: currentColor; }
.footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px 88px 28px 0; border-top: 1px solid var(--line); font-size: .85rem; color: rgba(255, 255, 255, .5);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; color: var(--white); transition: border-color .25s, color .25s, transform .25s var(--ease), background .25s; }
.to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.to-top:hover { border-color: var(--yellow); color: var(--yellow); background: rgba(251, 190, 25, .08); transform: translateY(-2px); }
.to-top:hover svg { transform: translateY(-3px); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 150; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: var(--white); box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float::before, .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); opacity: 0; animation: wa-pulse 3.2s ease-out infinite; }
.wa-float::after { animation-delay: 1.6s; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }
.wa-float:active { transform: scale(.94); }
.wa-float__tip {
  position: absolute; right: 74px; top: 50%; padding: 10px 14px; border-radius: 12px; white-space: nowrap;
  background: var(--white); color: var(--navy); font-size: .85rem; font-weight: 700; box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  opacity: 0; transform: translate(10px, -50%); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.wa-float__tip::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: var(--white); transform: translateY(-50%) rotate(45deg); }
.wa-float.show-tip .wa-float__tip, .wa-float:hover .wa-float__tip { opacity: 1; transform: translate(0, -50%); }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--wide:last-child { grid-column: 1 / -1; }
  .coverage__map { min-height: 480px; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; --gutter: 40px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero__title { font-size: min(8.4vw, 8rem); }
  .hero__lead { max-width: 44ch; } /* en escritorio la frase entra en una sola línea */
  .hero__visual { width: min(100%, 460px); margin-inline: 0 auto; }
  .badge24 { right: -30px; top: -58px; }
  .scroll-hint { display: flex; }
  .hero { padding-bottom: 130px; }

  /* Navegación de escritorio */
  .urg-pill { display: inline-flex; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 30px; padding: 0; background: none; clip-path: none; visibility: visible; margin-left: auto; transition: none; }
  .nav__list { flex-direction: row; gap: 26px; }
  .nav__list a { font-family: var(--font-body); font-size: .92rem; font-weight: 600; text-transform: none; opacity: 1; transform: none; padding: 8px 0; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
  .nav__cta { align-self: center; }
  .urg-pill { margin-left: 0; order: 3; }
  .nav-toggle { display: none; }

  .cards { grid-template-columns: repeat(12, 1fr); }
  .card { grid-column: span 3; }
  .card--wide { grid-column: span 4; }
  .card--wide:last-child { grid-column: span 4; }

  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .coverage { grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch; }
  .coverage__map { min-height: 540px; }
  .contact { grid-template-columns: 1fr 1fr; gap: 70px; }
  .footer__grid { grid-template-columns: 1.5fr .8fr 1.2fr 1.1fr; gap: 48px; }
}

/* ---------- Componentes sólo móvil / táctil ---------- */
.dots, .steps, .form__nav, .map-lock, .map-done { display: none; }
.cdot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .28); transition: width .3s var(--ease), background .3s; }
.cdot.is-active { width: 26px; background: var(--yellow); }
.steps__label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.steps__track { height: 4px; margin: 8px 0 18px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.steps__track i { display: block; height: 100%; width: 33.3%; border-radius: 4px; background: var(--yellow); transition: width .45s var(--ease); }
.form__nav { gap: 10px; margin-top: 4px; }
.form__nav .btn { flex: 1; }
.map-lock {
  position: absolute; inset: 0; z-index: 450; align-items: flex-end; justify-content: center; padding: 0 0 16px; border: 0; width: 100%;
  background: linear-gradient(to bottom, transparent 55%, rgba(15, 21, 48, .82)); color: var(--white); font-weight: 700; font-size: .9rem;
}
.map-done { position: absolute; top: 10px; right: 10px; z-index: 450; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--navy); font-weight: 700; box-shadow: 0 8px 18px rgba(0, 0, 0, .4); }
.coverage__map.is-unlocked .map-lock { display: none; }
@media (pointer: coarse) {
  .map-lock { display: flex; }
  .coverage__map.is-unlocked .map-done { display: block; }
}

@media (max-width: 899px) {
  /* Márgenes simétricos (contenido centrado); el circuito corre por el borde izquierdo, a 10 px */
  :root { --gl: 34px; --gr: 34px; }
  .container { width: auto; margin-left: var(--gl); margin-right: var(--gr); }
  .header__inner { margin-inline: 20px; }
  body { line-height: 1.45; }
  .hero__desc { line-height: 1.45; }

  /* Hero: más compacto y centrado */
  .hero { min-height: 0; padding: calc(var(--header-h) + 28px) 0 56px; }
  .hero__grid { gap: 36px; }
  .hero__copy { text-align: center; }
  .hero__title { font-size: clamp(2.9rem, 13.4vw, 5rem); margin-bottom: 16px; }
  .hero__lead, .hero__desc { margin-inline: auto; }
  .hero__desc { margin-top: 14px; font-size: .98rem; }
  .hero__cta { flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
  .hero__cta .btn { width: 100%; max-width: 340px; }
  .hero__meta { justify-content: center; margin-top: 30px; }
  .eyebrow { justify-content: center; }
  .hero__visual { width: min(72%, 290px); }
  .badge24 { width: 100px; right: -22px; top: -22px; padding: 6px 6px 2px; border-radius: 18px; }
  .badge24__label { font-size: .72rem; }
}

@media (max-width: 599px) {
  /* Servicios: carrusel horizontal con la siguiente tarjeta asomando */
  .cards {
    position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-left: calc(var(--gl) * -1); margin-right: calc(var(--gr) * -1); padding: 4px var(--gr) 18px var(--gl); scroll-padding-inline: var(--gl) var(--gr); scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 82%; min-height: 236px; scroll-snap-align: start; }
  .card:hover { transform: none; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
  .more { margin-top: 22px; }

  /* Presupuesto: la hoja es más chica */
  .sheet { max-width: 330px; }
  .sheet-wrap { padding: 0; }

  /* Formulario por pasos */
  .form.is-wizard .step { display: none; }
  .form.is-wizard .step.is-active { display: block; }
  .form.is-wizard .steps { display: block; }
  .form.is-wizard .form__nav { display: flex; }
  .form.is-wizard .form__submit { display: none; }
  .form.is-wizard.is-last .form__submit { display: inline-flex; }
  .form.is-wizard.is-last #stepNext { display: none; }
  .form.is-wizard.is-first #stepBack { display: none; }
  .form.is-wizard.is-last .form__nav { margin-bottom: 12px; }

  /* Mapa y footer más cortos */
  .coverage__map { min-height: 340px; }
  .coverage__info { padding: 22px; }
  /* Footer móvil: 1) marca + bajada centradas, 2) contacto con íconos, 3) copyright */
  .footer__grid { grid-template-columns: 1fr; gap: 34px; padding-block: 40px 22px; }
  .footer__col--nav, .footer__col--services { display: none; }
  .footer__col--brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer__who { margin-top: 16px; }
  .footer__pitch { margin-inline: auto; }
  .urg-pill--footer { margin-top: 16px; }
  .footer__col--contact { width: 100%; max-width: 320px; margin-inline: auto; padding-top: 28px; border-top: 1px solid var(--line); }
  .footer__col--contact .footer__h { text-align: center; margin-bottom: 20px; }
  .footer__contact { gap: 16px; font-size: 1rem; }
  .footer__contact li { align-items: center; gap: 14px; }
  .footer__contact .ico { width: 42px; height: 42px; padding: 11px; margin: 0; border-radius: 50%; background: rgba(251, 190, 25, .12); border: 1px solid rgba(251, 190, 25, .3); }
  .footer__contact a { white-space: nowrap; color: var(--white); }
  .footer__bar { justify-content: center; text-align: center; padding: 18px 0 84px; font-size: .8rem; color: rgba(255, 255, 255, .45); }
  .to-top { display: none; }
  .bizcard__list { display: none; }
}

/* Móvil angosto: títulos ~18 % más chicos, interlineado 1.1 y botones de una sola línea (alto táctil de 52 px) */
@media (max-width: 480px) {
  .header__inner { gap: 10px; }
  .brand { gap: 10px; }
  .brand__mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand__l1 { font-size: 1.2rem; }
  .hero__title { font-size: clamp(2.4rem, 11.2vw, 3.6rem); line-height: 1; }
  .title { font-size: clamp(2.2rem, 8.6vw, 3rem); line-height: 1.1; }
  .title--md { font-size: clamp(2rem, 7.8vw, 2.6rem); }
  .coverage__zone { font-size: 2.1rem; line-height: 1.1; }
  .btn { white-space: nowrap; }
  .btn--lg { min-height: 52px; padding: 0 24px; }
  .btn--sm { min-height: 44px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .js .ch, .js .w > span { transform: none; }
  .js [data-reveal]:not(.is-in) { opacity: 1; }
}
