/* ============================================================
   Lopez Wolder Arquitectos — Brand CSS
   ============================================================ */

/* Fuentes: se cargan desde el layout (Google Fonts) + <style id="lw-font-roots"> */

/* ── Variables (alineadas al tailwind del demo lopezwolder) ─ */
:root {
  --c-bg:           hsl(42, 24%, 97%);
  --c-surface:      #ffffff;
  --c-secondary:    hsl(210, 14%, 30%);
  --c-secondary-fg: hsl(42, 28%, 97%);
  --c-dark:         hsl(210, 14%, 30%);
  --c-dark-mid:     hsl(210, 10%, 46%);
  --c-primary:      hsl(43, 32%, 64%);
  --c-primary-fg:   hsl(220, 18%, 11%);
  --c-gold:         hsl(43, 32%, 64%);
  --c-gold-hover:   hsl(43, 30%, 52%);
  --c-gold-light:   hsl(43, 28%, 88%);
  --c-text:         hsl(220, 16%, 13%);
  --c-text-mid:     hsl(210, 9%, 38%);
  --c-muted:        hsl(210, 9%, 38%);
  --c-border:       hsl(210, 10%, 87%);
  /* Borde inferior de la barra: gris-azulado visible (2px en .site-nav) + variante en hero */
  --nav-border:      hsl(210, 12%, 52%);
  --nav-border-hero: rgba(255, 255, 255, 0.42);
  --c-success:      #16a34a;
  --c-warning:      #f59e0b;
  --c-error:        #dc2626;
  --c-info:         #2563eb;

  /* Valores por defecto si no hay bloque de fuentes en el layout */
  --font-display:   'Montserrat', Georgia, 'Times New Roman', serif;
  --font-body:      'Poppins', system-ui, -apple-system, sans-serif;

  --radius:         0.25rem;
  --radius-lg:      0.25rem;
  --radius-xl:      0.5rem;

  --max-w:          1280px;
  --max-w-text:     720px;
  /* Barra con altura suficiente para que el logo (horizontal) se lea bien */
  --nav-h:          5.15rem;
}

