/* =========================================================
   Salguero Constructora
   Paleta tomada de la referencia + rojo del logo como acento

   ESCALAS: todos los tamaños del sitio salen de los tokens de
   abajo. No agregar valores sueltos — usar siempre un token.
   ========================================================= */
:root {
  /* ---------- Color ----------
     Para cambiar la paleta basta con editar los cuatro tripletes RGB:
     todas las superficies translúcidas y los degradados derivan de ellos. */
  --shell-rgb: 47 47 47;        /* fondo general */
  --card-rgb: 58 58 58;         /* tarjetas */
  --shade-rgb: 26 26 26;        /* degradados sobre fotos y visor */
  --nav-rgb: 74 74 74;          /* barra de navegación */
  --brand-rgb: 227 14 43;

  --shell-bg: rgb(var(--shell-rgb));
  --card-bg: rgb(var(--card-rgb));
  --card-bg-2: #343434;         /* placeholder de imágenes */
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #f2f2f2;
  --text-muted: #b0b0b0;
  --text-dim: #949494;
  --white: #ffffff;
  --dark: #222222;              /* texto sobre botones blancos */
  --brand: rgb(var(--brand-rgb));
  --brand-dark: #c50b24;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ---------- Tipografía: 3 escalas de título + 4 de texto ---------- */
  --fs-hero: clamp(40px, 5.2vw, 72px);      /* h1 de todos los heros */
  --fs-section: clamp(28px, 3.2vw, 44px);   /* h2 de sección */
  --fs-feature: clamp(24px, 2.6vw, 34px);   /* destacados: tarjeta grande, CTA */
  --fs-card: 22px;                          /* h3 de tarjeta */
  --fs-lg: 18px;                            /* subtítulos y listas destacadas */
  --fs-base: 15px;                          /* texto corrido */
  --fs-sm: 13px;                            /* apoyo, etiquetas, pies */
  --fs-xs: 12px;                            /* micro: botones, tags, notas */

  /* Cifras grandes (ficha, estadísticas, precio) */
  --fs-num-lg: clamp(34px, 3.6vw, 48px);
  --fs-num: clamp(24px, 2.4vw, 32px);

  /* ---------- Espaciado ---------- */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 96px;                             /* separación entre secciones */
  --gap-grid: 14px;                         /* separación entre tarjetas */

  /* ---------- Formas ---------- */
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --pill: 999px;

  --site-width: 85%;          /* ancho del contenido respecto a la ventana */
  --pad: clamp(20px, 3vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--shell-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, address { margin: 0; }
address { font-style: normal; }

/* El atributo hidden tiene que ganarle a cualquier display de más abajo.
   Se usa para apagar secciones enteras sin borrarlas del HTML. */
[hidden] { display: none !important; }

/* Texto que no se ve pero que sí leen los lectores de pantalla y los
   buscadores. Se usa cuando un logo reemplaza visualmente a un título. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
button { font-family: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.page { background: var(--shell-bg); }

.shell {
  width: var(--site-width);
  margin: 0 auto;
  padding: 16px 0 24px;
}

/* Sin padding horizontal: el contenido alinea con el borde del hero */
.section { padding: 64px 0; }

/* Borde sutil: con el gris nuevo la tarjeta contrasta poco con el fondo */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
}

/* ---------- Tipografía ---------- */
.h2 {
  font-size: var(--fs-section);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.h2 strong { font-weight: 600; }

.section__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 28px;
}
.section__num { color: var(--text-dim); }
.section__name { color: var(--text); font-weight: 400; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: var(--pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}
.btn--light { background: var(--white); color: var(--dark); }
.btn--light:hover { transform: translateY(-1px); }
.btn__icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm);
  background: var(--white);
}
.btn--outline {
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 18px;
}
.btn--full { width: 100%; justify-content: space-between; padding: 13px 16px 13px 20px; }
.btn--full .chev { font-size: var(--fs-base); }
.btn--light.btn--full:hover { background: #f4f4f0; transform: none; }
.btn--outline:hover { background: rgba(255,255,255,.06); }

.circle-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-base);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.circle-btn:hover { border-color: var(--text); }
.circle-btn--light { background: var(--white); color: var(--dark); border-color: var(--white); }
.circle-btn--sm { width: 28px; height: 28px; font-size: var(--fs-sm); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid rgba(255,255,255,.35);
  background: rgb(var(--shell-rgb) / .35);
  backdrop-filter: blur(6px);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text);
}

.see-all {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--fs-sm); color: var(--text);
}
/* Línea con punta de flecha, como en la referencia */
.see-all__arrow {
  position: relative;
  width: 36px; height: 1px;
  background: currentColor;
  display: inline-block;
  transition: width .2s;
}
.see-all__arrow::after {
  content: "";
  position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.see-all:hover .see-all__arrow { width: 52px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(560px, 46vw, 720px);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  padding: 24px var(--pad) 32px;
}
/* El recorte va en el fondo, no en .hero: así las esquinas siguen
   redondeadas pero el submenú del nav puede salirse del hero. */
.hero__bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgb(var(--shade-rgb) / .55) 0%, rgb(var(--shade-rgb) / .2) 35%, rgb(var(--shade-rgb) / .25) 65%, rgb(var(--shade-rgb) / .75) 100%),
    linear-gradient(90deg, rgb(var(--shade-rgb) / .55) 0%, rgb(var(--shade-rgb) / .25) 40%, rgb(var(--shade-rgb) / 0) 70%);
}
/* Portadas claras: la foto no tiene zonas oscuras donde apoyar el texto, así que
   el velo sube. Se aplica solo donde haga falta, con la clase en la sección. */
