/* Dirección visual: ficha técnica de obra hecha con materiales reales, sobria y legible; las cifras mandan.
   Paleta: concreto claro #EEEBE5 (fondo) · blanco cal #FBFAF7 (superficies) · arena #CDBB9E (líneas y bloques de imagen)
           · basalto mate #2A2C2E (texto y pie) · marrón arena #8B5E3C (acento único: botones; #6F4A2E para texto de acento).
   Tipografías: Newsreader (serif editorial, títulos y cifras grandes) + Manrope (sans fina, menú, cuerpo y datos).
   Por qué: el brief pide piedra, concreto y arena con un solo acento, sin dorado ni negro brillante; títulos en serif
   grande y clara con cuerpo en sans fina (referencia Gilmar); precio grande encima de cada tarjeta y mucho aire (Lucas Fox).
   Un ingeniero honesto: retícula visible, cifras tabulares, nada de degradados ni sombras pesadas.
   Modo oscuro (automático, prefers-color-scheme): fondo basalto #1E2022, superficies #282B2E, texto concreto #ECE8E1,
   botones con el mismo marrón arena #8B5E3C; acento claro #D6A77C para texto y #C08F64 para líneas. Fotos sin filtro. */

:root {
  /* Color */
  --c-concreto: #EEEBE5;
  --c-concreto-alt: #E4DFD6;
  --c-blanco: #FBFAF7;
  --c-arena: #CDBB9E;
  --c-basalto: #2A2C2E;
  --c-basalto-suave: #5C5853;
  --c-acento: #8B5E3C;
  --c-acento-hover: #6F4A2E;
  --c-acento-texto: #6F4A2E;
  --c-linea: rgba(42, 44, 46, 0.14);
  --c-linea-fuerte: rgba(42, 44, 46, 0.32);
  --c-trama: rgba(42, 44, 46, 0.07);
  --c-velo: rgba(251, 250, 247, 0.9);
  --c-brillo: rgba(205, 187, 158, 0.38);
  --c-sombra: rgba(42, 44, 46, 0.10);
  --c-transparente: rgba(251, 250, 247, 0);
  /* Roles separados (mismo valor que antes en modo claro) */
  --c-sobre-acento: #FBFAF7;     /* texto sobre botones y rellenos de acento */
  --c-acento-linea: #8B5E3C;     /* acento en líneas, puntos y rellenos sin texto */
  --c-foto-fondo: #E4DFD6;       /* fondo de fotos mientras cargan (no se oscurece) */
  --c-barra-70-texto: #2A2C2E;
  --c-barra-10: #2A2C2E;
  --c-barra-10-texto: #FBFAF7;
  --c-slider-pista: #8A8175;     /* pista vacía: 3,2:1 sobre el fondo de la calculadora */
  --c-pie-fondo: #2A2C2E;
  --c-pie-texto: #EEEBE5;
  --c-pie-marca: #CDBB9E;
  --c-mapa-punto: rgba(42, 44, 46, 0.2);   /* puntos de tierra del mapa (sección 11) */
  --c-mapa-halo: rgba(139, 94, 60, 0.16);  /* halo de Caracas */

  /* Tipografía */
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.78rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 3.6vw, 4.6rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  --fs-price: clamp(2.2rem, 1.9rem + 1.2vw, 2.9rem);

  /* Espaciado */
  --gutter: 20px;
  --max: 1240px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-section: clamp(80px, 9vw + 40px, 160px);
  --header-h: 0px;
  --sticky-h: 84px;

  /* Radios */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.2s;
  --t-med: 0.6s;
  --t-swap: 0.28s;

  /* Calculadora */
  --range-track: 6px;
  --range-thumb: 44px;

  /* Mapa de la sección 11 */
  --map-hit: 20px;          /* área táctil centrada en cada punto */
  --map-label: 0.875rem;    /* 14 px: mínimo 13 px reales a 390 px */
  --map-label-home: 1rem;
  --t-route: 0.36s;         /* 4 rutas x 0,36 s = 1,44 s */
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 56px; --header-h: 76px; --sticky-h: 0px; --map-hit: 28px; --map-label: 1rem; --map-label-home: 1.125rem; }
}

/* Modo oscuro: solo se redefinen variables */
@media (prefers-color-scheme: dark) {
  :root {
    --c-concreto: #1E2022;
    --c-concreto-alt: #303336;
    --c-blanco: #282B2E;
    --c-basalto: #ECE8E1;
    --c-basalto-suave: #B3ACA2;
    --c-acento-texto: #D6A77C;
    --c-acento-linea: #C08F64;
    --c-linea: rgba(236, 232, 225, 0.18);
    --c-linea-fuerte: rgba(236, 232, 225, 0.38);
    --c-trama: rgba(236, 232, 225, 0.08);
    --c-velo: rgba(30, 32, 34, 0.9);
    --c-brillo: rgba(205, 187, 158, 0.08);
    --c-sombra: rgba(12, 13, 14, 0.55);
    --c-transparente: rgba(30, 32, 34, 0);
    --c-barra-10: #575B60;
    --c-slider-pista: #6E7276;   /* 3,4:1 sobre el fondo de la calculadora */
    --c-pie-fondo: #151617;
    --c-mapa-punto: rgba(236, 232, 225, 0.17);
    --c-mapa-halo: rgba(192, 143, 100, 0.22);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-concreto);
  color: var(--c-basalto);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--c-acento-texto);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-section);
  scroll-margin-top: var(--header-h);
}

