/* =====================================================================
   SISTEMA DE DISEÑO — v2 · paleta "movilidad sostenible"
   ---------------------------------------------------------------------
   Base oscura verde bosque (profunda, sobria) y fondo claro con un tinte
   verde muy suave. El acento es un verde aguamarina "energía limpia" para
   líneas, etiquetas, precios y la línea que conecta los pasos del
   proceso (la firma visual). Tipografía con carácter (Bricolage
   Grotesque) para titulares, IBM Plex Sans para leer e IBM Plex Mono
   para datos: precios, kW, referencias.
   El botón de WhatsApp conserva su verde oficial (más amarillo y
   brillante) para que siempre se distinga del acento de marca.
   Mobile-first. Accesible. Respeta prefers-reduced-motion.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --deep:          #0e2a22;   /* verde bosque: fondos oscuros y texto principal */
  --deep-2:        #14382e;
  --deep-3:        #1c4a3d;
  --slate:         #46605a;   /* texto secundario */
  --slate-soft:    #6d857e;
  --mist:          #f2f6f3;   /* fondo de página (claro con tinte verde) */
  --mist-2:        #e6eee9;
  --paper:         #ffffff;
  --line:          #d5e0da;
  --line-dark:     #24554a;

  --accent:        #129f68;   /* verde esmeralda "hoja" (distinto del verde WhatsApp, más amarillo y brillante) */
  --accent-deep:   #0c7a4e;
  --accent-light:  #3fd39a;
  --accent-tint:   #e3f5eb;
  --accent-glow:   rgba(63, 211, 154, 0.35);

  --pulse:         #bfe3ff;   /* anillo de carga (solo en el hero oscuro) */

  --wa:            #25d366;
  --wa-deep:       #1ebe5d;
  --wa-ink:        #062e17;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --fs-0: 0.8125rem;   /* 13 */
  --fs-1: 0.9375rem;   /* 15 */
  --fs-2: 1.0625rem;   /* 17 */
  --fs-3: 1.25rem;     /* 20 */
  --fs-4: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-5: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-6: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem);

  --sp-1: 0.5rem; --sp-2: 0.75rem; --sp-3: 1rem; --sp-4: 1.5rem;
  --sp-5: 2rem;  --sp-6: 3rem;    --sp-7: 4.5rem; --sp-8: 6rem;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14,42,34,.06), 0 2px 6px rgba(14,42,34,.05);
  --shadow-md: 0 10px 30px rgba(14,42,34,.12);
  --shadow-lg: 0 30px 70px rgba(14,42,34,.22);

  --container: 1200px;
  --narrow: 780px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
::selection { background: var(--accent-tint); color: var(--deep); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-2);
  line-height: 1.6;
  color: var(--deep);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--deep); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); z-index: 1000; }
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Utilidades ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.copper { color: var(--accent); }
.muted { color: var(--slate); }
.small { font-size: var(--fs-1); }
.tiny { font-size: var(--fs-0); }
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mb-3 { margin-bottom: var(--sp-3); } .mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); }
.stack > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-5); }
.hide-mobile { display: none; }
@media (min-width: 760px) { .hide-mobile { display: initial; } .hide-desktop { display: none !important; } }

/* Eyebrow: etiqueta técnica en mono con marca de cobre */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: var(--fs-0); letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-deep);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.on-dark .eyebrow { color: var(--accent-light); }

