/*
Theme Name: Imeralia
Theme URI: https://imeralia.es
Author: Imeralia · Compañía de IMER
Description: Tema a medida para Imeralia, compañía de viviendas de IMER (Segovia). Portada con fotos a pantalla completa, obra nueva, promociones finalizadas, la empresa, noticias y contacto.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Uso privado
Text Domain: imeralia
*/
/* IMER Construcción — hoja de estilos
   Concepto: escaparate sobrio al estilo de La Cambrija. Fotos grandes, mucho blanco,
   bandas alternas en gris piedra y un único azul de acento (cambiar por el color del logo). */
:root {
  --bg: #FFFFFF;          /* fondo principal */
  --stone: #F3F1EC;       /* bandas alternas */
  --stone-2: #E4E0D7;     /* huecos de foto */
  --ink: #23272B;         /* texto */
  --muted: #5B6168;       /* texto secundario */
  --line: #E2DED5;        /* bordes */
  --accent: #004878;      /* azul corporativo del logo IMER */
  --accent-ink: #00365C;
  --wa: #1E7A3A;          /* WhatsApp, oscurecido para contraste AA */
  --dark: #22262A;        /* pie */
  --on-dark: #E9E7E2;
  --font-display: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Segoe UI", Roboto, Arial, sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  --radius: 6px;
  --max: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }

.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.h-xl { font-size: clamp(32px, 4.4vw, 46px); }
.h-lg { font-size: clamp(26px, 3.2vw, 34px); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow.light { color: #DCE3EA; }
.muted { color: var(--muted); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 4px; border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-solid { background: var(--accent); color: #FFFFFF; }
.btn-solid:hover { background: var(--accent-ink); color: #FFFFFF; }
.btn-line { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-line:hover { background: var(--accent); color: #FFFFFF; }
.btn-wa { background: var(--wa); color: #FFFFFF; }
.btn-wa:hover { background: #17612E; color: #FFFFFF; }

/* ---------- cabecera ---------- */
.topbar { background: var(--stone); color: var(--muted); font-size: 13px; }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 7px; }
.topbar b { color: var(--ink); font-weight: 600; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(20, 28, 36, .08); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; transition: padding .25s; }
.site-header.is-scrolled .header-in { padding-block: 10px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo-imer { font: 700 27px/1 var(--font-display); letter-spacing: .06em; color: var(--ink); }
.logo-sub { font: 500 15px/1 var(--font-display); color: var(--accent); }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) {
  padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  border-bottom: 2px solid transparent;
}
.menu a:not(.btn):hover { color: var(--accent); }
.menu a[aria-current="page"]:not(.btn) { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.menu .btn { margin-left: 12px; min-height: 44px; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font: 600 15px var(--font-body); cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); }
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { border-bottom: 1px solid var(--line); padding: 14px 4px; }
  .menu a[aria-current="page"]:not(.btn) { border-bottom-color: var(--line); }
  .menu .btn { margin: 14px 0 0; }
}

/* ---------- fotos ---------- */
.ph { position: relative; margin: 0; overflow: hidden; background: var(--stone-2); border-radius: var(--radius); max-width: 100%; }
.ph::before { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ph[data-zoom] { cursor: zoom-in; }
.ph[data-zoom]:hover img { transform: scale(1.04); }
.r43 { aspect-ratio: 4 / 3; }

/* ---------- hero ---------- */
.hero { position: relative; color: #FFFFFF; background: #2F3A44; isolation: isolate; }
.hero-img { position: absolute; inset: 0; margin: 0; z-index: -2; background: #2F3A44; }
.hero-img::before { content: attr(data-label); position: absolute; inset: auto 0 18px; text-align: center; font-size: 12px; color: #C9D0D6; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(17, 24, 31, .48); }
.hero-in { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: clamp(110px, 16vw, 190px) clamp(90px, 12vw, 150px); }
.hero h1 { color: #FFFFFF; font-size: clamp(38px, 6vw, 60px); max-width: 14ch; }
.promo-title { letter-spacing: .06em; font-weight: 700; font-size: clamp(42px, 8vw, 80px) !important; max-width: none !important; }
.hero-sub { font-size: clamp(18px, 2vw, 21px); color: #EEF1F4; max-width: 34em; }
.link-light { color: #FFFFFF; font-weight: 600; padding: 10px 0; }
.link-light:hover { color: #DCE3EA; }

/* ---------- secciones ---------- */
.intro { padding-block: 96px 24px; text-align: center; }
.intro p { max-width: 40ch; margin-inline: auto; font: 500 clamp(21px, 2.4vw, 25px)/1.55 var(--font-display); }
@media (min-width: 700px) { .intro p { max-width: 46ch; } }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; padding-block: 64px 104px; }
.services article { display: flex; flex-direction: column; gap: 12px; }
.services h2 { font-size: 20px; }
.services p, .split-text p, .features p, .refs p { color: var(--muted); }
.ico { color: var(--accent); flex: none; }
.band { background: var(--stone); }
.band > .wrap { padding-block: 96px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about, .contact-block, .promo-intro { padding-block: 104px; }
.split-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.split-img { flex: 1 1 460px; min-height: 380px; }
.dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dots li { display: flex; align-items: center; gap: 12px; }
.dots li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.stats { flex: 1 1 420px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: center; }
.stats-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-block: 72px !important; }
.stats > div { display: flex; flex-direction: column; gap: 4px; }
.num { font: 700 clamp(36px, 4.5vw, 52px)/1.1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.stats span:last-child { color: var(--muted); font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.pb { padding-bottom: 104px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.link-more { font-weight: 600; text-decoration: none; padding: 10px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.captioned > div { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--stone); border-radius: var(--radius); padding: 32px; }
.contact-data { flex: 1 1 400px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 12px 16px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- ficha de promoción ---------- */
#galeria { padding-top: 24px; scroll-margin-top: 110px; }
.price-box { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.price-box .btn { width: 100%; }
.price { font: 700 34px/1.1 var(--font-display); color: var(--ink); }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--stone); border-radius: var(--radius); }
.tabs button { min-height: 42px; padding: 8px 20px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: #FFFFFF; }
.legal-note { font-size: 13px; font-weight: 600; color: var(--muted); max-width: 90ch; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; }
.features article { display: flex; flex-direction: column; gap: 10px; }
.features h3 { font-size: 18px; }
.cta { padding-block: 96px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta p { color: var(--muted); max-width: 46ch; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.split-text .cta-btns { justify-content: flex-start; }

/* ---------- páginas interiores ---------- */
.page-head { padding-top: 80px; display: flex; flex-direction: column; gap: 14px; }
.page-head.split { flex-direction: row; gap: 56px; }
.page-head > p { color: var(--muted); max-width: 60ch; }
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.refs .card { padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.refs h3 { font-size: 18px; }
.contact-list { margin-block: 8px; }
.map-box {
  flex: 1 1 420px; min-height: 380px; border-radius: var(--radius); background: var(--stone-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--ink);
}
.map-box span { font-weight: 600; color: var(--accent); }
.map-box small { color: var(--muted); }
.legal h2 { font-size: 22px; margin-top: 28px; scroll-margin-top: 110px; }
.legal p { color: var(--muted); max-width: 70ch; }

/* ---------- pie ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); }
.footer-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; padding-block: 64px 36px; }
.site-footer h2 { font: 600 13px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 10px; }
.site-footer p { color: #C9C6BF; font-size: 15px; line-height: 1.9; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.f-brand .logo-imer { color: #FFFFFF; }
.f-brand .logo-sub { color: #AFC4D8; }
.f-brand p { margin-top: 10px; }
.footer-base { border-top: 1px solid #3A3F44; padding-block: 18px 28px; font-size: 13px; color: #A9A6A0; }

/* ---------- WhatsApp flotante y visor ---------- */
.wa-float {
  position: fixed; z-index: 25; width: 58px; height: 58px; border-radius: 50%;
  right: calc(22px + env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center; background: var(--wa); color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.wa-float:hover { background: #17612E; color: #FFFFFF; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 14, 18, .88); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 4px; }
.lb-close { position: absolute; top: -48px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #FFFFFF; color: #23272B; font-size: 26px; line-height: 1; cursor: pointer; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar-in span:first-child { display: none; }
  .intro { padding-block: 64px 8px; }
  .services { padding-block: 48px 72px; gap: 36px; }
  .band > .wrap, .about, .contact-block, .promo-intro, .cta { padding-block: 72px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-img { min-height: 260px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ================= Estilo La Cambrija ================= */
em { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: .01em; }
h1 em, h2 em, h3 em { font-size: 1.12em; }

/* Botón píldora con flecha en círculo */
.btn-pill { border-radius: 999px; padding: 8px 8px 8px 22px; gap: 14px; background: var(--ink); color: #FFFFFF; font-weight: 500; }
.btn-pill:hover { background: var(--accent); color: #FFFFFF; }
.pill-arrow { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s; }
.btn-pill:hover .pill-arrow { transform: translateX(3px); }
.btn-pill-light { background: #FFFFFF; color: #111418; }
.btn-pill-light:hover { background: var(--accent); color: #FFFFFF; }
.btn-pill-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-pill-ghost:hover { background: var(--ink); color: #FFFFFF; }
.btn-pill.btn-wa { background: var(--wa); padding: 12px 22px; }
.menu .btn-pill { margin-left: 14px; }

/* Cabecera transparente sobre la portada y blanca al bajar */
.topbar:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)) { display: none; }
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)) { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background-color .35s, box-shadow .35s, border-color .35s; }
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .logo-imer,
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .logo-sub,
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .menu a:not(.btn),
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .menu-btn { color: #FFFFFF; }
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .menu-btn { background: transparent; border-color: rgba(255,255,255,.6); }
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .btn-pill { background: #FFFFFF; color: #111418; }
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)).is-scrolled { background: var(--bg); border-bottom-color: var(--line); }
@media (max-width: 860px) {
  .site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .menu.is-open a:not(.btn) { color: var(--ink); }
}

/* Portada a pantalla completa con vídeo o fotos en movimiento */
.hero-home { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; color: #FFFFFF; background: #0F1215; overflow: hidden; isolation: isolate; text-align: center; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease; }
.hero-slide.is-on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.hero-video.is-playing { opacity: 1; }
.hero-home::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 11, 14, .5); }
.hero-home-in { width: 100%; max-width: 1080px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding-block: 140px 120px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.hero-home h1 { color: #FFFFFF; font-weight: 400; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.01em; }
.hero-claim { font-size: clamp(22px, 3vw, 34px); font-weight: 400; }
.hero-claim em { font-size: 1.15em; }
.hero-intro { max-width: 52ch; margin-top: 34px; font-size: clamp(16px, 1.5vw, 18px); color: #E6E9EC; }
.scroll-down { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); color: #FFFFFF; display: flex; align-items: center; justify-content: center; animation: bob 2.2s ease-in-out infinite; }
.scroll-down:hover { color: #FFFFFF; background: rgba(255,255,255,.12); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* Servicios centrados */
.services-c { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 56px; padding-block: 120px; text-align: center; scroll-margin-top: 70px; }
.services-c article { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.services-c h2 { font-size: 22px; font-weight: 400; }
.services-c p { color: var(--muted); max-width: 38ch; }
.ico-lg { color: var(--ink); stroke-width: 1.2; }

.h-display { font-size: clamp(34px, 4.6vw, 56px); font-weight: 400; letter-spacing: -.01em; }

/* Promoción activa */
.promo-row { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-block: 120px; }
.promo-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.promo-text > p:not(.eyebrow) { color: var(--muted); }
.promo-pics { flex: 1.3 1 460px; position: relative; min-height: 520px; }
.pic-a { position: absolute; inset: 0 18% 14% 0; }
.pic-b { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; border: 8px solid var(--stone); }

/* Sobre nosotros */
.about-c { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-block: 120px; }
.about-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.about-text > p:not(.eyebrow) { color: var(--muted); }
.stats-c { flex: 1 1 420px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: center; }
.stats-c > div { display: flex; flex-direction: column; gap: 6px; padding-block: 20px; border-left: 1px solid var(--line); }
.stats-c > div:first-child { border-left: 0; }
.stats-c .num { font-weight: 300; color: var(--ink); font-size: clamp(36px, 4.6vw, 58px); }
.stats-c span:last-child { color: var(--muted); font-size: 14px; }

/* Carrusel de finalizadas */
.finished { padding-block: 120px; display: flex; flex-direction: column; gap: 40px; overflow: hidden; }
.car-ctrl { display: flex; gap: 10px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.car-btn:hover { background: var(--ink); color: #FFFFFF; }
.carousel { list-style: none; margin: 0; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding-block: 0 4px; padding-left: max(24px, calc((100vw - var(--max)) / 2 + 24px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); scroll-padding-left: max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
.carousel::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 min(78vw, 440px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.car-ph { aspect-ratio: 4 / 5; }
.car-cap { display: flex; flex-direction: column; }
.car-cap span { color: var(--muted); font-size: 15px; }

/* Contacto en la portada */
.contact-c { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-block: 120px; }
.contact-c > div:first-child { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-c > div:first-child > p:not(.eyebrow) { color: var(--muted); }
.contact-card { flex: 1 1 380px; background: var(--bg); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; box-shadow: 0 18px 40px rgba(20, 28, 36, .07); }

/* Aparición suave al hacer scroll (solo si el JS está activo) */
.js .reveal.pending { opacity: 0; transform: translateY(26px); }
.js .reveal { transition: opacity .9s ease, transform .9s ease; }
.hero-home .reveal.pending { transform: translateY(16px); }

@media (max-width: 600px) {
  .services-c, .promo-row, .about-c, .finished, .contact-c { padding-block: 80px; }
  .promo-pics { min-height: 380px; }
  .stats-c > div { border-left: 0; }
  .contact-card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-on { animation: none; transform: none; }
  .scroll-down { animation: none; }
  .js .reveal.pending { opacity: 1; transform: none; }
}

/* Logo IMER */
.logo { align-items: center; gap: 12px; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-white { display: none; }
.logo .logo-sub { font: 500 13px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding-left: 12px; border-left: 1px solid var(--line); }
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .logo-color { display: none; }
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .logo-white { display: block; }
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .logo .logo-sub { color: #FFFFFF; border-left-color: rgba(255,255,255,.4); }
.site-header.is-scrolled .logo-img { height: 38px; }
.f-brand .logo-img { height: 58px; margin-bottom: 6px; }
.f-social a { white-space: nowrap; }
.topbar a { color: inherit; text-decoration: none; }
@media (max-width: 600px) { .logo-img { height: 38px; } .logo .logo-sub { display: none; } }

.pill-arrow .ico, .scroll-down .ico, .car-btn .ico, .btn .ico { color: inherit; }

/* ================= Marca Imeralia + IMER ================= */
.logo { color: var(--accent); gap: 12px; align-items: center; text-decoration: none; }
.vimer-mark { width: 40px; height: 34px; flex: none; }
.vimer-word { font: 500 22px/1 "Jost", var(--font-display); letter-spacing: .24em; margin-right: -.24em; color: currentColor; }
.vimer-word small { font-size: .42em; letter-spacing: .38em; margin-left: .55em; font-weight: 500; vertical-align: .32em; }
.endorse { display: flex; flex-direction: column; gap: 3px; margin-left: 16px; padding-left: 16px; border-left: 1px solid currentColor; font: 400 11px/1.1 var(--font-body); opacity: .9; }
.imer-mini { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 "Jost", var(--font-display); letter-spacing: .2em; }
.imer-mark { width: 16px; height: 16px; flex: none; }
.site-header:has(~ main :is(.hero-home, .on-hero, .fin-hero, .hero-promo)):not(.is-scrolled) .logo { color: #FFFFFF; }
.site-header.is-scrolled .vimer-mark { width: 34px; height: 29px; }
.f-lockup { display: flex; align-items: center; gap: 12px; color: #FFFFFF; }
.f-lockup .vimer-mark { width: 46px; height: 39px; }
.f-lockup .vimer-word { font-size: 28px; }
.f-endorse { display: flex; align-items: center; gap: 8px; color: #FFFFFF !important; margin-top: 8px; }
.f-endorse .imer-mark { width: 18px; height: 18px; }
@media (max-width: 600px) { .endorse { display: none; } .vimer-word { font-size: 20px; } }
.endorse .imer-logo { height: 26px; width: auto; display: block; }
.f-endorse .imer-logo { height: 30px; width: auto; }
.site-header.is-scrolled .endorse .imer-logo { height: 22px; }


/* ================= Identidad Imeralia en toda la web ================= */
/* Etiquetas con el tejado de Imeralia */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 64'%3E%3Cg fill='none' stroke='black' stroke-width='8' stroke-linecap='square'%3E%3Cpath d='M4 28 L38 4 L72 28'/%3E%3Cpath d='M38 27 V58'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 64'%3E%3Cg fill='none' stroke='black' stroke-width='8' stroke-linecap='square'%3E%3Cpath d='M4 28 L38 4 L72 28'/%3E%3Cpath d='M38 27 V58'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.hero .eyebrow::before, .hero-home .eyebrow::before { background: currentColor; }
/* Títulos en la letra del logo */
h1, h2, h3, .h-display, .hero-home h1 { font-family: var(--font-display); }
.h-display, .hero-home h1 { font-weight: 400; }
/* Bloque de marca en La empresa */
.brand-story { padding-block: 40px 104px; }
.brand-lockup-big { flex: 1 1 420px; min-height: 320px; display: flex; align-items: center; justify-content: center; gap: 22px; background: var(--accent); color: #FFFFFF; border-radius: var(--radius); padding: 40px; }
.brand-lockup-big .vimer-mark { width: 86px; height: 72px; }
.brand-lockup-big .vimer-word { font-size: clamp(40px, 5vw, 64px); }
/* Marca de agua del tejado en las bandas de color */
.band { position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -60px; bottom: -40px; width: 360px; height: 300px; opacity: .05; pointer-events: none; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 64'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='square'%3E%3Cpath d='M4 28 L38 4 L72 28'/%3E%3Cpath d='M38 27 V58'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 64'%3E%3Cg fill='none' stroke='black' stroke-width='5' stroke-linecap='square'%3E%3Cpath d='M4 28 L38 4 L72 28'/%3E%3Cpath d='M38 27 V58'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.band > * { position: relative; z-index: 1; }

/* ================= Parte final: banda de contacto + pie ================= */
.pre-footer { position: relative; overflow: hidden; background: var(--accent); color: #FFFFFF; }
.pre-footer::after { content: ""; position: absolute; right: -40px; top: -30px; width: 520px; height: 440px; opacity: .08; background: #FFFFFF; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 64'%3E%3Cg fill='none' stroke='black' stroke-width='4' stroke-linecap='square'%3E%3Cpath d='M4 28 L38 4 L72 28'/%3E%3Cpath d='M38 27 V58'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 64'%3E%3Cg fill='none' stroke='black' stroke-width='4' stroke-linecap='square'%3E%3Cpath d='M4 28 L38 4 L72 28'/%3E%3Cpath d='M38 27 V58'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.pre-footer-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; padding-block: 104px; }
.pf-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pf-text .eyebrow { color: #CFE0EE; }
.pf-title { color: #FFFFFF; font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.1; }
.pf-text > p:last-child { color: #DCE7F0; max-width: 46ch; font-size: 18px; }
.pf-actions { flex: 0 1 auto; display: flex; flex-direction: column; gap: 22px; }
.pf-phone { display: flex; flex-direction: column; color: #FFFFFF; text-decoration: none; font: 400 clamp(38px, 4.6vw, 56px)/1 var(--font-display); letter-spacing: .02em; }
.pf-phone span { font: 500 13px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #CFE0EE; margin-bottom: 10px; }
.pf-phone:hover { color: #FFFFFF; opacity: .85; }
.pf-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-pill-outline { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.7); }
.btn-pill-outline:hover { background: #FFFFFF; color: var(--accent); }

.site-footer { background: #0F2232; color: #D6DEE6; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-block: 80px 56px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.f-brand { display: flex; flex-direction: column; gap: 14px; }
.f-claim { color: #AEBBC8 !important; max-width: 34ch; line-height: 1.6 !important; }
.f-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.f-social a { padding: 7px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 13px; color: #FFFFFF !important; text-decoration: none !important; }
.f-social a:hover { background: #FFFFFF; color: #0F2232 !important; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.site-footer .f-col h2 { font: 600 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #8FA6BA; margin: 0 0 6px; }
.f-col p { color: #D6DEE6; font-size: 15px; line-height: 1.6; margin: 0; }
.f-col p b { color: #FFFFFF; font-weight: 500; }
.f-col a { color: #D6DEE6; text-decoration: none; font-size: 15px; }
.f-col a:hover { color: #FFFFFF; text-decoration: underline; }
.f-big { font: 400 26px/1.1 var(--font-display) !important; color: #FFFFFF !important; letter-spacing: .02em; }
.f-map { display: inline-flex; align-items: center; gap: 6px; color: #FFFFFF !important; font-weight: 500; margin-top: 4px; }
.f-map .ico { color: inherit; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-nav nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer-nav a { color: #FFFFFF; text-decoration: none; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; }
.f-legal a { color: #AEBBC8; font-size: 14px; }
.site-footer .footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px 28px; font-size: 13px; color: #8FA6BA; }

/* ================= La empresa (estilo La Cambrija, azul IMER) ================= */
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.emp-hero { position: relative; isolation: isolate; color: #FFFFFF; background: #12324A; overflow: hidden; }
.emp-hero .cover-img { z-index: -2; }
.emp-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 46, 78, .92) 0%, rgba(0, 46, 78, .72) 55%, rgba(0, 46, 78, .35) 100%); }
.emp-hero-in { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: clamp(150px, 18vw, 230px) clamp(90px, 10vw, 140px); }
.emp-hero h1 { color: #FFFFFF; font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: 1.05; }
.emp-hero-in > p:last-child { max-width: 52ch; font-size: clamp(17px, 1.6vw, 20px); color: #E3ECF3; }
.eyebrow.light { color: #CFE0EE; }

.emp-exp { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; padding-block: 120px; }
.emp-exp-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.emp-exp-text > p:not(.eyebrow) { color: var(--muted); }
.emp-exp-pics { flex: 1.2 1 460px; position: relative; min-height: 560px; }
.emp-pic-a { position: absolute; inset: 0 16% 18% 0; }
.emp-pic-b { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border: 10px solid var(--bg); }
.emp-badge { position: absolute; left: -24px; bottom: 40px; width: 150px; height: 150px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font: 500 13px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 18px 40px rgba(0, 46, 78, .3); }
.emp-badge span { font: 400 54px/1 var(--font-display); letter-spacing: 0; text-transform: none; margin-bottom: 4px; }

.emp-band { position: relative; overflow: hidden; background: var(--accent); color: #FFFFFF; }
.emp-band::after { content: ""; position: absolute; left: -80px; top: -60px; width: 420px; height: 360px; opacity: .07; background: #FFFFFF; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 64'%3E%3Cg fill='none' stroke='black' stroke-width='4' stroke-linecap='square'%3E%3Cpath d='M4 28 L38 4 L72 28'/%3E%3Cpath d='M38 27 V58'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 64'%3E%3Cg fill='none' stroke='black' stroke-width='4' stroke-linecap='square'%3E%3Cpath d='M4 28 L38 4 L72 28'/%3E%3Cpath d='M38 27 V58'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.emp-band-in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 48px; padding-block: 112px; }
.emp-band .h-display { color: #FFFFFF; }
.emp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.emp-card { display: flex; flex-direction: column; gap: 14px; }
.emp-card .ph { aspect-ratio: 4 / 3; background: #0B3B5E; border-radius: 4px; }
.emp-card .ph::before { color: #9DB6CB; }
.emp-card .ph img { transition: transform .8s ease; }
.emp-card:hover .ph img { transform: scale(1.05); }
.emp-card h3 { color: #FFFFFF; font-size: 22px; font-weight: 500; margin-top: 6px; }
.emp-card p { color: #D3E1EC; }

.emp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-block: 96px; text-align: center; }
.emp-stats > div { display: flex; flex-direction: column; gap: 8px; padding-block: 12px; border-left: 1px solid var(--line); }
.emp-stats > div:first-child { border-left: 0; }
.emp-stats .num { font-weight: 300; font-size: clamp(48px, 6vw, 76px); color: var(--accent); }
.emp-stats span:last-child { color: var(--muted); }

.emp-split { display: flex; flex-wrap: wrap; background: #12324A; color: #FFFFFF; }
.emp-split-pic { flex: 1 1 480px; min-height: 520px; border-radius: 0; margin: 0; }
.emp-split-pic::before { color: #9DB6CB; }
.emp-split-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
  padding-block: 88px; padding-left: max(24px, 6vw); padding-right: max(24px, 6vw); }
.emp-split-text .h-display { color: #FFFFFF; }
.emp-split-text > p:not(.eyebrow) { color: #D3E1EC; max-width: 50ch; }

.emp-refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.emp-refs article { background: var(--bg); border-top: 4px solid var(--accent); padding: 30px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 14px 34px rgba(0, 46, 78, .06); }
.emp-refs h3 { font-size: 22px; font-weight: 500; }
.emp-refs p { color: var(--muted); }
.ref-k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

@media (max-width: 600px) {
  .emp-exp, .emp-stats { padding-block: 72px; }
  .emp-exp-pics { min-height: 400px; }
  .emp-badge { left: 8px; width: 116px; height: 116px; }
  .emp-badge span { font-size: 40px; }
  .emp-stats > div { border-left: 0; }
  .emp-split-pic { min-height: 300px; }
}

/* ================= La empresa — misma estructura que cambrija.es/la-empresa ================= */
.ce-hero::after { background: linear-gradient(180deg, rgba(0, 38, 66, .55) 0%, rgba(0, 38, 66, .45) 60%, rgba(0, 38, 66, .7) 100%); }
.ce-hero h1 { font-size: clamp(44px, 6.4vw, 80px); }
.ce-kicker { font: italic 400 clamp(26px, 2.6vw, 34px)/1 var(--font-accent); color: #FFFFFF; }
.ce-kicker em { font-style: italic; }
.ce-center { text-align: center; }
div.ce-center { display: flex; justify-content: center; }
.ce-rule { display: block; width: 44px; height: 2px; background: var(--accent); }
.ce-label { font-size: 14px; color: var(--muted); letter-spacing: .04em; margin-top: -6px; }

.ce-exp { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 88px); align-items: center; padding-block: 120px; }
.ce-exp-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ce-exp-text > p:not(.ce-label) { color: var(--muted); max-width: 54ch; }
.ce-exp-text b { color: var(--ink); font-weight: 600; }
.ce-exp-pic { flex: 1.15 1 460px; aspect-ratio: 5 / 4; border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 46, 78, .16); }
.ce-exp-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.ce-exp-pic:hover img { transform: scale(1.04); }
.ce-tag { position: absolute; left: 18px; top: 18px; z-index: 1; background: rgba(255,255,255,.92); color: var(--accent); font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; }

.ce-services { border-top: 1px solid var(--line); }
.ce-services > .wrap { padding-block: 112px; display: flex; flex-direction: column; gap: 8px; }
.ce-services-grid { padding-block: 56px 48px; }
.ce-services-grid h3 { font-size: 22px; font-weight: 400; }
.ce-services-grid .ico-lg { color: var(--accent); }

.ce-post { background: var(--stone); }
.ce-post-in { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 88px); align-items: center; padding-block: 112px; }
.ce-post-pic { flex: 1.1 1 460px; aspect-ratio: 4 / 3.4; border-radius: 22px; }
.ce-post-pic img { width: 100%; height: 100%; object-fit: cover; }
.ce-post-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ce-post-text > p:not(.ce-label) { color: var(--muted); max-width: 52ch; }

.ce-figures { position: relative; overflow: hidden; isolation: isolate; background: #12324A; color: #FFFFFF; }
.ce-figures-bg, .ce-discover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ce-figures::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 38, 66, .62); }
.ce-figures-in { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-block: 110px; text-align: center; }
.ce-fig { display: flex; flex-direction: column; gap: 8px; }
.ce-fig .num { font-weight: 300; font-size: clamp(48px, 6vw, 76px); color: #FFFFFF; line-height: 1.05; }
.ce-fig span:last-child { color: #CFE0EE; }

@media (max-width: 600px) {
  .ce-exp, .ce-post-in, .ce-services > .wrap { padding-block: 72px; }
  .ce-fig { border-left: 0; }
  .ce-exp-pic, .ce-post-pic { border-radius: 14px; }
}

/* Efectos tipo La Cambrija: foto que llena su caja y se acerca suavemente, contadores sobre foto y banda "Descubre la promoción" */
.ce-post-text b { color: var(--ink); font-weight: 600; }
.ce-backcover img { transform: scale(1.12); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.ce-backcover:not(.pending) img { transform: scale(1); }
.ce-backcover:hover img { transform: scale(1.04); }
.ce-exp-pic.pending img { transform: scale(1.1); }
.ce-discover { position: relative; overflow: hidden; isolation: isolate; background: #12324A; min-height: clamp(320px, 42vw, 520px); display: flex; align-items: center; }
.ce-discover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 38, 66, .35); }
.ce-discover-in { display: flex; justify-content: center; width: 100%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ce-figures-bg, .ce-discover-bg { animation: ceparallax linear both; animation-timeline: view(); }
  }
}
@keyframes ceparallax { from { transform: scale(1.15) translateY(-5%); } to { transform: scale(1.15) translateY(5%); } }
@media (max-width: 600px) { .ce-figures-in { padding-block: 72px; } }

/* ================= Noticias ================= */
.nw-hero { position: relative; overflow: hidden; isolation: isolate; background: #12324A; color: #FFFFFF; text-align: center; }
.nw-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.nw-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,38,66,.6), rgba(0,38,66,.75)); }
.nw-hero-in { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: clamp(150px, 16vw, 210px) clamp(80px, 9vw, 120px); }
.nw-hero h1 { color: #FFFFFF; font-weight: 400; font-size: clamp(44px, 6.4vw, 80px); }
.nw-hero-in > p:last-child { color: #E3ECF3; font-size: clamp(17px, 1.5vw, 20px); max-width: 52ch; }
.hero-home.nw-hero { min-height: 0; display: block; }
.nw-hero-in { width: 100%; }

.nw-wrap { padding-block: 72px 110px; display: flex; flex-direction: column; gap: 36px; }
.nw-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-chip { font: inherit; font-size: 15px; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.nw-chip:hover { border-color: var(--accent); }
.nw-chip.is-on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.nw-grid-3 { margin-top: 40px; }
.nw-card[hidden] { display: none !important; }
.nw-link { display: flex; flex-direction: column; gap: 18px; height: 100%; color: inherit; text-decoration: none; }
.nw-pic { aspect-ratio: 4 / 3; border-radius: 18px; }
.nw-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.nw-link:hover .nw-pic img { transform: scale(1.06); }
.nw-cat { position: absolute; left: 14px; top: 14px; z-index: 1; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--accent); }
.nw-cat-segovia { background: var(--accent); color: #FFFFFF; }
.nw-body { display: flex; flex-direction: column; gap: 10px; }
.nw-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; }
.nw-body h2 { font-size: 22px; font-weight: 400; line-height: 1.3; transition: color .25s; }
.nw-link:hover h2 { color: var(--accent); }
.nw-sum { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nw-more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--accent); background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s; align-self: flex-start; padding-bottom: 2px; }
.nw-link:hover .nw-more { background-size: 100% 1px; }

.nw-feat { grid-column: 1 / -1; }
.nw-feat .nw-link { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.nw-feat .nw-pic { aspect-ratio: 16 / 10; border-radius: 22px; }
.nw-feat h2 { font-size: clamp(28px, 3vw, 40px); }
.nw-feat .nw-sum { -webkit-line-clamp: unset; font-size: 17px; }
.nw-note { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }

.nw-home { padding-block: 110px; }

@media (max-width: 960px) { .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-feat .nw-link { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .nw-grid { grid-template-columns: minmax(0, 1fr); } .nw-wrap, .nw-home { padding-block: 64px; } }

/* Redes sociales del pie: solo iconos */
.f-social { gap: 10px; }
.f-social a { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .25s, color .25s, transform .25s; }
.f-social a:hover { transform: translateY(-2px); }

/* ================= Varias promociones y estados ================= */
.pr-badges { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 600 12px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); }
.pr-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pr-v-venta, .pr-v-ultimas { background: #E3F1E7; color: #1E6B37; border-color: #BFDFC8; }
.pr-v-ultimas { background: #FFF1DC; color: #8A5300; border-color: #F2D3A3; }
.pr-v-proximamente { background: #E6EEF5; color: var(--accent); border-color: #C6D6E4; }
.pr-v-vendida { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.pr-o { background: rgba(255,255,255,.92); color: var(--ink); }
.hero-promo .pr-badges { margin-bottom: 4px; }

.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 28px; }
.pr-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.pr-card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.pr-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.pr-pic { position: relative; aspect-ratio: 16 / 10; margin: 0; overflow: hidden; }
.pr-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pr-card:hover .pr-pic img { transform: scale(1.04); }
.pr-pic .pr-badges { position: absolute; left: 16px; top: 16px; }
.pr-card.is-sold .pr-pic img { filter: saturate(.75); }
.pr-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pr-place { color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.pr-body h2 { font-size: 30px; }
.pr-meta { color: var(--muted); }
.pr-price { font: 600 19px/1.3 var(--font-display); color: var(--ink); margin-top: 4px; }
.pr-more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }

.pr-status { width: 100%; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.pr-status-t { font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: st; }
.pr-steps li { position: relative; padding-top: 26px; font-size: 14px; color: var(--muted); counter-increment: st; }
.pr-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; background: var(--line); }
.pr-steps li::after { content: ""; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line); }
.pr-steps li.is-done::before, .pr-steps li.is-now::before { background: var(--accent); }
.pr-steps li.is-now::before { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }
.pr-steps li.is-done::after { background: var(--accent); border-color: var(--accent); }
.pr-steps li.is-now::after { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(0,72,120,.15); }
.pr-steps li.is-now { color: var(--ink); font-weight: 600; }
.pr-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pr-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.pr-bar-txt { font-size: 14px; color: var(--muted); }
.pr-sold-box .price { font-size: 26px; }
.pr-others { padding-bottom: 96px; }

.home-promos > .promo-row + .promo-row { border-top: 1px solid var(--line); }
.promo-row-rev { flex-direction: row-reverse; }
.promo-row-rev .pic-a { inset: 0 0 14% 18%; }
.promo-row-rev .pic-b { right: auto; left: 0; }
@media (max-width: 860px) { .promo-row-rev { flex-direction: row; } .promo-row-rev .pic-a { inset: 0 18% 14% 0; } .promo-row-rev .pic-b { left: auto; right: 0; } }
@media (max-width: 560px) { .pr-steps { grid-template-columns: repeat(2, 1fr); row-gap: 14px; } .pr-body h2 { font-size: 26px; } }
.price-box .pr-badges, .price-box > .pr-badge { align-self: flex-start; }
.page-head + .stack .pr-grid { margin-top: 40px; }

.pr-video { padding-block: 24px 72px; display: flex; flex-direction: column; gap: 24px; }
.pr-video video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: var(--radius); background: #000; object-fit: cover; }

/* Galería de la promoción: carrusel con flechas */
.pr-slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--stone-2); outline-offset: 4px; }
.pr-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.pr-track::-webkit-scrollbar { display: none; }
.pr-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 9; cursor: zoom-in; }
.pr-slide img { width: 100%; height: 100%; object-fit: cover; }
.pr-slide figcaption { position: absolute; left: 20px; bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(20,24,28,.6); color: #FFFFFF; font-size: 14px; }
.pr-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: background .2s, transform .2s; }
.pr-nav:hover { background: #FFFFFF; transform: translateY(-50%) scale(1.06); }
.pr-prev { left: 18px; } .pr-next { right: 18px; }
.pr-count { position: absolute; right: 20px; bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(20,24,28,.6); color: #FFFFFF; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .pr-slide { aspect-ratio: 4 / 3; } .pr-nav { width: 42px; height: 42px; } .pr-prev { left: 10px; } .pr-next { right: 10px; } }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: #FFFFFF; color: #23272B; display: grid; place-items: center; cursor: pointer; }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; }
.promo-title { font-size: clamp(30px, 8.5vw, 80px) !important; overflow-wrap: anywhere; }

/* ================= Conoce Imeralia (portada) + efecto humo ================= */
.about-x { position: relative; overflow: hidden; isolation: isolate; color: #FFFFFF;
  background: radial-gradient(120% 90% at 88% 0%, #0D5E96 0%, #004878 42%, #00263F 100%); }
.about-x::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,18,32,.45) 100%); }
canvas.smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.about-x-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; padding-block: 130px; }
.about-x-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.about-x .eyebrow { color: #9CC7E6; }
.about-x .eyebrow::before { background: #9CC7E6; }
.about-x h2, .about-x h2 em { color: #FFFFFF; }
.about-x-lead { font: 400 clamp(19px, 1.7vw, 23px)/1.45 var(--font-display); color: #FFFFFF; }
.about-x-text > p:not(.eyebrow):not(.about-x-lead) { color: rgba(255,255,255,.78); max-width: 58ch; }
.about-x-pillars { list-style: none; margin: 8px 0 10px; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.about-x-pillars li { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25); display: flex; flex-direction: column; gap: 4px; }
.about-x-pillars b { font: 500 16px/1.3 var(--font-display); }
.about-x-pillars span { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.68); }
.about-x-side { position: relative; }
.about-x-pic { margin: 0; aspect-ratio: 5 / 4; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.08); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.about-x-pic img { width: 100%; height: 100%; object-fit: cover; }
.about-x-stats { position: relative; margin: -64px 24px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-x-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; border-radius: 10px; background: rgba(8, 40, 66, .55); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.about-x-stats .num { font: 300 clamp(34px, 3.6vw, 48px)/1 var(--font-display); color: #FFFFFF; }
.about-x-stats span:last-child { font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.75); }
.hero-home canvas.smoke { z-index: -1; }
@media (max-width: 960px) { .about-x-in { grid-template-columns: 1fr; gap: 56px; padding-block: 88px; } }
@media (max-width: 600px) { .about-x-pillars { grid-template-columns: 1fr; gap: 12px; } .about-x-stats { margin: -40px 10px 0; gap: 8px; } .about-x-stats > div { padding: 14px 10px; } .about-x-stats span:last-child { font-size: 12px; } }
.about-x-panel { padding: 12px 40px; border-radius: 14px; background: rgba(6, 34, 58, .45); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.about-x-stat { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 28px; align-items: center; padding-block: 26px; }
.about-x-stat + .about-x-stat { border-top: 1px solid rgba(255,255,255,.14); }
.about-x-stat .num { font: 200 clamp(44px, 4.6vw, 64px)/1 var(--font-display); color: #FFFFFF; letter-spacing: -.02em; }
.about-x-stat b { display: block; font: 500 18px/1.3 var(--font-display); color: #FFFFFF; }
.about-x-stat span:not(.num) { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.68); }
@media (max-width: 600px) { .about-x-panel { padding: 4px 22px; } .about-x-stat { grid-template-columns: 104px 1fr; gap: 14px; padding-block: 20px; } .about-x-stat .num { font-size: 32px; } .about-x-stat b { font-size: 16px; } }

/* Conoce Imeralia en tonos claros, a juego con el resto de la web */
.about-x { color: var(--ink); background: linear-gradient(180deg, var(--stone) 0%, #ECE8E0 100%); }
.about-x::before { display: none; }
.about-x .eyebrow { color: var(--accent); }
.about-x .eyebrow::before { background: currentColor; }
.about-x h2 { color: var(--ink); }
.about-x h2 em { color: var(--accent); }
.about-x-lead { color: var(--ink); }
.about-x-text > p:not(.eyebrow):not(.about-x-lead) { color: var(--muted); }
.about-x-pillars li { border-top-color: var(--line); }
.about-x-pillars b { color: var(--ink); }
.about-x-pillars span { color: var(--muted); }
.about-x-panel { background: rgba(255,255,255,.82); border-color: var(--line); box-shadow: 0 24px 60px rgba(35,39,43,.08); }
.about-x-stat + .about-x-stat { border-top-color: var(--line); }
.about-x-stat .num { color: var(--accent); font-weight: 300; }
.about-x-stat b { color: var(--ink); }
.about-x-stat span:not(.num) { color: var(--muted); }

/* Galería de la promoción en miniaturas */
.pr-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.pr-thumb { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--stone-2); cursor: zoom-in; }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pr-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,40,70,0); transition: background .3s; }
.pr-thumb:hover img, .pr-thumb:focus-visible img { transform: scale(1.06); }
.pr-thumb:hover::after { background: rgba(0,40,70,.18); }
.pr-thumbs-hint { font-size: 14px; color: var(--muted); }
.lb-cap { position: fixed; left: 50%; bottom: 3vh; translate: -50% 0; margin: 0; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.92); color: #23272B; font-size: 14px; white-space: nowrap; }
.lb-cap:empty { display: none; }
@media (max-width: 600px) { .pr-thumbs { grid-template-columns: repeat(2, 1fr); gap: 8px; } .lb-nav { width: 44px; height: 44px; } }

/* Distribución, superficies y memoria de calidades de cada promoción */
.pr-sup { padding-block: 96px; }
.pr-sup-tot { display: flex; flex-wrap: wrap; gap: 10px; }
.pr-sup-tot span { padding: 8px 16px; border-radius: 999px; background: var(--stone); color: var(--muted); font-size: 15px; }
.pr-sup-tot b { color: var(--accent); font-weight: 600; }
.pr-sup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: start; }
.pr-table { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: var(--bg); }
.pr-table h3 { font-size: 19px; margin-bottom: 12px; color: var(--accent); }
.pr-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pr-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pr-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.pr-table tfoot td { font-weight: 600; color: var(--ink) !important; border-bottom: 0; padding-top: 12px; }
.pr-table tfoot tr + tr td { padding-top: 2px; }
.pr-parcelas ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.pr-parcelas li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pr-parcelas b { font-weight: 500; font-variant-numeric: tabular-nums; }
.pr-cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 32px; }
.pr-cal-grid article { padding-top: 18px; border-top: 2px solid var(--accent); display: flex; flex-direction: column; gap: 8px; }
.pr-cal-grid h3 { font-size: 18px; }
.pr-cal-grid p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.pr-cal .sec-head { align-items: center; }
@media (max-width: 600px) { .pr-sup { padding-block: 64px; } .pr-parcelas ul { grid-template-columns: 1fr; } }
.pr-parcelas ul { grid-template-columns: 1fr; }
.pr-parcelas li span, .pr-parcelas li b { white-space: nowrap; }

/* ================= Portada: promociones a todo el ancho ================= */
.hp { padding-top: 110px; background: var(--bg); }
.hp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.hp-head .eyebrow { margin-bottom: 12px; }
.hp-item { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(560px, 82vh, 780px); display: flex; align-items: flex-end; color: #FFFFFF; }
.hp-item + .hp-item { margin-top: 6px; }
.hp-media { position: absolute; inset: 0; z-index: -2; background: #1B2025; }
.hp-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.hp-item:hover .hp-media img { transform: scale(1.06); }
.hp-item::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,14,20,.78) 0%, rgba(8,14,20,.45) 38%, rgba(8,14,20,0) 70%), linear-gradient(0deg, rgba(8,14,20,.55) 0%, rgba(8,14,20,0) 45%); }
.hp-right::after { background: linear-gradient(270deg, rgba(8,14,20,.78) 0%, rgba(8,14,20,.45) 38%, rgba(8,14,20,0) 70%), linear-gradient(0deg, rgba(8,14,20,.55) 0%, rgba(8,14,20,0) 45%); }
.hp-item.is-sold .hp-media img { filter: saturate(.85); }
.hp-content { width: 100%; display: flex; padding-block: 72px; }
.hp-right .hp-content { justify-content: flex-end; }
.hp-card { width: min(100%, 540px); display: flex; flex-direction: column; gap: 16px; }
.hp-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hp-num { font: 300 15px/1 var(--font-display); letter-spacing: .12em; color: rgba(255,255,255,.85); padding-right: 16px; border-right: 1px solid rgba(255,255,255,.35); }
.hp-num small { font-size: 12px; opacity: .6; }
.hp-place { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.hp-title { font: 400 clamp(40px, 5.4vw, 72px)/1.02 var(--font-display); letter-spacing: -.02em; color: #FFFFFF; }
.hp-title a { color: inherit; text-decoration: none; }
.hp-sum { color: rgba(255,255,255,.86); font-size: 17px; max-width: 46ch; }
.hp-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-facts li { padding: 7px 14px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hp-foot { margin-top: 14px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.hp-price { display: flex; flex-direction: column; gap: 2px; }
.hp-price span { font-size: 13px; color: rgba(255,255,255,.75); }
.hp-price b { font: 500 clamp(24px, 2.4vw, 30px)/1.1 var(--font-display); color: #FFFFFF; }
.hp .pr-badge.pr-o { background: rgba(255,255,255,.92); }
@media (max-width: 760px) {
  .hp { padding-top: 72px; }
  .hp-head { margin-bottom: 28px; }
  .hp-item { min-height: 0; display: block; }
  .hp-media { position: relative; display: block; aspect-ratio: 4 / 3; }
  .hp-item::after { background: linear-gradient(0deg, rgba(8,14,20,.0) 0%, rgba(8,14,20,0) 100%); }
  .hp-content { padding-block: 0; position: relative; margin-top: -64px; }
  .hp-card { background: #15202A; border-radius: 14px; padding: 24px 22px 26px; box-shadow: 0 20px 40px rgba(0,0,0,.18); gap: 12px; }
  .hp-item { padding-bottom: 28px; background: var(--bg); color: #FFFFFF; }
  .hp-item + .hp-item { margin-top: 0; }
  .hp-title { font-size: 36px; }
  .hp-sum { font-size: 15px; }
  .hp-foot { flex-direction: column; align-items: stretch; }
  .hp-foot .btn { justify-content: space-between; }
}
@media (max-width: 760px) { .hp-num { border-right: 0; padding-right: 0; width: 100%; } }

/* ================= Portada: promociones en tarjetas partidas ================= */
.hp2 { padding-block: 110px 120px; background: var(--stone); }
.hp2 .hp-head { margin-bottom: 40px; }
.hp2-list { max-width: 1440px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); display: grid; gap: 28px; }
.hp2-item { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--bg); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 24px 50px rgba(35,39,43,.06); }
.hp2-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.hp2-rev .hp2-media { order: 2; }
.hp2-media { position: relative; display: block; overflow: hidden; min-height: 420px; max-height: 520px; background: var(--stone-2); }
.hp2-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hp2-item:hover .hp2-media img { transform: scale(1.05); }
.hp2-media .pr-badges { position: absolute; left: 20px; top: 20px; }
.hp2-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hp2-top { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hp2-num { font: 300 15px/1 var(--font-display); color: var(--accent); padding-right: 14px; border-right: 1px solid var(--line); }
.hp2-title { font: 400 clamp(34px, 3.6vw, 52px)/1.05 var(--font-display); letter-spacing: -.015em; }
.hp2-title a { color: var(--ink); text-decoration: none; }
.hp2-title a:hover { color: var(--accent); }
.hp2-sum { color: var(--muted); max-width: 46ch; }
.hp2-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hp2-facts li { padding: 6px 14px; border-radius: 999px; background: var(--stone); font-size: 14px; color: var(--ink); }
.hp2-foot { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hp2 .hp-price span { color: var(--muted); }
.hp2 .hp-price b { color: var(--ink); }
@media (max-width: 860px) {
  .hp2 { padding-block: 72px 80px; }
  .hp2-item, .hp2-rev { grid-template-columns: 1fr; border-radius: 14px; }
  .hp2-rev .hp2-media { order: 0; }
  .hp2-media { min-height: 0; aspect-ratio: 16 / 10; }
  .hp2-body { padding: 24px 22px 26px; gap: 12px; }
  .hp2-foot { flex-direction: column; align-items: stretch; }
  .hp2-foot .btn { justify-content: space-between; }
}

/* ================= Obra nueva ================= */
.pn-hero { background: linear-gradient(180deg, var(--stone) 0%, var(--bg) 100%); }
.pn-hero-in { padding-block: 96px 56px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.pn-hero-text { display: flex; flex-direction: column; gap: 16px; }
.pn-hero-text h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--accent); }
.pn-hero-text > p:not(.eyebrow) { color: var(--muted); max-width: 56ch; }
.pn-kpis { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.pn-kpis div { padding: 22px 20px; display: flex; flex-direction: column-reverse; gap: 6px; }
.pn-kpis div + div { border-left: 1px solid var(--line); }
.pn-kpis dt { font-size: 13px; color: var(--muted); line-height: 1.3; }
.pn-kpis dd { margin: 0; font: 300 clamp(34px, 3.6vw, 48px)/1 var(--font-display); color: var(--accent); }
.pn-wrap { padding-block: 8px 110px; }
.pn-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; position: sticky; top: 76px; z-index: 5; padding-block: 10px; background: linear-gradient(var(--bg) 70%, rgba(255,255,255,0)); }
.pn-chip { font: 500 15px/1 var(--font-body); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s, border-color .2s; }
.pn-chip span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--stone); color: var(--muted); font-size: 12px; display: inline-grid; place-items: center; }
.pn-chip:hover { border-color: var(--accent); }
.pn-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pn-chip[aria-pressed="true"] span { background: rgba(255,255,255,.2); color: #FFFFFF; }
.pn-list { display: grid; gap: 40px; }
.pn-item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pn-item:nth-child(even) .pn-media { order: 2; }
.pn-item[hidden] { display: none; }
.pn-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--stone-2); }
.pn-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.pn-item:hover .pn-media img { transform: scale(1.05); }
.pn-media .pr-badges { position: absolute; left: 18px; top: 18px; }
.pn-idx { position: absolute; right: 22px; bottom: 14px; font: 200 clamp(56px, 7vw, 96px)/1 var(--font-display); color: #FFFFFF; text-shadow: 0 4px 30px rgba(0,0,0,.35); letter-spacing: -.03em; }
.pn-body { display: flex; flex-direction: column; gap: 14px; }
.pn-place { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pn-title { font: 400 clamp(34px, 3.4vw, 50px)/1.05 var(--font-display); letter-spacing: -.015em; }
.pn-title a { color: var(--ink); text-decoration: none; }
.pn-title a:hover { color: var(--accent); }
.pn-sum { color: var(--muted); }
.pn-facts { margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pn-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.pn-facts div:nth-child(odd) { padding-right: 16px; }
.pn-facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.pn-facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pn-facts dd { margin: 0; font: 500 17px/1.3 var(--font-display); color: var(--ink); }
.pn-status { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pn-status-t { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pr-steps-sm li { font-size: 13px; padding-top: 22px; }
.pn-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pn-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
@media (max-width: 900px) {
  .pn-hero-in { grid-template-columns: 1fr; gap: 28px; padding-block: 64px 32px; }
  .pn-item, .pn-item:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .pn-item:nth-child(even) .pn-media { order: 0; }
  .pn-list { gap: 56px; }
  .pn-filters { top: 64px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .pn-filters::-webkit-scrollbar { display: none; }
  .pn-chip { flex: none; }
}
@media (max-width: 520px) {
  .pn-kpis div { padding: 16px 12px; }
  .pn-kpis dt { font-size: 12px; }
  .pn-cta { flex-direction: column; }
  .pn-cta .btn { justify-content: space-between; }
  .pn-media { aspect-ratio: 16 / 11; }
}

/* ================= Obra nueva: tarjetas de promoción ================= */
.pn-hero-in { display: flex; flex-direction: column; gap: 16px; grid-template-columns: none; padding-block: 96px 48px; align-items: flex-start; }
.pn-hero-in > p:not(.eyebrow) { color: var(--muted); max-width: 60ch; }
.pn-hero-in h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--accent); }
.pc-wrap { padding-bottom: 110px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 32px; }
.pr-others .pc-grid { margin-top: 8px; }
.pc { border-radius: 20px; overflow: hidden; background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(35,39,43,.07); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.pc:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 30px 60px rgba(35,39,43,.14); }
.pc-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.pc-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--stone-2); isolation: isolate; }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.pc:hover .pc-media img { transform: scale(1.07); }
.pc-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,14,20,.82) 0%, rgba(8,14,20,.35) 38%, rgba(8,14,20,0) 62%); }
.pc-media .pr-badges { position: absolute; left: 20px; top: 20px; }
.pc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 28px 26px; color: #FFFFFF; }
.pc-place { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pc-title { font: 400 clamp(32px, 3.2vw, 46px)/1.05 var(--font-display); letter-spacing: -.015em; color: #FFFFFF; margin: 6px 0 4px; }
.pc-type { font-size: 15px; opacity: .85; }
.pc-info { display: flex; align-items: center; gap: 16px; padding: 20px 24px 20px 28px; }
.pc-info dl { flex: 1; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-info dl div { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.pc-info dl div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.pc-info dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pc-info dd { margin: 0; font: 500 16px/1.3 var(--font-display); color: var(--ink); }
.pc-go { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #FFFFFF; transition: background .3s, transform .3s; }
.pc:hover .pc-go { background: var(--accent); transform: translateX(4px); }
.pc.is-sold .pc-media img { filter: saturate(.85); }
@media (max-width: 560px) {
  .pn-hero-in { padding-block: 64px 28px; }
  .pc-grid { gap: 22px; }
  .pc { border-radius: 16px; }
  .pc-media { aspect-ratio: 4 / 4.2; }
  .pc-cap { padding: 0 20px 20px; }
  .pc-info { padding: 16px 16px 16px 20px; gap: 10px; }
  .pc-info dd { font-size: 14px; }
  .pc-info dl div + div { padding-left: 10px; }
  .pc-go { width: 40px; height: 40px; }
}
.pc-go .ico, .pc-go svg { color: #FFFFFF; stroke: currentColor; }
@media (max-width: 560px) {
  .pc-go { display: none; }
  .pc-info { padding: 16px 18px; }
  .pc-info dl div { padding-right: 8px; }
  .pc-info dd { overflow-wrap: normal; word-break: normal; hyphens: none; }
}

/* Pre-footer sin botones */
.pf-mail { color: #DCE7F0; font-size: 18px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); align-self: flex-start; padding-bottom: 2px; }
.pf-mail:hover { color: #FFFFFF; border-color: #FFFFFF; }

/* Portada: promociones apiladas al hacer scroll */
.hp2-list { display: block; }
.hp2-item { position: sticky; top: calc(100px + var(--i, 0) * 22px); margin-bottom: 36px; min-height: 480px; transform-origin: center top; }
.hp2-item:last-child { margin-bottom: 0; }
.hp2-body { position: relative; }
.hp2-big { position: absolute; right: clamp(20px, 3vw, 44px); top: clamp(10px, 2vw, 24px); font: 200 clamp(70px, 9vw, 140px)/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px #D9D4C8; letter-spacing: -.04em; pointer-events: none; user-select: none; }
.hp2-num { font-size: 13px; letter-spacing: .14em; }
.hp2-body > *:not(.hp2-big) { position: relative; }
@media (max-width: 860px) {
  .hp2-item { top: calc(76px + var(--i, 0) * 14px); min-height: 0; margin-bottom: 22px; }
  .hp2-big { font-size: 72px; top: 12px; right: 18px; }
}

/* Obra nueva: escaparate vertical */
.ps-list { display: flex; flex-direction: column; gap: clamp(80px, 10vw, 140px); padding-block: 24px 120px; }
.ps { display: flex; flex-direction: column; gap: 22px; }
.ps-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px; }
.ps-idx { font: 200 clamp(64px, 8vw, 120px)/.8 var(--font-display); color: transparent; -webkit-text-stroke: 1.2px var(--accent); letter-spacing: -.04em; }
.ps-place { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ps-title { font: 400 clamp(36px, 4.4vw, 64px)/1 var(--font-display); letter-spacing: -.02em; }
.ps-title a { color: var(--ink); text-decoration: none; }
.ps-title a:hover { color: var(--accent); }
.ps-head .pr-badges { padding-bottom: 6px; }
.ps-media { position: relative; display: block; aspect-ratio: 21 / 9; border-radius: 22px; overflow: hidden; background: var(--stone-2); }
.ps-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.ps-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,14,20,.35), rgba(8,14,20,0) 40%); opacity: 0; transition: opacity .5s; }
.ps-media:hover img { transform: scale(1.05); }
.ps-media:hover::after { opacity: 1; }
.ps-view { position: absolute; right: 22px; bottom: 20px; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #FFFFFF; color: var(--ink); font-weight: 600; font-size: 15px; transform: translateY(10px); opacity: 0; transition: opacity .4s, transform .4s; }
.ps-media:hover .ps-view { opacity: 1; transform: none; }
.ps.is-sold .ps-media img { filter: saturate(.85); }
.ps-data { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.ps-data > div { padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ps-data > div + div { border-left: 1px solid var(--line); }
.ps-data dt { order: 2; font-size: 13px; color: var(--muted); }
.ps-data dd { order: 1; margin: 0; font: 300 clamp(30px, 3vw, 44px)/1.05 var(--font-display); color: var(--accent); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ps-data dd.ps-small { font-size: clamp(20px, 1.8vw, 24px); font-weight: 400; color: var(--ink); line-height: 1.25; }
.ps-note { order: 3; font-size: 13px; color: var(--muted); }
.ps-seg { order: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.ps-seg i { height: 6px; border-radius: 3px; background: var(--line); }
.ps-seg i.on { background: var(--accent); }
.ps-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.ps-sum { color: var(--muted); max-width: 60ch; font-size: 17px; }
.ps-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .ps-head { grid-template-columns: auto 1fr; }
  .ps-head .pr-badges { grid-column: 1 / -1; order: -1; }
  .ps-media { aspect-ratio: 4 / 3; border-radius: 16px; }
  .ps-view { opacity: 1; transform: none; padding: 10px 16px; font-size: 14px; }
  .ps-data { grid-template-columns: 1fr 1fr; }
  .ps-data > div:nth-child(3) { border-left: 0; }
  .ps-data > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ps-data > div { padding: 18px; }
  .ps-cta { width: 100%; flex-direction: column; }
  .ps-cta .btn { justify-content: space-between; }
}

/* Finalizadas: cabecera visual y sencilla */
.fin-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(300px, 46vh, 440px); display: flex; align-items: flex-end; color: #FFFFFF; }
.fin-hero-img { position: absolute; inset: 0; z-index: -2; margin: 0; }
.fin-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.fin-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,14,20,.7) 0%, rgba(8,14,20,.15) 70%); }
.fin-hero-in { padding-block: 56px; display: flex; flex-direction: column; gap: 10px; }
.fin-hero .eyebrow { color: #CFE0EE; }
.fin-hero h1 { color: #FFFFFF; font: 400 clamp(40px, 6vw, 80px)/1 var(--font-display); letter-spacing: -.02em; }
.fin-hero h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; }
.fin-hero + .stack { padding-top: 56px; }

/* ================= Contacto ================= */
.ct-hero { min-height: clamp(360px, 58vh, 540px); }
.ct-lead { color: rgba(255,255,255,.88); max-width: 52ch; font-size: 18px; margin-top: 6px; }
.ct-cards { position: relative; z-index: 2; margin-top: -64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ct-card { display: flex; flex-direction: column; gap: 6px; padding: 30px 30px 28px; border-radius: 18px; background: var(--bg); color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 var(--line), 0 24px 50px rgba(35,39,43,.10); transition: transform .35s, box-shadow .35s; }
.ct-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 30px 60px rgba(35,39,43,.16); color: var(--ink); }
.ct-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #E6EEF5; color: var(--accent); margin-bottom: 12px; transition: background .3s, color .3s; }
.ct-card:hover .ct-ico { background: var(--accent); color: #FFFFFF; }
.ct-k { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ct-v { font: 400 clamp(26px, 2.4vw, 34px)/1.15 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.ct-v-sm { font-size: clamp(20px, 1.8vw, 24px); }
.ct-s { font-size: 14px; color: var(--muted); }
.ct-office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: 110px; }
.ct-office-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ct-office-text > p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.ct-hours { width: 100%; max-width: 440px; border-collapse: collapse; margin-block: 6px 8px; }
.ct-hours caption { text-align: left; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); padding-bottom: 8px; }
.ct-hours th, .ct-hours td { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.ct-hours th { text-align: left; color: var(--muted); }
.ct-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.ct-map { position: relative; display: block; aspect-ratio: 13 / 10; border-radius: 22px; overflow: hidden; text-decoration: none; box-shadow: 0 24px 50px rgba(35,39,43,.10); }
.ct-map-svg { width: 100%; height: 100%; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.ct-map:hover .ct-map-svg { transform: scale(1.04); }
.ct-pin { position: absolute; left: 49%; top: 46%; translate: -50% -100%; width: 64px; height: 64px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--accent); color: #FFFFFF; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,72,120,.35); animation: ctpin 2.4s ease-in-out infinite; }
.ct-pin .ico { rotate: 45deg; }
@keyframes ctpin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .ct-pin { animation: none; } }
.ct-map-cap { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 340px; display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.ct-map-cap small { color: var(--muted); font-size: 14px; }
.ct-map-cap span { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.ct-promos .stack { padding-block: 96px; }
.ct-pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ct-pr { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 14px 22px 14px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.ct-pr-pic { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--stone-2); }
.ct-pr-pic img { width: 100%; height: 100%; object-fit: cover; }
.ct-pr-txt { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ct-pr-txt h3 { font-size: 24px; }
.ct-pr-txt h3 a { color: var(--ink); text-decoration: none; }
.ct-pr-txt p { color: var(--muted); font-size: 15px; }
.ct-social { padding-block: 96px 110px; }
.ct-social-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 10px; }
.ct-social-links a { color: var(--ink) !important; border-color: var(--line) !important; }
.ct-social-links a:hover { background: var(--accent); color: #FFFFFF !important; border-color: var(--accent) !important; }
@media (max-width: 900px) {
  .ct-cards { grid-template-columns: 1fr; margin-top: -40px; gap: 12px; }
  .ct-card { padding: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; }
  .ct-ico { grid-row: span 3; margin: 0; width: 46px; height: 46px; }
  .ct-office { grid-template-columns: 1fr; padding-block: 72px; }
  .ct-pr { grid-template-columns: 96px minmax(0, 1fr); padding: 12px; gap: 14px; }
  .ct-pr .btn { grid-column: 1 / -1; justify-content: space-between; }
  .ct-pr-txt h3 { font-size: 20px; }
}
.ct-hero .fin-hero-in { padding-bottom: 120px; } @media (max-width: 900px) { .ct-hero .fin-hero-in { padding-bottom: 80px; } }
.fin-hero-in { width: 100%; }

/* Obra nueva: cabecera a todo el ancho con humo */
.on-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(380px, 62vh, 600px); display: flex; align-items: flex-end; color: #FFFFFF; background: #1B2025; }
.on-hero .hero-media { position: absolute; inset: 0; z-index: -3; }
.on-hero-img { position: absolute; inset: 0; margin: 0; }
.on-hero-img img { width: 100%; height: 100%; object-fit: cover; animation: onzoom 18s ease-out both; }
@keyframes onzoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .on-hero-img img { animation: none; } }
.on-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, rgba(8,14,20,.75) 0%, rgba(8,14,20,.25) 55%, rgba(8,14,20,.35) 100%); }
.on-hero canvas.smoke { z-index: -1; }
.on-hero-in { width: 100%; padding-block: 72px; display: flex; flex-direction: column; gap: 14px; }
.on-hero .eyebrow { color: #CFE0EE; }
.on-hero h1 { color: #FFFFFF; font: 400 clamp(44px, 7vw, 96px)/1 var(--font-display); letter-spacing: -.025em; }
.on-hero h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; }
.on-hero-in > p:not(.eyebrow) { color: rgba(255,255,255,.88); max-width: 52ch; font-size: 18px; }

/* Obra nueva: fotos de lado a lado, sin números */
.ps-list { padding-top: 80px; }
.ps-head { grid-template-columns: 1fr auto; }
.ps-media { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; aspect-ratio: auto; height: clamp(320px, 62vh, 640px); }
@media (max-width: 900px) {
  .ps-head { grid-template-columns: 1fr; }
  .ps-media { height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
}

/* Contacto: filas en lugar de tarjetas */
.ct-rows { padding-top: 72px; display: flex; flex-direction: column; border-top: 0; }
.ct-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; grid-template-areas: "k v go" "k s go"; column-gap: 32px; row-gap: 4px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; transition: background .35s, padding .35s; }
.ct-row:first-child { border-top: 1px solid var(--line); }
.ct-row:hover { background: var(--stone); padding-inline: 24px; color: var(--ink); }
.ct-row-k { grid-area: k; display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ct-row-k .ico { color: var(--accent); }
.ct-row-v { grid-area: v; font: 400 clamp(28px, 3.4vw, 48px)/1.1 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ct-row-s { grid-area: s; font-size: 15px; color: var(--muted); }
.ct-row-go { grid-area: go; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, transform .3s, border-color .3s; }
.ct-row:hover .ct-row-go { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: rotate(-45deg); }
.ct-hero .fin-hero-in { padding-bottom: 64px; }
@media (max-width: 760px) {
  .ct-rows { padding-top: 40px; }
  .ct-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k go" "v go" "s go"; padding: 22px 4px; column-gap: 14px; }
  .ct-row:hover { padding-inline: 4px; }
  .ct-row-v { font-size: 26px; }
  .ct-row-go { width: 44px; height: 44px; }
}

/* Misma altura de imagen de cabecera en todas las páginas interiores */
:root { --hero-h: clamp(300px, 44vh, 420px); --hdr-h: 87px; }
@media (max-width: 900px) { :root { --hdr-h: 81px; } }
.on-hero, .fin-hero, .ct-hero { min-height: var(--hero-h); }
.hero-home.ce-hero, .hero-home.nw-hero { min-height: calc(var(--hero-h) + var(--hdr-h)); display: flex; align-items: center; padding-top: var(--hdr-h); }
.hero-home.nw-hero .nw-hero-in { padding-block: 40px; }
.ce-hero .scroll-down { display: none; }

/* Cabecera transparente sobre la foto en todas las páginas con imagen arriba */
.on-hero, .fin-hero { min-height: calc(var(--hero-h) + var(--hdr-h)); padding-top: var(--hdr-h); }
.hero-promo .hero-in { padding-top: calc(var(--hdr-h) + clamp(70px, 10vw, 140px)); }
.on-hero::before, .fin-hero::before, .hero-promo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 180px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8,14,20,.45), rgba(8,14,20,0)); }

/* Contacto: barra compacta de 3 accesos */
.ct-bar-wrap { position: relative; z-index: 3; margin-top: -42px; }
.ct-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 8px; box-shadow: 0 18px 40px rgba(20,30,40,.14); }
.ct-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; min-width: 0; transition: background .25s; }
.ct-item + .ct-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.ct-item:hover { background: var(--stone); color: var(--ink); }
.ct-item:hover + .ct-item::before, .ct-item:hover::before { opacity: 0; }
.ct-i { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #FFFFFF; }
.ct-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ct-t small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ct-t b { font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-arrow { margin-left: auto; flex: none; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.ct-item:hover .ct-arrow { opacity: 1; transform: none; color: var(--accent); }
.ct-hero .fin-hero-in { padding-bottom: 96px; }
.ct-bar-wrap + .ct-office { padding-top: 96px; }
@media (max-width: 900px) {
  .ct-bar-wrap { margin-top: -32px; }
  .ct-bar { grid-template-columns: 1fr; border-radius: 20px; padding: 6px; }
  .ct-item { border-radius: 14px; padding: 10px 12px 10px 8px; }
  .ct-item + .ct-item::before { left: 60px; right: 12px; top: 0; bottom: auto; width: auto; height: 1px; }
  .ct-arrow { opacity: 1; transform: none; }
  .ct-t b { white-space: normal; }
  .ct-hero .fin-hero-in { padding-bottom: 72px; }
  .ct-bar-wrap + .ct-office { padding-top: 64px; }
}
.ct-i .ico { color: #FFFFFF; stroke-width: 1.8; } .ct-arrow .ico { color: inherit; }
.on-hero-in, .fin-hero-in { padding-block: 40px 48px; }
.ct-hero .fin-hero-in { padding-bottom: 72px; }
.on-hero h1, .fin-hero h1 { font-size: clamp(40px, 5.6vw, 76px); }
.hero-home.nw-hero .nw-hero-in, .ce-hero .hero-home-in { padding-block: 24px; }
@media (max-width: 900px) { .ct-hero .fin-hero-in { padding-bottom: 56px; } .ct-lead { font-size: 16px; } }

/* Obra nueva: datos más ligeros */
.ps-data { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--line); }
.ps-data > div { padding: 22px 28px 24px 0; gap: 4px; }
.ps-data > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.ps-data dt { order: 1; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ps-data dd { order: 2; font: 400 clamp(22px, 2.2vw, 30px)/1.2 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.ps-note { display: none; }
@media (max-width: 900px) {
  .ps-data { grid-template-columns: 1fr 1fr; }
  .ps-data > div { padding: 16px 12px 16px 0; }
  .ps-data > div + div { padding-left: 14px; }
  .ps-data > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* Obra nueva: foto dentro del ancho de la web y descripción con más presencia */
.ps-media { width: 100%; margin-left: 0; border-radius: 22px; height: clamp(300px, 52vh, 540px); }
@media (max-width: 900px) { .ps-media { border-radius: 16px; height: auto; aspect-ratio: 4 / 3; } }
.ps-desc { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; padding-left: 18px; border-left: 3px solid var(--accent); }
.ps-sum { color: var(--ink); font: 400 clamp(18px, 1.5vw, 21px)/1.5 var(--font-display); }
.ps-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-tags li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--stone); font-size: 14px; color: var(--ink); }
.ps-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ps-foot { align-items: flex-end; }

/* Portada: las promociones ya no se superponen al bajar */
.hp2-item { position: relative; top: auto; margin-bottom: 28px; }
.nw-cat { display: none !important; }

/* La empresa: secciones más compactas y fotos encuadradas */
.ce-exp { padding-block: 80px; gap: clamp(32px, 5vw, 64px); }
.ce-exp-text, .ce-post-text { gap: 16px; }
.ce-exp-pic, .ce-post-pic { flex: 1 1 460px; aspect-ratio: 1.42 / 1; max-height: 520px; border-radius: 16px; box-shadow: none; overflow: hidden; }
.ce-exp-pic img, .ce-post-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ce-post-in { padding-block: 80px; gap: clamp(32px, 5vw, 64px); }
.ce-services-grid { padding-block: 40px 32px; }
.ce-services > .wrap { padding-block: 72px; }
.ce-figures-in { padding-block: 72px; }
@media (max-width: 760px) {
  .ce-exp, .ce-post-in { padding-block: 56px; }
  .ce-services > .wrap { padding-block: 56px; }
  .ce-figures-in { padding-block: 56px; }
}

/* Finalizadas: tarjetas enlazadas a la galería de cada promoción */
.fin-card { display: block; color: inherit; text-decoration: none; }
.fin-card .ph { overflow: hidden; }
.fin-card .ph img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.fin-card:hover .ph img { transform: scale(1.04); }
.fin-card .fin-more { display: flex; width: max-content; align-items: center; gap: 6px; margin-top: 8px; font-size: .86rem; font-weight: 600; color: var(--accent); }
.fin-card .fin-more svg { width: 14px; height: 14px; stroke: currentColor; transition: transform .25s; }
.fin-card:hover .fin-more svg { transform: translateX(3px); }

/* Promoción entregada: último paso completado */
.pr-steps li.is-final { color: var(--ink); font-weight: 600; }
.pr-steps li.is-final::after { box-shadow: 0 0 0 5px rgba(0,72,120,.15); }
.pr-keys { color: var(--accent); font-weight: 600; }

/* Galerías de 6 fotos: dos filas de 3, sin foto suelta */
@media (min-width: 761px) { .pr-thumbs:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); } }
.fin-hero:not(.ct-hero) .fin-hero-img img { object-position: 50% 62%; }

/* Ajustes WordPress */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.wp-content { max-width: 760px; margin-inline: auto; padding-block: 140px 100px; }
.wp-content > * + * { margin-top: 1em; }
.wp-content img { max-width: 100%; height: auto; border-radius: 12px; }
