/* ==========================================================================
   Martiarena Negocios Inmobiliarios — main.css
   Mobile-first · BEM · tokens en :root · sin !important
   En WordPress: se encola como style principal del tema (wp_enqueue_style).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --c-primary: #0e225b;          /* azul Martiarena */
  --c-primary-900: #0a1944;      /* footer / fondos más profundos */
  --c-primary-700: #1b3274;      /* hover de botones azules */
  --c-primary-600: #2a4287;      /* eyebrows sobre claro (8:1 sobre blanco) */
  --c-primary-300: #9aa8cc;      /* números/acentos sobre azul (6:1 sobre primario) */
  --c-primary-100: #e4e9f4;
  --c-primary-50: #f2f4f9;
  --c-tint: #edf1f8;             /* panel del hero (celeste del azul de marca) */

  --c-blue: #193a9f;             /* azul de acción (pedido del cliente): botones azules y caja del CTA */
  --c-blue-hover: #13307f;       /* blanco sobre #193a9f: 9,4:1 */

  --c-accent: #b37d00;           /* ocre (tomado del flyer del cliente): botones "Ver todos" */
  --c-accent-hover: #966800;
  --c-on-accent: #ffffff;        /* blanco sobre ocre: 3,6:1 (AA para texto grande / botones lg) */

  --c-wa: #1fa855;               /* botones de WhatsApp */
  --c-wa-hover: #17853f;
  --c-on-wa: #ffffff;            /* blanco sobre #1fa855: 3,1:1 (AA solo texto grande); sobre el hover: 4,7:1 */

  --c-badge: rgba(14, 34, 91, 0.75);  /* badge de estado: azul principal al 75 % */

  /* Neutros */
  --c-bg: #ffffff;
  --c-bg-soft: #f5f4f0;          /* piedra cálida: contrapeso del azul */
  --c-ink: #16213f;              /* texto de lectura */
  --c-muted: #3c404a;            /* texto secundario (10:1 sobre blanco) */
  --c-line: #e3e1da;
  --c-line-strong: #cfd3dd;
  --c-on-dark: #ffffff;
  --c-on-dark-muted: rgba(255, 255, 255, 0.76);
  --c-on-dark-line: rgba(255, 255, 255, 0.14);
  --c-focus: #2f5bd3;

  /* Recursos gráficos de marca */
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 33 18'%3E%3Cpath d='M0 10h3v8H0zM5 7h3v11H5zM10 4h3v14h-3zM15 0h3v18h-3zM20 4h3v14h-3zM25 7h3v11h-3zM30 10h3v8h-3z'/%3E%3C/svg%3E");
  --texture-topo: url("../img/topografia.svg");

  /* Tipografía */
  --ff-display: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-script: "Allura", "Brush Script MT", cursive;   /* submarca "Proyectos" */
  --fw-heading: 700;            /* títulos, menú y botones */

  --fs-h1: clamp(2.125rem, 1.3rem + 4.6vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --fs-h3: 1.625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Espaciado y layout */
  --container: 87.5rem;          /* 1400px */
  --gutter: 1rem;                /* 16px en mobile */
  --section-y: clamp(2.8rem, 1.96rem + 3.5vw, 5.25rem);   /* 70 % del valor anterior */
  --header-h: 4rem;

  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --shadow-sm: 0 1px 2px rgba(14, 34, 91, 0.06);
  --shadow-md: 0 12px 32px -16px rgba(14, 34, 91, 0.28);
  --shadow-lg: 0 30px 60px -30px rgba(14, 34, 91, 0.45);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
    --header-h: 4.75rem;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
  }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: var(--fw-heading);
  color: var(--c-primary);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-primary);
  color: var(--c-on-dark);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--c-bg-soft);
}

.section-head {
  margin-bottom: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
}

.section-head__title {
  font-size: var(--fs-h2);
  line-height: 1.08;
}

.section-head__lead {
  margin-top: 1rem;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);  /* a 1440 px la bajada entra en una línea */
  text-wrap: pretty;                                       /* si corta, no deja una palabra sola */
  line-height: 1.55;
  color: var(--c-muted);
}

.section-foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

/* --------------------------------------------------------------------------
   4. Componentes base
   -------------------------------------------------------------------------- */

/* Eyebrow */
.eyebrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
  font-family: var(--ff-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary-600);
}

/* Adorno: el skyline del logo en miniatura */
.eyebrow::before {
  content: "";
  width: 2.0625rem;
  height: 1.125rem;
  background: var(--c-primary-300);
  -webkit-mask: var(--ornament) no-repeat left bottom / contain;
  mask: var(--ornament) no-repeat left bottom / contain;
}

.eyebrow--on-dark {
  color: var(--c-primary-300);
}