.section { padding-block: var(--sp-7); }
.section-tight { padding-block: var(--sp-6); }
@media (min-width: 900px) { .section { padding-block: var(--sp-8); } }
.section-title { font-size: var(--fs-5); margin-top: var(--sp-2); max-width: 22ch; }
.section-lead { font-size: var(--fs-3); color: var(--slate); margin-top: var(--sp-3); max-width: 58ch; line-height: 1.5; }
.section-head { display: grid; gap: var(--sp-2); }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.1fr 1fr; gap: var(--sp-6); align-items: end; }
  .section-head.split .section-lead { margin-top: 0; }
}
.on-dark { background: var(--deep); color: #e6efe9; position: relative; }
/* Textura topográfica sutil (líneas de nivel: guiño andino) en los bloques oscuros */
.on-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600' fill='none' stroke='%233fd39a' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M0 420 C 150 380 220 300 380 310 S 640 420 900 330'/%3E%3Cpath d='M0 470 C 160 430 240 350 400 360 S 660 470 900 380'/%3E%3Cpath d='M0 520 C 170 480 260 400 420 410 S 680 520 900 430'/%3E%3Cpath d='M80 260 C 200 200 330 150 470 180 S 700 300 900 220'/%3E%3Cpath d='M40 210 C 180 150 330 100 480 130 S 720 250 900 170'/%3E%3Cpath d='M0 160 C 160 100 330 50 490 80 S 740 200 900 120'/%3E%3C/svg%3E") right -120px top -60px / 1100px auto no-repeat;
}
.on-dark > * { position: relative; }
.on-dark .section-lead, .on-dark .muted { color: #a9bfb5; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.bg-paper { background: var(--paper); }
.bg-mist-2 { background: var(--mist-2); }

/* Línea de cobre (separador semántico: "aquí pasa corriente") */
.rule { height: 2px; background: linear-gradient(90deg, var(--accent) 0 40%, transparent); border: 0; margin-block: var(--sp-5); width: 120px; }
.on-dark .rule { background: linear-gradient(90deg, var(--accent-light) 0 40%, transparent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.35rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-2); line-height: 1.1; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
/* En pantallas angostas los botones largos deben poder partir línea (evita scroll horizontal) */
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 6px 20px rgba(37,211,102,.28); }
.btn-wa:hover { background: var(--wa-deep); box-shadow: 0 10px 26px rgba(37,211,102,.36); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--deep-3); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--deep); }
.btn-ghost:hover { border-color: var(--deep); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.on-dark .btn-ghost:hover { border-color: #fff; }
.btn-copper { background: var(--accent); color: #fff; }
.btn-copper:hover { background: var(--accent-deep); }
.btn-lg { padding: 1.1rem 1.6rem; font-size: var(--fs-3); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--deep); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent-deep); }
.on-dark .link-arrow { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242,246,243,.86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.on-hero { background: rgba(14,42,34,.55); border-bottom-color: rgba(255,255,255,.08); color: #fff; }
.site-header.is-scrolled:not(.on-hero) { box-shadow: 0 8px 28px rgba(14,42,34,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 68px; transition: min-height .3s var(--ease); }
.is-scrolled .nav { min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
/* Logo (SVG): versión oscura sobre fondos claros, clara sobre oscuros */
.brand-logo { display: block; height: 46px; width: auto; transition: height .3s var(--ease); }
.brand-logo--light { display: none; }
.site-header.on-hero .brand-logo--dark { display: none; }
.site-header.on-hero .brand-logo--light { display: block; }
.is-scrolled .brand-logo { height: 40px; }
.site-footer .brand-logo { height: 50px; }
.mobile-menu .brand-logo { height: 32px; }
@media (max-width: 420px) { .brand-logo { height: 36px; } }
.brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); line-height: 1; margin-top: 2px; }
.on-hero .brand small { color: var(--accent-light); }
.nav-links { display: none; list-style: none; padding: 0; gap: var(--sp-4); align-items: center; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: var(--fs-1); opacity: .9; position: relative; padding-block: .35rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.on-hero .nav-links a::after { background: var(--accent-light); }
.nav-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: var(--r-sm); border: 1px solid var(--line); font-weight: 600; font-size: var(--fs-1); }
.on-hero .nav-toggle { border-color: rgba(255,255,255,.3); }
.nav-toggle svg { width: 20px; height: 20px; }
@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
/* Menú móvil */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--deep); color: #fff; padding: var(--sp-4); display: none; flex-direction: column; }
.mobile-menu[aria-hidden="false"] { display: flex; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { margin-top: var(--sp-5); display: grid; gap: .25rem; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-decoration: none; padding: .5rem 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu nav a.sub { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; padding-left: 1rem; color: #cbdad3; }
.mobile-menu .bottom { margin-top: auto; display: grid; gap: var(--sp-3); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,42,34,.55) 0%, rgba(14,42,34,.25) 35%, rgba(14,42,34,.75) 100%),
              linear-gradient(90deg, rgba(14,42,34,.92) 0%, rgba(14,42,34,.55) 45%, rgba(14,42,34,.15) 100%); }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--accent-light), var(--accent) 45%, transparent 90%); }