.hero--light-photo .hero__overlay {
  background:
    linear-gradient(180deg, rgb(var(--shade-rgb) / .62) 0%, rgb(var(--shade-rgb) / .34) 38%, rgb(var(--shade-rgb) / .38) 65%, rgb(var(--shade-rgb) / .8) 100%),
    linear-gradient(90deg, rgb(var(--shade-rgb) / .8) 0%, rgb(var(--shade-rgb) / .48) 45%, rgb(var(--shade-rgb) / .05) 78%);
}
.hero > :where(:not(.hero__bg, .hero__overlay)) { position: relative; z-index: 1; }
.hero > .header { z-index: 10; }

/* Variante compacta para páginas internas / "Próximamente" */
.hero--compact { min-height: 420px; }
.hero--compact .hero__content { padding-top: 40px; padding-bottom: 24px; justify-content: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid rgba(255,255,255,.35);
  background: rgb(var(--shell-rgb) / .35);
  font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
}
.hero__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: 28px; }
.btn--ghost { border: 1px solid rgba(255,255,255,.4); color: var(--text); padding: 12px 20px; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.header__logo img { height: 55px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--pill);
  background: rgb(var(--nav-rgb) / .55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
}
.nav__link {
  padding: 8px 18px;
  border-radius: var(--pill);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-muted);
  transition: color .2s ease, background .2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { background: rgba(255,255,255,.14); color: var(--text); }

/* Submenú Proyectos */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > .nav__link { display: inline-flex; align-items: center; gap: 6px; }
.nav__caret { font-size: var(--fs-xs); transition: transform .2s; }
.nav__sub-toggle { display: none; }
.nav__sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 290px;
  padding: 8px;
  border-radius: 16px;
  background: rgb(var(--card-rgb) / .96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 30;
}
.nav__sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub,
.nav__item.is-open .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item:hover .nav__caret,
.nav__item.is-open .nav__caret { transform: rotate(180deg); }
.nav__sub a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.nav__sub a:hover { background: rgba(255,255,255,.08); color: var(--text); }
.nav__sub-all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.nav__sub-all a { font-size: var(--fs-xs); color: var(--text); }
.nav__badge {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: var(--pill);
  background: var(--brand); color: var(--white);
  white-space: nowrap;   /* que la etiqueta no se parta en dos líneas */
  flex: none;
}
.nav__badge--soft { background: rgba(255,255,255,.14); color: var(--text); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgb(var(--shell-rgb) / .4);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--white); display: block; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Contenido */
.hero__content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding-top: 48px; }
.hero__title {
  max-width: 880px;
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
/* Mismo peso que el <strong> de los h2, para que los destacados del sitio
   se vean todos iguales. */
.hero__title strong { font-weight: 600; }
.hero__subtitle {
  max-width: 480px;
  margin-top: 24px;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: rgba(242, 242, 242, .85);
}
/* Frase gancho dentro del subtítulo: un paso más grande y en negrita para que
   destaque. El line-height compensa el salto de tamaño y así la línea del
   gancho mide lo mismo que las demás del párrafo. */
.hero__claim {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.33;
  color: var(--text);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: 40px;
}
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 360px;
}

.hero__slider { width: 56%; min-width: 0; }
.hero__counter {
  display: flex; align-items: center; gap: var(--sp-1);
  font-size: var(--fs-xs); color: var(--text);
  margin-bottom: 10px;
  padding: 0 4px;
}
.hero__counter-line { flex: 1; height: 1px; background: rgba(255,255,255,.5); }
.hero__nav { display: flex; gap: 6px; margin-left: 8px; }

.hero__cards {
  display: flex; gap: var(--sp-1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
  cursor: grab;
}
.hero__cards.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.hero__cards.is-dragging .mini-card { pointer-events: none; }
.hero__cards::-webkit-scrollbar { display: none; }

.mini-card {
  flex: 0 0 min(310px, 78%);
  scroll-snap-align: start;
  display: flex; gap: var(--sp-1);
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.3);
  background: rgb(var(--shell-rgb) / .35);
  backdrop-filter: blur(8px);
  transition: background .2s;
}
.mini-card:hover { background: rgb(var(--shell-rgb) / .55); }
.mini-card img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; flex: none; }
.mini-card__body { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.mini-card h4 { font-size: var(--fs-sm); font-weight: 500; line-height: 1.25; }
.mini-card p { font-size: var(--fs-xs); color: var(--text-muted); }

/* =========================================================
   01 NOSOTROS
   ========================================================= */
/* Línea superior: le da un borde que ancla el bloque entre el hero y Proyectos */
.about {
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-top: 1px solid var(--line);
  margin-top: var(--sp-5);
}
/* Misma estructura que la sección 03 de la referencia y que Proyectos:
   título grande a la izquierda, párrafo de apoyo + botón a la derecha */
.about__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.about__grid .h2 { width: 100%; margin-top: -0.25em; }
.about__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  max-width: 420px;
  justify-self: end;
}
.about__aside p {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-muted);
}
/* Cifras: el elemento propio de esta sección, que Proyectos no tiene */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

/* =========================================================
   PÁGINA NOSOTROS: historia, cifras, qué hacemos y oficinas
   ========================================================= */