.eyebrow--on-dark::before {
  background: rgba(255, 255, 255, 0.35);
}

/* Eyebrow con el isotipo de Martiarena como imagen (en lugar del adorno ::before) */
.eyebrow--logo::before {
  content: none;
}

.eyebrow__logo {
  display: block;
  width: auto;
  height: 30px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.625rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: 999px;          /* todos los botones en píldora (pedido del cliente) */
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-heading);
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn__icon {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
}

.btn--wa {
  background: var(--c-wa);
  color: var(--c-on-wa);
  box-shadow: 0 8px 20px -12px rgba(31, 168, 85, 0.9);
}

.btn--wa:hover {
  background: var(--c-wa-hover);
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: 0 8px 20px -12px rgba(179, 125, 0, 0.9);
}

.btn--accent:hover {
  background: var(--c-accent-hover);
}

.btn--primary {
  background: var(--c-blue);
  color: var(--c-on-dark);
}

.btn--primary:hover {
  background: var(--c-blue-hover);
}

/* Variantes del botón de WhatsApp */
.btn--wa.btn--blue {
  background: var(--c-blue);
  color: var(--c-on-dark);
  box-shadow: 0 8px 20px -12px rgba(25, 58, 159, 0.9);
}

.btn--wa.btn--blue:hover {
  background: var(--c-blue-hover);
}

.btn--wa.btn--white {
  background: var(--c-bg);
  color: var(--c-primary);
  box-shadow: 0 10px 24px -14px rgba(5, 15, 45, 0.6);
}

.btn--wa.btn--white:hover {
  background: var(--c-primary-50);
}

/* Secundario: borde azul; al hover se rellena (p. ej. "Ver brochure") */
.btn--outline {
  background: transparent;
  border-color: var(--c-blue);
  color: var(--c-blue);
}

.btn--outline:hover {
  background: var(--c-blue);
  color: var(--c-on-dark);
}

.btn--light {
  background: var(--c-on-dark);
  color: var(--c-primary);
}

.btn--light:hover {
  background: var(--c-primary-50);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 3.375rem;
  padding-inline: 1.75rem;
  font-size: var(--fs-body);
}