.hero-inner { position: relative; padding-block: clamp(4rem, 8vw, 7rem) var(--sp-6); display: grid; gap: var(--sp-5); }
/* halo de energía detrás del cotizador (profundidad, muy sutil) */
.hero-inner::before { content: ""; position: absolute; right: -6%; top: 6%; width: 46%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(63,211,154,.20), transparent 72%); filter: blur(18px); }
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.15fr .85fr; gap: var(--sp-7); align-items: center; min-height: min(92vh, 860px); } }
.hero h1 { font-size: var(--fs-6); font-weight: 800; letter-spacing: -0.03em; max-width: 16ch; }
/* chips de precio-enganche bajo el titular (mono, sobrios) */
.hero-prices { list-style: none; padding: 0; margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.hero-prices li {
  display: flex; flex-direction: column; justify-content: center; gap: .15rem;
  padding: .7rem 1rem .75rem; border: 1px solid rgba(63,211,154,.45); border-radius: var(--r-md);
  background: rgba(14,42,34,.58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #e6efe9;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.hero-prices .lbl { font-family: var(--font-mono); font-size: var(--fs-0); letter-spacing: .01em; color: #cfe3d9; }
.hero-prices li b, .hero-prices li .free { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--accent-light); }
.hero-prices li .free { color: #fff; }
.hero-prices li.note { flex-basis: 100%; padding: .35rem 0 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero-prices li.note .lbl { color: #a9bfb5; }
@media (max-width: 640px) { .hero-prices li { flex: 1 1 calc(50% - .6rem); } .hero-prices li:nth-child(3) { flex-basis: 100%; } }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero-lead { font-size: var(--fs-3); color: #d3e1da; max-width: 52ch; margin-top: var(--sp-4); line-height: 1.5; }
.hero-points { list-style: none; padding: 0; margin-top: var(--sp-4); display: grid; gap: .55rem; font-size: var(--fs-1); color: #e0ebe5; }
.hero-points li { display: flex; gap: .6rem; align-items: flex-start; }
.hero-points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 0 4px var(--accent-glow); }
.hero-cta-mobile { margin-top: var(--sp-4); }
.hero .btn-ghost { border-color: rgba(255,255,255,.38); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; }
@media (min-width: 980px) { .hero-cta-mobile { display: none; } }

/* Animación de entrada (una sola, orquestada) */
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
.rise.d1 { animation-delay: .08s } .rise.d2 { animation-delay: .18s } .rise.d3 { animation-delay: .28s } .rise.d4 { animation-delay: .4s }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-media img { opacity: 0; animation: fadein 1.1s ease forwards; }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Cotizador (la conversión vive en el hero) ---------- */
.quoter {
  background: rgba(255,255,255,.97); color: var(--deep);
  border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(14,42,34,.06);
  position: relative;
}
.quoter::before { content: ""; position: absolute; left: var(--sp-4); right: var(--sp-4); top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 0 0 3px 3px; }
.quoter h2 { font-size: 1.35rem; }
.quoter .sub { color: var(--slate); font-size: var(--fs-1); margin-top: .25rem; }
.q-step { margin-top: var(--sp-4); }
.q-label { display: flex; align-items: baseline; gap: .6rem; font-weight: 600; font-size: var(--fs-1); }
.q-label .n { font-family: var(--font-mono); color: var(--accent); font-size: var(--fs-0); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.chip {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--r-pill);
  padding: .45rem .85rem; font-size: var(--fs-1); font-weight: 500; color: var(--deep);
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--deep); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--deep); color: #fff; border-color: var(--deep); }
.chip-more { color: var(--accent-deep); border-style: dashed; }
.q-input, .q-select {
  width: 100%; margin-top: .6rem; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); font-size: var(--fs-2);
}
.q-input:focus, .q-select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }
.q-input[hidden] { display: none; }
.q-actions { margin-top: var(--sp-4); display: grid; gap: .6rem; }
.q-note { font-size: var(--fs-0); color: var(--slate-soft); text-align: center; }
.q-note b { color: var(--slate); font-weight: 600; }

/* ---------- Franja de confianza ---------- */
.trust { border-block: 1px solid var(--line); background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); padding-block: var(--sp-4); }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(4, 1fr); padding-block: var(--sp-5); } }
.trust-item { display: grid; gap: .25rem; }
.trust-item .ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: .4rem; }
.trust-item .k { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-4); letter-spacing: -0.02em; line-height: 1; }
.trust-item .k sup { font-size: .5em; color: var(--accent); font-family: var(--font-mono); font-weight: 500; vertical-align: top; margin-left: .2em; }
.trust-item .v { font-size: var(--fs-1); color: var(--slate); }