.story { padding-top: var(--sp-6); }
.story__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-5);
  align-items: start;
  margin-bottom: 72px;
}
.story .section__label { margin-bottom: 0; }
.story__main { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
.story__main .h2 { margin-top: -0.2em; }
.story__text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Cifras */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  padding: 40px var(--pad);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num {
  font-size: var(--fs-num-lg);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label { font-size: var(--fs-sm); color: var(--text-muted); }

/* Qué hacemos */
.offer { padding-top: var(--sp-6); }
.offer__head { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.offer__head .h2 { max-width: 700px; }
.offer .section__label { margin-bottom: -40px; }

.offer__item {
  display: grid;
  grid-template-columns: 80px 1fr 300px;
  align-items: center;
  gap: var(--sp-4);
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.offer__item:last-child { border-bottom: 1px solid var(--line); }
.offer__num { font-size: var(--fs-sm); color: var(--text-dim); }
.offer__body { display: flex; flex-direction: column; gap: var(--sp-1); }
.offer__body h3 { font-size: var(--fs-feature); font-weight: 500; line-height: 1.2; }
.offer__body p { font-size: var(--fs-base); line-height: 1.6; color: var(--text-muted); max-width: 520px; }
.offer__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background: var(--card-bg-2);
}
.offer__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.offer__item:hover .offer__media img { transform: scale(1.05); }

/* =========================================================
   LANDING DE PROYECTO (plantilla A: disponibles)
   ========================================================= */
.hero--project { min-height: clamp(520px, 44vw, 660px); }
.hero--project .hero__content { padding-top: 48px; justify-content: flex-end; padding-bottom: 8px; }
.hero--project .hero__tags { margin-bottom: 18px; }

/* Ruta de navegación */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span[aria-current] { color: var(--text); }

/* Hero partido: contenido + formulario corto */
.hero__content--split {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 380px);
  gap: var(--sp-5);
  align-items: end;
  padding-top: 32px;
}
.hero__intro { display: flex; flex-direction: column; align-items: flex-start; }
.hero__intro .hero__subtitle { max-width: 440px; }

.hero__price { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; }
.hero__price-label { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.hero__price-value { font-size: var(--fs-num-lg); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }

/* Tasa destacada dentro del hero */
.hero__rate {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: 12px 22px 12px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(var(--brand-rgb) / .55);
  background:
    linear-gradient(120deg, rgb(var(--brand-rgb) / .28) 0%, rgb(var(--brand-rgb) / .10) 100%),
    rgb(var(--shade-rgb) / .55);
  backdrop-filter: blur(8px);
}
.hero__rate-num {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
}
.hero__rate-text { display: flex; flex-direction: column; line-height: 1.3; }
.hero__rate-text > strong { font-size: var(--fs-lg); font-weight: 600; color: var(--text); }
.hero__rate-text span { font-size: var(--fs-sm); color: var(--text-muted); }
/* Los nombres de los créditos son el gancho: van más grandes y en blanco
   sobre el "Aplica a", que se queda apagado. */
.hero__rate-apply strong { font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
.hero__content--split .hero__actions { margin-top: 24px; }

/* Tarjeta de captura en el hero */
.lead-card {
  padding: 26px 24px;
  border-radius: var(--radius-xl);
  background: rgb(var(--shell-rgb) / .82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
/* Con el formulario de Kommo dentro, la tarjeta no pinta nada: el fondo, el
   padding y los bordes los trae el propio formulario. Solo conservamos el
   radio con overflow, porque el iframe es rectangular y si no cuadra las
   esquinas. */
.lead-card:has(.lead-card__kommo) {
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

/* Estilos del formulario propio del hero. Hoy no se usan (manda Kommo), pero
   los dejamos por si hay que volver atrás. */
.lead-card__title { font-size: var(--fs-card); font-weight: 500; line-height: 1.25; }
.lead-card__text { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.lead-card__form { display: flex; flex-direction: column; gap: var(--gap-grid); margin-top: 20px; }
.lead-card__submit { width: 100%; justify-content: space-between; border: 0; }
.lead-card__note { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }
.lead-card__note a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* CTA intermedio */
.midcta {
  border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: 48px;
  padding: 32px var(--pad);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
}
.midcta__text h3 { font-size: var(--fs-feature); font-weight: 400; letter-spacing: -0.02em; }
.midcta__text p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 6px; }
.midcta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-1); }

/* Franja de confianza */
.trust { padding-top: var(--sp-6); }
.trust__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-5);
  align-items: center;
}
/* 4 datos en 2x2: en una sola fila no caben dentro de la mitad del grid. */
.trust__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.trust__item { display: flex; flex-direction: column; gap: 6px; }
.trust__num { font-size: var(--fs-num-lg); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.trust__label { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.4; }
.trust__quote { margin: 0; border: 1px solid var(--card-border); padding: 28px; border-radius: var(--radius-xl); background: var(--card-bg); }
.trust__quote p { font-size: var(--fs-base); line-height: 1.6; margin-top: 10px; }
.trust__quote footer { display: flex; align-items: center; gap: var(--sp-1); margin-top: 18px; }
.trust__quote footer img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.trust__quote footer div { display: flex; flex-direction: column; }
.trust__quote footer strong { font-size: var(--fs-sm); font-weight: 500; }
.trust__quote footer span { font-size: var(--fs-xs); color: var(--text-muted); }

/* Barra fija de conversión (solo móvil, la inyecta js/main.js) */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  align-items: center; justify-content: space-between; gap: var(--sp-1);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgb(var(--shell-rgb) / .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__price { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta__price span:first-child { font-size: var(--fs-xs); color: var(--text-muted); }
.sticky-cta__price span:last-child { font-size: var(--fs-base); font-weight: 500; }
.sticky-cta__actions { display: flex; gap: 8px; }
.sticky-cta .btn { padding: 10px 16px; font-size: var(--fs-xs); }
.sticky-cta .btn--wa { background: #25d366; color: #fff; }

/* Encabezado de sección con etiqueta a la izquierda y título a la derecha */
.specs__head, .gallery__head, .amenities__head, .finance__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4);
  margin-bottom: 36px;
}
.specs .section__label, .gallery-section .section__label,
.amenities .section__label, .finance .section__label { margin-bottom: 0; }
.specs__head .h2, .gallery__head .h2, .amenities__head .h2, .finance__head .h2 { max-width: 560px; text-align: right; }

/* Ficha técnica */
.specs { padding-top: var(--sp-6); }
.specs__card { padding: 8px var(--pad); }
/* 8 datos en 4 columnas: dos filas exactas */
.specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
/* Si una ficha llega a 10 datos, pasa sola a 2 columnas (5 filas exactas),
   en vez de dejar dos celdas vacías al final */
.specs__grid:has(.spec:nth-child(9)) {
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--sp-5);
}
.specs__grid:has(.spec:nth-child(9)) .spec:nth-child(-n+4) { border-top: 1px solid var(--line); }
.specs__grid:has(.spec:nth-child(9)) .spec:nth-child(-n+2) { border-top: 0; }
.spec {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px 24px 28px 0;
  border-top: 1px solid var(--line);
}
.specs__grid .spec:nth-child(-n+4) { border-top: 0; }
.spec__icon {
  width: 46px; height: 46px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-feature);
  transition: background .2s ease, color .2s ease;
}
.spec__icon svg { stroke-width: 1.5; }
.spec:hover .spec__icon { background: rgba(255,255,255,.12); color: var(--text); }
.spec--highlight .spec__icon { background: rgb(var(--brand-rgb) / .16); color: var(--brand); }

.spec__label { font-size: var(--fs-sm); color: var(--text-muted); }
.spec__value { font-size: var(--fs-num); font-weight: 300; letter-spacing: -0.02em; }
.spec--highlight .spec__value { color: var(--brand); font-weight: 500; }

/* Galería */
.gallery-section { padding-top: var(--sp-6); }
.gallery__block + .gallery__block { margin-top: 48px; }
.gallery__title { font-size: var(--fs-lg); font-weight: 500; margin-bottom: 16px; }
/* 6 imágenes por galería: 1 grande (2x2) + 5 normales, la cuadrícula cierra exacta */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: var(--gap-grid);
}
/* Los planos se ven mejor completos y sin recorte */
.gallery--plans .gallery__item { aspect-ratio: 4 / 3; background: #f4f4f0; }
.gallery--plans .gallery__item img { object-fit: contain; padding: 10px; }
.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--card-bg-2);
  cursor: zoom-in;
}
/* Proporción fija: si no, una foto vertical estira toda la fila */
.gallery__item--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s ease; }
.gallery__item:hover img { transform: scale(1.04); opacity: .9; }
.gallery__item:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* Visor de imágenes */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  /* grid y no flex: en flex, Safari ignora el max-height de la imagen y la foto
     se sale de la pantalla. En grid el max-height sí se respeta. */
  display: grid; place-items: center;
  padding: 24px;
  background: rgb(var(--shade-rgb) / .94);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: var(--radius-lg); object-fit: contain; }