.section-title {
  font-family: var(--f-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  max-width: 20ch;
  text-wrap: balance;
}

.lead {
  margin-top: var(--sp-5);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.55;
  max-width: 48ch;
  color: var(--c-basalto);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--sp-2);
  border-radius: 50%;
  background: var(--c-acento-linea);
  vertical-align: 0.1em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-sm);
  background: var(--c-acento);
  color: var(--c-sobre-acento);
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--c-acento-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-color: var(--c-basalto); }
.btn--small { min-height: 44px; padding: var(--sp-2) var(--sp-5); font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn--large { min-height: 60px; padding-inline: var(--sp-7); font-size: 1.0625rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--c-concreto);
  border-bottom: 1px solid var(--c-linea);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: var(--sp-4) var(--gutter) 0;
}
.wordmark {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-decoration: none;
  color: var(--c-basalto);
}
.site-nav {
  order: 3;
  width: calc(100% + var(--gutter) * 2);
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav__list {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-3) var(--gutter) var(--sp-3);
  white-space: nowrap;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-basalto-suave);
  text-decoration: none;
  background: linear-gradient(var(--c-acento-linea), var(--c-acento-linea)) left bottom / 0 1px no-repeat;
  transition: color var(--t-fast) var(--ease), background-size var(--t-fast) var(--ease);
}
.site-nav a:hover { color: var(--c-basalto); background-size: 100% 1px; }
.site-header__cta { display: none; }

@media (min-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
    background: var(--c-velo);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .site-header__inner {
    flex-wrap: nowrap;
    min-height: var(--header-h);
    padding-block: 0;
    gap: var(--sp-6);
  }
  .site-nav {
    order: 0;
    width: auto;
    margin: 0 0 0 auto;
    overflow: visible;
  }
  .site-nav__list { gap: var(--sp-6); padding: 0; }
  .site-nav a { display: inline-block; min-height: 0; }
  .site-header__cta { display: inline-flex; }
}

/* ---------- Fotos ---------- */
.photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio, 16 / 9);
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-lg);
  background-color: var(--c-foto-fondo);
}
.photo--wide { --ratio: 16 / 9; }
.photo--portrait { --ratio: 4 / 5; }
@media (min-width: 1024px) {
  .photo--wide { --ratio: 21 / 9; }
}

/* ---------- 1. Hero ---------- */
.hero { position: relative; }
.hero__media {
  height: 62svh;
  min-height: 360px;
  overflow: hidden;
}
.hero__frame {
  height: 100%;
  transform: scale(calc(1 + var(--p, 0) * 0.12));
  transform-origin: 50% 40%;
  will-change: transform;
}
.hero__video,
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: var(--c-arena);
}
.hero__panel {
  position: relative;
  z-index: 2;
  margin: -88px var(--sp-3) 0;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--c-blanco);
  border-radius: var(--r-lg);
  transform: translateY(calc(var(--p, 0) * -36px));
}
.hero__title {
  font-family: var(--f-serif);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.hero__sub {
  margin-top: var(--sp-5);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.5;
  max-width: 46ch;
}
.hero__sub strong {
  font-family: var(--f-serif);
  font-size: 1.22em;
  font-weight: 600;
  color: var(--c-basalto);
  white-space: nowrap;
}
.hero__stock {
  margin: var(--sp-5) 0;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-acento-texto);
}
.hero__panel .btn { width: 100%; }
.hero__facts {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-linea);
  font-size: var(--fs-small);
  color: var(--c-basalto-suave);
}
.hero__facts strong {
  font-family: var(--f-serif);
  font-size: 1.3em;
  font-weight: 600;
  color: var(--c-basalto);
}