@media (min-width: 1024px) {
  :root { --nav-h: 5.85rem; }
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* ~17px: cuerpo de lectura un poco más generoso */
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Contenido entre nav y footer: evita solapamientos y deja el layout estable */
.site-main {
  flex: 1 0 auto;
  width: 100%;
  position: relative;
  z-index: 0;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ── Tipografía ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  color: var(--c-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.u-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;
}
.text-muted    { color: var(--c-muted); }
.text-gold     { color: var(--c-gold); }
.text-center   { text-align: center; }
.text-sm       { font-size: 0.875rem; }
.text-xs       { font-size: 0.75rem; }
.font-display  { font-family: var(--font-display); }
.font-semibold { font-weight: 600; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section      { padding: 5.5rem 0; }
.section-sm   { padding: 3rem 0; }
.section-lg   { padding: 7rem 0; }
.section-dark { background: var(--c-dark); color: #fff; }
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: #fff; }

/* ── Grid ────────────────────────────────────────────────── */
.grid-2  { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.grid-3  { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; }
.grid-4  { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }

/* ── Flex helpers ────────────────────────────────────────── */
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-col      { flex-direction: column; }
.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.gap-4  { gap: 2rem; }

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  isolation: isolate;
  flex-shrink: 0;
  min-height: var(--nav-h);
  overflow: visible;
  /* Fondo sólido: mejor contraste que glass si el navegador o el hosting raro no aplican blur */
  /* Base blanca; la franja gris se dibuja con ::before para controlar el cruce exacto */
  background: #ffffff;
  border-bottom: 2px solid var(--nav-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: hsl(210, 11%, 84%);
  /* corte recto, cruza el logo y llega al final del header */
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 66%);
  pointer-events: none;
  z-index: 0;
}
.site-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 2px solid var(--nav-border);
}

/* Portada: barra flotando sobre el hero, luego sólida al scroll */
body.is-home .site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* sin sticky: el hero sube bajo el nav */
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 2px solid var(--nav-border-hero);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, -webkit-backdrop-filter 0.28s;
}
body.is-home .site-nav:not(.scrolled)::before {
  opacity: 0;
}
body.is-home .site-nav.scrolled {
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 2px solid var(--nav-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
/* Texto claro sobre hero hasta hacer scroll */
body.is-home .site-nav:not(.scrolled) .nav-logo-fallback { color: #fff; }
body.is-home .site-nav:not(.scrolled) .nav-hamburger span { background: #fff; }
body.is-home .site-nav:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
body.is-home .site-nav:not(.scrolled) .nav-links a:hover,
body.is-home .site-nav:not(.scrolled) .nav-links a.active {
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
}
body.is-home .site-nav.scrolled .nav-hamburger span { background: var(--c-text); }
/* Portada: sombra sobre el hero (el tamaño de marca vive en .nav-logo--lockup, igual que el resto del sitio) */
body.is-home .site-nav:not(.scrolled) .nav-logo--lockup .brand-lockup--isotipo .brand-lockup__mark {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
body.is-home .site-nav.scrolled .nav-logo--lockup .brand-lockup--isotipo .brand-lockup__mark {
  filter: none;
}
body.is-home .site-nav:not(.scrolled) .nav-logo--lockup .brand-lockup__mark--full {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
body.is-home .site-nav.scrolled .nav-logo--lockup .brand-lockup__mark--full {
  filter: none;
}
body.is-home .site-nav:not(.scrolled) .nav-logo--lockup .brand-lockup__line1 { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
body.is-home .site-nav:not(.scrolled) .nav-logo--lockup .brand-lockup__line2 { color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32); }
body.is-home .site-nav.scrolled .nav-logo--lockup .brand-lockup__line1 { color: var(--c-text); text-shadow: none; }
body.is-home .site-nav.scrolled .nav-logo--lockup .brand-lockup__line2 { color: var(--c-secondary); text-shadow: none; }
.nav-inner {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.5rem 1rem;
}
@media (min-width: 1024px) {
  .nav-inner { padding: 0.5rem 1.5rem; }
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo--lockup {
  line-height: 1.12;
  text-decoration: none;
  color: inherit;
  align-items: flex-end;
  gap: 0.5rem 0.65rem;
  max-width: min(100vw - 4.5rem, 100%);
}
/* Isotipo + wordmark: línea bajo el bloque. Importante: row-gap 0 — si no, el “gap” del flex separa el ::after */
.brand-lockup--nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  align-content: flex-start;
  row-gap: 0;
  column-gap: 0.65rem;
  max-width: 100%;
  box-sizing: border-box;
}
.brand-lockup--nav::after {
  content: none;
}
.nav-logo--lockup .brand-lockup--isotipo .brand-lockup__mark {
  display: block;
  width: auto;
  height: 3.15rem;
  max-height: 3.5rem;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  transition: height 0.2s ease, max-height 0.2s, filter 0.28s ease;
}
/* Logo ancho (solo logo.png, sin isotipo) */
.nav-logo--lockup .brand-lockup__mark--full {
  display: block;
  width: auto;
  height: 4.2rem;
  max-height: 4.8rem;
  max-width: min(100vw - 7rem, 32rem);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  transition: height 0.2s ease, max-height 0.2s, filter 0.28s ease;
}
@media (min-width: 1024px) {
  .nav-logo--lockup .brand-lockup--isotipo .brand-lockup__mark {
    height: 3.5rem;
  }
  .nav-logo--lockup .brand-lockup__mark--full {
    height: 4.7rem;
    max-width: min(100vw - 5.5rem, 36rem);
  }
}
.nav-logo--lockup .brand-lockup__wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex-shrink: 1;
}
.nav-logo--lockup .brand-lockup__line1 {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-text);
  line-height: 1.15;
  max-width: 10.5rem;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-logo--lockup .brand-lockup__line2 {
  display: block;
  margin-top: 0.08em;
  font-size: clamp(0.6rem, 0.8vw, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: var(--c-secondary);
  max-width: 10.5rem;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0.02em;
  color: var(--c-text);
  line-height: 1.15;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .nav-links { gap: 2rem; }
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-secondary);
  transition: color 0.2s;
  padding: 0.25rem 0;
  border-bottom: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--c-primary);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  transition: all 0.3s;
}
/* Mobile nav */
.nav-mobile {
  display: none;
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--c-border);
}
@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
}

/* Enlaces a redes (footer / contacto) */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: color 0.2s ease, transform 0.2s ease;
  border-radius: 0.25rem;
}
.social-links a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
.social-links--footer a {
  color: rgba(255, 255, 255, 0.55);
}
.social-links--footer a:hover,
.social-links--footer a:focus-visible {
  color: #fff;
}
.social-links--light a {
  color: var(--c-text-mid);
}
.social-links--light a:hover,
.social-links--light a:focus-visible {
  color: var(--c-primary);
}
.contact-youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin-top: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.contact-youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── HERO (home — estilo demo Node) ───────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-secondary);
  color: var(--c-secondary-fg);
}
/* Portada: altura mínima + bloque de copy centrado (vertical y horizontal) */
.hero--node {
  /*
   * min-height: el fondo/video llenan aunque el texto sea bajo. Flex: centra el
   * contenido en el eje; el padding superior en home deja aire bajo el nav fijo.
   */
  min-height: max(25rem, 76vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
  padding: 0;
}
@media (min-width: 1024px) {
  .hero--node {
    min-height: max(28rem, 82vh);
  }
}
/* Espacio bajo el nav fijo: el centrado vertical ocurre en el área útil */
body.is-home .hero--node {
  padding-top: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}
.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
/* Capa de imagen o video + velo para legibilidad del título y la barra */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Oscurecimiento suave, más carga arriba para el logo/nav */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 40%, rgba(0, 0, 0, 0.52) 100%);
}
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero-content--node {
  position: relative;
  z-index: 4;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem 2.1rem;
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100%;
}
@media (min-width: 1024px) {
  .hero-content--node {
    padding: 0 1.5rem 2.4rem;
  }
}
.hero-content__dock {
  width: min(100%, 42rem);
  margin-right: auto;
}
.hero-actions--node {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1.15rem;
  width: 100%;
  max-width: 40rem;
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-cta-primary__arrow {
  flex-shrink: 0;
  opacity: 0.95;
}

/* Hero genérico (otras páginas si se reutiliza .hero) */
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,71,84,0.9) 0%, rgba(61,71,84,0.3) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 1.5rem;
}
/* Portada (home): *después* de .hero-title — si no, .hero-title (arriba) pisa con el clamp enorme. */
/* Título realmente “de hero” (antes quedó en ~1,5rem máx.; era letra de cuerpo, no de portada). */
.hero--node .hero-title,
.hero--node h1.hero-title--node {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.1;
  max-width: 38rem;
  margin: 0;
  text-align: left;
  margin-bottom: 0;
  margin-inline: 0;
  letter-spacing: -0.02em;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .hero--node .hero-title,
  .hero--node h1.hero-title--node {
    font-size: clamp(1.95rem, 3vw, 2.55rem);
    line-height: 1.08;
  }
}
.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 2.5rem;
}
/* Portada: sobreescribe .hero-subtitle que viene abajo (mismo h1/orden de clases) */
.hero--node .hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin: 0.7rem 0 0;
  text-align: left;
  margin-bottom: 0;
  margin-inline: 0;
}
@media (min-width: 1024px) {
  .hero--node .hero-subtitle {
    font-size: 1.04rem;
    max-width: 32rem;
  }
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  gap: 0.45rem;
}
.hero__dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.18);
  cursor: pointer;
}
.hero__dot.is-active { background: #fff; }
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.28);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero__arrow--prev { left: 0.75rem; }
.hero__arrow--next { right: 0.75rem; }
.hero__arrow:hover { background: rgba(0,0,0,0.42); }
@media (max-width: 768px) {
  .hero-content--node {
    padding: 0 1rem 3.5rem;
  }
  .hero-content__dock {
    width: min(100%, 24rem);
  }
  .hero-actions--node {
    margin-top: 0.9rem;
    gap: 0.65rem;
  }
  .hero-actions--node .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__dots {
    bottom: 0.5rem;
  }
  .hero__arrow { width: 1.95rem; height: 1.95rem; font-size: 1.2rem; }
  .hero__arrow--prev { left: 0.45rem; }
  .hero__arrow--next { right: 0.45rem; }
}