.lightbox__count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: var(--fs-sm); color: var(--text-muted); }
.lightbox__btn {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgb(var(--shell-rgb) / .6);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-card);
  transition: background .2s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.14); }
.lightbox__btn--prev { left: 24px; }
.lightbox__btn--next { right: 24px; }
.lightbox__btn--close { top: 24px; right: 24px; }

/* Amenidades */
.amenities { padding: var(--sp-6) 0 0; }
.amenities__card { padding: 36px var(--pad) 40px; }
.amenities__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2) var(--sp-4);
}
.amenities__list li {
  display: flex; align-items: flex-start; gap: var(--sp-1);
  font-size: var(--fs-base);
  color: var(--text);
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.amenities__list li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Cercanías (reutiliza .offices__hours) */
.nearby li span:last-child { color: var(--text-dim); }

/* Financiamiento */
.finance { padding-top: var(--sp-6); }
.finance__grid {
  display: grid;
  /* auto-fit en vez de un número fijo: la sección pasó de 3 opciones de
     financiamiento a 2 y así se reparte sola si vuelve a cambiar. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-2);
}
/* =========================================================
   LANDING DE PROYECTO (plantilla B: entregados)
   ========================================================= */
.tag--done { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); font-weight: 500; }

.done { padding-top: var(--sp-6); }
.done__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.done .section__label { margin-bottom: 0; }
.done__head .h2 { max-width: 560px; text-align: right; }

.done__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.done__text { display: flex; flex-direction: column; gap: var(--sp-2); max-width: 620px; }
.done__text p { font-size: var(--fs-base); line-height: 1.7; color: var(--text-muted); }

.done__specs { display: flex; flex-direction: column; gap: 0; margin: 0; justify-self: end; width: 100%; max-width: 380px; }
.done__specs div {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.done__specs div:last-child { border-bottom: 0; }
.done__specs dt { font-size: var(--fs-sm); color: var(--text-muted); }
.done__specs dd { margin: 0; font-size: var(--fs-lg); color: var(--text); }

/* Cita destacada: ocupa todo el ancho y el texto manda */
.trust__quote--lead { padding: var(--sp-5) var(--pad); }
.trust__quote--lead .testimonials__mark { font-size: 64px; height: 26px; }
.trust__quote--lead p {
  font-size: var(--fs-feature);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 900px;
  margin-top: var(--sp-2);
}
.trust__quote--lead footer { margin-top: var(--sp-4); }
.trust__quote--lead footer img { width: 52px; height: 52px; }
.trust__quote--lead footer strong { font-size: var(--fs-base); }

/* Grilla de disponibles al pie de los entregados */
.delivered__grid.delivered__grid--four { grid-template-columns: repeat(4, 1fr); }
.dcard__year--sale { color: var(--brand); font-weight: 500; }
.delivered__cta { margin-top: var(--sp-4); }

/* Tasa destacada: es el gancho de la sección */
.rate {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-4) var(--pad);
  margin-bottom: var(--gap-grid);
  border-radius: var(--radius-xl);
  border: 1px solid rgb(var(--brand-rgb) / .45);
  background:
    linear-gradient(120deg, rgb(var(--brand-rgb) / .16) 0%, rgb(var(--brand-rgb) / .04) 55%, transparent 100%),
    var(--card-bg);
}
.rate__figure { display: flex; flex-direction: column; line-height: .92; }
.rate__num {
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--brand);
}
.rate__word {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 6px;
}
.rate__text { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; }
.rate__lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--text); max-width: 460px; }
.rate__apply {
  /* inline-block y no inline-flex: con flex cada palabra es un item y el gap
     las separaba más que un espacio normal. */
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--brand);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.rate__apply strong { font-weight: 700; }