@media (min-width: 720px) {
  .hero__panel {
    margin: -180px var(--gutter) 0;
    padding: var(--sp-7);
    max-width: 720px;
  }
  .hero__panel .btn { width: auto; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .hero__facts li { padding-right: var(--sp-3); }
}
@media (min-width: 1024px) {
  .hero__media { height: calc(100svh - var(--header-h)); max-height: 920px; min-height: 620px; }
  .hero__panel {
    margin: -300px 0 0 max(var(--gutter), calc((100% - var(--max)) / 2));
    max-width: 780px;
    padding: var(--sp-8) var(--sp-8) var(--sp-7);
  }
}

/* ---------- 2. Proyecto ---------- */
.project__grid {
  display: grid;
  gap: var(--sp-7);
}
.building {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--c-linea-fuerte);
  border-right: 1px solid var(--c-linea-fuerte);
}
.building__floor {
  position: relative;
  border-top: 1px solid var(--c-linea-fuerte);
  background-color: var(--c-blanco);
  transition: background-color var(--t-fast) var(--ease);
}
.building__floor--azotea { order: 1; background-color: var(--c-concreto); border-top-style: dashed; }
.building__floor--ph     { order: 2; }
.building__floor--tipo   { order: 3; }
.building__floor--tipo .building__btn { padding-block: var(--sp-6); }
.building__floor--pb     { order: 4; border-bottom: 3px solid var(--c-basalto); }
.building__floor--sotano {
  order: 5;
  border-top: 0;
  margin-inline: var(--sp-3);
  background-color: var(--c-concreto-alt);
  background-image: repeating-linear-gradient(45deg, var(--c-trama) 0 1px, var(--c-transparente) 1px 10px);
}
.building__floor--tipo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, var(--c-transparente) 0 calc(100% / 12 - 1px), var(--c-linea) calc(100% / 12 - 1px) calc(100% / 12));
}
.building__name {
  position: relative;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-basalto-suave);
}
.building__use {
  position: relative;
  font-family: var(--f-serif);
  font-size: 1.3rem;
  line-height: 1.3;
}

/* Cada nivel del corte es un botón */
.building__btn {
  display: grid;
  gap: var(--sp-1);
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: var(--sp-4) var(--sp-5);
  border: 0;
  border-radius: 0;
  background-color: var(--c-transparente);
  color: var(--c-basalto);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: var(--c-transparente);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.building__btn .building__name { transition: color var(--t-fast) var(--ease); }
.building__btn[aria-pressed="true"] { background-color: var(--c-acento); color: var(--c-sobre-acento); }
.building__btn[aria-pressed="true"] .building__name { color: var(--c-sobre-acento); }
.building__btn:focus-visible {
  outline: 3px solid var(--c-basalto);
  outline-offset: -3px;
  border-radius: 0;
  box-shadow: inset 0 0 0 6px var(--c-blanco);
}

.building__hint { display: none; }
.js .building__hint {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-basalto-suave);
}
.js .building__hint::before {
  content: "";
  flex: 0 0 24px;
  height: 2px;
  background: var(--c-acento-linea);
}

/* Panel con la foto del nivel activo (en móvil va arriba de la lista de niveles) */
.levels {
  display: grid;
  order: 1;
}
.project__cut {
  order: 2;
  margin-top: calc(var(--sp-5) - var(--sp-7));
}
.level {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-swap) var(--ease), visibility 0s linear var(--t-swap);
}
.level.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-swap) var(--ease), visibility 0s;
}
.level__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background-color: var(--c-foto-fondo);
}
.level__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform var(--t-swap) var(--ease);
}
.level.is-active .level__img { transform: scale(1); }
.level__caption {
  display: grid;
  gap: var(--sp-1);
  margin-top: var(--sp-4);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--c-acento-linea);
}
.level__name {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-acento-texto);
}
.level__use {
  font-family: var(--f-serif);
  font-size: var(--fs-h3);
  line-height: 1.25;
}

@media (min-width: 1024px) {
  .project__grid {
    grid-template-columns: 5fr 6fr;
    grid-template-areas:
      "intro levels"
      "cut   levels";
    column-gap: var(--sp-8);
    row-gap: var(--sp-7);
    align-items: start;
  }
  .project__intro { grid-area: intro; }
  .project__cut { grid-area: cut; margin-top: 0; }
  .levels { grid-area: levels; align-self: center; }
  .building__btn {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
    padding: var(--sp-5) var(--sp-6);
  }
  .building__floor--tipo .building__btn { padding-block: var(--sp-8); }
  .level__media { aspect-ratio: 5 / 4; }
}

/* ---------- Efecto de cursor (tarjetas y filas) ---------- */
@media (hover: hover) and (pointer: fine) {
  [data-hover] {
    background-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), var(--c-brillo), var(--c-transparente) 70%);
  }
  .building__floor--sotano {
    background-image:
      radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), var(--c-brillo), var(--c-transparente) 70%),
      repeating-linear-gradient(45deg, var(--c-trama) 0 1px, var(--c-transparente) 1px 10px);
  }
}

/* ---------- 3. Tipologías ---------- */
.types__head {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}
.types__stock {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-acento-texto);
}
.types__list {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  text-align: center;
  background-color: var(--c-blanco);
  border: 1px solid var(--c-linea);
  border-radius: var(--r-lg);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.type-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-arena);
  box-shadow: 0 18px 40px -24px var(--c-sombra);
}
.type-card__price {
  order: 1;
  font-family: var(--f-serif);
  font-size: var(--fs-price);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}
