/* Caribbean Realty Development · sitio web v1
   Identidad: Piedra Angular · Tierra (ver CRD · Manual de identidad v1.0) */

/* Tipografías servidas desde el propio sitio (antes, Google Fonts): una conexión menos y sin enviar datos a Google.
   Instrument Sans es variable (un archivo para los pesos 400–700). Licencia SIL Open Font License. */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2?v=e35fad09") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2?v=e2385a01") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-condensed-500-latin.woff2?v=c67b8cf8") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-condensed-500-latin-ext.woff2?v=b618fb2d") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --espresso: #3E3423;
  --terracota: #B47249;
  --marfil: #F3EEE7;
  --arenisca: #E6DBCA;
  --moca: #624C3D;
  --taupe: #B9A285;
  --oliva: #666A54;
  --white: #FFFFFF;
  --muted: #7A6A58;
  --body: #4A3E31;
  --rule: #DED3C3;
  --wall-dark: #4B4030;

  --f-sans: 'Instrument Sans', Arial, sans-serif;
  --f-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(40px, 5.5vw, 77px); /* espacio estándar arriba y abajo de todas las secciones */
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--marfil);
  color: var(--body);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--espresso); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--espresso); color: var(--marfil); padding: 10px 16px; }
.skip:focus { left: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- tipografía ---------- */
.label {
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.label--light { color: var(--taupe); }
.display { font-size: clamp(44px, 6.6vw, 104px); letter-spacing: -0.04em; line-height: .98; }
.h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--body); }
.muted { color: var(--muted); }
.stone { display: inline-block; flex: none; width: 10px; height: 10px; background: var(--terracota); }

/* ---------- botones: la piedra es la llamada a la acción ---------- */
.btn {
  display: inline-flex; align-items: stretch; gap: 0;
  min-height: 54px; text-decoration: none;
  background: var(--espresso); color: var(--marfil);
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em;
  transition: background-color .2s ease;
}
.btn > span:first-child { display: flex; align-items: center; padding: 0 22px; }
.btn__stone {
  display: flex; align-items: center; justify-content: center;
  width: 54px; background: var(--terracota); color: var(--white); font-size: 19px;
  transition: width .25s ease;
}
.btn:hover { background: var(--moca); }
.btn:hover .btn__stone { width: 64px; }
/* Sales: aviso con forma de botón, sin enlace («Sales · Coming soon»), en terracota */
.btn--soon { background: var(--terracota); cursor: default; }
.btn--soon:hover { background: var(--terracota); }
.btn--light { background: var(--marfil); color: var(--espresso); }
.btn--light:hover { background: var(--white); }
.btn--ghost {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px;
  border: 1px solid currentColor; text-decoration: none; font-weight: 600; font-size: 15.5px;
  transition: background-color .2s ease, color .2s ease;
}
.btn--ghost:hover { background: var(--espresso); color: var(--marfil); border-color: var(--espresso); }
.on-dark .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--marfil); color: var(--espresso); border-color: var(--marfil); }
.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; text-decoration: none; color: var(--espresso);
  border-bottom: 1px solid var(--taupe); padding-bottom: 3px;
}
.link:hover { border-color: var(--terracota); }
.link .arrow { color: var(--terracota); transition: transform .2s ease; }
.link:hover .arrow { transform: translateX(4px); }

/* ---------- cabecera ----------
   Como en el sitio de ElyBlack: arriba del todo es transparente; al bajar se esconde;
   al subir vuelve sobre un desenfoque de 10 px, con un tinte del 20 % (80 % de transparencia).
   El logotipo y los enlaces cambian de color según el fondo que tienen debajo (.on-dark). */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  transition: transform .35s ease, opacity .35s ease, background-color .35s ease;
}
.site-header.is-scrolled:not(.is-hidden) { background: rgba(243, 238, 231, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.is-scrolled.on-dark:not(.is-hidden) { background: rgba(62, 52, 35, .2); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled:not(.is-hidden) { background: rgba(243, 238, 231, .94); }
  .site-header.is-scrolled.on-dark:not(.is-hidden) { background: rgba(62, 52, 35, .94); }
}
.site-header.is-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; width: 210px; flex: none; }
.brand img { width: 100%; height: auto; }
.brand .logo-light { display: none; }
.nav { display: flex; align-items: center; gap: 34px; flex: 1; }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0 0 0 20px; padding: 0; }
.nav__right { display: flex; align-items: center; gap: 26px; margin-left: auto; }
/* selector de idioma */
.lang { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-label); font-weight: 500; font-size: 14px; letter-spacing: .14em; }
.lang a { text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.lang a:hover { color: var(--espresso); }
.lang a[aria-current="true"] { color: var(--espresso); border-color: var(--terracota); }
.lang__sep { color: var(--taupe); }
.nav__links a { text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--espresso); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s ease; }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-color: var(--terracota); }
.nav__cta { text-decoration: none; font-size: 15px; font-weight: 600; padding: 11px 18px; border: 1px solid var(--espresso); color: var(--espresso); }
.nav__cta:hover { background: var(--espresso); color: var(--marfil); }
.menu-btn { display: none; }

/* sobre fondo oscuro: portadas, contacto y pie */
.site-header.on-dark .logo-dark { display: none; }
.site-header.on-dark .logo-light { display: block; }
.site-header.on-dark .nav__links a,
.site-header.on-dark .nav__cta { color: var(--marfil); }
.site-header.on-dark .nav__links a { text-shadow: 0 1px 12px rgba(30, 24, 15, .4); }
.site-header.on-dark .lang a { color: #E3D8C9; text-shadow: 0 1px 12px rgba(30, 24, 15, .4); }
.site-header.on-dark .lang a[aria-current="true"], .site-header.on-dark .lang a:hover { color: var(--marfil); }
.site-header.on-dark .nav__cta { border-color: rgba(243, 238, 231, .7); }
.site-header.on-dark .nav__cta:hover { background: var(--marfil); color: var(--espresso); }

/* ---------- portada ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end;
  color: var(--marfil); overflow: hidden; background: var(--espresso);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 24, 15, .55) 0%, rgba(30, 24, 15, 0) 24%),
              linear-gradient(20deg, rgba(36, 29, 18, .88) 0%, rgba(36, 29, 18, .5) 42%, rgba(36, 29, 18, 0) 72%);
}
.hero__content { position: relative; padding: calc(var(--header-h) + 60px) 0 clamp(56px, 8vw, 104px); }
.hero h1 { color: var(--marfil); max-width: 13ch; }
.hero .lead { color: #EDE5DA; max-width: 560px; margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__meta { display: flex; align-items: center; gap: 12px; }
.hero--page { min-height: min(72svh, 720px); }
.hero--page h1 { max-width: 16ch; }
.hero--about h1 { font-size: clamp(42px, 5.8vw, 82px); max-width: 11ch; text-align: left; } /* mismo tamaño en inglés y en español */
.hero--about .about-title__line { display: block; white-space: nowrap; }
/* Sales: villas arriba y césped abajo; el título baja un poco para quedar sobre el césped */
.hero--sales .hero__media img { object-position: left 55%; } /* foto un 5 % más abajo */
.hero--sales { min-height: min(64svh, 640px); }
.hero--sales .hero__content { padding-bottom: clamp(28px, 3.2vw, 48px); }
/* Con el espaciado apretado de .display, la «t» de «Property» montaba sobre la «r» */
.hero--sales h1 { letter-spacing: -0.02em; }
/* Portada grande de Rentals (70 % de la pantalla): el título va en dos líneas fijas */
.hero--full { min-height: 70svh; } /* 30 % menos que la pantalla completa */
.hero--full h1 { max-width: none; }
@media (max-width: 620px) { .hero--full h1 br { display: none; } }
.hero--full .hero__sub { margin-top: 18px; font-size: clamp(18px, 1.6vw, 24px); }
/* Rentals: portada en el formato de Caribbean Luxury Villas (su logotipo centrado, como en su web) */
.hero--clv { align-items: center; }
.hero--clv .hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: clamp(40px, 5vw, 72px); }
.hero--clv .clv-mark { margin: 0; max-width: none; }
.hero--clv .clv-mark img { display: block; width: clamp(280px, 44vw, 660px); height: auto; filter: drop-shadow(0 0 4px rgba(36, 29, 18, .31)) drop-shadow(0 0 12px rgba(36, 29, 18, .31)); }
.hero--clv .hero__sub { max-width: none; margin-top: clamp(14px, 1.6vw, 24px); text-shadow: 0 0 4px rgba(36, 29, 18, .31), 0 0 12px rgba(36, 29, 18, .31); }