/* ── BANNER (páginas internas) ───────────────────────────── */
.page-banner {
  background: var(--c-secondary);
  padding: 4rem 0 2.5rem;
  margin-top: 0;
}
.page-banner h1 { color: #fff; }
.page-banner p  { color: rgba(255,255,255,0.65); margin-top: 0.75rem; font-size: 1.0625rem; }

/* ── BOTONES ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-primary);
  color: var(--c-primary-fg);
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: hsl(43, 32%, 58%);
  border-color: hsl(43, 32%, 58%);
  color: var(--c-primary-fg);
}

.btn-outline {
  background: transparent;
  color: var(--c-gold);
  border-color: var(--c-gold);
}
.btn-outline:hover { background: var(--c-gold); color: #fff; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Outline hero (demo Node) */
.btn-hero-outline {
  background: transparent;
  color: var(--c-secondary-fg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: none;
  letter-spacing: 0.02em;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--node {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
}
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-dark {
  background: var(--c-dark);
  color: #fff;
  border-color: var(--c-dark);
}
.btn-dark:hover { background: var(--c-dark-mid); }

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.75rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 0.9375rem; }

/* ── CARD ────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-2px); }
.card-body   { padding: 1.5rem; }
.card-image  { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-image-tall { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* ── PROJECT CARD ────────────────────────────────────────── */
.project-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.project-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s;
}
.project-card:hover .project-card-img { transform: scale(1.03); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,35,42,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-info {
  padding: 1.25rem;
  background: var(--c-surface);
}
.project-card-info h3 { font-size: 1.0625rem; margin-bottom: 0.375rem; }
.project-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--c-muted);
  flex-wrap: wrap;
}