.type-card__from {
  display: block;
  margin-bottom: var(--sp-1);
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-basalto-suave);
}
.type-card__name {
  order: 2;
  margin-top: var(--sp-3);
  font-family: var(--f-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
}
.type-card__specs {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--c-basalto-suave);
}
.type-card__specs li { display: inline-flex; align-items: center; gap: var(--sp-3); }
.type-card__specs li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-basalto-suave);
}
.type-card__stock {
  order: 4;
  margin: var(--sp-5) 0;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--c-acento-linea);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-acento-texto);
}
.type-card .btn { order: 5; margin-top: auto; }

@media (min-width: 900px) {
  .types__head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .types__list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
    margin-top: -96px;
    padding-inline: var(--sp-6);
    position: relative;
  }
  .type-card { padding: var(--sp-7) var(--sp-6) var(--sp-6); }
}

/* ---------- 4. Pago ---------- */
.pay { background: var(--c-blanco); }
.pay__head {
  display: grid;
  gap: var(--sp-6);
}
.pay__split {
  display: flex;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  font-size: var(--fs-small);
  font-weight: 700;
}
.pay__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.pay__seg--20 { flex: 20; background: var(--c-acento); color: var(--c-sobre-acento); }
.pay__seg--70 { flex: 70; background: var(--c-arena); color: var(--c-barra-70-texto); }
.pay__seg--10 { flex: 10; background: var(--c-barra-10); color: var(--c-barra-10-texto); font-size: var(--fs-xs); }
.pay__note {
  margin-top: var(--sp-7);
  max-width: 64ch;
  font-size: var(--fs-body);
  color: var(--c-basalto);
}
.pay__note strong {
  font-family: var(--f-serif);
  font-size: 1.45em;
  font-weight: 600;
  color: var(--c-acento-texto);
  white-space: nowrap;
}
.table-wrap { margin: var(--sp-6) 0 var(--sp-6); }

.pay-table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.pay-table caption {
  display: block;
  margin-bottom: var(--sp-3);
  caption-side: bottom;
  padding-top: var(--sp-3);
  text-align: left;
  font-size: var(--fs-xs);
  color: var(--c-basalto-suave);
}
.pay-table caption::first-letter { text-transform: uppercase; }

/* Móvil: cada fila es una ficha */
.pay-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pay-table tbody { display: grid; gap: var(--sp-4); }
.pay-table tr {
  display: grid;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-linea);
  border-radius: var(--r-md);
  background: var(--c-concreto);
}
.pay-table tbody th {
  padding-bottom: var(--sp-2);
  text-align: left;
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 600;
}
.pay-table tbody th::before {
  content: attr(data-label) " ";
}
.pay-table td {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--c-linea);
  font-weight: 500;
}
.pay-table td::before {
  content: attr(data-label);
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--c-basalto-suave);
}
.pay-table td.is-key {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--c-acento-texto);
}
.pay-table td.is-key::before { font-family: var(--f-sans); font-size: var(--fs-small); align-self: center; }

@media (min-width: 900px) {
  .pay__head {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: var(--sp-8);
  }
  .pay__split { height: 88px; font-size: 1rem; }
  .pay__seg--10 { font-size: var(--fs-small); }

  .pay-table { display: table; }
  .pay-table caption { display: table-caption; margin-bottom: 0; }
  .pay-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .pay-table tbody { display: table-row-group; }
  .pay-table tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; }
  .pay-table th, .pay-table td {
    display: table-cell;
    padding: var(--sp-4) var(--sp-4);
    border-top: 0;
    border-bottom: 1px solid var(--c-linea);
    text-align: right;
    vertical-align: baseline;
  }
  .pay-table td::before, .pay-table tbody th::before { content: none; }
  .pay-table thead th {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--c-basalto-suave);
    border-bottom: 1px solid var(--c-linea-fuerte);
  }
  .pay-table th:first-child { text-align: left; padding-left: 0; }
  .pay-table td { font-size: 1.125rem; }
  .pay-table .is-key { background: var(--c-concreto); }
  .pay-table thead .is-key { color: var(--c-acento-texto); }
  .pay-table td.is-key { font-size: 1.6rem; }
  .pay-table tbody tr { transition: background-color var(--t-fast) var(--ease); }
  .pay-table tbody tr:hover { background: var(--c-concreto); }
}

/* Calculadora del plan de pago (sin JavaScript se ve la tabla) */
.calc { display: none; }
.js .calc {
  display: block;
  margin: var(--sp-6) 0;
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-concreto);
  border: 1px solid var(--c-linea);
  border-radius: var(--r-lg);
}
.js .table-wrap { display: none; }
.js .pay__cta { display: none; }