.fcard { padding: 32px 28px; display: flex; flex-direction: column; gap: var(--sp-1); }
.fcard h3 { font-size: var(--fs-card); font-weight: 500; }
.fcard p { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }

/* Logos de las entidades. Los dos tienen proporciones muy distintas (Biess es
   apaisado, Miti Miti casi cuadrado), así que en vez de forzar una altura igual
   limitamos alto Y ancho: cada uno topa por donde le toca y quedan con un peso
   visual parecido. La caja tiene altura fija para que los textos de las dos
   tarjetas arranquen a la misma altura. */
.fcard__logo {
  margin: 0 0 var(--sp-1);
  height: 92px;
}
/* Caja fija en vez de max-height dentro de un flex: Safari ignora el max-height
   de una imagen que es hijo flex y usa su altura real (Miti Miti mide 400px de
   alto y se disparaba). Con width y height explicitos mas object-fit, el
   encuadre lo resuelve la propia imagen y todos los navegadores coinciden. */
.fcard__logo img {
  width: 200px;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Formulario de la landing */
.form__alt { margin-top: 24px; }
.field-check { display: flex; align-items: flex-start; gap: var(--sp-1); font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.field-check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--brand); cursor: pointer; }
.field-check.has-error span { color: var(--brand); }
.form__status { font-size: var(--fs-sm); line-height: 1.6; }
.form__status.is-ok { color: #7ddba0; }
.form__status.is-error { color: var(--brand); }

.delivered__grid.delivered__grid--two { grid-template-columns: repeat(2, 1fr); }

/* =========================================================
   PÁGINA PROYECTOS: disponibles y entregados
   ========================================================= */
.listing { padding-top: var(--sp-6); }
.listing__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4);
  margin-bottom: 40px;
}
.listing .section__label { margin-bottom: 0; }
.listing__head .h2 { max-width: 560px; text-align: right; }

/* Tarjeta grande de proyecto disponible */
.pcard {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--sp-5);
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.pcard:last-child { border-bottom: 1px solid var(--line); }
.pcard--reverse .pcard__media { order: 2; }

.pcard__media {
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 16 / 10;
  background: var(--card-bg-2);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }

.pcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag--solid { background: var(--brand); border-color: var(--brand); color: var(--white); font-weight: 500; }
.pcard__title { font-size: var(--fs-feature); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
.pcard__text { font-size: var(--fs-base); line-height: 1.7; color: var(--text-muted); max-width: 460px; }

.pcard__specs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--sp-4);
  margin: 4px 0;
}
.pcard__specs div { display: flex; flex-direction: column; gap: 4px; }
.pcard__specs dt { font-size: var(--fs-xs); color: var(--text-dim); }
.pcard__specs dd { margin: 0; font-size: var(--fs-base); color: var(--text); }
.pcard__actions { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: 4px; }

/* Entregados */
.delivered { padding: var(--sp-6) 0 0; }
.delivered__card { padding: 36px var(--pad) 40px; }
.delivered__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4);
  margin-bottom: 36px;
}
.delivered .section__label { margin-bottom: 0; }
.delivered__head .h2 { max-width: 560px; text-align: right; }

.delivered__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}
.dcard { display: flex; flex-direction: column; gap: var(--gap-grid); }
.dcard__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--card-bg-2);
}
.dcard__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform .6s ease, filter .4s ease; }
.dcard:hover .dcard__media img { transform: scale(1.04); filter: none; }
.dcard__body { display: flex; flex-direction: column; gap: 6px; }
.dcard__meta { font-size: var(--fs-xs); color: var(--text-dim); }
.dcard__body h3 { font-size: var(--fs-card); font-weight: 500; line-height: 1.2; }
.dcard__year { font-size: var(--fs-sm); color: var(--text-muted); }

/* =========================================================
   PÁGINA CONTACTO: canales, formulario y mapa
   ========================================================= */
.channels { padding-top: var(--sp-6); }
.channels__grid { display: grid; gap: var(--gap-grid); }

.channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  padding: 22px var(--pad);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: background .2s ease, transform .2s ease;
}
.channel:hover { background: #454545; transform: translateY(-2px); }
.channel__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-card);
  background: rgba(255,255,255,.08);
  color: var(--text);
}
.channel__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.channel__label { font-size: var(--fs-sm); color: var(--text-muted); }
.channel__value { font-size: var(--fs-card); font-weight: 500; letter-spacing: -0.01em; word-break: break-word; }

/* WhatsApp: canal principal, acentuado con el rojo de marca */
.channel--primary { background: var(--brand); }
.channel--primary:hover { background: var(--brand-dark); }
.channel--primary .channel__icon { background: rgba(255,255,255,.18); color: var(--white); }
.channel--primary .channel__label { color: rgba(255,255,255,.8); }

/* Formulario */
.form { padding: var(--sp-6) 0 0; }
.form__card { padding: 36px var(--pad) 40px; }
.form .section__label { margin-bottom: 32px; }
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-5);
  align-items: start;
}
.form__intro .h2 { max-width: 420px; }
.form__intro p { font-size: var(--fs-base); line-height: 1.7; color: var(--text-muted); margin-top: 20px; max-width: 400px; }

.form__fields { display: flex; flex-direction: column; gap: var(--sp-2); }

/* Formulario de Kommo. El contenido va dentro de un iframe de otro dominio,
   así que desde aquí solo controlamos la caja: el aspecto del formulario
   se configura en el diseñador de Kommo. */
.form__kommo { min-width: 0; }
.form__kommo iframe { max-width: 100% !important; border: 0; display: block; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.field label { font-size: var(--fs-sm); color: var(--text-muted); }
.field__opt { color: var(--text-dim); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 300;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; cursor: pointer; background-image: none; }
.field select option { background: var(--card-bg); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.07);
}
.field.has-error input, .field.has-error select { border-color: var(--brand); }
.field__error { font-size: var(--fs-xs); color: var(--brand); }

.form__submit { align-self: flex-start; margin-top: 4px; border: 0; }
.form__note { font-size: var(--fs-xs); color: var(--text-dim); line-height: 1.6; }

/* Oficinas */
.offices { padding-top: var(--sp-6); }
.offices__figure--map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--card-bg-2);
}
.offices__figure--map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }
.offices__hours { display: flex; flex-direction: column; gap: var(--sp-1); width: 100%; max-width: 360px; }
.offices__hours li {
  display: flex; justify-content: space-between; gap: var(--sp-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.offices__hours li span:last-child { color: var(--text); }

/* Footer suelto (páginas sin bloque de contacto) */
.contact--slim { padding-top: var(--sp-6); }
.contact--slim .contact__card { padding: 8px var(--pad) 28px; }
.contact--slim .footer { padding-top: 20px; }
.offices__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-5);
  align-items: center;
}
.offices__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
}
.offices__info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.offices__address { font-size: var(--fs-base); line-height: 1.7; color: var(--text-muted); }
.offices__actions { display: flex; flex-wrap: wrap; gap: var(--sp-1); }

/* =========================================================
   02 PROYECTOS (en tarjeta clara, para cortar el bloque central)
   ========================================================= */
.projects { padding: 0; }
.projects__card { padding: 36px var(--pad) 40px; }
.projects .section__label { margin-bottom: 20px; }
.projects__head {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--sp-5);
  align-items: end;
  margin-bottom: 40px;
}
.projects__head .h2 { max-width: 620px; }
.projects__aside { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); max-width: 420px; justify-self: end; }
.projects__aside p { font-size: var(--fs-base); line-height: 1.6; color: var(--text-muted); }

/* Los que están en venta van grandes (2 columnas); los entregados, pequeños (3) */
.projects__grid {
  display: grid;
  gap: var(--gap-grid);
}
.projects__grid--featured {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(420px, auto);
}
.projects__grid--small {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  margin-top: var(--gap-grid);
}
.projects__grid--small .project { min-height: 280px; }
.projects__grid--small .project__body h3 { font-size: var(--fs-card); }
.project {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 360px;
  background: var(--card-bg);
}
.project--featured { min-height: 420px; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover img { transform: scale(1.04); }
.project::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgb(var(--shade-rgb) / 0) 28%,
    rgb(var(--shade-rgb) / .55) 58%,
    rgb(var(--shade-rgb) / .94) 100%);
}
.project__tags {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px;
  max-width: 70%;
}
.project__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 20px;
  display: flex; flex-direction: column; gap: var(--sp-1);
}
.project__body h3 { font-size: var(--fs-card); font-weight: 500; line-height: 1.2; }
.project__body p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; max-width: 400px; }
.project__body .btn { margin-top: 8px; }
.project--featured .project__body h3 { font-size: var(--fs-feature); }

/* =========================================================
   04 TESTIMONIALES (estilo lista + imagen, como "Awards" en la referencia)
   ========================================================= */
.testimonials { padding-top: var(--sp-6); }
.testimonials__head { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.testimonials__head .h2 { max-width: 680px; }
.testimonials .section__label { margin-bottom: -40px; }

.testimonials__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-3);
  align-items: start;
}

.testimonials__item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: 20px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  transition: background .2s;
}
.testimonials__item:hover { background: rgba(255,255,255,.03); }
.testimonials__item.is-active { background: var(--card-bg); border-bottom-color: transparent; }
.testimonials__item.is-active .circle-btn { background: var(--white); color: var(--dark); border-color: var(--white); }
.testimonials__project { font-size: var(--fs-lg); font-weight: 400; }
.testimonials__name { font-size: var(--fs-lg); font-weight: 400; }