.btn .btn__arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Header  (header.php)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -22px rgba(14, 34, 91, 0.5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.site-header__logo {
  display: inline-flex;
  flex: none;
  border-radius: 4px;
}

.site-header__logo img {
  width: auto;
  height: 2.5rem;
  transition: filter 0.3s var(--ease);
}

/* Submarca: logo + "Proyectos" en la tipografía de títulos, como una sola pieza */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand__tag {
  padding-top: 0.2em;            /* baja al nivel de "MARTIARENA", como en la muestra */
  font-family: var(--ff-script);
  font-size: 1.9375rem;          /* la cursiva es fina y de ojo chico: necesita más cuerpo */
  font-weight: 400;
  line-height: 1;
  color: var(--c-primary);
  -webkit-text-stroke: 0.022em currentColor;   /* engrosa apenas el trazo fino de Allura */
  white-space: nowrap;
}

@media (min-width: 768px) {
  .site-header .brand__tag {
    font-size: 2rem;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__cta {
  min-height: 3rem;
  padding-inline: 0.9375rem;
  font-size: var(--fs-body);
}

.site-header__cta .btn__icon {
  width: 1.3rem;
  height: 1.3rem;
}

.site-header__cta .btn__label {
  display: none;
}

.site-header__toggle {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1.5px solid var(--c-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--c-primary);
  cursor: pointer;
}

.site-header__toggle-bars,
.site-header__toggle-bars::before,
.site-header__toggle-bars::after {
  display: block;
  width: 1.375rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.site-header__toggle-bars {
  position: relative;
}

.site-header__toggle-bars::before,
.site-header__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header__toggle-bars::before {
  top: -6px;
}

.site-header__toggle-bars::after {
  top: 6px;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars {
  background: transparent;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Navegación: panel desplegable en mobile */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
}

.site-header.is-menu-open .site-nav {
  display: block;
}

.site-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 1.25rem;
  font-weight: var(--fw-heading);
  color: var(--c-primary);
  text-decoration: none;
}

.site-nav__cta {
  margin-top: 1.25rem;
}

@media (min-width: 480px) {
  .site-header__cta .btn__label {
    display: inline;
  }
  .site-header__cta {
    padding-inline: 1.375rem;
  }
}

@media (min-width: 768px) {
  .site-header__logo img {
    height: 2.875rem;
  }
}

@media (min-width: 960px) {
  .site-header__toggle,
  .site-nav__cta {
    display: none;
  }

  .site-header__inner {
    gap: 2.5rem;
  }

  .site-nav {
    position: static;
    display: block;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav__list {
    display: flex;
    gap: 2.25rem;
  }

  .site-nav__link {
    position: relative;
    padding: 0.5rem 0;
    border: 0;
    font-size: 1.0625rem;
    transition: color 0.2s var(--ease);
  }

  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.2rem;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }

  .site-nav__link:hover::after {
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   6. Hero  (template-parts/hero.php)
   -------------------------------------------------------------------------- */
.hero-split {
  padding-block: 0.75rem 0;
  background: var(--c-bg);
}

.hero-split__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--texture-topo) center / cover no-repeat, var(--c-tint);
}

.hero-split__content {
  padding: 2.25rem 1.25rem 2.5rem;
}

@media (min-width: 480px) {
  .hero-split__content {
    padding-inline: 2rem;
  }
}

.hero-split__title {
  font-size: var(--fs-h1);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero-split__lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-muted);
}

.hero-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-split__media {
  position: relative;
  margin: 0;
}

.hero-split__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 25% 50%;      /* conserva la mano con las llaves (lado izquierdo de la foto) */
}

/* Frase sobre la foto del hero: card de vidrio del tamaño del texto, a 30 px del borde derecho y del inferior */
.hero-quote {
  position: absolute;
  right: 30px;
  bottom: 30px;
  max-width: calc(100% - 60px);
  padding: 0.875rem 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(2px) saturate(1.15);
  backdrop-filter: blur(2px) saturate(1.15);
  box-shadow: 0 10px 30px -18px rgba(5, 15, 45, 0.45);
  font-family: var(--ff-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0b2356;
}

.hero-quote span {
  display: block;                   /* una línea por span, como en la referencia */
}

@media (max-width: 479px) {
  .hero-quote {
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    padding: 0.625rem 0.875rem;
  }
}

@media (min-width: 640px) {
  .hero-quote {
    padding: 1rem 1rem;
    font-size: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .hero-quote {
    font-size: 1.4375rem;
  }
}

@media (max-width: 479px) {
  .hero-split__actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 960px) {
  .hero-split {
    padding-top: 1.25rem;
  }

  .hero-split__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 30rem;             /* más bajo: se llega a ver "Proyectos" sin scroll */
  }

  .hero-split__content {
    align-self: center;
    padding: clamp(2.5rem, 1.25rem + 2.75vw, 4.5rem);
  }

  /* El H1 escala con la columna del panel (≈ mitad del contenedor) */
  .hero-split__title {
    font-size: clamp(2.5rem, -0.5rem + 5.1vw, 4.5rem);
  }

  .hero-split__img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }
}

/* --------------------------------------------------------------------------
   7. Grilla de cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .cards--lotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   8. Card  (card-emprendimiento.php / card-lote.php)
   Un solo componente; los modificadores solo ajustan lo propio de cada tipo.
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-primary-50);
  transition: box-shadow 0.3s var(--ease);
}

.card:hover .card__media {
  box-shadow: var(--shadow-md);
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media--placeholder {
  display: grid;
  place-items: center;
  color: var(--c-primary-300);
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(14, 34, 91, 0.035) 22px 23px),
    linear-gradient(160deg, var(--c-primary-50), var(--c-primary-100));
}

.card__placeholder-icon {
  width: 3.5rem;
  height: 3.5rem;
  stroke-width: 1.25;
}

.card__badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  padding: 0.35rem 0.625rem;
  border-radius: var(--radius-sm);
  background: var(--c-badge);
  color: var(--c-on-dark);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -8px rgba(14, 34, 91, 0.55);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 1.375rem;
}

.card__title {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Ubicación: subtítulo con pin (reemplaza la fila "Ubicación") */
.card__location {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-primary-600);
}

.card__location-icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15em;
}

.card__desc {
  margin-top: 0.875rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-muted);
}

/* Datos clave con ícono: Unidades/Entrega o Medidas/Superficie.
   La etiqueta existe pero es visually-hidden (lectores de pantalla + tooltip). */
.card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 0;
  padding-top: 1.125rem;
  border-top: 1px solid var(--c-line);
}

.card__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.card__meta-item dt {
  flex: none;
}

.card__meta-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.6;
  color: var(--c-primary-600);
}

.card__meta-item dd {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

/* Amenities como chips */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.card__tag {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--c-primary-50);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-primary);
}

.card__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr));
  gap: 0.625rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.card__actions .btn {
  padding-inline: 0.875rem;
}

.card--lote .card__actions {
  grid-template-columns: minmax(0, 1fr);
}

/* --------------------------------------------------------------------------
   9. CTA final  (template-parts/cta-final.php)
   -------------------------------------------------------------------------- */