/* ── UNIT CARD ───────────────────────────────────────────── */
.unit-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface); }
.unit-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.unit-card-body { padding: 1.25rem; }
.unit-card-price { font-family: var(--font-display); font-size: 1.25rem; color: var(--c-gold); }
.unit-card-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.75rem 0; font-size: 0.8125rem; color: var(--c-muted); }
.unit-card-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-success { background: #DCFCE7; color: #15803D; }
.badge-warning { background: #FEF3C7; color: #B45309; }
.badge-error   { background: #FEE2E2; color: #B91C1C; }
.badge-info    { background: #DBEAFE; color: #1D4ED8; }
.badge-muted   { background: var(--c-border); color: var(--c-muted); }

/* ── SERVICE CARD ────────────────────────────────────────── */
.service-card {
  padding: 2rem;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  border-color: var(--c-gold);
  box-shadow: 0 4px 24px rgba(184,160,124,0.15);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--c-gold-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--c-gold-hover);
}

/* ── SECTION TITLE ───────────────────────────────────────── */
.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-title .eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.75rem;
}
.section-title h2 { margin-bottom: 1rem; }
.section-title p  { color: var(--c-text-mid); font-size: 1.125rem; }

/* ── KPI BAR ─────────────────────────────────────────────── */
.kpi-bar {
  background: var(--c-dark);
  padding: 3.5rem 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
}
.kpi-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
}

.kpi-bar--node {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 3.25rem 0;
}
@media (min-width: 1024px) {
  .kpi-bar--node { padding: 3.5rem 0; }
}
.kpi-grid--node {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 1024px) {
  .kpi-grid--node { grid-template-columns: repeat(4, 1fr); }
}
.kpi-item-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.kpi-item-node__icon {
  color: var(--c-primary);
  line-height: 0;
}
.kpi-item-node__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-text);
}
.kpi-item-node__label {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--c-muted);
}