/* ---------- Tarjetas de segmento (casa / apto / edificio / negocio) ---------- */
.segments { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
@media (min-width: 700px) { .segments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .segments { grid-template-columns: repeat(4, 1fr); } }
.seg {
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.seg:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(14,42,34,.12); }
.seg img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--mist-2); transition: transform .7s var(--ease); }
.seg:hover img { transform: scale(1.04); }
.seg .body { position: relative; background: var(--paper); }
/* revelado escalonado de rejillas */
.js .segments > .reveal:nth-child(2), .js .why > .reveal:nth-child(2), .js .cards > .reveal:nth-child(2) { transition-delay: .08s; }
.js .segments > .reveal:nth-child(3), .js .why > .reveal:nth-child(3), .js .cards > .reveal:nth-child(3) { transition-delay: .16s; }
.js .segments > .reveal:nth-child(4), .js .cards > .reveal:nth-child(4) { transition-delay: .24s; }
.seg .body { padding: var(--sp-4); display: grid; gap: .5rem; flex: 1; }
.seg h3 { font-size: 1.3rem; }
.seg p { color: var(--slate); font-size: var(--fs-1); }
.seg .from { margin-top: auto; padding-top: .5rem; font-family: var(--font-mono); font-size: var(--fs-0); color: var(--accent-deep); }
.seg .from b { font-size: 1.05rem; color: var(--deep); font-weight: 600; }
.seg.is-priority { border-color: var(--accent); }
.seg.is-priority .tag { position: absolute; top: 12px; left: 12px; }
.seg { position: relative; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: var(--r-pill); padding: .3rem .6rem; }
.tag-light { background: var(--accent-tint); color: var(--accent-deep); }

/* ---------- Lista de precios: "ficha técnica" ---------- */
.pricelist { margin-top: var(--sp-5); display: grid; gap: var(--sp-5); }
.price-group { background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.price-group > header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-3); border-bottom: 2px solid var(--accent); }
.price-group > header h3 { font-size: 1.25rem; }
.price-group > header .meta { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--slate-soft); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table tr + tr td { border-top: 1px solid var(--line); }
.price-table td { padding: 1rem var(--sp-4); vertical-align: top; }
.price-table .item { font-weight: 600; }
.price-table .desc { display: block; color: var(--slate); font-size: var(--fs-1); font-weight: 400; margin-top: .15rem; max-width: 56ch; }
.price-table .price { text-align: right; font-family: var(--font-mono); font-weight: 500; font-size: 1.1rem; white-space: nowrap; width: 1%; }
.price-table .price .free { color: var(--accent-deep); font-weight: 600; background: var(--accent-tint); padding: .25rem .65rem; border-radius: var(--r-pill); display: inline-block; }
.price-table tr.is-featured td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.price-table .price .vat { display: block; font-size: .68rem; color: var(--slate-soft); letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.price-table tr.is-featured td { background: var(--accent-tint); }
.price-table tr.is-featured .item::before { content: "★ "; color: var(--accent); }
@media (max-width: 560px) {
  .price-table td { padding: .9rem var(--sp-3); }
  .price-table .price { font-size: 1rem; }
}
.price-conditions { margin-top: var(--sp-5); display: grid; gap: var(--sp-3); }
@media (min-width: 900px) { .price-conditions { grid-template-columns: repeat(2, 1fr); } }
.cond { display: flex; gap: .8rem; align-items: flex-start; font-size: var(--fs-1); color: var(--slate); }
.cond svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: .1rem; }
.price-note { margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: var(--fs-1); }