.calc__title {
  margin-bottom: var(--sp-5);
  font-family: var(--f-serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
}
.calc__field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.calc__field + .calc__field { margin-top: var(--sp-6); }
.calc__label {
  display: block;
  padding: 0;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-basalto);
}

/* Botones segmentados (radios) */
.seg {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  border: 1px solid var(--c-linea-fuerte);
  border-radius: var(--r-md);
  background: var(--c-blanco);
  overflow: hidden;
}
.seg__opt { position: relative; display: flex; }
.seg__opt + .seg__opt { border-left: 1px solid var(--c-linea-fuerte); }
.seg__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seg__box {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-height: 64px;
  padding: var(--sp-3) var(--sp-1);
  text-align: center;
  color: var(--c-basalto);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.seg__name { font-weight: 700; line-height: 1.2; }
.seg__price {
  font-size: var(--fs-xs);
  line-height: 1.3;
  color: var(--c-basalto-suave);
  font-variant-numeric: tabular-nums;
}
.seg__from { display: block; }
.seg__opt:hover .seg__box { background-color: var(--c-concreto-alt); }
.seg__input:checked + .seg__box { background-color: var(--c-acento); color: var(--c-sobre-acento); }
.seg__input:checked + .seg__box .seg__price { color: var(--c-sobre-acento); }
.seg__input:focus-visible + .seg__box {
  outline: 3px solid var(--c-basalto);
  outline-offset: -3px;
  box-shadow: inset 0 0 0 6px var(--c-blanco);
}

/* Slider de cuotas */
.calc__range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
}
.calc__range-head .calc__label { margin-bottom: 0; }
.calc__count {
  min-width: 2ch;
  font-family: var(--f-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  text-align: right;
  color: var(--c-acento-texto);
  font-variant-numeric: tabular-nums;
}
.calc__range {
  --fill: 100%;
  display: block;
  width: 100%;
  height: var(--range-thumb);
  margin: var(--sp-2) 0 0;
  background: var(--c-transparente);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.calc__range::-webkit-slider-runnable-track {
  height: var(--range-track);
  border-radius: var(--r-pill);
  background: linear-gradient(to right, var(--c-acento-linea) var(--fill), var(--c-slider-pista) var(--fill));
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: var(--range-thumb);
  height: var(--range-thumb);
  margin-top: calc((var(--range-track) - var(--range-thumb)) / 2);
  border: 3px solid var(--c-acento-linea);
  border-radius: 50%;
  background: var(--c-blanco);
  transition: transform var(--t-fast) var(--ease);
}
.calc__range::-moz-range-track {
  height: var(--range-track);
  border-radius: var(--r-pill);
  background: var(--c-slider-pista);
}
.calc__range::-moz-range-progress {
  height: var(--range-track);
  border-radius: var(--r-pill);
  background: var(--c-acento-linea);
}
.calc__range::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--range-thumb);
  height: var(--range-thumb);
  border: 3px solid var(--c-acento-linea);
  border-radius: 50%;
  background: var(--c-blanco);
}
.calc__range:hover::-webkit-slider-thumb { transform: scale(1.06); }
.calc__range:focus-visible { outline-offset: 2px; }

/* Resultados */
.calc__out { margin-top: var(--sp-7); }
.calc__results { margin: 0; border-top: 1px solid var(--c-linea-fuerte); }
.calc__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-linea);
}
.calc__row dt { font-size: var(--fs-small); color: var(--c-basalto-suave); }
.calc__row dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.calc__row--key { padding-block: var(--sp-4); }
.calc__row--key dt { font-weight: 700; color: var(--c-basalto); }
.calc__row--key dd {
  font-family: var(--f-serif);
  font-size: var(--fs-price);
  line-height: 1;
  color: var(--c-acento-texto);
}
.calc__row--total { border-bottom-color: var(--c-linea-fuerte); }
.calc__row--total dd { font-family: var(--f-serif); font-size: 1.5rem; }
.calc__up {
  margin-top: var(--sp-5);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--c-acento-linea);
  font-size: var(--fs-body);
}
.calc__up strong {
  font-family: var(--f-serif);
  font-size: 1.3em;
  font-weight: 600;
  color: var(--c-acento-texto);
  white-space: nowrap;
}
.calc__note {
  margin: var(--sp-4) 0 var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--c-basalto-suave);
}

@media (min-width: 720px) {
  .js .calc { padding: var(--sp-7); }
  .seg__price { font-size: var(--fs-small); }
}
@media (min-width: 900px) {
  .calc__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
    align-items: start;
  }
  .calc__out { margin-top: 0; }
}

