/* ETS Administración — estilos del sitio
   Diseño claro, cálido y neutro. Paleta A "Salvia y arena" por defecto.
   La paleta C "Menta y marfil" se ve con index.html?paleta=c */

:root {
  /* verdes */
  --c-night: #4D7361;        /* eucalipto: pie de página y tarjetas destacadas */
  --c-forest: #7E9F8D;       /* salvia */
  --c-primary: #2E7D5E;      /* botones y enlaces */
  --c-primary-hover: #256A4F;
  --c-vivid: #2A9D73;        /* jade: íconos y detalles con vida */
  /* edificio protagonista */
  --c-tower: #48775F;        /* fachada */
  --c-tower-side: #3A624F;   /* cara lateral */
  --c-tower-top: #79A58C;    /* techo y bordes */
  --c-window: #355C4A;       /* vidrio apagado */
  --c-lit: #FFF6E4;          /* luz de las ventanas */
  --c-leaf: #6DB98E;         /* árboles */
  --c-leaf-dark: #43966C;
  /* fondos claros */
  --c-bg: #FBF9F5;           /* marfil */
  --c-bg-alt: #F3EEE6;       /* arena */
  --c-sage: #E8EEE4;         /* salvia pastel */
  /* acentos cálidos y neutros */
  --c-accent: #BF6A4B;       /* terracota: la ventana del logo y detalles puntuales */
  --c-accent-text: #9C4F35;
  --c-accent-soft: #F1E8DA;  /* lino */
  --c-glow: #EADBC2;         /* champaña */
  --c-glow-hover: #F0E5D3;
  /* ilustración */
  --c-sky-1: #F8F6F1; --c-sky-2: #F2ECE2; --c-sky-3: #E9DCC6; --c-sun: #FFFDF7;
  --c-hill-1: #DCE6D8; --c-hill-2: #C3D4C3; --c-city: #B2C5B8;
  /* texto */
  --c-text: #2C4A3D;
  --c-text-soft: #5A665F;
  --c-line: #E6DFD3;
  --c-on-dark: #FFFFFF;
  --c-on-dark-soft: #F4F7F4;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: 110%;
  --container: 1200px;
  --gutter: 28px;
  --section-y: clamp(5rem, 9vw, 8rem);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow: 0 28px 56px -32px rgba(77, 96, 86, .42);
}

/* C: Menta y marfil */
:root[data-paleta="c"] {
  --c-night: #3F7568; --c-forest: #78A699; --c-primary: #1A7F69; --c-primary-hover: #146B58; --c-vivid: #17A585;
  --c-tower: #3E8270; --c-tower-side: #316B5C; --c-tower-top: #6FB3A2; --c-window: #2F6A5B; --c-lit: #FFF7E8;
  --c-leaf: #62C3A2; --c-leaf-dark: #2E9A7B;
  --c-bg: #FAFAF6; --c-bg-alt: #F1F2EC; --c-sage: #E2F0EA;
  --c-accent: #BF6A4B; --c-accent-text: #9C4F35; --c-accent-soft: #EFE8DA;
  --c-glow: #ECE2CF; --c-glow-hover: #F2EADD;
  --c-sky-1: #F5F8F4; --c-sky-2: #EAF2EC; --c-sky-3: #DDEBE3; --c-sun: #FFFFFA;
  --c-hill-1: #D6E8DE; --c-hill-2: #BCD7C9; --c-city: #ACCDC0;
  --c-text: #234A40; --c-text-soft: #4F625A; --c-line: #E0E6DF;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--c-text); }

h1, h2 {
  margin: 0;
  font-weight: 600;
  font-stretch: var(--wide);
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
/* la "ventana encendida" del logo marca cada título de sección */
h2::before {
  content: ""; display: block;
  width: 28px; height: 14px; border-radius: 3px;
  margin-bottom: 1.1rem; background: var(--c-accent);
}
h3 { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--c-vivid); outline-offset: 3px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

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

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--c-night); color: var(--c-on-dark); border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }

.small { font-size: .9375rem; color: var(--c-text-soft); }
.link-arrow { font-weight: 600; color: var(--c-primary); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: .9rem 1.8rem; font-size: 1rem; }
.btn--primary { background: var(--c-primary); color: #FFFFFF; }
.btn--primary:hover { background: var(--c-primary-hover); color: #FFFFFF; }
.btn--glow { background: var(--c-glow); color: var(--c-text); }
.btn--glow:hover { background: var(--c-glow-hover); color: var(--c-text); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }
.btn--outline { border-color: var(--c-text); color: var(--c-text); background: transparent; }
.btn--outline:hover { background: var(--c-text); color: var(--c-bg); }

/* ---------- Encabezado ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--c-text);
  background: color-mix(in srgb, var(--c-bg) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--c-line);
  transition: background-color .3s, box-shadow .3s;
}
.header.is-top { background: transparent; box-shadow: none; backdrop-filter: none; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 84px; }
.header__logo { flex: none; color: inherit; }
.logo--h { height: 34px; width: auto; }
.logo__ventana { fill: var(--c-accent); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav__list a { color: inherit; text-decoration: none; font-size: .9375rem; font-weight: 500; padding-block: .35rem; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.nav__list a:hover { border-bottom-color: var(--c-vivid); }
.nav__actions { display: flex; gap: .6rem; }

.nav-toggle {
  display: none; align-items: center; gap: .6rem;
  min-height: 44px; padding: .5rem .25rem;
  border: 0; background: none; font: inherit; font-weight: 600; color: inherit; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* ---------- Portada: atardecer pastel ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: max(720px, 100svh);
  background: var(--c-sky-1); color: var(--c-text);
}
.hero__scene { position: absolute; inset: 0; z-index: -1; }
.skyline { width: 100%; height: 100%; max-width: none; }
/* Foto de portada: ocupa la derecha y se funde con el fondo claro para que el texto se lea bien */
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; left: auto;
  width: 62%; height: 100%; max-width: none;
  object-fit: cover; object-position: 15% 70%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}
.hero__content { position: relative; z-index: 1; padding-top: clamp(8.5rem, 18vh, 11.5rem); padding-bottom: 2rem; }
.hero__kicker { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.5rem; color: var(--c-accent-text); font-weight: 600; }
/* la rayita queda a la altura de la primera línea aunque el texto ocupe varias */
.hero__kicker::before { content: ""; flex: none; width: 30px; height: 3px; margin-top: calc(.82em - 1.5px); border-radius: 2px; background: var(--c-accent); }
.hero h1 { font-size: clamp(2.6rem, 4.9vw, 4.4rem); max-width: 14.5ch; }
.hero__lead { margin-top: 1.5rem; max-width: 33em; font-size: 1.1875rem; color: var(--c-text-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero__bottom { margin-top: auto; padding-bottom: 28px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 1.4rem 0;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 40px -30px rgba(69, 90, 78, .5);
}
.stats > div { display: flex; flex-direction: column-reverse; gap: .35rem; padding: .25rem 2rem; }
.stats > div + div { border-left: 1px solid var(--c-line); }
.stats dt { font-size: .875rem; color: var(--c-text-soft); }
.stats dd { margin: 0; color: var(--c-primary); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; font-stretch: var(--wide); letter-spacing: -.02em; line-height: 1; }
.stats__cert a { display: inline-flex; align-items: center; gap: .5rem; color: var(--c-primary); text-decoration: none; }
.stats__cert a:hover { color: var(--c-text); }
.stats__cert .icon { width: 1.6rem; height: 1.6rem; }

/* Ilustración (los colores vienen de la paleta) */
.s-night { fill: var(--c-sky-1); }
.s-stars { display: none; }
.s-mount-back { fill: var(--c-hill-1); }
.s-mount-front { fill: var(--c-hill-2); }
.s-city rect { fill: var(--c-city); }
.s-lit rect { fill: var(--c-lit); }
.s-tower-front { fill: var(--c-tower); }
.s-tower-side { fill: var(--c-tower-side); }
.s-tower-top, .s-tower-edge { fill: var(--c-tower-top); }
.s-tower-light { fill: #FFFFFF; opacity: .14; }
.s-rails rect { fill: var(--c-tower-top); opacity: .45; }
.s-tank, .s-antenna, .s-trunk { fill: var(--c-tower-side); }
.s-leaf { fill: var(--c-leaf); }
.s-leaf-dark { fill: var(--c-leaf-dark); }
.s-side .a { fill: var(--c-lit); }
.skyline .w-side { fill: var(--c-window); opacity: .85; }
.s-beacon { fill: var(--c-accent); }
.s-marquee { fill: var(--c-accent); }
.s-lobby { fill: var(--c-lit); opacity: .6; }
.s-door { fill: var(--c-lit); }
.s-ground { fill: var(--c-city); }
/* Las ventanas apagadas son vidrio; la luz aparece encima, una sola vez al cargar */
.skyline .w { fill: var(--c-window); }
.skyline .l { fill: var(--c-lit); opacity: 0; animation: aparecer .6s ease-out var(--d) forwards; }
.skyline .l--acento { fill: var(--c-accent); }
.skyline .gl { fill: var(--c-glow); opacity: 0; animation: aparecer .9s ease-out var(--d) forwards; }
.skyline .gl--acento { fill: var(--c-accent); }
.skyline .a { opacity: 0; animation: aparecer .8s ease-out var(--d) forwards; }
@keyframes aparecer { to { opacity: 1; } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }
.section--sage { background: var(--c-sage); }
/* sección cálida destacada (fortalezas y cotización) */
.section--night {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 255, 255, .7), transparent 70%),
    var(--c-sage);
}
.section--night p { color: var(--c-text-soft); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 5rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--c-text-soft); max-width: 32em; }
.section-head--center { display: block; text-align: center; }
.section-head--center h2 { max-width: 20ch; margin-inline: auto; }
.section-head--center h2::before { margin-inline: auto; }

/* ---------- Zona copropietarios ---------- */
.resident { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(3rem, 6vw, 5rem); align-items: center; }
.resident__intro h2 { margin-bottom: 1.25rem; }
.resident__intro > p { max-width: 30em; }
.stack-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; margin: 2rem 0 1.5rem; }