/* ── Home: secciones tipo demo ───────────────────────────── */
.section--node { padding: 4rem 0; }
@media (min-width: 1024px) {
  .section--node { padding: 5.5rem 0; }
}
.section--muted-node {
  padding: 4rem 0;
  background: hsl(210, 12%, 93%);
}
@media (min-width: 1024px) {
  .section--muted-node { padding: 5.5rem 0; }
}
.section-head-node {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-head-node__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.35rem;
}
.section-head-node__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-muted);
  margin: 0;
}
.section-head-node__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-primary);
}
.section-head-node__link:hover { text-decoration: underline; }
@media (max-width: 1023px) {
  .section-head-node__link { display: none; }
}

.grid-projects-node {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-projects-node { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-projects-node { grid-template-columns: repeat(4, 1fr); }
}

.home-project-card {
  display: block;
  color: inherit;
}
.home-project-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.home-project-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.home-project-card:hover .home-project-card__img { transform: scale(1.05); }
.lw-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  border-radius: var(--radius);
}
.lw-pill--terminado {
  background: hsl(210, 18%, 35%);
  color: #fff;
}
.lw-pill--obra {
  background: hsl(43, 32%, 64%);
  color: hsl(210, 22%, 18%);
}
.lw-pill--pozo {
  background: hsl(210, 10%, 58%);
  color: #fff;
}
.home-project-card__body { margin-top: 0.75rem; }
.home-project-card__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.home-project-card:hover .home-project-card__name { color: var(--c-primary); }
.home-project-card__meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--c-muted);
  margin: 0.15rem 0 0;
}

.grid-units-node {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-units-node { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-units-node { grid-template-columns: repeat(3, 1fr); }
}
.home-unit-card {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.25s;
}
.home-unit-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.home-unit-card__media { position: relative; overflow: hidden; }
.home-unit-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.home-unit-card:hover .home-unit-card__img { transform: scale(1.05); }
/* En tarjetas de unidades, reutilizamos lw-pill con paleta de proyecto, pero anclado arriba-derecha */
.home-unit-card__media .lw-pill {
  left: auto;
  right: 0.75rem;
}
.home-unit-card__body { padding: 1rem; }
.home-unit-card__project {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-primary);
  margin: 0 0 0.25rem;
}
.home-unit-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--c-text);
}
.home-unit-card__specs {
  font-size: 0.9375rem;
  color: var(--c-text-mid);
  margin: 0 0 0.75rem;
}
.home-unit-card__price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}

.services-node-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.services-node-sub {
  font-family: var(--font-body);
  text-align: center;
  color: var(--c-muted);
  margin-bottom: 3rem;
}
.grid-services-node {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-services-node { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-services-node { grid-template-columns: repeat(4, 1fr); }
}
.home-service-card {
  padding: 1.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s;
}
.home-service-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); }
.home-service-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.home-service-card__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--c-muted);
  flex: 1;
  margin-bottom: 1rem;
}

/* ── Servicios (página — stack tipo demo) ───────────────── */
.page-intro-services {
  padding: 3rem 0 0;
  background: var(--c-bg);
  text-align: center;
}
.page-intro-services .container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-intro-services__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 auto 0.35rem;
  max-width: 48rem;
}
.page-intro-services__sub {
  font-family: var(--font-body);
  color: var(--c-muted);
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1rem;
}
.section-services-node {
  padding: 2rem 0 4rem;
  background: var(--c-bg);
}
.services-stack-node { display: flex; flex-direction: column; gap: 2rem; }
.service-card-node {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
@media (min-width: 1024px) {
  .service-card-node { padding: 2rem; }
}
.service-card-node__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .service-card-node__row {
    flex-direction: row;
    align-items: flex-start;
  }
}
.service-card-node__iconwrap {
  padding: 0.85rem;
  background: hsl(210, 12%, 93%);
  border-radius: var(--radius);
  width: fit-content;
  flex-shrink: 0;
  color: var(--c-primary);
}
.service-card-node__icon {
  width: 28px;
  height: 28px;
  display: block;
}
.service-card-node__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-card-node__lead {
  font-family: var(--font-body);
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-card-node__desc { margin-bottom: 1rem; }
.service-card-node__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .service-card-node__features { grid-template-columns: repeat(2, 1fr); }
}
.service-card-node__features li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card-node__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
}

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  flex-shrink: 0;
  background: var(--c-secondary);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; font-family: var(--font-display); }