/* Precio destacado ("desde") */
.price-hero { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .price-hero { grid-template-columns: 1fr 1fr; align-items: center; } }
.from-box { background: var(--deep); color: #fff; border-radius: var(--r-lg); padding: var(--sp-5); position: relative; overflow: hidden; }
.from-box::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 18px solid var(--accent); opacity: .25; }
.from-box .lbl { font-family: var(--font-mono); font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); }
.from-box .amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; margin-top: .4rem; }
.from-box .amount small { font-family: var(--font-mono); font-size: .9rem; font-weight: 400; letter-spacing: .05em; color: #a9bfb5; margin-left: .3rem; }
.from-box p { color: #cbdad3; margin-top: var(--sp-3); font-size: var(--fs-1); }

/* ---------- Por qué el precio más bajo (importación directa) ---------- */
.why { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
@media (min-width: 900px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why-item { padding: var(--sp-4); border-top: 2px solid var(--accent); background: var(--paper); border-radius: 0 0 var(--r-md) var(--r-md); }
.why-item h3 { font-size: 1.2rem; margin-top: .4rem; }
.why-item p { color: var(--slate); font-size: var(--fs-1); margin-top: .5rem; }
.why-item .k { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--accent-deep); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Proceso: EL CABLE (firma visual) ---------- */
.process { position: relative; }
.process-list { list-style: none; padding: 0; margin-top: var(--sp-6); position: relative; display: grid; gap: var(--sp-5); }
/* el cable: una línea vertical de cobre que "se dibuja" al entrar en pantalla */
.process-list::before {
  content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  transform-origin: top; transition: transform 1.4s var(--ease);
}
.js .process-list:not(.is-live)::before { transform: scaleY(0); }
/* pulso de energía que recorre la línea (una vez "viva") */
.process-list::after {
  content: ""; position: absolute; left: 13px; top: 14px; width: 9px; height: 9px; margin-left: -3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px var(--accent-glow), 0 0 18px var(--accent-light); opacity: 0; pointer-events: none;
}
.process-list.is-live::after { animation: pulse-v 4.5s linear 1.3s infinite; }
@keyframes pulse-v { 0% { top: 14px; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { top: calc(100% - 18px); opacity: 0; } }
.step { position: relative; padding-left: 3rem; }
.step::before {
  content: ""; position: absolute; left: 6px; top: .35rem; width: 17px; height: 17px; border-radius: 50%;
  background: var(--mist); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--mist);
}
.on-dark .step::before { background: var(--deep); box-shadow: 0 0 0 4px var(--deep); }
.step:last-child::before { border-radius: 4px; width: 19px; height: 19px; left: 5px; background: var(--accent); } /* el conector al final */
.step .n { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--accent-deep); letter-spacing: .08em; }
.on-dark .step .n { color: var(--accent-light); }
.step h3 { font-size: 1.3rem; margin-top: .15rem; }
.step p { color: var(--slate); margin-top: .4rem; font-size: var(--fs-1); max-width: 60ch; }
.on-dark .step p { color: #a9bfb5; }
@media (min-width: 980px) {
  .process-list { grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
  .process-list::before { left: 8px; right: 8px; top: 15px; bottom: auto; height: 3px; width: auto; transform-origin: left; background: linear-gradient(90deg, var(--accent-light), var(--accent)); }
  .js .process-list:not(.is-live)::before { transform: scaleX(0); }
  .process-list::after { left: 8px; top: 15px; margin-left: 0; margin-top: -3px; }
  .process-list.is-live::after { animation-name: pulse-h; }
  .step { padding-left: 0; padding-top: 2.6rem; }
  .step::before { left: 0; top: 6px; }
  .step:last-child::before { left: 0; }
}

@keyframes pulse-h { 0% { left: 8px; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { left: calc(100% - 17px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .process-list::after { display: none; } }

/* ---------- Marcas compatibles (texto, sin logos) ---------- */
.brands { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.brands li { list-style: none; font-family: var(--font-mono); font-size: var(--fs-1); padding: .45rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.brands li.is-priority { border-color: var(--accent); color: var(--accent-deep); font-weight: 500; }
.brands li.more { border-style: dashed; color: var(--slate); }

/* ---------- Ciudades ---------- */
.cities { margin-top: var(--sp-5); display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cities { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cities { grid-template-columns: repeat(4, 1fr); } }
.city {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; font-weight: 600; font-size: var(--fs-1);
}
.city:hover { border-color: var(--accent); }
.city .code { font-family: var(--font-mono); font-size: .7rem; color: var(--slate-soft); letter-spacing: .08em; }
.city.is-link .code { color: var(--accent-deep); }
.city-other { border-style: dashed; color: var(--accent-deep); }
@media (max-width: 359px) { .cities { grid-template-columns: 1fr; } }

/* ---------- Dos columnas editorial (imagen + texto) ---------- */
.split2 { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 900px) { .split2 { grid-template-columns: 1fr 1fr; gap: var(--sp-7); } .split2.rev > :first-child { order: 2; } }
.split2 img { border-radius: var(--r-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-md), 0 0 0 1px rgba(14,42,34,.06); background: var(--mist-2); }
.split2 h2 { font-size: var(--fs-5); margin-top: var(--sp-2); }
.split2 p { color: var(--slate); margin-top: var(--sp-3); }
.checks { list-style: none; padding: 0; margin-top: var(--sp-4); display: grid; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .15rem; border-radius: 50%; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%230b7a5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.on-dark .checks li::before { background-color: rgba(53,201,159,.2); }

/* ---------- Tarjetas genéricas ---------- */
.cards { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--slate); font-size: var(--fs-1); margin-top: .5rem; }
.card .k { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--accent-deep); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: .5rem; }
.on-dark .card { background: var(--deep-2); border-color: var(--line-dark); }
.on-dark .card p { color: #a9bfb5; }

/* ---------- Factores que cambian el precio ---------- */
.factors { list-style: none; padding: 0; margin-top: var(--sp-5); display: grid; gap: .75rem; }
@media (min-width: 700px) { .factors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .factors { grid-template-columns: repeat(3, 1fr); } }
.factors li { display: flex; gap: .8rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1rem; font-size: var(--fs-1); }
.factors li b { display: block; }
.factors li span { color: var(--slate); }
.factors li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .45rem; border-radius: 2px; background: var(--accent); }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--sp-5); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--sp-3); align-items: center; padding: 1.1rem 0; font-weight: 600; font-size: var(--fs-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.2rem; color: var(--slate); max-width: 70ch; }
.faq .a p + p { margin-top: .6rem; }

/* ---------- CTA final ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent-light), var(--accent), transparent 80%); }
.cta-inner { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.cta-band h2 { font-size: var(--fs-5); max-width: 18ch; }
.cta-band p { color: #c0d2ca; margin-top: var(--sp-3); max-width: 50ch; }
.cta-box { background: var(--deep-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: var(--sp-4); display: grid; gap: .8rem; }
.cta-box .wa-num { font-family: var(--font-mono); font-size: var(--fs-1); color: #a9bfb5; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--deep-2), var(--deep) 40%); color: #a9bfb5; padding-block: var(--sp-6) var(--sp-4); font-size: var(--fs-1); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: .5rem var(--sp-4); justify-content: space-between; font-size: var(--fs-0); color: #7f958c; }

/* ---------- WhatsApp flotante (móvil) ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.1rem;
  background: var(--wa); color: var(--wa-ink); border-radius: var(--r-pill); font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); transform: translateY(120px); transition: transform .35s var(--ease);
}
.wa-float.is-visible { transform: none; }
.wa-float svg { width: 24px; height: 24px; }
@media (min-width: 980px) { .wa-float { display: none; } }

/* ---------- Modal de ciudad ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-end; justify-content: center; background: rgba(14,42,34,.6); padding: 0; }
.modal[aria-hidden="false"] { display: flex; }
.modal-box { background: var(--paper); color: var(--deep); width: 100%; max-width: 560px; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--sp-4); box-shadow: var(--shadow-lg); max-height: 92vh; overflow: auto; }
@media (min-width: 640px) { .modal { align-items: center; padding: var(--sp-4); } .modal-box { border-radius: var(--r-lg); } }
.modal-box h2 { font-size: 1.35rem; }
.modal-close { position: absolute; right: .5rem; top: .5rem; padding: .5rem; }
.modal-box { position: relative; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--slate-soft); padding-top: var(--sp-4); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-deep); }

/* ---------- Página interior: cabecera ---------- */
.page-head { padding-block: var(--sp-5) var(--sp-6); }
.page-head h1 { font-size: var(--fs-6); font-weight: 800; letter-spacing: -0.03em; max-width: 16ch; margin-top: var(--sp-2); }
.page-head .lead { font-size: var(--fs-3); color: var(--slate); margin-top: var(--sp-4); max-width: 58ch; line-height: 1.5; }
.page-head .btn-row { margin-top: var(--sp-4); }
.page-head.with-media { display: grid; gap: var(--sp-5); }
@media (min-width: 980px) { .page-head.with-media { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.page-head.with-media img { border-radius: var(--r-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-md), 0 0 0 1px rgba(14,42,34,.06); background: var(--mist-2); }
.page-head .from-inline { margin-top: var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-1); color: var(--accent-deep); }
.page-head .from-inline b { color: var(--deep); font-size: 1.25rem; font-weight: 600; }

/* ---------- Prosa (privacidad, textos largos) ---------- */
.prose { max-width: var(--narrow); }
.prose h2 { font-size: var(--fs-4); margin-top: var(--sp-5); }
.prose h3 { font-size: 1.2rem; margin-top: var(--sp-4); }
.prose p, .prose li { margin-top: .75rem; color: var(--slate); }
.prose ul { margin-top: .5rem; }
.prose strong { color: var(--deep); }

/* ---------- Aviso de configuración (solo mientras el WhatsApp sea provisional) ---------- */
.setup-banner { background: var(--accent); color: #fff; font-size: var(--fs-0); text-align: center; padding: .5rem 1rem; font-family: var(--font-mono); }
.setup-banner a { color: #fff; }

/* ---------- Formulario (contacto) ---------- */
.form { display: grid; gap: var(--sp-3); }
.form label { font-weight: 600; font-size: var(--fs-1); display: grid; gap: .35rem; }
.form input, .form select, .form textarea { padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }
.form .row { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .hp { position: absolute; left: -9999px; }
.form-msg { font-size: var(--fs-1); padding: .8rem 1rem; border-radius: var(--r-md); display: none; }
.form-msg.ok { display: block; background: #e8f7ee; color: #14532d; }
.form-msg.err { display: block; background: #fdecec; color: #7f1d1d; }

/* ---------- Reveal suave al hacer scroll (bajo el hero) ----------
   Progresivo: solo se oculta cuando hay JS (html.js). Sin JS todo es visible. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .rise { opacity: 1; transform: none; } .hero-media img { opacity: 1; } .process-list::before { transform: none !important; } }