.cta__box {
  position: relative;
  display: grid;
  gap: 2.75rem;
  padding: clamp(1.75rem, 1rem + 4vw, 4.5rem);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--c-blue);
  color: var(--c-on-dark);
  isolation: isolate;
}

.cta__box::after {
  /* Dibujo arquitectónico en línea (decorativo) */
  content: "";
  position: absolute;
  right: -4%;
  bottom: -3%;
  z-index: -1;
  width: min(90%, 46rem);
  aspect-ratio: 820 / 660;
  background: url("../img/edificio-linea.svg") no-repeat right bottom / contain;
  opacity: 0.07;
  pointer-events: none;
}

@media (min-width: 960px) {
  .cta__box::after {
    width: min(52%, 42rem);
    opacity: 0.075;
  }
}

.cta__box .eyebrow--on-dark {
  color: rgba(255, 255, 255, 0.82);
}

.cta__title {
  font-size: clamp(1.875rem, 1.35rem + 2.3vw, 3rem);
  line-height: 1.1;
  color: var(--c-on-dark);
}

.cta__text {
  max-width: 32rem;
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-on-dark-muted);
}

.cta__action {
  margin-top: 2rem;
}

.benefits {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cards de vidrio: blanco translúcido sobre el azul; el dibujo del CTA se ve detrás */
.benefits__item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.125rem;
  align-items: center;
  padding: 1.25rem 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.benefits__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-on-dark);
}

.benefits__svg {
  width: 1.375rem;
  height: 1.375rem;
  stroke-width: 1.75;
}

.benefits__title {
  font-family: var(--ff-body);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--c-on-dark);
}

.benefits__text {
  margin-top: 0.25rem;
  line-height: 1.5;
  font-size: var(--fs-body);
  color: var(--c-on-dark-muted);
}

@media (max-width: 599px) {
  .cta__box {
    padding: 1.75rem 0.9375rem;   /* 15px a los costados en mobile */
  }

  .cta__action .btn {
    width: 100%;
  }

  .benefits__item {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.875rem;
    align-items: start;
    padding: 1rem 1.125rem;
  }

  .benefits__icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .benefits__svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (min-width: 960px) {
  .cta__box {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 5rem;
  }
}

/* --------------------------------------------------------------------------
   10. Cabecera de página (archives)
   -------------------------------------------------------------------------- */
.page-head {
  padding-top: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
}

/* Sin fondo ni divisor: migas, título y bajada directo sobre el blanco */
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-muted);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--c-primary-300);
}

.breadcrumb__link {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.breadcrumb__link:hover {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb__item[aria-current="page"] {
  color: var(--c-primary);
}

.page-head__title {
  font-size: clamp(2.375rem, 1.7rem + 2.8vw, 3.75rem);
  line-height: 1.05;
}

.page-head__lead {
  margin-top: 0.875rem;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);  /* igual que la bajada de secciones de la home */
  text-wrap: pretty;
  line-height: 1.55;
  color: var(--c-muted);
}

/* Listado de los archives: menos aire arriba (pegado a la cabecera) y sin
   padding abajo, así el espacio hasta el CTA es solo el de esa sección
   (la mitad del espacio habitual entre secciones, proporcional en todos los anchos) */
.section--listado {
  padding-top: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Footer  (footer.php)
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3.5rem, 2.8rem + 3vw, 5rem) 2rem;
  background: var(--c-primary-900);
  color: var(--c-on-dark-muted);
  font-size: var(--fs-sm);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer__logo {
  display: inline-flex;
  border-radius: 4px;
}

.site-footer__logo img {
  width: auto;
  height: 6rem;
  /* Logo blanco provisorio: falta la versión en blanco del cliente */
  filter: grayscale(1) invert(1) brightness(1.25);
  mix-blend-mode: screen; /* el texto de la franja queda calado sobre el fondo */
}

/* En el footer, "Proyectos" va debajo del logo, alineado a la derecha */
.brand--stacked {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.site-footer .brand__tag {
  padding-top: 0.125rem;
  -webkit-text-stroke-width: 0.012em;   /* sobre el azul se ve más fina con menos contorno */
  font-size: 2.25rem;
  color: var(--c-on-dark);
}

.site-footer__title {
  margin-bottom: 1rem;
  font-family: var(--ff-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-on-dark);
}

.site-footer__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.625rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a.site-footer__link:hover {
  color: var(--c-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15em;
  color: var(--c-primary-300);
}

.site-footer__bottom {
  display: grid;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-on-dark-line);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.site-footer__legal {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile: links de navegación y contacto un poco más grandes */
@media (max-width: 639px) {
  .site-footer__list {
    gap: 0.875rem;
    font-size: 1.0625rem;
  }

  .site-footer__icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
  }
}