.testimonials__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg-2);
}
.testimonials__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.testimonials__media img.is-fading { opacity: 0; }
.testimonials__figure figcaption { padding: 18px 4px 0; position: relative; }
.testimonials__mark {
  display: block;
  font-size: var(--fs-num-lg); line-height: .5;
  color: var(--brand);
  font-weight: 600;
  height: 18px;
  margin-bottom: 8px;
}
.testimonials__figure p { font-size: var(--fs-base); line-height: 1.6; color: var(--text); }
.testimonials__figure h4 { font-size: var(--fs-base); font-weight: 500; margin-top: 16px; }
.testimonials__figure > figcaption > span:last-child { font-size: var(--fs-sm); color: var(--text-muted); }

/* =========================================================
   06 CONTACTO / FOOTER
   ========================================================= */
.contact { padding: var(--sp-6) 0 0; }
.contact__card { padding: 36px var(--pad) 28px; }
.contact .section__label { margin-bottom: 40px; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-5);
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.contact__title {
  font-size: var(--fs-section);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 800px;
}
.contact__title strong { font-weight: 600; }
.contact__cta { vertical-align: middle; margin: 0 8px; font-size: var(--fs-xs); }

.contact__info {
  text-align: right;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
}
.contact__info a:hover { color: var(--text); }

/* Footer en una sola fila, como la referencia: logo | enlaces | copyright */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding-top: 28px;
}
.footer__logo img { height: 44px; width: auto; }
.footer__nav { display: flex; gap: var(--sp-4); font-size: var(--fs-sm); color: var(--text-muted); }
.footer__nav a:hover { color: var(--text); }
.footer__social { display: flex; gap: var(--sp-1); }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.footer__social a:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.footer__copy { font-size: var(--fs-sm); color: var(--text-muted); text-align: right; }
.footer__credit { display: block; font-size: var(--fs-xs); color: var(--text-dim); margin-top: 2px; }

/* =========================================================
   BOTONES FLOTANTES (los inyecta js/main.js)
   ========================================================= */
/* Volver arriba: va encima del botón de WhatsApp */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 60;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgb(var(--shell-rgb) / .75);
  backdrop-filter: blur(8px);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), visibility .3s, background .2s ease, color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

@media (max-width: 640px) {
  .to-top { right: 16px; bottom: 78px; width: 42px; height: 42px; font-size: var(--fs-lg); }
}

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s ease, visibility .2s; transform: none; }
}

/* =========================================================
   BOTÓN FLOTANTE DE WHATSAPP (lo inyecta js/main.js)
   ========================================================= */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: 58px;
  padding: 0 16px;
  border-radius: var(--pill);
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.92);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), visibility .3s, background .2s ease;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-float:hover { background: #1fb457; }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; stroke: none; flex: none; }
.wa-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 500;
  opacity: 0;
  transition: max-width .3s ease, opacity .25s ease;
}
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label { max-width: 220px; opacity: 1; }

@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; height: 52px; padding: 0 13px; }
  .wa-float svg { width: 24px; height: 24px; }
  /* En móvil el texto no se despliega: solo el ícono */
  .wa-float__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: opacity .2s ease, visibility .2s; transform: none; }
}

/* =========================================================
   ANIMACIONES
   ========================================================= */
/* Entrada del hero al cargar la página */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: none; }
}
.hero__bg img { animation: heroZoom 1.8s cubic-bezier(.2,.7,.2,1) both; }
.hero .header      { animation: heroIn .8s cubic-bezier(.2,.7,.2,1) both; }
.hero__eyebrow     { animation: heroIn .8s .1s cubic-bezier(.2,.7,.2,1) both; }
.hero__title       { animation: heroIn .9s .18s cubic-bezier(.2,.7,.2,1) both; }
.hero__subtitle    { animation: heroIn .9s .32s cubic-bezier(.2,.7,.2,1) both; }
.hero__actions,
.hero__tags        { animation: heroIn .9s .46s cubic-bezier(.2,.7,.2,1) both; }
.hero__slider      { animation: heroIn .9s .58s cubic-bezier(.2,.7,.2,1) both; }

/* Aparición al hacer scroll (la clase .reveal la asigna js/main.js) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .hero .header, .hero__eyebrow, .hero__title, .hero__subtitle,
  .hero__actions, .hero__tags, .hero__slider { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Pantallas medianas: Artemira a todo el ancho y el resto en 3 columnas */
@media (max-width: 1300px) {
  .projects__grid--small { grid-template-columns: repeat(3, 1fr); }
}

/* Navegación compacta antes de colapsar */
@media (max-width: 1240px) {
  .nav__link { padding: 8px 13px; }
  .header__logo img { height: 48px; }
}

/* Header colapsado a menú móvil */
@media (max-width: 1100px) {
  /* El panel se desborda del hero: va opaco para que no se transparente la página */
  .nav { display: none; position: absolute; top: 84px; left: 24px; right: 24px; flex-direction: column; align-items: stretch; padding: 8px; border-radius: 18px; background: rgb(var(--shell-rgb)); box-shadow: 0 24px 48px rgba(0,0,0,.45); z-index: 20; }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 16px; font-size: var(--fs-sm); }
  .header__cta { display: none; }
  .nav-toggle { display: flex; }

  /* Submenú en móvil: acordeón */
  .nav__item { flex-wrap: wrap; }
  .nav__item > .nav__link { flex: 1; }
  .nav__caret { display: none; }
  .nav__sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-muted); font-size: var(--fs-base);
    transition: transform .2s;
  }
  .nav__item.is-open .nav__sub-toggle { transform: rotate(180deg); }
  .nav__sub {
    position: static; width: 100%;
    display: none; opacity: 1; visibility: visible; transform: none;
    background: rgba(255,255,255,.04); box-shadow: none; border: 0;
    margin: 4px 0 8px; padding: 6px;
  }
  .nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { display: none; }
  .nav__item.is-open .nav__sub { display: block; }
}