/* ---------- secciones ---------- */
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--grid { background-image: linear-gradient(rgba(98, 76, 61, .0693) 1px, transparent 1px), linear-gradient(90deg, rgba(98, 76, 61, .0693) 1px, transparent 1px); background-size: 72px 72px; }
.section--arenisca { background: var(--arenisca); }
.section--arenisca.section--grid { background-color: var(--arenisca); background-image: linear-gradient(rgba(98, 76, 61, .0693) 1px, transparent 1px), linear-gradient(90deg, rgba(98, 76, 61, .0693) 1px, transparent 1px); background-size: 72px 72px; }
.section--dark { background: var(--espresso); color: #D9CDBB; }
.section--dark h2, .section--dark h3 { color: var(--marfil); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .label { margin-bottom: 16px; }
.section-head--values .values-intro { color: #D9CDBB; transform: translateY(18px); }
.section--family { background-color: var(--arenisca); background-image: linear-gradient(rgba(82, 69, 50, .052) 1px, transparent 1px), linear-gradient(90deg, rgba(82, 69, 50, .052) 1px, transparent 1px); background-size: 56px 56px; }
.section--family .section-head { grid-template-columns: minmax(0, 1fr); }
.section--family .h2 { white-space: nowrap; }

/* intro y cifras */
.intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.intro__statement { font-size: clamp(28px, 3.1vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; color: var(--espresso); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-bottom: 0; }
.stat { padding: 26px 28px; border-bottom: 1px solid var(--rule); }
.stat:nth-child(odd) { border-right: 1px solid var(--rule); }
.stat__num { font-family: var(--f-label); font-weight: 500; font-size: clamp(48px, 5vw, 72px); line-height: 1; color: var(--espresso); letter-spacing: -0.01em; }
.stat__num small { font-size: .5em; margin-left: 2px; }
.stat__txt { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--body); }
.stat__src { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* tres pilares */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { background: var(--white); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pillar__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--arenisca); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pillar:hover .pillar__media img { transform: scale(1.03); }
.pillar__media--logo { display: flex; align-items: center; justify-content: center; background: var(--marfil); }
.pillar__media--logo img { width: 46%; height: auto; object-fit: contain; }
.pillar__media--soon { display: flex; align-items: center; justify-content: center; background: var(--espresso); }
.pillar__body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pillar__num { display: flex; align-items: center; gap: 10px; }
.pillar__body p { font-size: 15.5px; line-height: 1.55; }
.pillar__body .link { margin-top: auto; align-self: flex-start; }
.pillar__body > :last-child { margin-top: auto; }
.badge { display: inline-block; font-family: var(--f-label); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; background: var(--arenisca); color: var(--espresso); }
.badge--dark { background: var(--espresso); color: var(--marfil); }
.badge--oliva { background: var(--oliva); color: var(--marfil); }

/* ---------- la retícula de cuatro piezas ---------- */
.tetris { position: relative; width: 100%; aspect-ratio: 1; }
.tetris > * { position: absolute; overflow: hidden; }
.t-muro-v { left: 0; top: 0; width: 18.75%; height: 50%; background: var(--espresso); }
.t-solar { left: 25%; top: 0; width: 75%; height: 75%; background: var(--moca);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 33.333% 100%, 33.333% 66.667%, 0 66.667%); }
.t-solar img { width: 100%; height: 100%; object-fit: cover; }
.t-piedra { left: 0; top: 56.25%; width: 43.75%; height: 43.75%; background: var(--terracota); color: var(--white); text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(14px, 2vw, 26px); transition: background-color .2s ease; }
a.t-piedra:hover { background: #A5653F; }
.t-piedra .t-big { font-family: var(--f-label); font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.05; letter-spacing: .02em; }
.t-muro-h { left: 50%; top: 81.25%; width: 50%; height: 18.75%; background: var(--espresso); color: var(--marfil);
  display: flex; align-items: center; padding: 0 clamp(14px, 1.6vw, 22px); }
.t-muro-h .label { color: var(--taupe); white-space: nowrap; } /* una sola línea también en español («República Dominicana») */
/* Sales: las tres piezas llevan foto y su nombre (Lots, Lands, Villas) */
.t-photo { background: var(--moca); }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 24, 15, 0) 40%, rgba(30, 24, 15, .6)); }
.t-muro-h.t-photo { padding: 0; }
.t-piedra.t-photo { padding: 0; }
.t-piedra.t-photo img { object-position: center 60%; } /* Villas: la villa principal con su piscina */
.t-muro-h.t-photo img { object-position: center 55%; } /* Apartments: el edificio con la piscina (Altos Apartment 14) */
.t-muro-v.t-photo--cranes img { object-position: 40% center; }
.t-muro-h.t-photo--house img { object-position: center 68%; transform: scale(1.03); }
.t-tag { position: absolute; z-index: 1; left: clamp(8px, 1vw, 14px); bottom: clamp(8px, 1vw, 12px); font-family: var(--f-label); font-weight: 500;
  font-size: clamp(11px, 1vw, 14px); letter-spacing: .14em; text-transform: uppercase; color: var(--marfil); text-shadow: 0 1px 8px rgba(30, 24, 15, .5); }
.t-solar .t-tag { left: auto; right: clamp(10px, 1.2vw, 16px); } /* la esquina inferior izquierda del solar está recortada */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
@media (min-width: 901px) {
  .feature--development { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(32px, 4.5vw, 72px); }
}
/* El cuadrado mide lo mismo que el texto: borde superior con la etiqueta y borde inferior con el botón,
   así la sección queda con el espacio estándar arriba y abajo (Sales) */
.feature--fit { align-items: stretch; }
.feature--fit .feature__square { position: relative; }
.feature--fit .feature__square .tetris { position: absolute; top: 0; bottom: 0; right: 0; width: auto; height: 100%; }
@media (max-width: 900px) {
  .feature--fit .feature__square .tetris { position: relative; height: auto; width: 100%; max-width: 420px; }
}
.feature__text .h2 { margin: 16px 0 24px; }
.sales-title { font-size: clamp(24px, 3.6vw, 46px); text-wrap: balance; }
.feature--development .feature__text .h2 { margin-top: 0; }
.feature__text p + p { margin-top: 16px; }
.feature__text .link, .feature__text .btn { margin-top: 32px; }
@media (min-width: 901px) {
  .feature--development .feature__text .h2 { font-size: clamp(32px, 3.2vw, 46px); white-space: nowrap; }
  .feature--development .feature__square .tetris { transform: scale(1.20175); }
}

/* portada: información a la izquierda, símbolo de proyectos a la derecha */
.home-story__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 595px); gap: clamp(48px, 6vw, 88px); align-items: center; }
.home-story__intro { margin-bottom: clamp(28px, 3vw, 42px); }
.home-story__intro .label { margin-bottom: 16px; }
.home-story__intro .h2 { max-width: none; } /* dos líneas fijas: «Building in the Dominican / Republic since 2003.» */
.home-story__intro .h2 { font-size: clamp(30px, 3.35vw, 53px); }
@media (max-width: 620px) { .home-story__intro .h2 br { display: none; } }
.home-story__intro .lead { max-width: 55ch; margin-top: 22px; }
.home-story__mosaic { position: relative; width: 100%; max-width: 595px; aspect-ratio: 1; }
.home-story__piece { position: absolute; overflow: hidden; background: var(--moca); }
.home-story__piece img { width: 100%; height: 100%; object-fit: cover; }
.home-story__piece--vertical { left: 0; top: 0; width: 18.75%; height: 50%; }
.home-story__piece--angle img { object-position: 62% center; } /* Barranca 21: casa arriba a la derecha, la muesca cae sobre el césped */
.home-story__piece--vertical img { object-position: 45% center; } /* el solar de Barranca Este 30 */
.home-story__piece--angle { left: 25%; top: 0; width: 75%; height: 75%; clip-path: polygon(0 0, 100% 0, 100% 100%, 33.333% 100%, 33.333% 66.667%, 0 66.667%); }
.home-story__piece--square { left: 0; top: 56.25%; width: 43.75%; height: 43.75%; }
.home-story__piece--horizontal { left: 50%; top: 81.25%; width: 50%; height: 18.75%; }
.home-story__piece--horizontal img { object-position: center 62%; } /* piscina con la fila de tumbonas */
.home-story__portfolio-caption > .label { margin-bottom: 20px; }
.home-story__project-list { list-style: none; margin: 0; padding: 0; }
.home-story__project-list li { display: flex; padding: 16px 0; border-top: 1px solid var(--rule); color: var(--espresso); font-size: clamp(19px, 1.8vw, 25px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.home-story__project-list li:last-child { border-bottom: 1px solid var(--rule); }
.home-story__project-number { flex: none; font-family: var(--f-label); font-size: 14px; font-weight: 500; letter-spacing: .1em; color: var(--terracota); }
.home-story__piece--square img { object-position: 50% center; } /* EcoVista: valle de Jarabacoa */
/* Proyectos insignia: cada fila es un enlace a Projects */
.home-story__project-list li > a { display: flex; align-items: baseline; gap: 18px; width: 100%; color: inherit; text-decoration: none; transition: color .25s ease; }
.home-story__project-list li > a:hover { color: var(--terracota); }
.home-story__project-place { margin-left: auto; font-family: var(--f-label); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; } /* misma letra que la etiqueta «Take a peek…» */
.home-story__foot { display: flex; margin-top: 28px; }

/* ---------- tarjetas de proyecto (foto con texto superpuesto) ---------- */
.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } /* 4 por fila: tarjetas un 20–25 % más pequeñas */
@media (max-width: 1180px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--moca); color: var(--marfil); text-decoration: none;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover img { transform: scale(1.04); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 29, 18, 0) 38%, rgba(36, 29, 18, .88) 100%); }
.card__tags { position: absolute; left: 20px; top: 20px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px; }
.card__body h3 { color: var(--marfil); font-size: clamp(24px, 2.2vw, 30px); }
.card__body p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: #E8DFD3; max-width: 34ch; }
.card__loc { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-family: var(--f-label); font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.corners span { position: absolute; z-index: 2; width: 18px; height: 18px; border: 0 solid var(--marfil); opacity: 0; transition: opacity .3s ease; }
.card:hover .corners span { opacity: 1; }
/* Tarjetas con varias fotos: una a la vez, se pasan con las flechas */
.card__slides { position: absolute; inset: 0; }
.card__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.card__slide.is-on { opacity: 1; }
.card__nav { position: absolute; top: 42%; z-index: 3; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(243, 238, 231, .85); color: var(--espresso); font-size: 24px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .25s ease, background-color .2s ease; }
.card__nav--prev { left: 12px; }
.card__nav--next { right: 12px; }
.card:hover .card__nav, .card__nav:focus-visible { opacity: 1; }
.card__nav:hover { background: var(--marfil); }
@media (hover: none) { .card__nav { opacity: 1; } }
.card__dots { position: absolute; right: 18px; top: 24px; z-index: 2; display: flex; gap: 6px; }
.card__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(243, 238, 231, .45); }
.card__dots span.is-on { background: var(--marfil); }
/* Sin foto todavía: fondo de color (verde los solares, gris Rancho Arriba) */
.card--green { background: var(--oliva); }
.card--gray { background: #8E8A84; }
.card--green::after, .card--gray::after { background: linear-gradient(180deg, rgba(36, 29, 18, 0) 50%, rgba(36, 29, 18, .35) 100%); }
.corners span:nth-child(1) { left: 12px; top: 12px; border-width: 2px 0 0 2px; }
.corners span:nth-child(2) { right: 12px; top: 12px; border-width: 2px 2px 0 0; }
.corners span:nth-child(3) { left: 12px; bottom: 12px; border-width: 0 0 2px 2px; }
.corners span:nth-child(4) { right: 12px; bottom: 12px; border-width: 0 2px 2px 0; }

/* filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
/* Projects: los filtros van bajo el título; el párrafo de la derecha termina a la altura de los filtros */
.projects-head { margin-bottom: 32px; }
.projects-head .filters { margin: clamp(22px, 2.4vw, 32px) 0 0; }
/* Escritorio: título y filtros en una sola línea; la columna izquierda mide lo que ellos necesitan */
@media (min-width: 1000px) {
  .projects-head { grid-template-columns: max-content minmax(0, 1fr); }
  .projects-head .h2 { white-space: nowrap; }
  .projects-head .filters { flex-wrap: nowrap; }
}
.filter {
  font-family: var(--f-label); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid var(--taupe); background: var(--marfil); color: var(--espresso); cursor: pointer; /* fondo sólido: la cuadrícula no se ve a través */
}
.filter[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--marfil); }
.filter:hover { border-color: var(--espresso); }
.card[hidden] { display: none; }