.actions { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(136px, auto); gap: 14px; margin: 0; padding: 0; list-style: none; }
.action a {
  display: flex; flex-direction: column; gap: .7rem; height: 100%;
  padding: 1.25rem; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c-sage) 70%, var(--c-bg));
  color: var(--c-text); text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.action a:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--c-text); }
.action__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--c-bg); color: var(--c-vivid); }
.action__title { font-weight: 600; line-height: 1.3; }
.action__text { font-size: .9375rem; color: var(--c-text-soft); }
.action--feature { grid-row: span 2; }
.action--feature a {
  justify-content: flex-end; padding: 1.5rem; color: var(--c-on-dark); hyphens: auto;
  background:
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--c-glow) 55%, transparent), transparent 55%),
    linear-gradient(165deg, var(--c-forest), var(--c-night) 70%);
}
.action--feature a:hover { color: var(--c-on-dark); }
.action--feature .action__icon { width: 58px; height: 58px; border-radius: 18px; background: var(--c-glow); color: var(--c-text); margin-bottom: auto; }
.action--feature .action__icon .icon { width: 28px; height: 28px; }
.action--feature .action__title { font-size: 1.4rem; letter-spacing: -.015em; line-height: 1.15; }
.action--feature .action__text { color: var(--c-on-dark-soft); }
.action--wide { grid-column: span 2; }
.action--wide a { background: var(--c-accent-soft); }
.action--wide .action__icon { color: var(--c-vivid); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem clamp(3rem, 7vw, 6rem); align-items: center; }
.about__visual { position: relative; padding: 0 2.5rem 5rem 0; }
/* Ilustración del conjunto residencial, en forma de arco con un marco terracota desplazado */
.about__arch { position: relative; isolation: isolate; }
.about__arch::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translate(16px, 16px);
  border: 1.5px solid var(--c-accent);
  border-radius: 50% 50% 24px 24px / 39.3% 39.3% 24px 24px;
}
img.about__art { aspect-ratio: 440 / 560; object-fit: cover; object-position: center 45%; }
.about__art {
  display: block; width: 100%; height: auto;
  border-radius: 50% 50% 24px 24px / 39.3% 39.3% 24px 24px;
  box-shadow: var(--shadow);
}
.about__art .a-sun { fill: var(--c-glow); opacity: .9; }
.about__art .a-sun-ring { fill: none; stroke: var(--c-glow); stroke-width: 1.5; opacity: .6; }
.about__art .a-bird path { fill: none; stroke: var(--c-text-soft); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.about__art .a-glow { fill: var(--c-glow); }
.about__art .a-fin { fill: var(--c-tower-top); opacity: .55; }
.about__art .a-slab { fill: var(--c-tower-top); opacity: .6; }
.about__art .a-hedge { fill: var(--c-leaf-dark); }
.about__art .a-shadow { fill: var(--c-text); opacity: .1; }
.about__art .a-deck { fill: var(--c-glow); }
.about__art .a-pool { fill: color-mix(in srgb, var(--c-vivid) 35%, #FFFFFF); }
.about__art .a-ripple { fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.about__art .a-person1 { fill: var(--c-accent); }
.about__art .a-person2 { fill: var(--c-primary); }
.about__art .a-head { fill: var(--c-tower-side); }
.about__art .a-cloud { fill: #FFFFFF; opacity: .85; }
.about__art .a-hill1 { fill: var(--c-hill-1); }
.about__art .a-hill2 { fill: var(--c-hill-2); }
.about__art .a-lawn { fill: color-mix(in srgb, var(--c-leaf) 45%, var(--c-hill-2)); }
.about__art .a-path { fill: var(--c-glow); }
.about__art .a-front { fill: var(--c-tower); }
.about__art .a-side { fill: var(--c-tower-side); }
.about__art .a-top { fill: var(--c-tower-top); }
.about__art .a-shine { fill: #FFFFFF; opacity: .14; }
.about__art .a-win { fill: var(--c-window); }
.about__art .a-lit { fill: var(--c-lit); }
.about__art .a-acc { fill: var(--c-accent); }
.about__art .a-rail { fill: var(--c-tower-top); opacity: .5; }
.about__art .a-lobby { fill: var(--c-lit); opacity: .6; }
.about__art .a-door { fill: var(--c-lit); }
.about__art .a-leaf { fill: var(--c-leaf); }
.about__art .a-leaf-dark { fill: var(--c-leaf-dark); }
.about__art .a-trunk { fill: var(--c-tower-side); }
.about__art .a-booth-body { fill: var(--c-bg); }
.about__art .a-roof { fill: var(--c-accent); }
.badge {
  position: absolute; display: flex; align-items: center; gap: .85rem;
  padding: 1rem 1.25rem; border-radius: var(--r-md);
  background: var(--c-bg); box-shadow: var(--shadow);
}
.badge--year { left: -14px; top: 20%; flex-direction: column; align-items: flex-start; gap: .15rem; }
.badge__big { font-size: 2.6rem; font-weight: 600; font-stretch: var(--wide); letter-spacing: -.02em; line-height: 1; color: var(--c-primary); }
.badge__text { font-size: .875rem; line-height: 1.4; color: var(--c-text-soft); }
.badge__text strong { display: block; color: var(--c-text); font-size: .9375rem; }
.badge--cert { left: 10%; bottom: 0; max-width: 320px; }
.badge__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--c-vivid) 14%, var(--c-bg)); color: var(--c-vivid); }

.about__text h2 { margin-bottom: 1.5rem; max-width: 15ch; }
.about__text > p { max-width: 36em; }
.quote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-radius: var(--r-md); background: var(--c-bg); border-left: 4px solid var(--c-accent); }
.quote p { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; font-stretch: 105%; letter-spacing: -.01em; line-height: 1.35; }
.values { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.values span { padding: .4rem .9rem; border-radius: 999px; background: var(--c-bg); border: 1px solid var(--c-line); font-size: .875rem; }

/* ---------- Fortalezas ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar {
  padding: clamp(1.75rem, 3vw, 2.25rem); border-radius: var(--r-lg);
  background: var(--c-bg); box-shadow: 0 1px 0 var(--c-line);
}
.pillar__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; margin-bottom: 1.5rem; background: color-mix(in srgb, var(--c-vivid) 14%, var(--c-bg)); color: var(--c-vivid); }
.pillar__icon .icon { width: 28px; height: 28px; }
.pillar h3 { margin-bottom: .75rem; font-size: 1.4rem; font-stretch: var(--wide); letter-spacing: -.015em; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.service { padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--r-lg); }
.service--sage { grid-column: span 7; background: var(--c-sage); }
.service--forest { grid-column: span 5; background: var(--c-night); color: var(--c-on-dark); }
.service--alt { grid-column: span 5; background: var(--c-bg-alt); }
.service--accent { grid-column: span 7; background: var(--c-accent-soft); }
.service__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--c-bg); color: var(--c-vivid); }
.service--forest .service__icon { background: var(--c-glow); color: var(--c-text); }
.service--accent .service__icon { color: var(--c-vivid); }
.service h3 { margin: 1.5rem 0 .6rem; font-size: 1.6rem; font-stretch: var(--wide); letter-spacing: -.015em; }
.service > p { color: var(--c-text-soft); max-width: 34em; }
.service--forest > p { color: var(--c-on-dark-soft); }
.service ul { display: grid; gap: .6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.service li { display: flex; gap: .65rem; align-items: flex-start; }
.service li .icon { flex: none; width: 20px; height: 20px; margin-top: .2rem; color: var(--c-vivid); stroke-width: 2.4; }
.service--forest li .icon { color: var(--c-glow); }
.service--accent li .icon { color: var(--c-vivid); }

/* ---------- Proceso ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; top: 28px; left: 28px; right: calc((100% - 6rem) / 5 - 28px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--c-vivid) 0 8px, transparent 8px 14px); opacity: .7;
}
.timeline__step { position: relative; }
.timeline__num {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 1.25rem; border-radius: 50%;
  background: var(--c-primary); color: #FFFFFF;
  font-size: 1.25rem; font-weight: 600; font-stretch: var(--wide);
  box-shadow: 0 0 0 6px var(--c-sage);
}
.timeline__step:last-child .timeline__num { background: var(--c-accent-text); }
.timeline__step h3 { margin-bottom: .5rem; }
.timeline__step p { color: var(--c-text-soft); font-size: 1rem; }
.timeline__cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 7vw, 6rem); align-items: center; }
.team__text h2 { margin-bottom: 1.5rem; max-width: 14ch; }
.team__text p { max-width: 34em; }
.org { display: grid; gap: 16px; }
.org__branch { padding: 1.5rem; border-radius: var(--r-lg); background: var(--c-bg-alt); }
.org__lead { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: .6rem 1.1rem; border-radius: 999px; background: var(--c-night); color: var(--c-on-dark); font-weight: 600; }
.org__lead .icon { width: 18px; height: 18px; color: var(--c-glow); }
.org ul { display: grid; gap: .5rem; margin: 0 0 0 1.4rem; padding: 0 0 0 1.25rem; list-style: none; border-left: 2px solid var(--c-line); }
.org li { position: relative; padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--c-bg); font-weight: 500; }
.org li::before { content: ""; position: absolute; left: calc(-1.25rem - 2px); top: 50%; width: 1.25rem; border-top: 2px solid var(--c-line); }

/* ---------- Copropiedades ---------- */
.clients { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.client {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--c-bg);
  transition: transform .25s, box-shadow .25s;
}
.client:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.client__art { width: 100%; height: auto; aspect-ratio: 200 / 140; }
img.client__art { object-fit: cover; }
.m-tower { fill: var(--c-tower); }
.m-side { fill: var(--c-tower-side); }
.m-on { fill: var(--c-lit); }
.m-off { fill: var(--c-window); }
.client__name { padding: 1.1rem 1.25rem 0; font-size: 1.125rem; font-weight: 600; font-stretch: 108%; line-height: 1.25; }
.client__type { padding: .25rem 1.25rem 1.3rem; font-size: .875rem; color: var(--c-text-soft); }

/* ---------- Transiciones con colinas ---------- */
.ridge { position: relative; z-index: 1; line-height: 0; margin-bottom: -2px; }
.ridge svg { width: 100%; height: clamp(40px, 6vw, 88px); overflow: visible; }
.ridge--alt { background: var(--c-bg-alt); }
.ridge--alt path { fill: var(--c-sage); }
.ridge--sage { background: var(--c-sage); }
.ridge--sage path { fill: var(--c-night); }

/* ---------- Cotización ---------- */
.section--quote {
  background:
    radial-gradient(ellipse 55% 60% at 92% 100%, color-mix(in srgb, var(--c-glow) 55%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 45% at 8% 40%, rgba(255, 255, 255, .6), transparent 70%),
    var(--c-sage);
}
.quote-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(3rem, 6vw, 5.5rem); align-items: start; }
.quote-grid__intro h2 { margin-bottom: 1.5rem; max-width: 13ch; }
.quote-grid__intro > p { max-width: 30em; font-size: 1.125rem; }
.direct { margin: 2.5rem 0 0; padding: 0; list-style: none; }
.direct li { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; border-top: 1px solid color-mix(in srgb, var(--c-text) 14%, transparent); }
.direct__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-bg); color: var(--c-vivid); }
.direct__label { display: block; font-size: .8125rem; color: var(--c-text-soft); }
.direct a { color: var(--c-text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.direct a:hover { color: var(--c-primary); text-decoration: underline; }

.form {
  display: grid; gap: 1.2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--r-lg);
  background: var(--c-bg); color: var(--c-text);
  box-shadow: 0 40px 80px -48px rgba(69, 90, 78, .55);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.field { display: grid; gap: .4rem; }
.field__label { font-size: .875rem; font-weight: 500; color: var(--c-text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  border: 1.5px solid var(--c-line); border-radius: var(--r-sm);
  background: #FFFFFF; font: inherit; font-size: 1rem; color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 18%, transparent); }
.field [aria-invalid="true"] { border-color: #B23A26; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; color: var(--c-text-soft); }
.check input { flex: none; width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--c-primary); }
.form__error { margin: 0; padding: .8rem 1rem; border-radius: var(--r-sm); background: #FBE6DF; font-size: .9375rem; font-weight: 500; }
.section--night .form .form__error { color: #8A2A18; }
.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.form__note { margin: 0; font-size: .875rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(3rem, 7vw, 6rem); align-items: start; }
.faq__intro h2 { margin-bottom: 1.25rem; }
.faq__intro p { color: var(--c-text-soft); max-width: 28em; }
.faq__list { display: grid; gap: 10px; }
.faq__list details { border-radius: var(--r-md); background: var(--c-bg-alt); transition: background-color .2s; }
.faq__list details[open] { background: var(--c-sage); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.2rem 1.4rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background:
    linear-gradient(var(--c-text), var(--c-text)) center / 12px 2px no-repeat,
    linear-gradient(var(--c-text), var(--c-text)) center / 2px 12px no-repeat,
    var(--c-bg);
  transition: transform .25s;
}
.faq__list details[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(#FFFFFF, #FFFFFF) center / 12px 2px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center / 2px 12px no-repeat,
    var(--c-vivid);
}
.faq__list details p { padding: 0 1.4rem 1.4rem; color: var(--c-text-soft); max-width: 42em; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(3rem, 6vw, 5rem); align-items: stretch; }
.contact__info h2 { margin-bottom: 1.75rem; }
.channels { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.channels li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--r-md); background: var(--c-bg); }
.channels__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--c-sage); color: var(--c-vivid); }
.channels__label { display: block; font-size: .8125rem; color: var(--c-text-soft); }
.channels a, .channels address { font-style: normal; font-weight: 600; color: var(--c-text); text-decoration: none; overflow-wrap: anywhere; }
.channels a:hover { color: var(--c-primary); text-decoration: underline; }
.contact__map { min-height: 440px; overflow: hidden; border-radius: var(--r-lg); background: var(--c-bg); }
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; filter: saturate(.75) sepia(.1); }

/* ---------- Pie ---------- */
.footer { background: var(--c-night); color: var(--c-on-dark-soft); font-size: .9375rem; padding-top: 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.logo--s { width: 132px; height: auto; margin-bottom: 1.25rem; color: #FFFFFF; }
.footer__brand p { max-width: 22em; color: var(--c-on-dark); }
.footer__title { font-size: .875rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--c-sage); margin-bottom: 1rem; }
.footer__title::before { display: none; }
.footer ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.footer a { color: var(--c-on-dark); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { text-decoration: underline; }
.footer__base { padding-block: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .875rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #FFFFFF;
  box-shadow: 0 14px 30px -12px rgba(37, 120, 70, .6);
  transition: transform .2s, background-color .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); background: #1EBE5A; color: #FFFFFF; }

/* ---------- Página legal (política de datos) ---------- */
.legal-hero { padding: calc(84px + clamp(3rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 4rem); background: var(--c-bg-alt); }
.legal-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); max-width: 18ch; }
.legal-hero__meta { margin-top: 1.25rem; color: var(--c-text-soft); }
.legal-hero__actions { margin-top: 1.5rem; }
.legal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 2.5rem 0 0; }
.legal-summary > div { padding: 1.25rem 1.4rem; border-radius: var(--r-md); background: var(--c-bg); border: 1px solid var(--c-line); }
.legal-summary dt { font-size: .875rem; color: var(--c-text-soft); }
.legal-summary dd { margin: .3rem 0 0; font-weight: 600; color: var(--c-text); overflow-wrap: anywhere; }
.legal-summary a { color: var(--c-primary); }

.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); }
.legal-toc { position: sticky; top: 108px; max-height: calc(100vh - 132px); overflow: auto; font-size: .9rem; }
.legal-toc summary { font-weight: 600; cursor: pointer; padding: .25rem .5rem; }
.legal-toc ol { display: grid; gap: .1rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.legal-toc a { display: grid; grid-template-columns: 2rem 1fr; padding: .35rem .5rem; border-radius: 8px; color: var(--c-text-soft); text-decoration: none; line-height: 1.35; }
.legal-toc a:hover { background: var(--c-bg-alt); color: var(--c-text); }

.legal { max-width: 760px; }
.legal h2 { display: flex; align-items: baseline; gap: .8rem; font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 3.25rem 0 1rem; scroll-margin-top: 108px; }
.legal h2::before { display: none; }
.legal > section:first-child h2 { margin-top: 0; }
.legal__num { flex: none; display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .45rem; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent-text); font-size: 1rem; font-stretch: 100%; letter-spacing: 0; line-height: 1; }
.legal h3 { font-size: 1.15rem; margin: 2.25rem 0 .75rem; scroll-margin-top: 108px; }
.legal h4 { margin: 1.5rem 0 .4rem; font-size: 1rem; font-weight: 600; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal li { margin-bottom: .45rem; }
.legal blockquote { margin: 1rem 0 1.25rem; padding: 1rem 1.25rem; border-left: 3px solid var(--c-accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--c-bg-alt); }
.legal-defs { margin: 0; }
.legal-defs dt { margin-top: 1.1rem; font-weight: 600; }
.legal-defs dd { margin: .25rem 0 0; }
.legal sup a { padding: 0 .1em; font-size: .78em; font-weight: 600; color: var(--c-primary); text-decoration: none; }
.legal-firma { margin-top: 3rem; padding: 1.5rem 1.75rem; border-radius: var(--r-md); background: var(--c-bg-alt); }
.legal-firma p { margin: 0; }
.legal-notes { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--c-line); font-size: .875rem; color: var(--c-text-soft); }
.legal-notes h2 { margin-top: 0; font-size: 1.25rem; }
.legal-notes li { scroll-margin-top: 108px; }
.legal-notes li:target { background: var(--c-accent-soft); border-radius: 6px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.75rem;
    background: var(--c-bg); color: var(--c-text);
    box-shadow: 0 24px 40px -28px rgba(69, 90, 78, .5);
    display: none;
  }
  .nav.is-open { display: flex; }
  .header.is-open { background: var(--c-bg); box-shadow: 0 1px 0 var(--c-line); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--c-line); font-size: 1.0625rem; }
  .nav__list a:hover { border-bottom-color: var(--c-line); color: var(--c-primary); }
  .nav__actions { flex-wrap: wrap; margin-top: 1.5rem; }
  .nav__actions .btn { flex: 1 1 200px; }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .resident, .about, .team, .quote-grid, .contact, .faq, .section-head { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-toc { position: static; max-height: none; padding: .9rem 1rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-bg); }
  .legal-summary { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
  .stats > div:nth-child(3) { border-left: 0; }
  .about__visual { max-width: 520px; }
  .pillars { grid-template-columns: 1fr; }
  .service--sage, .service--forest, .service--alt, .service--accent { grid-column: span 12; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--c-night) 0 8px, transparent 8px 14px); }
  .timeline__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.25rem; padding-bottom: 1.75rem; }
  .timeline__num { grid-row: span 2; margin-bottom: 0; }
  .timeline__step h3 { align-self: end; margin-top: .9rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__content { padding-top: 7.5rem; padding-bottom: 0; }
  .hero__scene { position: relative; inset: auto; z-index: 0; order: 2; height: 470px; margin-top: 1.5rem; overflow: hidden; }
  .skyline { position: absolute; bottom: 0; left: -143.4%; width: 260%; height: auto; }
  .hero__photo {
    width: 100%; object-position: 40% 70%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
            mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  }
  .hero__bottom { order: 3; padding-top: 1rem; background: var(--c-city); }
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action--feature { grid-column: span 2; grid-row: span 1; }
  .action--feature a { min-height: 240px; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .header__inner { min-height: 72px; }
  .header__inner > .btn { min-height: 42px; padding: .5rem 1rem; white-space: nowrap; }
  .logo--h { height: 28px; }
  .hero__lead { font-size: 1.0625rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats > div { padding: .25rem 1.1rem; }
  .stats dd { font-size: 1.75rem; }
  .stats__cert dd { font-size: 1.35rem; }
  .stats__cert .icon { width: 1.25rem; height: 1.25rem; }
  .about__visual { padding: 0 1.25rem 5rem 0; }
  .badge--year { left: 0; }
  .badge--cert { left: 0; right: 1.25rem; max-width: none; }
  .form__row { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact__map, .contact__map iframe { min-height: 320px; }
  .stack-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skyline .l, .skyline .gl, .skyline .a { animation: none; opacity: 1; }
  .btn, .action a, .client, .nav__list a, .wa-float, .faq__list summary::after { transition: none; }
  .btn:hover, .action a:hover, .client:hover { transform: none; }
}