.cta-banner p  { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.0625rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  flex-shrink: 0;
  background: var(--c-secondary);
  padding: 3rem 0 1.5rem;
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-logo-img {
  height: 4.1rem;
  width: auto;
  max-width: min(100%, 340px);
  object-fit: contain;
  object-position: left;
  margin-bottom: 1.25rem;
  opacity: 0.95;
}
@media (min-width: 640px) {
  .footer-logo-img { height: 4.65rem; }
}
.footer-logo-text { display: none; }
/* Isotipo + wordmark o logo ancho (columna marca) + línea gris bajo el bloque */
.brand-lockup--footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  align-content: flex-start;
  row-gap: 0;
  column-gap: 1rem;
  margin-bottom: 1.1rem;
}
.brand-lockup--footer::after {
  content: '';
  flex: 0 0 100%;
  width: 100%;
  height: 3px;
  min-height: 3px;
  margin-top: 0.12rem;
  background: rgba(255, 255, 255, 0.38);
  border: none;
  pointer-events: none;
  opacity: 0.95;
}
.brand-lockup--footer.brand-lockup--isotipo .brand-lockup__mark {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  object-position: left;
  flex-shrink: 0;
  opacity: 0.95;
}
.brand-lockup--footer .brand-lockup__mark--full {
  display: block;
  height: 2.6rem;
  max-width: min(100%, 300px);
  object-fit: contain;
  object-position: left;
  margin-bottom: 0;
  opacity: 0.95;
}
@media (min-width: 640px) {
  .brand-lockup--footer.brand-lockup--isotipo .brand-lockup__mark { height: 2.8rem; max-width: 88px; }
  .brand-lockup--footer .brand-lockup__mark--full { height: 2.9rem; }
}
.brand-lockup--footer .brand-lockup__wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
  min-width: 0;
}
.brand-lockup--footer .brand-lockup__line1 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
}
.brand-lockup--footer .brand-lockup__line2 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gold, var(--c-primary));
  line-height: 1.1;
}
/* Fila bajo el divisor: derecha, compacto (sobre la franja con ©) */
.brand-lockup--footer-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  opacity: 0.9;
  max-width: 12rem;
}
.brand-lockup--footer-bar.brand-lockup--isotipo .brand-lockup__mark {
  height: 1.4rem;
  max-width: 2.1rem;
  object-fit: contain;
}
.brand-lockup--footer-bar .brand-lockup__line1 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
  display: block;
  max-width: 11em;
}
.brand-lockup--footer-bar .brand-lockup__line2 {
  font-size: 0.52rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  display: block;
}
.brand-lockup--footer-bar:not(.brand-lockup--isotipo) .brand-lockup__wordmark {
  gap: 0.12em;
}
.brand-lockup--footer-bar:not(.brand-lockup--isotipo) .brand-lockup__line1 { font-size: 0.62rem; }
.brand-lockup--footer-bar:not(.brand-lockup--isotipo) .brand-lockup__line2 { font-size: 0.5rem; }
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
  color: rgba(255,255,255,0.7);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--c-primary); }
.footer-col .social-links { margin-top: 0.9rem; }
.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.625rem;
  color: rgba(255,255,255,0.65);
}
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}
.footer-bottom__copy { flex: 1 1 10rem; min-width: 0; }
.footer-bottom__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1.1rem;
  margin-left: auto;
  max-width: 100%;
  flex: 0 1 auto;
}
.footer-credit { color: rgba(255, 255, 255, 0.3); white-space: normal; }
.footer-bottom a { color: rgba(255, 255, 255, 0.4); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── GALERÍA ─────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
.gallery-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: opacity 0.2s; }
.gallery-img:hover { opacity: 0.85; }

/* lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.92); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: #fff; font-size: 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── DETALLE ─────────────────────────────────────────────── */
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3.5rem; align-items: start; }
.detail-sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
.detail-info-box {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--c-border);
}
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.detail-info-item label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.25rem;
}
.detail-info-item span { font-size: 1.0625rem; font-weight: 500; }
.detail-price { font-family: var(--font-display); font-size: 2rem; color: var(--c-gold); font-weight: 700; }
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sticky { position: static; }
}

/* ── FORMULARIO ──────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--c-text-mid); }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color 0.2s;
  font-size: 0.9375rem;
}
.form-control:focus { outline: none; border-color: var(--c-gold); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }

/* ── FILTROS ─────────────────────────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--c-border);
  border-radius: 2rem;
  font-size: 0.8125rem;
  cursor: pointer;
  background: var(--c-surface);
  color: var(--c-text-mid);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--c-gold); color: var(--c-gold); }
.filter-btn.active { background: var(--c-gold); border-color: var(--c-gold); color: #fff; }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.8125rem; color: var(--c-muted); align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb-sep { opacity: 0.4; }

/* ── EQUIPO ──────────────────────────────────────────────── */
.team-card { text-align: center; }
.team-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--c-gold-light);
}
.team-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--c-gold-light);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--c-gold);
}
.team-name { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.team-role { font-size: 0.8125rem; color: var(--c-gold); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── BLOG ────────────────────────────────────────────────── */
.post-card { background: var(--c-surface); border-radius: var(--radius-lg); overflow: hidden; }
.post-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-body { padding: 1.5rem; }
.post-card-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--c-muted); margin-bottom: 0.75rem; }
.post-card-title { font-size: 1.125rem; margin-bottom: 0.625rem; line-height: 1.3; }
.post-card-excerpt { font-size: 0.9rem; color: var(--c-text-mid); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── WHATSAPP FLOAT ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  z-index: 90;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ── RICH TEXT CONTENT ───────────────────────────────────── */
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.prose p  { margin-bottom: 1.25rem; color: var(--c-text-mid); line-height: 1.8; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose ul li { margin-bottom: 0.5rem; color: var(--c-text-mid); }
.prose strong { color: var(--c-text); }

/* ── ALERTS / FEEDBACK ───────────────────────────────────── */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.alert-success { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.alert-error   { background: #FEE2E2; color: #B91C1C; border: 1px solid #FECACA; }

/* ── UTILITY ─────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.py-8 { padding: 4rem 0; }
.hidden { display: none !important; }

/* ── ANIMACIONES ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ── Page shell (listados / interiores, estilo demo) ─────── */
.page-shell {
  padding: 3rem 0 1rem;
  background: var(--c-bg);
  text-align: center;
}
@media (min-width: 1024px) {
  .page-shell { padding: 4rem 0 1.25rem; }
}
.page-shell + .section { padding-top: 0; }
.page-shell__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 auto 0.5rem;
  max-width: 48rem;
  color: var(--c-text);
}
.page-shell__sub {
  color: var(--c-muted);
  font-size: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.65;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--c-primary); }

.filters--node {
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.filters--node .filter-btn {
  border: none;
  border-radius: var(--radius);
  background: hsl(210, 12%, 93%);
  color: var(--c-muted);
}
.filters--node .filter-btn:hover {
  background: hsl(210, 12%, 88%);
  color: var(--c-text);
}
.filters--node .filter-btn.active {
  background: var(--c-primary);
  color: var(--c-primary-fg);
}

.select-filters-node {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.select-filters-node select {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
}

.grid-listing-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-listing-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-listing-3 { grid-template-columns: repeat(3, 1fr); }
}

.post-card-link-node {
  display: block;
  color: inherit;
}
.post-card-link-node__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: transform 0.45s ease;
}
.post-card-link-node:hover .post-card-link-node__img { transform: scale(1.02); }
.post-card-link-node__cat {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.post-card-link-node__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.35rem 0 0.5rem;
  transition: color 0.2s;
}
.post-card-link-node:hover .post-card-link-node__title { color: var(--c-primary); }
.post-card-link-node__excerpt {
  font-size: 0.875rem;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.post-card-link-node__date {
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-top: 0.75rem;
}

/* Ficha de proyecto: info + galería en dos columnas; miniaturas abajo o al lado (sin “infinito” de gigantes) */
.project-detail-layout {
  display: grid;
  gap: 1.5rem 2.25rem;
  align-items: start;
  margin: 0.5rem 0 1.5rem;
}
@media (min-width: 1024px) {
  .project-detail-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
  .section--project-detail .project-detail-layout__info { max-width: 100%; }
}
.project-detail-feature {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-border);
  max-height: min(62vh, 34rem);
}
.project-detail-feature__img {
  width: 100%;
  height: auto;
  max-height: min(62vh, 34rem);
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
  vertical-align: top;
}
.project-detail-feature__img:hover { opacity: 0.98; }
.project-detail-thumbs {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  width: 100%;
}
.project-detail-thumbs li { margin: 0; }
.project-detail-thumb {
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--c-border);
  width: 4.25rem;
  height: 3.2rem;
  flex: 0 0 auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.project-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.project-detail-thumb.is-active,
.project-detail-thumb:hover { border-color: var(--c-primary); }
.project-detail-thumb:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-color: var(--c-primary);
}
@media (min-width: 1280px) {
  .project-detail-thumb { width: 4.5rem; height: 3.4rem; }
}

.detail-intro-max {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.detail-status-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}
.detail-meta-row__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.detail-meta-row__item svg {
  flex-shrink: 0;
  color: var(--c-primary);
  opacity: 0.85;
}

.unit-detail-2col {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .unit-detail-2col { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.unit-detail-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.unit-detail-hero .gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.unit-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.unit-detail-thumbs .gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.unit-detail-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.unit-detail-spec-cell {
  padding: 0.75rem 1rem;
  background: hsl(210, 12%, 93%);
  border-radius: var(--radius);
}
.unit-detail-spec-cell label {
  display: block;
  font-size: 0.6875rem;
  color: var(--c-muted);
  margin-bottom: 0.2rem;
}
.unit-detail-spec-cell span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-text);
}
.unit-feature-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  background: hsl(210, 12%, 93%);
  color: var(--c-text);
  border-radius: var(--radius);
}
.btn-whatsapp-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-whatsapp-node:hover { background: #15803d; color: #fff; }

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 0 auto 4rem;
  max-width: 64rem;
}
@media (min-width: 1024px) {
  .about-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.about-stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.about-stat-card__icon {
  color: var(--c-primary);
  margin: 0 auto 0.75rem;
  display: flex;
  justify-content: center;
}
.about-stat-card__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}
.about-stat-card__label {
  font-size: 0.875rem;
  color: var(--c-muted);
}
.about-team-wrap {
  margin-top: 0.5rem;
}
.about-team-heading {
  text-align: center;
  margin-bottom: 2rem !important;
}