/* ---------- 5. Obra ---------- */
.works__grid {
  display: grid;
  gap: var(--sp-7);
}
.works__progress {
  display: flex;
  gap: var(--sp-6);
  align-items: stretch;
  margin-top: var(--sp-6);
}
.gauge {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  flex: 0 0 56px;
}
.gauge li {
  flex: 1;
  min-height: 10px;
  border-radius: 2px;
  background: var(--c-concreto-alt);
  border: 1px solid var(--c-linea);
  transition: background-color var(--t-med) var(--ease);
}
.gauge li:nth-child(-n+7) { background: var(--c-acento-linea); border-color: var(--c-acento-linea); }
.gauge .gauge__milestone { border: 1px dashed var(--c-acento-texto); background: var(--c-blanco); }
.js .works__text:not(.is-visible) .gauge li:nth-child(-n+7) { background: var(--c-concreto-alt); border-color: var(--c-linea); }
.gauge li:nth-child(2) { transition-delay: 0.08s; }
.gauge li:nth-child(3) { transition-delay: 0.16s; }
.gauge li:nth-child(4) { transition-delay: 0.24s; }
.gauge li:nth-child(5) { transition-delay: 0.32s; }
.gauge li:nth-child(6) { transition-delay: 0.40s; }
.gauge li:nth-child(7) { transition-delay: 0.48s; }

.milestones {
  display: grid;
  gap: var(--sp-5);
  align-content: space-between;
}
.milestones__item { display: grid; gap: var(--sp-1); }
.milestones__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-basalto-suave);
}
.milestones__value {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  line-height: 1.25;
}
.milestones__item--now .milestones__value { color: var(--c-acento-texto); font-weight: 600; }
.works__body {
  margin: var(--sp-6) 0;
  max-width: 44ch;
  color: var(--c-basalto-suave);
}

@media (min-width: 900px) {
  .works__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
    align-items: center;
  }
  .gauge { flex-basis: 72px; }
  .milestones__value { font-size: 1.6rem; }
}

/* ---------- 6. Trayectoria ---------- */
.record { border-top: 1px solid var(--c-linea); }
.record__head { display: grid; gap: var(--sp-5); }
.record__body { max-width: 52ch; font-size: var(--fs-lead); font-weight: 300; }
.timeline {
  position: relative;
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-7);
  padding-left: var(--sp-6);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--c-linea-fuerte);
}
.timeline__item {
  position: relative;
  display: grid;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(var(--sp-6) * -1 + 2px);
  top: 26px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-basalto);
  border: 2px solid var(--c-basalto);
}
.timeline__item--late::before { background: var(--c-concreto); border-color: var(--c-acento-linea); }
.timeline__year {
  font-family: var(--f-serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.1;
}
.timeline__name { font-weight: 700; }
.timeline__zone { font-size: var(--fs-small); color: var(--c-basalto-suave); }

@media (min-width: 900px) {
  .record__head { grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: end; }
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    padding-left: 0;
    padding-top: var(--sp-6);
  }
  .timeline::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 1px; }
  .timeline__item { padding: var(--sp-4) var(--sp-4) var(--sp-5) 0; }
  .timeline__item::before { left: 0; top: calc(var(--sp-6) * -1 + 2px); }
  .timeline__year { font-size: 3.4rem; }
}

/* ---------- 7. Servicios ---------- */
.services { background: var(--c-blanco); }
.services__list {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
}
.service {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-4) var(--sp-5) 0;
  border-top: 2px solid var(--c-basalto);
}
.service__icon { width: 40px; height: 40px; color: var(--c-acento-texto); margin-bottom: var(--sp-2); }
.service__label { font-family: var(--f-serif); font-size: var(--fs-h3); font-weight: 500; }
.service__text { font-size: var(--fs-body); color: var(--c-basalto-suave); max-width: 30ch; }
.service__text strong {
  font-family: var(--f-serif);
  font-size: 1.5em;
  font-weight: 600;
  color: var(--c-basalto);
  white-space: nowrap;
}
@media (min-width: 900px) {
  .services__list { grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); }
  .services__title { margin-left: calc(100% / 3); }
}

/* ---------- 8. Seguridad ---------- */
.security__grid { display: grid; gap: var(--sp-7); }
.ruled-list { margin-top: var(--sp-6); border-top: 1px solid var(--c-linea-fuerte); }
.ruled-list li {
  position: relative;
  padding: var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--c-linea);
  font-size: 1.0625rem;
  transition: padding-left var(--t-fast) var(--ease);
}
.ruled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--c-acento-linea);
  transform: translateY(-50%);
  transition: height var(--t-fast) var(--ease);
}
@media (hover: hover) {
  .ruled-list li:hover { padding-left: var(--sp-5); }
  .ruled-list li:hover::before { height: 60%; }
}
@media (min-width: 900px) {
  .security__grid { grid-template-columns: 5fr 6fr; gap: var(--sp-8); align-items: center; }
  .ruled-list li { font-size: 1.15rem; }
}