/* Tablet: contenedor al 100% y secciones a una columna */
@media (max-width: 960px) {
  :root { --site-width: 100%; --pad: 28px; }
  .shell { padding: 16px 16px 24px; }

  .hero__bottom { flex-direction: column; align-items: stretch; }
  .hero__slider { width: 100%; }

  .about__grid, .projects__head, .testimonials__grid, .contact__grid,
  .story__grid, .story__text, .offices__grid, .form__grid, .pcard { grid-template-columns: 1fr; }
  .listing__head, .delivered__head, .done__head,
  .specs__head, .gallery__head, .amenities__head, .finance__head { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .listing__head .h2, .delivered__head .h2, .done__head .h2,
  .specs__head .h2, .gallery__head .h2, .amenities__head .h2, .finance__head .h2 { text-align: left; }
  .done__grid { grid-template-columns: 1fr; }
  .done__specs { justify-self: start; }
  .delivered__grid.delivered__grid--four { grid-template-columns: repeat(2, 1fr); }
  .hero__content--split { grid-template-columns: 1fr; gap: var(--sp-4); align-items: start; }
  .lead-card { width: 100%; }
  .trust__grid { grid-template-columns: 1fr; }
  .midcta {
  flex-direction: column; align-items: flex-start; }

  .amenities__list { grid-template-columns: repeat(2, 1fr); }
  .finance__grid { grid-template-columns: 1fr; }
  .rate { grid-template-columns: 1fr; gap: var(--sp-3); text-align: left; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .pcard { gap: var(--sp-3); }
  .pcard--reverse .pcard__media { order: 0; }
  .delivered__grid { grid-template-columns: repeat(2, 1fr); }
  .story__grid { gap: var(--sp-3); margin-bottom: 48px; }
  .form__grid { gap: var(--sp-4); }
  .channel { padding: 20px 24px; gap: var(--sp-2); }
  .offer .section__label { margin-bottom: 24px; }
  .offer__head { justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-3); }
  .offer__item { grid-template-columns: 60px 1fr; }
  .offer__media { grid-column: 2; }
  .specs__grid { grid-template-columns: repeat(2, 1fr); }
  .specs__grid .spec:nth-child(-n+4) { border-top: 1px solid var(--line); }
  .specs__grid .spec:nth-child(-n+2) { border-top: 0; }
  .about__aside { justify-self: start; }
  .about__stats { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .about__grid { gap: var(--sp-4); }
  .projects__aside { justify-self: start; }
  .testimonials .section__label { margin-bottom: 24px; }
  .testimonials__head { justify-content: flex-start; }
  .contact__info { text-align: left; }
  .footer { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .footer__nav { flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
  .footer__copy { text-align: left; }
}

@media (max-width: 640px) {
  .shell { padding: 8px 8px 16px; }
  :root { --pad: 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding: 16px 16px 20px; min-height: 560px; }
  .header__logo img { height: 44px; }
  .hero__content { padding-top: 40px; }
  .hero__subtitle { margin-top: var(--sp-2); }
  .projects__card, .contact__card, .stats, .form__card, .delivered__card { padding: 28px 20px; }
  .about__stats { grid-template-columns: 1fr; gap: var(--sp-3); }
  .delivered__grid,
  .delivered__grid.delivered__grid--two,
  .delivered__grid.delivered__grid--four { grid-template-columns: 1fr; }
  .pcard__specs { grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-3); }
  /* En móvil manda la barra fija: ocultamos los flotantes en las landings */
  body[data-landing] .wa-float, body[data-landing] .to-top { display: none; }
  .sticky-cta { display: flex; }
  .trust__stats { grid-template-columns: 1fr; gap: var(--sp-2); }
  .midcta {
  padding: 26px 20px; }
  .gallery--plans { grid-template-columns: 1fr; }
  .specs__card, .amenities__card { padding: 8px 20px; }
  .amenities__card { padding: 28px 20px; }
  .specs__grid, .amenities__list, .gallery { grid-template-columns: 1fr; }
  .specs__grid .spec { border-top: 1px solid var(--line); }
  .specs__grid .spec:first-child { border-top: 0; }
  .gallery__item--wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .lightbox__btn--prev { left: 12px; }
  .lightbox__btn--next { right: 12px; }
  .lightbox__btn--close { top: 12px; right: 12px; }
  .channel { grid-template-columns: auto 1fr; padding: 18px 20px; }
  .channel .circle-btn { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-2); }
  .offer__item { grid-template-columns: 1fr; gap: var(--sp-2); padding: 24px 0; }
  .offer__media { grid-column: 1; }
  .projects__grid--featured, .projects__grid--small { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .project, .project--featured { min-height: 340px; grid-column: auto; }
  .project__tags { position: static; justify-content: flex-start; max-width: none; padding: 16px 16px 0; position: relative; z-index: 2; }
  .testimonials__item { grid-template-columns: 80px 1fr auto; padding: 16px 12px; }
  .testimonials__project, .testimonials__name { font-size: var(--fs-base); }
  .contact__cta { margin: 6px 0; }
  .footer__logo img { height: 38px; }
}