/* Equipo: columnas centradas; con 2 o 3 personas no queda pegado a la izquierda */
.team-grid-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-content: center;
  justify-items: center;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .team-grid-about {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 17.5rem));
    justify-content: center;
  }
}
.team-member-about {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-member-about__photo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: grayscale(1);
}
.team-member-about__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.team-member-about__role {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-page-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.contact-aside-node { position: sticky; top: calc(var(--nav-h) + 2rem); }
@media (max-width: 899px) {
  .contact-aside-node { position: static; }
}
.contact-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  margin-top: 1.5rem;
  min-height: 220px;
}
.contact-map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}
.contact-info-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-row__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: hsl(43, 28%, 88%);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-row__label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact-info-row__val {
  font-size: 0.875rem;
  color: var(--c-muted);
}
.contact-info-row__val a { color: var(--c-primary); }

.not-found-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(210, 12%, 93%);
  padding: 3rem 1.5rem;
  text-align: center;
}
.not-found-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.not-found-page p {
  color: var(--c-muted);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}
.not-found-page a {
  color: var(--c-primary);
  text-decoration: underline;
  font-weight: 500;
}
.not-found-page a:hover { color: var(--c-gold-hover); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero-title { font-size: 2.25rem; }
  /* .hero--node: no forzar título mínimo aquí — gana .hero--node .hero-title (más abajo) */
  .detail-info-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