/* ---------- 9. Cercanías ---------- */
.walk { border-top: 1px solid var(--c-linea); }
.walk__grid { display: grid; gap: var(--sp-7); }
.walk__list { display: grid; gap: var(--sp-2); margin-top: var(--sp-6); }
.walk__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-4);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--r-md);
}
.walk__place { font-weight: 500; }
.walk__time {
  font-family: var(--f-serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.walk__bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--c-concreto-alt);
  overflow: hidden;
}
.walk__bar::after {
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--t) / 20 * 100%);
  background: var(--c-acento-linea);
  border-radius: inherit;
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}
.js .walk__list:not(.is-visible) .walk__bar::after { transform: scaleX(0); }

/* Mapa esquemático (SVG en línea) */
.map {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  background: var(--c-blanco);
  border: 1px solid var(--c-linea);
  border-radius: var(--r-lg);
}
.map__ring { fill: none; stroke: var(--c-linea); stroke-width: 1.5; }
.map__route {
  fill: none;
  stroke: var(--c-acento-linea);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1 8;
}
.map__point { fill: var(--c-basalto); stroke: var(--c-blanco); stroke-width: 3; }
.map__building { fill: var(--c-acento-linea); stroke: var(--c-blanco); stroke-width: 3; }
.map__home,
.map__label {
  paint-order: stroke;
  stroke: var(--c-blanco);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.map__home {
  font-family: var(--f-sans);
  font-size: 20px; /* unidades del viewBox: a 390 px de pantalla se ve a 13,4 px */
  font-weight: 700;
  fill: var(--c-basalto);
}
.map__time {
  font-family: var(--f-serif);
  font-size: 28px;
  font-weight: 600;
  fill: var(--c-acento-texto);
}
.map__name {
  font-family: var(--f-sans);
  font-size: 21px; /* a 390 px de pantalla se ve a 14 px */
  font-weight: 500;
  fill: var(--c-basalto);
}

@media (min-width: 900px) {
  .walk__grid { grid-template-columns: 6fr 5fr; gap: var(--sp-8); align-items: center; }
  .walk__time { font-size: 2rem; }
}

/* ---------- 10. Documentación ---------- */
.docs { background: var(--c-concreto-alt); }
.docs__grid { display: grid; gap: var(--sp-6); }
.docs__list { display: grid; }
.doc {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-3);
  border-top: 1px solid var(--c-linea-fuerte);
  border-radius: var(--r-sm);
  font-family: var(--f-serif);
  font-size: 1.3rem;
  line-height: 1.3;
}
.doc:last-child { border-bottom: 1px solid var(--c-linea-fuerte); }
.doc__icon { flex: 0 0 32px; width: 32px; height: 32px; color: var(--c-acento-texto); }
@media (min-width: 900px) {
  .docs__grid { grid-template-columns: 4fr 7fr; gap: var(--sp-8); align-items: start; }
  .doc { font-size: 1.55rem; padding-block: var(--sp-6); }
}

/* ---------- 11. Exterior ---------- */
.abroad__title { max-width: 18ch; }
.steps {
  position: relative;
  display: grid;
  gap: var(--sp-5);
  margin: var(--sp-7) 0;
  padding-left: var(--sp-6);
}
.steps::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--c-linea-fuerte);
}
.steps__item {
  position: relative;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-family: var(--f-serif);
  font-size: 1.35rem;
  line-height: 1.3;
}
.steps__item::before {
  content: "";
  position: absolute;
  left: calc(var(--sp-6) * -1 + 1px);
  top: 16px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c-concreto);
  border: 2px solid var(--c-acento-linea);
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
    padding-left: 0;
    padding-top: var(--sp-6);
  }
  .steps::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 1px; }
  .steps__item { padding: var(--sp-4) var(--sp-5) var(--sp-4) 0; font-size: 1.6rem; max-width: 16ch; }
  .steps__item::before { left: 0; top: calc(var(--sp-6) * -1 + 1px); }
}

/* Título y mapa: en móvil el mapa va debajo del título a todo el ancho; en escritorio, a la derecha */
.abroad__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.abroad__map { margin: var(--sp-6) calc(var(--gutter) * -1) 0; }
.abroad__btn { justify-self: start; }
@media (min-width: 1024px) {
  .abroad__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--sp-8);
    align-items: center;
  }
  .abroad__map { margin: 0; }
  .abroad__grid .steps,
  .abroad__btn { grid-column: 1 / -1; }
}

/* Mapa de rutas hacia Caracas */
.route-map { position: relative; }
.route-map__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--c-acento-linea);
}
.map-dots { stroke: var(--c-mapa-punto); }
.map-routes path {
  stroke: var(--c-acento-linea);
  transition: opacity var(--t-fast) var(--ease), stroke-width var(--t-fast) var(--ease);
}
.map-halo { fill: var(--c-mapa-halo); stroke: var(--c-acento-linea); stroke-width: 1.5; }
.map-cities circle {
  fill: var(--c-acento-linea);
  stroke: var(--c-concreto);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--t-fast) var(--ease);
}
.map-cities circle.is-active { transform: scale(1.35); }
.route-map.has-route .map-routes path { opacity: 0.22; }
.route-map.has-route .map-routes path.is-active { opacity: 1; stroke-width: 6; }