/* galería */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: clamp(420px, 52vw, 680px); }
.gallery figure { margin: 0; overflow: hidden; background: var(--moca); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- historia ---------- */
.section--story .section-head { grid-template-columns: minmax(0, 1fr); margin-bottom: clamp(26px, 3vw, 40px); }
.section--story .h2 { white-space: nowrap; }
.history-timeline { position: relative; }
.history-timeline__rail { position: absolute; top: 37px; left: 0; right: 0; height: 14px; pointer-events: none; }
.history-timeline__rail::before { content: ""; position: absolute; left: 0; right: 10px; top: 6px; height: 2px; background: var(--terracota); }
.history-timeline__rail::after {
  content: ""; position: absolute; top: 1px; right: 3px; width: 12px; height: 12px;
  border-top: 2px solid var(--terracota); border-right: 2px solid var(--terracota); transform: rotate(45deg);
}
.history-axis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px);
  position: relative; list-style: none; margin: 0; padding: 0;
}
.history-axis__item { position: relative; display: flex; flex-direction: column; min-width: 0; padding-top: 76px; }
.history-axis__item::before {
  content: ""; position: absolute; z-index: 1; top: 44px; left: 50%; width: 14px; height: 14px;
  background: var(--terracota); border: 3px solid var(--marfil); border-radius: 50%; transform: translate(-50%, -50%);
}
.history-axis__item::after {
  content: ""; position: absolute; left: 50%; top: 51px; height: 25px; border-left: 2px solid var(--terracota);
}
.history-point__when {
  position: absolute; top: 0; left: 0; right: 0; text-align: center;
  font-family: var(--f-label); font-size: 13px; font-weight: 500; letter-spacing: .1em; line-height: 1.25;
  text-transform: uppercase; color: var(--terracota);
}
.history-point { flex: 1; width: min(100%, 258px); margin: 0 auto; padding: 20px; background: var(--white); border: 1px solid var(--rule); }
.history-point__title { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.15; font-weight: 500; color: var(--espresso); }
.history-point p { margin-top: 16px; font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) {
  .section--story .section-head { margin-bottom: clamp(32px, 5vw, 48px); }
  .section--story .h2 { white-space: normal; }
  .history-timeline__rail { display: none; }
  .history-axis { display: block; min-height: 0; margin-left: 8px; padding-left: 30px; border-left: 2px solid var(--terracota); }
  .history-axis__item { padding-top: 0; margin-bottom: 28px; }
  .history-axis__item:last-child { margin-bottom: 0; }
  .history-axis__item::before { top: 8px; left: -31px; }
  .history-axis__item::after { top: 8px; left: -31px; width: 30px; height: 0; border-left: 0; border-top: 2px solid var(--terracota); }
  .history-point__when { position: static; display: block; width: 100%; margin-bottom: 10px; text-align: left; }
  .history-point { width: 100%; }
}
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.value { border-top: 3px solid var(--espresso); padding-top: 18px; }
.value h3 { font-size: 24px; margin-bottom: 8px; }
.value p { font-size: 15.5px; line-height: 1.55; }
.section--dark .value { border-color: var(--terracota); }
.values--accent .value { border-color: var(--espresso); } /* mismo marrón que el pie */
.values--accent .value h3 { color: var(--espresso); }
.family { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.family__item { background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; }
.family__item--parent { background: var(--espresso); color: #D9CDBB; }
.family__item--parent h3 { color: var(--marfil); }
.family__item .logo { height: 54px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; } /* logos centrados; el texto sigue a la izquierda */
.family__item .logo img { max-height: 54px; width: auto; }
.family__item--ecovista .logo { background: var(--espresso); }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid #57493A; }
.contact__list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid #57493A; color: var(--marfil); }
.contact__list .label { color: var(--taupe); padding-top: 3px; }
.ph { border-bottom: 1px dashed currentColor; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--f-label); font-weight: 500; font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid #6E5F4C; color: var(--marfil); padding: 10px 0; font-size: 17px; border-radius: 0;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--taupe) 50%), linear-gradient(135deg, var(--taupe) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--espresso); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--terracota); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: 14px; color: var(--taupe); }
.form button.btn { border: 0; cursor: pointer; padding: 0; }

/* ---------- llamada a la acción (cierre de cada página) ---------- */
.cta { padding: var(--section) 0; text-align: center; }
.cta__title { max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.cta__body { max-width: 560px; margin: 22px auto 0; color: #D9CDBB; text-wrap: balance; }
.cta__actions { margin-top: 36px; display: flex; justify-content: center; }

/* ---------- pie ---------- */
.site-footer { background: var(--espresso); color: #CDBFAA; }
.parcel { --tile: 9; height: 72px; background-color: var(--espresso); background-image: url("../brand/pattern.svg?v=f5b2e3fb"); background-size: 72px 72px; background-position: 0 0; position: relative; overflow: hidden; }
/* una sola piedra en el patrón: baldosa de 72 px, piedra a (7,2 ; 39,6) y 25,2 px de lado */
.parcel .stone-mark { position: absolute; left: calc(72px * var(--tile) + 7.2px); top: 39.6px; width: 25.2px; height: 25.2px; background: var(--terracota); }
@media (max-width: 700px) { .parcel { --tile: 3; } }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; border-bottom: 1px solid #57493A; }
.footer-main .brand { width: 230px; }
.footer-main h4 { font-family: var(--f-label); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-bottom: 16px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-main a { text-decoration: none; color: var(--marfil); }
.footer-main a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--terracota); text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 24px 32px; font-size: 14px; color: var(--taupe); }

/* ---------- aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  :root { --header-h: 72px; }
  .brand { width: 172px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer;
    font-family: var(--f-label); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--espresso); padding: 10px 0;
  }
  .menu-btn .bars { width: 22px; height: 12px; position: relative; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
  .menu-btn .bars::before { top: 0; }
  .menu-btn .bars::after { top: 10px; }
  .site-header.on-dark .menu-btn { color: var(--marfil); }
  .nav {
    position: fixed; inset: 0; z-index: -1; background: var(--espresso);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
    padding: var(--header-h) var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  .nav__links { flex-direction: column; gap: 6px; margin-left: 0; }
  .nav__right { margin-left: 0; gap: 28px; }
  .lang a, .site-header.on-dark .lang a { color: #D9CDBB; font-size: 16px; }
  .lang a[aria-current="true"], .site-header.on-dark .lang a[aria-current="true"] { color: var(--marfil); }
  .nav__links a, .site-header.on-dark .nav__links a { color: var(--marfil); font-size: 36px; font-weight: 600; letter-spacing: -0.03em; text-shadow: none; }
  .nav__cta, .site-header.on-dark .nav__cta { color: var(--marfil); border-color: var(--marfil); }
  .nav-open .nav { opacity: 1; visibility: visible; }
  /* el desenfoque crearía un bloque contenedor y encogería el menú a pantalla completa */
  .nav-open .site-header,
  .nav-open .site-header.is-scrolled:not(.is-hidden),
  .nav-open .site-header.is-scrolled.on-dark:not(.is-hidden) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open .site-header .logo-dark { display: none; }
  .nav-open .site-header .logo-light { display: block; }
  .nav-open .menu-btn { color: var(--marfil); }
  .nav-open .menu-btn .bars::before { top: 5px; transform: rotate(45deg); }
  .nav-open .menu-btn .bars::after { top: 5px; transform: rotate(-45deg); }
  .nav-open { overflow: hidden; }
}
@media (max-width: 900px) {
  .section-head, .intro, .feature, .contact, .home-story__layout { grid-template-columns: minmax(0, 1fr); }
  .section-head--values .values-intro { margin-top: 8px; transform: none; }
  .section--family .h2 { white-space: normal; }
  .home-story__layout { gap: 40px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .family { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .gallery figure { aspect-ratio: 4 / 3; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .home-story__portfolio-caption > .label { margin-bottom: 12px; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .card { aspect-ratio: 4 / 4.4; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat:nth-child(odd) { border-right: 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .contact__list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- portada partida (alquileres) ---------- */
.split-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(78svh, 760px); background: var(--espresso); }
.split-hero__text { display: flex; align-items: flex-end; padding: calc(var(--header-h) + 48px) clamp(24px, 5vw, 80px) clamp(48px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); color: var(--marfil); }
.split-hero__text h1 { color: var(--marfil); }
.split-hero__text .lead { color: #E3D8C9; margin-top: 22px; max-width: 470px; }
.split-hero__media { position: relative; overflow: hidden; }
.split-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- tarjeta de llamada a la acción en el portafolio ---------- */
.cta-card { grid-column: span 1; /* mismo tamaño que una tarjeta de proyecto: ocupa el hueco al lado de la última */ display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(28px, 3vw, 44px); background: var(--espresso); color: var(--marfil); text-decoration: none; min-height: 260px; position: relative; overflow: hidden; }
.cta-card .h3 { color: var(--marfil); font-size: clamp(24px, 2.1vw, 32px); max-width: 16ch; margin-top: 12px; }
.cta-card .btn { align-self: flex-start; }
.cta-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 1; background: url("../brand/crd-symbol-inverse.svg?v=4714d0e3") center / contain no-repeat; opacity: .14; transform: translate(12%, 12%); }
.cta-card:hover .btn { background: var(--white); }
.cta-card:hover .btn__stone { width: 64px; }
@media (max-width: 900px) {
  .split-hero { grid-template-columns: minmax(0, 1fr); }
  .split-hero__media { min-height: 56vw; order: 2; }
  .split-hero__text { padding-left: var(--gutter); }
}
@media (max-width: 620px) { .cta-card { grid-column: auto; } }

/* ---------- inicio: título de portada y tres tarjetas ---------- */
.hero__title--home { max-width: 17ch; }
/* portada del inicio: el nombre del logotipo en una línea (sin el símbolo) y debajo, en pequeño, el descriptor */
.hero .hero-mark { display: flex; flex-direction: column; width: clamp(280px, 64vw, 940px); max-width: 100%; margin: 0; }
.hero-mark picture { display: block; }
.hero-mark__name { display: block; width: 100%; height: auto; }
.hero-mark__sub {
  display: block; margin-top: clamp(12px, 1.3vw, 20px);
  font-family: var(--f-label); font-weight: 500; font-size: clamp(12px, 1.1vw, 16px); line-height: 1.3;
  letter-spacing: .2em; text-transform: uppercase; color: #E9DFD2;
}
/* un 5 % más abajo que el título anterior */
.hero__content--home { padding-bottom: clamp(36px, 3.8vw, 55px); }
@media (max-width: 620px) { .hero .hero-mark { width: min(280px, 100%); } }
.intro__title { font-size: clamp(40px, 4.8vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
.mini-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.mini-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 20px 20px 18px;
  background: var(--white); color: var(--espresso); text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.mini-card__name { margin-top: auto; font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.mini-card__arrow { position: absolute; right: 18px; top: 16px; color: var(--terracota); font-size: 18px; transition: transform .2s ease; }
.mini-card:hover { background: var(--espresso); color: var(--marfil); }
.mini-card:hover .label { color: var(--taupe); }
.mini-card:hover .mini-card__arrow { transform: translateX(4px); }
@media (max-width: 620px) { .mini-cards { grid-template-columns: minmax(0, 1fr); } .mini-card { min-height: 0; } }

/* ---------- EcoVista: casa cuadrada arriba, texto a la derecha y tres imágenes debajo ---------- */
.gallery--eco { height: auto; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: clamp(294px, 28.32vw, 363px) clamp(220px, 22vw, 320px); }
.gallery--eco figure.gallery__main { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: auto; }
.gallery__text { grid-column: 2 / span 2; grid-row: 1; background: var(--marfil);
  padding: clamp(28px, 3.2vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.gallery__text--grid { background-image: linear-gradient(rgba(98, 76, 61, .0693) 1px, transparent 1px), linear-gradient(90deg, rgba(98, 76, 61, .0693) 1px, transparent 1px); background-size: 72px 72px; }
.gallery__text .h2 { margin: 0; }
.gallery__text > div { margin-top: 8px; }
.gallery--eco .gallery__land { grid-column: 1; grid-row: 2; }
.gallery--eco .gallery__interior--living { grid-column: 2; grid-row: 2; }
.gallery--eco .gallery__interior--bedroom { grid-column: 3; grid-row: 2; }
@media (max-width: 900px) {
  .gallery--eco { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery--eco figure.gallery__main { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .gallery__text { grid-column: 1 / -1; grid-row: auto; }
  .gallery--eco .gallery__land, .gallery--eco .gallery__interior--living, .gallery--eco .gallery__interior--bedroom { grid-column: auto; grid-row: auto; }
  .gallery--eco .gallery__interior--bedroom { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* portada del inicio centrada: nombre en dos líneas centradas, al mismo tamaño de letra que la versión en una línea */
.hero--center { align-items: center; justify-content: center; }
.hero--center .hero__content { display: flex; justify-content: center; text-align: center; padding: var(--header-h) 0 0; }
.hero--center .hero-mark { align-items: center; width: clamp(260px, 35.6vw, 512px); }
.hero--center .hero-mark__sub { margin-top: clamp(14px, 1.4vw, 22px); }
/* Como en la portada de ElyBlack: un velo ligero sobre toda la foto, para que conserve su luz,
   y una sombra suave y difuminada detrás de cada palabra, por separado. */
.hero--center .hero__media::after {
  background: linear-gradient(180deg, rgba(30, 24, 15, .42) 0%, rgba(30, 24, 15, .16) 30%, rgba(30, 24, 15, .19) 75%, rgba(30, 24, 15, .55) 100%);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* el nombre del logotipo palabra a palabra: mismo tamaño, espaciado e interlineado que en la firma */
.hero--center .hero-mark { isolation: isolate; width: auto; --cap: clamp(19.8px, 2.718vw, 39.1px); } /* +20 % */
.hero-name { display: flex; flex-direction: column; align-items: center; gap: calc(var(--cap) * .437); }
.hero-name__line { display: flex; align-items: flex-end; gap: calc(var(--cap) * .587); }
.hero-name img { display: block; height: calc(var(--cap) * 1.106); width: auto; }
.hero-name .w, .hero-mark__sub .w { position: relative; display: inline-block; }
.hero-name .w::before, .hero-mark__sub .w::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  border-radius: 999px; background: rgba(36, 29, 18, .62);
}
.hero-name .w::before { inset: calc(var(--cap) * -.16) calc(var(--cap) * -.22); filter: blur(6px); }
.hero--center .hero-mark__sub { word-spacing: .45em; margin-top: calc(var(--cap) * .75); font-size: clamp(12.5px, 1.32vw, 19.2px); }
.hero-mark__sub .w::before { inset: -4px -6px; filter: blur(4px); }

/* cifras en una franja de cuatro, al pie de «Three Pillars» */
.stats--row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 3vw, 44px); background: var(--marfil); }
.stats--row .stat { border-right: 1px solid var(--rule); }
.stats--row .stat:last-child { border-right: 0; }
@media (max-width: 900px) {
  .stats--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--row .stat:nth-child(2n) { border-right: 0; }
}
@media (max-width: 620px) { .stats--row .stat { border-right: 0; } }

/* «What we do»: etiqueta a la izquierda y el texto a su altura, en dos líneas */
.pillars-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: baseline; margin-bottom: clamp(32px, 3.4vw, 48px); }
.pillars-head .lead { font-size: clamp(17px, 1.4vw, 20px); max-width: none; color: var(--espresso); }
.stats--row { margin-top: 0; margin-bottom: 20px; }
@media (max-width: 900px) { .pillars-head { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* portada del inicio, como la de Caribbean Luxury Villas: CARIBBEAN grande, REALTY DEVELOPMENT espaciado,
   separador de dos líneas con el símbolo de CRD en el centro y el descriptor debajo. Sin sombras detrás. */
.hero .hero-clv { display: flex; flex-direction: column; align-items: center; margin: 0; width: clamp(290px, 46vw, 700px); max-width: 100%; }
.hero-clv__big { display: block; width: 100%; height: auto; }
.hero-clv__small { display: block; width: 92%; height: auto; margin-top: clamp(14px, 1.7vw, 26px); }
.hero-clv__sepbox { position: relative; display: block; margin-top: clamp(20px, 2.4vw, 36px); }
.hero-clv__sep { display: flex; align-items: center; gap: clamp(10px, 1vw, 16px); }
.hero-clv__sep--ghost { display: none; }
.hero-clv__sep span { display: block; width: clamp(60px, 8vw, 118px); height: 2px; background: var(--marfil); opacity: .85; }
.hero-clv__sep img { display: block; width: clamp(24px, 2.4vw, 36px); height: auto; }
.hero-clv__sub { display: block; margin-top: clamp(18px, 2vw, 30px); font-family: var(--f-sans); font-weight: 400;
  font-size: clamp(16px, 1.45vw, 21px); line-height: 1.45; letter-spacing: .01em; color: var(--marfil); }
.hero--center .hero__media::after {
  background: linear-gradient(180deg, rgba(30, 24, 15, .45) 0%, rgba(30, 24, 15, .28) 35%, rgba(30, 24, 15, .3) 70%, rgba(30, 24, 15, .55) 100%);
}
/* sombra letra a letra (sigue la forma de cada letra), con la mitad de intensidad que la anterior (0,62 → 0,31) */
.hero-clv__big, .hero-clv__small, .hero-clv__sep img {
  filter: drop-shadow(0 0 4px rgba(36, 29, 18, .31)) drop-shadow(0 0 12px rgba(36, 29, 18, .31));
}
.hero-clv__sep span { box-shadow: 0 0 10px rgba(36, 29, 18, .31); }
.hero-clv__sub { text-shadow: 0 0 4px rgba(36, 29, 18, .31), 0 0 12px rgba(36, 29, 18, .31); }

/* «Three pillars»: etiqueta y título a la izquierda, el párrafo algo más a la derecha */
.pillars-head2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); margin-bottom: clamp(32px, 3.6vw, 52px); }
.pillars-head2 .label { margin-bottom: 14px; }
@media (max-width: 900px) { .pillars-head2 { grid-template-columns: minmax(0, 1fr); } }
/* título en una línea y el párrafo debajo, en dos líneas; menos aire arriba (≈55 %) */
.section--pillars { padding-top: var(--section); }
.pillars-head2 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pillars-head2 .h2 { white-space: nowrap; }
.pillars-head2 .lead { max-width: 1120px; }
@media (max-width: 760px) { .pillars-head2 .h2 { white-space: normal; } }

/* barra: la misma sombra que el título de la portada (dos capas suaves al 31 %) en todos sus elementos */
.site-header .brand img, .site-header .nav__cta, .site-header .menu-btn .bars {
  filter: drop-shadow(0 0 4px rgba(36, 29, 18, .31)) drop-shadow(0 0 12px rgba(36, 29, 18, .31));
}
.site-header .nav__links a, .site-header.on-dark .nav__links a,
.site-header .lang a, .site-header.on-dark .lang a, .site-header .lang__sep, .site-header .menu-btn__text {
  text-shadow: 0 0 4px rgba(36, 29, 18, .31), 0 0 12px rgba(36, 29, 18, .31);
}
.nav-open .site-header .nav__links a, .nav-open .site-header .lang a { text-shadow: none; }

/* tarjetas de los pilares: toda la tarjeta lleva a la página interna; el enlace de abajo, a la web externa */
.pillar { position: relative; }
.pillar__cover { position: absolute; inset: 0; z-index: 1; }
.pillar__title { color: inherit; text-decoration: none; }
.pillar__title:focus-visible { outline: 2px solid var(--terracota); outline-offset: 4px; }
.pillar__ext { position: relative; z-index: 2; }
.pillar:hover .pillar__media img { transform: scale(1.03); }
/* la franja de cifras queda centrada: el mismo espacio arriba (desde el párrafo) que abajo (hasta las tarjetas) */
.section--pillars .pillars-head2 { margin-bottom: clamp(22px, 2.52vw, 36px); } /* −30 % */
.section--pillars .stats--row { margin-top: 0; margin-bottom: clamp(22px, 2.52vw, 36px); } /* −30 % */
/* móvil: cifras en 2 × 2 con línea vertical en el medio */
@media (max-width: 620px) {
  .stats--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--row .stat { padding: 20px 16px; }
  .stats--row .stat:nth-child(odd) { border-right: 1px solid var(--rule); }
}
/* el enlace con el dominio nunca se sale de la tarjeta */
.pillar__ext { max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
@media (max-width: 620px) { .pillar__body { padding: 24px 22px 26px; } .pillar__ext { font-size: 14.5px; } }
/* dominio y flecha siempre en la misma línea; en móvil la letra se ajusta al ancho */
.pillar__ext { flex-wrap: nowrap; white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 620px) { .pillar__ext { font-size: min(14.5px, 4vw); gap: 6px; } }

/* Tarjeta de Caribbean Luxury Villas: foto al 120 % */
.pillar__media img.zoom-120 { transform: scale(1.2); }
.pillar:hover .pillar__media img.zoom-120 { transform: scale(1.236); }

/* ---------- efecto Ken Burns: portada, tres tarjetas y mosaico ----------
   Usa las propiedades scale y translate, que se suman al transform de los
   acercamientos y del hover sin pisarlos. Cada imagen va con su propio
   ritmo y dirección para que no se muevan todas a la vez. */
@keyframes kb-in-left  { from { scale: 1; translate: 0 0; } to { scale: 1.12; translate: -2.5% -1.5%; } }
@keyframes kb-in-right { from { scale: 1; translate: 0 0; } to { scale: 1.12; translate: 2.5% -1%; } }
@keyframes kb-in-down  { from { scale: 1.02; translate: 0 -1%; } to { scale: 1.12; translate: 1% 2%; } }
.hero--center .hero__media { overflow: hidden; }
.hero--center .hero__media img { animation: kb-in-left 26s ease-in-out infinite alternate; }
.pillar__media img { animation: kb-in-right 20s ease-in-out infinite alternate; }
.pillar:nth-child(2) .pillar__media img { animation-name: kb-in-down; animation-duration: 23s; animation-delay: -6s; }
.pillar:nth-child(3) .pillar__media img { animation-name: kb-in-left; animation-duration: 21s; animation-delay: -11s; }
.home-story__piece img { animation: kb-in-left 22s ease-in-out infinite alternate; }
.home-story__piece--angle img { animation-name: kb-in-right; animation-duration: 25s; animation-delay: -4s; }
.home-story__piece--square img { animation-name: kb-in-down; animation-delay: -9s; }
.home-story__piece--horizontal img { animation-name: kb-in-right; animation-duration: 19s; animation-delay: -14s; }
@media (prefers-reduced-motion: reduce) {
  .hero--center .hero__media img, .pillar__media img, .home-story__piece img { animation: none; }
}
/* Tarjeta de CLV: la casa queda a la derecha de la foto */
.pillar__media img.pos-right { object-position: 78% center; }

/* ---------- About · Meet the team ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.member__photo { width: clamp(72px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--arenisca); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.member__photo span { font-family: var(--f-label); font-size: clamp(20px, 2vw, 26px); letter-spacing: .1em; color: var(--taupe); }
.member .h3 { margin: 0; }
.member__role { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- entrada de la portada (solo la primera vez que se abre el sitio) ----------
   1. Aparece la raya, el símbolo y la raya en gris.
   2. Se llenan de blanco y color de izquierda a derecha.
   3. Se va el marrón (aparece la foto o se desvanece la pantalla de carga).
   4. Después aparece todo lo demás: títulos, contenido y la barra de navegación. 2,5 s en total.
   Sale al abrir el sitio y al recargar cualquier página. En la portada, arriba del todo, ocurre en el
   propio hero; en cualquier otro punto, en una pantalla de carga (.loader) que luego se desvanece. */
/* El marrón lo ponen la pantalla de carga y el hero de la portada; la página nunca cambia de fondo. */
@keyframes intro-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes intro-wipe { from { clip-path: inset(-40px 100% -40px -40px); } to { clip-path: inset(-40px -40px -40px -40px); } }
.intro-play .hero-clv__sep--ghost { display: flex; position: absolute; inset: 0; filter: grayscale(1) brightness(.75); opacity: 0; animation: intro-in .36s ease-out both; }
.intro-play .hero-clv__sepbox > .hero-clv__sep:not(.hero-clv__sep--ghost) { animation: intro-wipe 1.5s cubic-bezier(.2, .4, .55, .85) .36s both; } /* arranca rápido, frena al final y termina justo cuando aparece la página */
.intro-play:not(.intro-overlay) .hero--center .hero__media { animation: intro-in .4s ease-out 1.86s both; }
.intro-play:not(.intro-overlay) .hero-clv__big { animation: intro-up .45s cubic-bezier(.2, .7, .2, 1) 2.0s both; }
.intro-play:not(.intro-overlay) .hero-clv__small { animation: intro-up .45s cubic-bezier(.2, .7, .2, 1) 2.03s both; }
.intro-play:not(.intro-overlay) .hero-clv__sub { animation: intro-up .45s cubic-bezier(.2, .7, .2, 1) 2.05s both; }
.intro-play .site-header { animation: intro-in .4s ease-out 2.1s both; }
/* La sombra del separador es para leerlo sobre la foto; sobre el fondo liso de la carga se veía como un halo
   redondo detrás del símbolo. Se quita durante la entrada y vuelve suavemente cuando ya está la foto. */
.intro-play .hero-clv__sep img { filter: none; }
.intro-play .hero-clv__sep span { box-shadow: none; }
.hero-clv__sep img, .hero-clv__sep span { transition: filter .6s ease, box-shadow .6s ease; }
@keyframes intro-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
.loader { display: none; }
.intro-overlay .loader { display: flex; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; background: var(--espresso); animation: intro-out .4s ease 1.86s both; }
.intro-overlay .loader .hero-clv__sepbox { margin: 0; }
.intro-overlay .loader ~ main, .intro-overlay .loader ~ .site-footer { animation: intro-up .5s cubic-bezier(.2, .7, .2, 1) 2.0s both; }
@media (prefers-reduced-motion: reduce) { .intro-play * { animation: none !important; } .intro-play .hero-clv__sep--ghost { display: none; } }

/* ---------- Projects: portada desplegable (como el Concierge de Caribbean Luxury Villas) ----------
   Cuatro paneles (Desarrollos, Villas, Solares, Terrenos). Al pulsar uno se ensancha, muestra su texto
   y filtra las tarjetas de abajo; los filtros hacen lo mismo en sentido inverso. */
.proj-acc { position: relative; height: clamp(440px, 64svh, 640px); background: var(--espresso); overflow: hidden; }
.proj-acc__row { display: flex; height: 100%; }
.proj-acc__item { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow .86s cubic-bezier(.25, 1, .5, 1); }
.proj-acc__item + .proj-acc__item { border-left: 1px solid rgba(243, 238, 231, .22); }
.proj-acc__item.is-open { flex-grow: 5; }
.proj-acc__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.proj-acc__item:hover img { transform: scale(1.05); }
.proj-acc__item::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 24, 15, .45) 0%, rgba(30, 24, 15, .3) 45%, rgba(30, 24, 15, .65) 100%); transition: background-color .4s ease; }
.proj-acc__item:hover::after { background-color: rgba(30, 24, 15, .08); }
.proj-acc__trigger { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; color: var(--marfil); }
.proj-acc__v { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); white-space: nowrap;
  font-family: var(--f-label); font-weight: 500; font-size: clamp(18px, 1.7vw, 26px); letter-spacing: .14em; text-transform: uppercase;
  text-shadow: 0 0 4px rgba(36, 29, 18, .31), 0 0 12px rgba(36, 29, 18, .31); transition: opacity .35s ease; }
.proj-acc__item.is-open .proj-acc__v { opacity: 0; }
.proj-acc__item.is-open .proj-acc__trigger { cursor: default; }
.proj-acc__content { position: absolute; z-index: 3; left: clamp(24px, 3.5vw, 48px); bottom: clamp(28px, 4vw, 52px); width: min(520px, calc(100% - 64px));
  color: #EDE5DA; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .4s ease, transform .4s ease; }
.proj-acc__item.is-open .proj-acc__content { opacity: 1; transform: none; pointer-events: auto; transition-delay: .35s; }
.proj-acc__title { margin-top: 12px; color: var(--marfil); font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -0.035em; line-height: 1;
  text-shadow: 0 0 4px rgba(36, 29, 18, .31), 0 0 12px rgba(36, 29, 18, .31); }
.proj-acc__content p:not(.label) { margin-top: 14px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; max-width: 44ch; }
.proj-acc__close { position: absolute; z-index: 4; top: calc(var(--header-h) + 14px); right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(243, 238, 231, .85); color: var(--espresso); font-size: 24px; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.proj-acc__item.is-open .proj-acc__close { opacity: 1; pointer-events: auto; transition-delay: .35s; }
/* En móvil los paneles siguen siendo columnas, y el nombre va de pie (se lee de abajo hacia arriba) */
@media (max-width: 760px) {
  .proj-acc { height: clamp(250px, 40svh, 350px); }
  .proj-acc__item.is-open { flex-grow: 10; }
  .proj-acc__v { writing-mode: vertical-rl; transform: translate(-50%, -50%) rotate(180deg); font-size: 18px; }
  .proj-acc__content { left: 20px; bottom: 28px; width: calc(100% - 40px); }
  .proj-acc__title { font-size: 32px; }
  .proj-acc__content p:not(.label) { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .proj-acc__item, .proj-acc__item img, .proj-acc__content { transition: none; } }

/* Nombres en horizontal; cuando un panel está abierto, los demás son estrechos y su nombre se hace más pequeño */
.proj-acc__row.has-open .proj-acc__item:not(.is-open) .proj-acc__v { font-size: clamp(11px, 1vw, 15px); }
/* Las tarjetas de proyectos solo aparecen al elegir un tipo (panel o filtro) */
.js #completed-projects:not(.is-filtered) [data-projects] { display: none; }
.js #completed-projects:not(.is-filtered) .projects-head { margin-bottom: 0; }

/* Cabecera de Completed Projects: el párrafo va centrado en vertical entre el borde superior del título
   y el borde inferior de los filtros (la etiqueta pequeña queda fuera de esa medida) */
.projects-head__label { margin-bottom: 16px; }
@media (min-width: 1000px) {
  .projects-head { grid-template-columns: max-content minmax(0, 1fr); grid-template-areas: "label ." "title lead" "filters lead"; row-gap: 0; align-items: start; }
  .projects-head__label { grid-area: label; }
  .projects-head__title { grid-area: title; }
  .projects-head__filters { grid-area: filters; }
  .projects-head__lead { grid-area: lead; align-self: center; }
}
/* La tarjeta de contacto mide siempre lo mismo que una tarjeta de proyecto, y el símbolo no toca el botón */
.cta-card { aspect-ratio: 4 / 5; min-height: 0; }
@media (max-width: 620px) { .cta-card { aspect-ratio: 4 / 4.4; } }
.cta-card::after { top: 50%; bottom: auto; width: 30%; transform: translate(14%, -40%); }
/* Paneles de Projects: todos los textos llevan la misma sombra por letra que el título de la portada de la Home */
.proj-acc__content .label, .proj-acc__content p { text-shadow: 0 0 4px rgba(36, 29, 18, .31), 0 0 12px rgba(36, 29, 18, .31); }

/* ---------- páginas legales (privacidad y términos) ---------- */
.legal { padding-top: calc(var(--header-h) + var(--section)); }
.legal__wrap { max-width: 820px; }
.legal__title { margin-top: 16px; font-size: clamp(40px, 5vw, 72px); }
.legal__date { margin-top: 16px; color: var(--muted); font-size: 15px; }
.legal__body { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.legal__h2 { margin-top: clamp(32px, 3.4vw, 44px); font-size: clamp(22px, 1.9vw, 27px); letter-spacing: -0.02em; color: var(--espresso); }
.legal__body p { margin-top: 12px; font-size: 16.5px; line-height: 1.65; max-width: 68ch; }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--marfil); text-decoration: underline; }
.form__privacy { width: 100%; font-size: 14px; color: #CDBFAA; }
.form__privacy a { color: var(--marfil); }

/* ---------- Contacto (estructura de elyblack.com/contact) ---------- */
.contact-hero { min-height: clamp(480px, 62svh, 600px); }
.contact-hero .split-hero__text { align-items: center; }
.contact-hero .lead { max-width: 30ch; }
.contact-hero__direct { margin-top: clamp(28px, 3vw, 40px); color: var(--taupe); }
.contact-hero__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-hero__link { display: inline-flex; align-items: center; gap: 10px; color: var(--marfil); text-decoration: none; font-size: 16px; }
a.contact-hero__link:hover span { text-decoration: underline; }
.contact-hero__link .ph { color: #E3D8C9; }
.contact-form__title { margin: 0 0 clamp(24px, 3vw, 36px); color: var(--espresso); font-size: 16px; }
/* Formulario con recuadros, sobre el fondo arenisca */
.form--boxed { column-gap: clamp(20px, 3vw, 40px); row-gap: 22px; }
.form--boxed .field label { color: var(--muted); }
.form--boxed .field input, .form--boxed .field select, .form--boxed .field textarea {
  border: 1px solid #CDBFAA; background-color: var(--marfil); color: var(--espresso); padding: 0 16px; min-height: 54px; border-radius: 0; }
.form--boxed .field textarea { padding: 14px 16px; min-height: 150px; }
.form--boxed .field select { padding-right: 40px; background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; }
.form--boxed .field input:focus, .form--boxed .field select:focus, .form--boxed .field textarea:focus { border-color: var(--terracota); }
.form--boxed .form__privacy { color: var(--muted); }
.form--boxed .form__privacy a { color: var(--espresso); }
.form--boxed .form__note { color: var(--muted); }

/* Contacto con los colores intercambiados: texto de la portada sobre arenisca con cuadrícula,
   formulario sobre espresso */
.contact-hero .split-hero__text { background-color: var(--arenisca);
  background-image: linear-gradient(rgba(98, 76, 61, .0693) 1px, transparent 1px), linear-gradient(90deg, rgba(98, 76, 61, .0693) 1px, transparent 1px); background-size: 72px 72px; }
.contact-hero .split-hero__text h1 { color: var(--espresso); }
.contact-hero .split-hero__text .lead { color: var(--body, #4A3E31); }
.contact-hero__direct { color: var(--muted); }
.contact-hero__link { color: var(--espresso); }
.contact-hero__link .ph { color: var(--muted); }
.contact-form-section .contact-form__title { color: var(--taupe); }
.contact-form-section .form--boxed .field label { color: var(--taupe); }
.contact-form-section .form--boxed .field input, .contact-form-section .form--boxed .field select, .contact-form-section .form--boxed .field textarea {
  border-color: rgba(243, 238, 231, .28); background-color: rgba(243, 238, 231, .06); color: var(--marfil); }
.contact-form-section .form--boxed .field select option { color: var(--espresso); }
.contact-form-section .form--boxed .field input:focus, .contact-form-section .form--boxed .field select:focus, .contact-form-section .form--boxed .field textarea:focus { border-color: var(--terracota); }
.contact-form-section .form--boxed .form__privacy, .contact-form-section .form--boxed .form__note { color: #CDBFAA; }
.contact-form-section .form--boxed .form__privacy a { color: var(--marfil); }
/* Contacto: arriba del todo, el botón y EN / ES quedan sobre la foto, así que van en claro */
.page-contact .site-header:not(.is-scrolled) .nav__cta { color: var(--marfil); border-color: rgba(243, 238, 231, .75); text-shadow: 0 0 4px rgba(36, 29, 18, .31), 0 0 12px rgba(36, 29, 18, .31); }
.page-contact .site-header:not(.is-scrolled) .lang a, .page-contact .site-header:not(.is-scrolled) .lang__sep { color: var(--marfil); text-shadow: 0 0 4px rgba(36, 29, 18, .31), 0 0 12px rgba(36, 29, 18, .31); }
@media (max-width: 1040px) { .page-contact .site-header:not(.is-scrolled) .menu-btn { color: var(--espresso); } }
/* Contacto: la arenisca y la cuadrícula de la izquierda entran en la foto y se difuminan hasta la mitad de la imagen,
   para que el texto y la foto no se corten de golpe */
.contact-hero .split-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-color: var(--arenisca);
  background-image: linear-gradient(rgba(98, 76, 61, .0693) 1px, transparent 1px), linear-gradient(90deg, rgba(98, 76, 61, .0693) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .85) 12%, rgba(0, 0, 0, .45) 30%, transparent 50%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .85) 12%, rgba(0, 0, 0, .45) 30%, transparent 50%); }
/* En móvil la foto va arriba y «Let's talk» debajo; la arenisca sube desde el texto y se difumina hacia arriba en la foto */
@media (max-width: 900px) {
  .contact-hero .split-hero__media { order: 1; min-height: 72vw; }
  .contact-hero .split-hero__text { order: 2; padding-top: 8px; }
  /* la cabecera queda sobre la foto: logotipo y menú en claro */
  .page-contact .site-header:not(.is-scrolled) .logo-dark { display: none; }
  .page-contact .site-header:not(.is-scrolled) .logo-light { display: block; }
  .page-contact .site-header:not(.is-scrolled) .menu-btn { color: var(--marfil); text-shadow: 0 0 4px rgba(36, 29, 18, .31), 0 0 12px rgba(36, 29, 18, .31); }
  .contact-hero .split-hero__media::before { -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .85) 12%, rgba(0, 0, 0, .45) 30%, transparent 50%); mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .85) 12%, rgba(0, 0, 0, .45) 30%, transparent 50%); }
}
/* Contacto: el botón «Send inquiry» centrado (los textos de debajo siguen a la izquierda) */
.contact-form-section .form__foot > button.btn { margin-inline: auto; }

/* Móvil: las portadas de Development, Sales y About miden lo mismo, un 35 % más bajas que antes;
   el padding superior se reduce para que el texto quepa en esa altura */
@media (max-width: 760px) {
  .hero--page, .hero--sales { min-height: 380px; }
  .hero--page .hero__content { padding-top: calc(var(--header-h) + 32px); padding-bottom: 36px; }
}

/* Panel de Projects sin foto propia todavía (Terrenos): color liso, como las tarjetas pendientes */
.proj-acc__item--green { background: var(--oliva); }
/* Accesibilidad (contraste AA): sobre arenisca, las etiquetas pequeñas van en moca en vez del marrón suave */
.section--arenisca .label:not(.label--light) { color: var(--moca); }
.history-point__when { color: #94582F; }  /* terracota oscurecido: el terracota de marca no llega a 4,5:1 en texto de 13 px */
.btn--soon, .btn--soon:hover { background: #94582F; }
.contact-hero__direct, .contact-hero__link .ph { color: var(--moca); }

/* pie: WhatsApp y correo con icono, sin mostrar el número ni la dirección */
.footer-contact a:has(svg) { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact svg { flex: none; }
.contact-hero__address { align-items: flex-start; max-width: 34ch; line-height: 1.5; }
.contact-hero__address svg { flex: none; margin-top: 4px; }

/* ---------- galería ampliada de Projects ---------- */
.card__open { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: none; cursor: zoom-in; }
.card__open:focus-visible { outline: 2px solid var(--marfil); outline-offset: -6px; }
.card:has(.card__open) .card__body, .card:has(.card__open) .card__tags { pointer-events: none; }
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 60vw; height: calc(60vw * .667 + 72px); max-width: none; max-height: 86vh; max-height: 86dvh; margin: auto; padding: 0; border: 0; background: var(--espresso, #1E1810); color: var(--marfil); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.lightbox[open] { display: flex; flex-direction: column; animation: lb-in .25s ease both; }
.lightbox::backdrop { background: rgba(30, 24, 16, .72); }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }
.lightbox__top { display: flex; align-items: center; gap: 18px; padding: 14px clamp(16px, 3vw, 32px); }
.lightbox__title { flex: 1; min-width: 0; margin: 0; font-family: var(--f-label); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #E3D8C9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__count { margin: 0; font-family: var(--f-label); font-size: 14px; letter-spacing: .14em; color: var(--taupe); }
.lightbox__close { width: 44px; height: 44px; border: 1px solid rgba(243, 238, 231, .35); background: none; color: var(--marfil); font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: var(--marfil); color: var(--espresso); }
.lightbox__track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { flex: 0 0 100%; min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px 12px; scroll-snap-align: center; scroll-snap-stop: always; }
.lightbox__slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border: 1px solid rgba(243, 238, 231, .55); background: rgba(30, 24, 16, .82); color: var(--marfil); font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox__nav:hover { background: var(--marfil); color: var(--espresso); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox.is-single .lightbox__nav { display: none; }
@media (max-width: 900px) { .lightbox { width: 94vw; height: calc(94vw * .667 + 72px); } }
@media (hover: none) and (max-width: 760px) { .lightbox__nav { display: none; } }

/* Formulario: casilla trampa contra robots (oculta) y estado del envío */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form[data-state="sent"] .form__note { color: var(--marfil); font-weight: 600; }
.form[data-state="error"] .form__note { color: #F0B49A; }
.form button.btn:disabled { opacity: .6; cursor: wait; }
.form__note:empty { display: none; }
.contact-form-section .form__note { width: 100%; margin: 0; text-align: center; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