/* Entrada: cada ruta se dibuja desde su ciudad hacia Caracas, una tras otra (js/main.js añade .is-drawn) */
.js .route-map .map-routes path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--t-route) var(--ease) var(--route-delay, 0s),
    opacity var(--t-fast) var(--ease), stroke-width var(--t-fast) var(--ease);
}
.js .route-map .map-routes path:nth-child(2) { --route-delay: var(--t-route); }
.js .route-map .map-routes path:nth-child(3) { --route-delay: calc(var(--t-route) * 2); }
.js .route-map .map-routes path:nth-child(4) { --route-delay: calc(var(--t-route) * 3); }
.js .route-map.is-drawn .map-routes path { stroke-dashoffset: 0; }

/* Ciudades: botón centrado en el punto, con la etiqueta a un lado */
.city {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--map-hit);
  height: var(--map-hit);
  margin: calc(var(--map-hit) / -2) 0 0 calc(var(--map-hit) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-basalto);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.city__label {
  position: absolute;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--c-concreto);
  color: var(--c-basalto);
  font-family: var(--f-sans);
  font-size: var(--map-label);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.city--left .city__label { right: 100%; top: 50%; transform: translateY(-50%); }
.city--right .city__label { left: 100%; top: 50%; transform: translateY(-40%); }
.city--above .city__label { bottom: 100%; left: 50%; transform: translateX(-50%); }
.city--below .city__label { top: 100%; left: 50%; transform: translateX(-50%); }
.city--home .city__label { font-size: var(--map-label-home); }
/* Caracas: destino, etiqueta fija (no es un botón) */
.city--fixed { cursor: default; pointer-events: none; }
@media (hover: hover) {
  .city:hover .city__label { color: var(--c-acento-texto); box-shadow: inset 0 0 0 1px var(--c-acento-linea); }
}
.city[aria-pressed="true"] .city__label,
.city[aria-pressed="true"]:hover .city__label {
  background: var(--c-acento);
  color: var(--c-sobre-acento);
  box-shadow: none;
}
.city:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--c-basalto);
}
.city:focus-visible .city__label {
  outline: 3px solid var(--c-basalto);
  outline-offset: 2px;
}

/* ---------- 12. Cierre ---------- */
.closing {
  border-top: 1px solid var(--c-linea);
}
.closing__inner {
  display: grid;
  justify-items: start;
  gap: var(--sp-5);
}
.closing__title {
  font-family: var(--f-serif);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 18ch;
  text-wrap: balance;
}
.closing__body { max-width: 52ch; font-size: var(--fs-lead); font-weight: 300; }
.closing__body strong { font-weight: 700; color: var(--c-acento-texto); }
.closing__phone { font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.closing__phone:hover { color: var(--c-acento-texto); }
.closing .btn { width: 100%; margin-top: var(--sp-3); }
@media (min-width: 720px) {
  .closing .btn { width: auto; }
}
@media (min-width: 1024px) {
  .closing__inner { justify-items: center; text-align: center; }
}

/* ---------- Pie ---------- */
.site-footer {
  background: var(--c-pie-fondo);
  color: var(--c-pie-texto);
  padding-block: var(--sp-7);
  font-size: var(--fs-small);
}
.site-footer__inner { display: grid; gap: var(--sp-3); }
.wordmark--footer { color: var(--c-pie-marca); }
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-6); }
  .site-footer__inner p { justify-self: end; }
}

/* ---------- Botón fijo en móvil ---------- */
.sticky-cta {
  position: fixed;
  z-index: 30;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: var(--r-md);
  background: var(--c-acento);
  color: var(--c-sobre-acento);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px var(--c-sombra);
  transition: background-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease), visibility 0s;
}
.sticky-cta:hover { background: var(--c-acento-hover); }
/* Se oculta mientras el botón de WhatsApp de la calculadora está en pantalla (js/main.js) */
.sticky-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: background-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.sticky-cta:focus-visible { outline-color: var(--c-basalto); }
body { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .type-card.reveal {
  transition: opacity var(--t-med) var(--ease), transform var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.js .type-card.reveal.is-visible:hover { transform: translateY(-4px); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__frame, .hero__panel { transform: none; }
  .btn:hover, .type-card:hover { transform: none; }
  .level__img, .level.is-active .level__img { transform: none; }
  .calc__range:hover::-webkit-slider-thumb { transform: none; }
  .js .works__text:not(.is-visible) .gauge li:nth-child(-n+7) { background: var(--c-acento-linea); border-color: var(--c-acento-linea); }
  .js .walk__list:not(.is-visible) .walk__bar::after { transform: none; }
  .js .route-map .map-routes path { stroke-dashoffset: 0; }
}
