/* =========================================================
   INMOBILIARIA RAFF — REFINAMIENTO VISUAL + UBICACIÓN
   Arquitectura responsive consolidada y navegación móvil.
   ========================================================= */

:root {
  --ink: #171813;
  --paper: #f5f2eb;
  --paper-soft: #f8f6f1;
  --warm: #d7c7ad;
  --raff-cream: #e9dfcf;
  --olive: #6f7659;
  --olive-deep: #5f6550;
  --dark: #1b1d18;
  --white: #ffffff;
  --line: rgba(24, 25, 21, 0.14);
  --line-strong: rgba(24, 25, 21, 0.22);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  --shadow-soft: 0 18px 38px rgba(23, 24, 19, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --section-space: 110px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(15px, 0.35vw + 14px, 17px);
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(233, 223, 207, 0.72);
  outline-offset: 4px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--raff-cream);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Texto de lectura justificado. */
p:not(.eyebrow),
.intro-copy,
.hero-copy,
.hero-note,
.metric-copy,
.feature-card p,
.showcase-panel p,
.amenities-heading > p,
.amenity-caption p,
.location-heading > p,
.proximity-card p,
.gallery-heading > p,
.step p,
.cta-intro p,
.form-note,
.consent-field span,
.footer-tagline,
.footer-contact p,
.footer-bottom p,
.privacy-content p,
.privacy-intro > p:not(.eyebrow),
.privacy-callout p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

.eyebrow,
.brand-text,
.nav-links,
.mobile-menu-links,
.btn,
.text-link,
.metric-label,
.location-pills span,
.proximity-kicker,
.field-label,
.footer-links,
.footer-meta,
.footer-contact-link,
.mobile-menu-label,
.footer-links-group h3,
.footer-contact h3,
.cta-benefit strong {
  text-align: left;
}

.route-card-meta,
.route-card-meta strong,
.route-card-meta small {
  text-align: left;
}

/* =========================================================
   HERO + NAVEGACIÓN
   ========================================================= */

.site-header {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #111;
  color: var(--white);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.04) saturate(1.04);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 12, 10, 0.70) 0%, rgba(11, 12, 10, 0.42) 42%, rgba(11, 12, 10, 0.10) 72%, rgba(11, 12, 10, 0.22) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 48%);
}

.nav {
  position: relative;
  z-index: 60;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: 13px;
  letter-spacing: 0.13em;
}

.brand-icon {
  width: auto;
  height: 56px;
  flex: 0 0 auto;
  filter:
    brightness(0)
    saturate(100%)
    invert(91%)
    sepia(18%)
    saturate(316%)
    hue-rotate(338deg)
    brightness(96%)
    contrast(92%)
    drop-shadow(0 6px 18px rgba(0, 0, 0, 0.18));
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--raff-cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav-links > a:not(.nav-cta) {
  opacity: 0.86;
}

.nav-cta {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
}

.menu-toggle {
  position: relative;
  z-index: 70;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(233, 223, 207, 0.45);
  border-radius: 50%;
  background: rgba(23, 24, 19, 0.26);
  color: var(--raff-cream);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 16px;
}

.menu-toggle span:nth-child(2) {
  top: 23px;
}

.menu-toggle span:nth-child(3) {
  top: 30px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 23px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 23px;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.54);
  cursor: default;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: min(86vw, 420px);
  padding: 122px 34px 40px;
  overflow-y: auto;
  background: rgba(23, 24, 19, 0.985);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.22);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-label {
  margin: 0 0 22px;
  color: rgba(233, 223, 207, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.mobile-menu-links {
  display: grid;
}

.mobile-menu-links > a {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Manrope", sans-serif;
  font-size: clamp(25px, 5.6vw, 34px);
  line-height: 1.1;
  color: var(--raff-cream);
}

.mobile-menu-links > .mobile-menu-cta {
  margin-top: 28px;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--raff-cream);
  color: var(--ink);
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  padding-top: clamp(90px, 14vh, 150px);
  padding-bottom: 90px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow.dark {
  color: var(--olive);
}

.hero-content h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.04em;
}

.hero-content h1 span {
  color: var(--raff-cream);
  font-weight: 400;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-content h1,
.hero-copy,
.hero-note,
.hero-content .eyebrow {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: #e5d7bf;
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-dark-outline {
  border: 1px solid rgba(24, 25, 21, 0.16);
  background: var(--ink);
  color: var(--raff-cream);
}

.hero-note {
  max-width: 760px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.5;
}

.scroll-cue {
  position: absolute;
  right: 4vw;
  bottom: 28px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.scroll-cue span {
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  transform: rotate(45deg) translate(-1px, -1px);
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

.section {
  padding: var(--section-space) 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.035em;
}

.intro-copy {
  font-size: clamp(17px, 1.1vw + 12px, 20px);
}

.muted {
  color: #6f6f66;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 54px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading > p {
  color: #6e7068;
  font-size: clamp(16px, 0.7vw + 13px, 18px);
  line-height: 1.65;
}

/* =========================================================
   DATOS CLAVE
   ========================================================= */

.metrics-section {
  padding-top: 0;
  background: var(--paper);
}

.metrics-grid {
  display: grid;
  gap: 12px;
}

.metrics-grid-premium {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
}

.metric-card {
  min-width: 0;
  min-height: 100%;
  padding: 30px;
  border: 1px solid rgba(23, 24, 19, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
}

.metric-card-dark {
  background: var(--dark);
  color: var(--white);
}

.metric-label {
  display: block;
  margin-bottom: 18px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.metric-card-dark .metric-label {
  color: var(--raff-cream);
}

.metric-value {
  display: block;
  margin-bottom: 18px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 3vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.metric-card-dark .metric-value {
  color: var(--raff-cream);
}

.metric-copy {
  margin: 0;
  color: #66685f;
  line-height: 1.62;
}

.metric-card-dark .metric-copy {
  color: rgba(255, 255, 255, 0.72);
}

.metric-card-home-simple {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.72);
}

.metric-home-intro {
  min-width: 0;
  width: 100%;
  padding-top: 2px;
}

.metric-card-home .metric-value {
  margin-bottom: 14px;
}

.metric-value-context {
  font-size: clamp(30px, 2.5vw, 44px);
  line-height: 1.06;
}

.trust-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  color: #676960;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trust-signature i {
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(23, 24, 19, 0.18);
}


.home-overview-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px 54px;
  align-items: end;
  max-width: none;
}


.delivery-section-label {
  display: block;
  margin-bottom: 18px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* =========================================================
   PERSONALIZACIÓN
   ========================================================= */

.feature-band {
  background: #ebe6dc;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.feature-card {
  min-width: 0;
  min-height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Proporción aprobada; la fotografía es el elemento protagonista. */
.feature-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.feature-card-content {
  min-width: 0;
  padding: 18px 4px 0;
}

.feature-card h3 {
  margin: 0 0 9px;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: #62645d;
  line-height: 1.6;
}

/* =========================================================
   SHOWCASE — DOS TIPOLOGÍAS
   ========================================================= */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.45fr);
  align-items: stretch;
  background: var(--dark);
  color: var(--white);
}

.showcase-residence-images {
  min-width: 0;
  min-height: 760px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 0 6px 6px;
  background: var(--dark);
}

.showcase-residence-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #ddd;
}

.showcase-residence-card img {
  width: 100%;
  height: 100%;
  min-height: 748px;
  object-fit: cover;
}

.showcase-residence-card figcaption {
  position: absolute;
  top: 28px;
  left: 28px;
  padding: 12px 18px;
  border: 1px solid rgba(23, 24, 19, 0.08);
  border-radius: 8px;
  background: rgba(245, 242, 235, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.showcase-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(44px, 5vw, 86px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.showcase-panel h2 {
  font-size: clamp(40px, 4.6vw, 66px);
}

.showcase-panel p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 0.7vw + 13px, 18px);
  line-height: 1.65;
}

.text-link {
  margin-top: 24px;
  color: #dfd1b9;
  font-weight: 700;
}

/* =========================================================
   AMENIDADES
   ========================================================= */

.amenities-section,
.gallery-section {
  background: var(--paper-soft);
}

.amenities-heading,
.gallery-heading,
.location-heading,
.home-overview-heading {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: end;
  max-width: none;
}

.amenities-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 8px;
}

.amenity-card {
  position: relative;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ddd;
}

.amenity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.amenity-caption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(23, 24, 19, 0.78);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.amenity-caption h3 {
  margin: 8px 0;
  font-size: 28px;
}

.amenity-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* =========================================================
   UBICACIÓN
   ========================================================= */

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.map-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ece8de;
  box-shadow: 0 24px 50px rgba(23, 24, 19, 0.12), 0 8px 20px rgba(23, 24, 19, 0.06);
}

.map-frame {
  min-height: 460px;
  background: #ece8de;
}

.raff-location-map {
  width: 100%;
  min-height: 460px;
  overflow: hidden;
  background: #ece8de;
}

.raff-location-map svg {
  display: block;
  width: 100%;
  height: 460px;
}

.map-bg {
  fill: #ece8de;
}

.map-area {
  fill: #e4dfd3;
  opacity: 0.74;
}

.road {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.road-main {
  stroke: #c6bda9;
  stroke-width: 18;
}

.road-secondary {
  stroke: #d4ccbd;
  stroke-width: 10;
}

.road-local {
  stroke: #dad4c8;
  stroke-width: 5;
}

.map-label rect {
  fill: rgba(245, 242, 235, 0.94);
  stroke: rgba(23, 24, 19, 0.10);
  stroke-width: 1;
}

.map-label text {
  fill: #4f514a;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pin-halo {
  fill: rgba(111, 118, 89, 0.18);
}

.pin-shape {
  fill: var(--ink);
  filter: drop-shadow(0 12px 18px rgba(23, 24, 19, 0.24));
}

.pin-core {
  fill: var(--raff-cream);
}


.map-card-footer {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: auto;
  padding: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.map-card-actions .btn {
  min-width: 230px;
  justify-content: center;
  background: rgba(23, 24, 19, 0.96);
  border-color: rgba(23, 24, 19, 0.96);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(23, 24, 19, 0.26), 0 4px 10px rgba(23, 24, 19, 0.12);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}


.location-aside {
  display: grid;
  gap: 0;
  align-content: start;
}

.location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-pills span {
  padding: 9px 13px;
  border: 1px solid rgba(23, 24, 19, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 13px;
}

.proximity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.proximity-card {
  min-width: 0;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(23, 24, 19, 0.04);
}

.proximity-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.proximity-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
}

.proximity-card p {
  margin: 0;
  color: #63655d;
  line-height: 1.62;
}

/* Tarjetas compactas: mantienen el justificado sin cortes automáticos de palabra. */
.metric-card .metric-copy,
.proximity-card p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.route-gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px 22px;
  align-items: end;
  margin-top: 18px;
  margin-bottom: 14px;
}

.route-gallery-heading h3 {
  margin: 6px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
}

.route-gallery-heading p {
  margin: 0;
  color: #63655d;
}

.route-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.route-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 24px;
  background: transparent;
  clip-path: inset(0 round 24px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22), 0 8px 18px rgba(0, 0, 0, 0.12);
  cursor: zoom-in;
  text-align: left;
}

.route-visual {
  display: block;
  overflow: hidden;
  border: 0;
  outline: 0;
  border-radius: inherit;
  background: transparent;
}

.route-card img {
  display: block;
  width: calc(100% + 2px);
  max-width: none;
  height: calc(100% + 2px);
  margin: -1px;
  border: 0;
  outline: 0;
  border-radius: inherit;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.route-card-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, rgba(23, 24, 19, 0) 0%, rgba(23, 24, 19, 0.20) 40%, rgba(23, 24, 19, 0.76) 100%);
  color: var(--white);
  pointer-events: none;
}

.route-card-meta strong {
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  line-height: 1.05;
}

.route-card-meta small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

/* =========================================================
   GALERÍA DE REFERENCIA
   ========================================================= */

.gallery-heading {
  grid-template-columns: 1fr 0.75fr;
}

.gallery-sequences {
  display: grid;
  gap: 52px;
}

.gallery-sequence {
  min-width: 0;
}

.gallery-sequence-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 24, 19, 0.10);
}

.gallery-sequence-heading h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.03em;
}

.gallery-sequence-heading p {
  max-width: 520px;
  margin: 0;
  color: #6e7068;
  font-size: 14px;
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: 220px;
  gap: 6px;
}

.gallery-item {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: #ddd;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.45s ease;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
}

/* =========================================================
   PROCESO + CTA + FORMULARIO
   ========================================================= */

.process {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
}

.step {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}


.step h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.step p {
  color: #6f7169;
  line-height: 1.6;
}

.cta {
  padding: 100px 0 110px;
  background: linear-gradient(180deg, #6b7159 0%, #5f6550 100%);
  color: var(--white);
}

.cta-intro {
  max-width: 820px;
  margin-bottom: 30px;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: clamp(38px, 5vw, 72px);
  align-items: start;
}

.cta h2 {
  font-size: clamp(42px, 5vw, 66px);
}

.cta-intro > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(16px, 0.7vw + 13px, 18px);
  line-height: 1.65;
}

.cta-copy {
  min-width: 0;
}

.cta-benefits {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-benefit {
  display: grid;
  gap: 7px;
  padding: 22px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cta-benefit strong {
  color: var(--raff-cream);
  font-family: "Manrope", sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
}

.cta-benefit span {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.lead-form {
  display: grid;
  gap: 10px;
  padding: 32px;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(21, 23, 18, 0.14);
}

.lead-form label:not(.consent-field) {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

.field-label {
  display: block;
}

.lead-form input:not([type="checkbox"]),
.lead-form select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 14px 13px;
  border: 1px solid #d9d8d0;
  border-radius: var(--radius-sm);
  background: #faf9f6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input:not([type="checkbox"]):focus,
.lead-form select:focus {
  outline: none;
  border-color: #777e61;
  box-shadow: 0 0 0 3px rgba(111, 118, 89, 0.12);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.consent-field {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 8px;
  color: #5f6159;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  cursor: pointer;
}

.lead-form .consent-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--olive);
  cursor: pointer;
}

.consent-field a,
.footer-privacy-link,
.privacy-content a,
.footer-contact-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead-form .btn {
  width: 100%;
  margin-top: 6px;
}

.form-note {
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid #ebe9e1;
  color: #777;
  font-size: 11px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: transparent;
  color: #d7d8d1;
}

.footer-curve {
  line-height: 0;
  margin-top: -1px;
  background: var(--olive-deep);
}

.footer-curve svg {
  display: block;
  width: 100%;
  height: 122px;
}

.footer-surface {
  padding: 24px 0 30px;
  background: var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.65fr) minmax(240px, 0.75fr);
  gap: 38px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-light);
}

.footer-branding {
  display: grid;
  gap: 18px;
}

.footer-logo {
  width: min(220px, 100%);
  height: auto;
  filter:
    brightness(0)
    saturate(100%)
    invert(91%)
    sepia(18%)
    saturate(316%)
    hue-rotate(338deg)
    brightness(96%)
    contrast(92%);
}

.footer-tagline {
  max-width: 420px;
  margin: 0;
  color: #bfc0b8;
}

.footer-links-group h3,
.footer-contact h3 {
  margin-bottom: 14px;
  color: var(--raff-cream);
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: #d9d9d2;
}

.footer-contact p {
  margin: 0 0 14px;
  color: #bfc0b8;
}

.footer-contact-link {
  display: inline-flex;
  width: fit-content;
  color: var(--raff-cream);
}

.footer-contact-cta {
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  color: #888b81;
  font-size: 11px;
  line-height: 1.6;
}

.footer-bottom p {
  flex: 1;
  margin: 0;
}

.footer-meta {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: #b6b8ae;
  font-size: 11px;
}

.footer-privacy-link {
  color: #b6b8ae;
  white-space: nowrap;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox {
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* =========================================================
   AVISO DE PRIVACIDAD
   ========================================================= */

.privacy-body {
  background: var(--paper);
}

.privacy-header {
  background: var(--ink);
  color: var(--white);
}

.privacy-nav {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.privacy-brand img {
  width: 190px;
  height: auto;
  filter:
    brightness(0)
    saturate(100%)
    invert(91%)
    sepia(18%)
    saturate(316%)
    hue-rotate(338deg)
    brightness(96%)
    contrast(92%);
}

.privacy-back {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.privacy-page {
  padding: 92px 0 110px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.privacy-intro {
  position: sticky;
  top: 34px;
}

.privacy-intro h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -0.045em;
}

.privacy-updated {
  margin-top: 28px;
  color: #85877e;
  font-size: 12px;
}

.privacy-content {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.privacy-content section {
  padding: 32px 36px;
  border-bottom: 1px solid var(--line);
}

.privacy-content section:last-of-type {
  border-bottom: 0;
}

.privacy-content h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: -0.025em;
}

.privacy-content p {
  margin: 0;
  color: #5f6159;
  line-height: 1.72;
}

.privacy-callout {
  margin: 12px;
  padding: 24px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--white);
}

.privacy-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--raff-cream);
  font-family: "Manrope", sans-serif;
}

.privacy-callout p {
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   ELECCIÓN DE RESIDENCIA
   ========================================================= */

.residence-choice-section {
  padding-top: 48px;
  background: var(--paper);
}

.residence-choice-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 60px;
  align-items: end;
  max-width: none;
}

.residence-choice-heading > p {
  margin: 0;
  color: #6e7068;
  font-size: clamp(16px, 0.7vw + 13px, 18px);
  line-height: 1.65;
}

.residence-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.residence-choice-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 24, 19, 0.07);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.residence-choice-card-featured {
  background: rgba(249, 248, 243, 0.92);
}

.residence-choice-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #ddd;
}

.residence-choice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.residence-type-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(245, 242, 235, 0.92);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.residence-choice-content {
  padding: 28px 30px 30px;
}

.residence-choice-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--olive);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.residence-choice-content h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -0.03em;
}

.residence-choice-content p {
  margin: 0;
  color: #62645d;
  line-height: 1.62;
  text-align: justify;
  text-align-last: left;
}


.residence-choice-content .text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--olive-deep);
}

/* Construcción: franja editorial, sin mezclar especificación técnica con urgencia comercial. */
.residence-quality {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-top: 34px;
  padding: 28px 0;
  border-top: 1px solid rgba(23, 24, 19, 0.10);
  border-bottom: 1px solid rgba(23, 24, 19, 0.10);
}

.residence-quality-eyebrow {
  margin: 0 0 7px;
  color: var(--olive);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.residence-quality-title {
  display: block;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(32px, 3vw, 43px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.residence-quality-copy {
  max-width: 720px;
  margin: 0;
  color: #61645a;
  font-size: clamp(15px, 0.55vw + 13px, 17px);
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

/* =========================================================
   INTERACCIONES SOLO EN DISPOSITIVOS CON HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
  .nav-links a,
  .text-link,
  .btn,
  .privacy-back,
  .footer-privacy-link,
  .footer-links a,
  .footer-contact-link {
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  }

  .nav-links a:hover,
  .text-link:hover,
  .privacy-back:hover,
  .footer-privacy-link:hover,
  .footer-links a:hover,
  .footer-contact-link:hover {
    opacity: 0.72;
  }

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

  .gallery-item:hover img,
  .route-card:hover img {
    transform: scale(1.035);
  }
}

/* =========================================================
   TABLET + MÓVIL — <= 900px
   ========================================================= */

@media (max-width: 900px) {
  :root {
    --section-space: 88px;
  }

  .site-header {
    z-index: 1000;
  }

  .nav {
    position: fixed;
    z-index: 1200;
    top: 12px;
    left: 50%;
    width: min(1180px, calc(100% - 40px));
    height: 74px;
    padding: 0 16px;
    border: 1px solid rgba(233, 223, 207, 0.13);
    border-radius: 18px;
    background: rgba(23, 24, 19, 0.62);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateX(-50%);
    transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, backdrop-filter 0.24s ease;
  }

  .nav.is-scrolled {
    border-color: rgba(233, 223, 207, 0.18);
    background: rgba(23, 24, 19, 0.90);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  section[id],
  .cta[id] {
    scroll-margin-top: 104px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    z-index: 1300;
    display: inline-block;
  }

  .mobile-menu {
    z-index: 1100;
    display: block;
  }

  .hero-content {
    padding-top: clamp(150px, 18vh, 190px);
    padding-bottom: 84px;
  }

  .split,
  .showcase,
  .cta-grid,
  .gallery-heading,
  .amenities-heading,
  .location-heading,
  .route-gallery-heading,
  .amenities-grid,
  .location-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .split,
  .cta-grid,
  .gallery-heading,
  .amenities-heading,
  .location-heading,
  .route-gallery-heading,
  .amenities-grid,
  .location-layout,
  .privacy-layout {
    gap: clamp(28px, 5vw, 44px);
  }

  .metrics-grid-premium {
    grid-template-columns: 1fr;
  }

  .metric-card-home {
    grid-column: auto;
  }

  .home-overview-heading {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps,
  .route-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-collage {
    align-items: stretch;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .showcase-residence-images {
    min-height: 560px;
    padding: 6px;
  }

  .showcase-residence-card img {
    min-height: 548px;
  }

  .showcase-panel {
    padding: 64px 30px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .amenity-card {
    min-height: 430px;
  }

  .map-frame,
  .raff-location-map {
    min-height: 420px;
  }

  .raff-location-map svg {
    height: 420px;
  }

  .proximity-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-sequences {
    gap: 42px;
  }

  .gallery-sequence-heading {
    align-items: flex-start;
  }

  .gallery-sequence-heading p {
    max-width: 440px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .gallery-wide,
  .gallery-feature {
    grid-column: span 2;
  }

  .gallery-tall,
  .gallery-feature {
    grid-row: span 2;
  }

  .residence-choice-heading,
  .residence-choice-grid {
    grid-template-columns: 1fr;
  }

  .residence-choice-heading {
    gap: 28px;
  }

  .residence-selector {
    margin-top: 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-branding {
    grid-column: 1 / -1;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .privacy-intro {
    position: static;
    max-width: 720px;
  }
}

/* =========================================================
   MÓVIL — <= 600px
   ========================================================= */

@media (max-width: 600px) {
  :root {
    --section-space: 76px;
  }

  body {
    font-size: 15.5px;
    line-height: 1.6;
  }

  .container {
    width: min(100% - 26px, 1180px);
  }

  .nav {
    top: 10px;
    width: calc(100% - 20px);
    height: 64px;
    padding: 0 10px 0 12px;
    border-radius: 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-icon {
    height: 40px;
  }

  .brand-text {
    font-size: 10.5px;
    letter-spacing: 0.11em;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .menu-toggle span:nth-child(1) {
    top: 14px;
  }

  .menu-toggle span:nth-child(2),
  .menu-toggle[aria-expanded="true"] span:nth-child(1),
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 21px;
  }

  .menu-toggle span:nth-child(3) {
    top: 28px;
  }

  .mobile-menu-panel {
    width: min(91vw, 390px);
    padding: 108px 26px 32px;
  }

  .hero-video {
    object-position: center 45%;
    filter: contrast(1.05) saturate(1.04);
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(11, 12, 10, 0.30) 0%, rgba(11, 12, 10, 0.20) 28%, rgba(11, 12, 10, 0.54) 68%, rgba(11, 12, 10, 0.80) 100%);
  }

  .hero-content {
    padding-top: clamp(140px, 17vh, 166px);
    padding-bottom: 92px;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(40px, 12vw, 54px);
    line-height: 0.99;
  }

  .hero-copy {
    max-width: 100%;
    font-size: clamp(16px, 4.5vw, 18px);
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-note {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.55;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section h2,
  .showcase-panel h2,
  .cta h2,
  .route-gallery-heading h3 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.05;
  }

  .metrics-grid-premium,
  .feature-grid,
  .steps,
  .proximity-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .metric-card-home {
    grid-column: auto;
  }

  .home-overview-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  

  

  

  

  

  

  

  

  

  

  .trust-signature {
    gap: 11px;
    margin-top: 18px;
    font-size: 10px;
    letter-spacing: 0.10em;
  }

  .trust-signature i {
    width: 22px;
  }

  .route-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 28px;
    background: rgba(244, 239, 229, 0.92);
    box-shadow: 0 18px 34px rgba(23, 24, 19, 0.08), 0 8px 18px rgba(23, 24, 19, 0.05);
  }

  .metric-card,
  .proximity-card,
  .lead-form {
    padding: 24px;
  }

  .feature-card h3,
  .step h3,
  .amenity-caption h3,
  .cta-benefit strong {
    font-size: clamp(20px, 6vw, 24px);
    line-height: 1.12;
  }

  .metric-value,
  .proximity-card strong {
    font-size: clamp(30px, 10vw, 40px);
  }

  .showcase-residence-images {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 5px;
  }

  .showcase-residence-card {
    aspect-ratio: 16 / 10;
  }

  .showcase-residence-card img {
    min-height: 0;
  }

  .showcase-residence-card figcaption {
    top: 16px;
    left: 16px;
  }

  .showcase-panel {
    padding: 54px 24px;
  }

  .amenity-card {
    min-height: 360px;
  }

  .amenity-caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 16px;
  }

  .map-frame,
  .raff-location-map {
    min-height: 340px;
  }

  .raff-location-map svg {
    height: 340px;
  }

  .map-card-footer {
    bottom: 16px;
  }

  .map-card-actions .btn {
    width: auto;
    min-width: 208px;
    padding-inline: 20px;
  }

  .location-pills {
    gap: 6px;
  }

  .route-card {
    border-radius: 18px;
    clip-path: inset(0 round 18px);
  }

  .route-visual {
    border-radius: 18px;
  }

  .route-card-meta {
    gap: 2px;
    padding: 12px 10px 10px;
  }

  .route-card-meta strong {
    font-size: 15px;
  }

  .route-card-meta small {
    font-size: 10px;
    line-height: 1.4;
  }

  .gallery-sequences {
    gap: 36px;
  }

  .gallery-sequence-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
  }

  .gallery-sequence-heading h3 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .gallery-sequence-heading p {
    max-width: none;
    font-size: 13px;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 5px;
  }

  .gallery-wide,
  .gallery-feature {
    grid-column: span 2;
  }

  .gallery-tall,
  .gallery-feature {
    grid-row: span 2;
  }

  .residence-choice-section {
    padding-top: 36px;
  }

  .residence-choice-heading {
    display: block;
    margin-bottom: 22px;
  }

  .residence-choice-heading > div,
  .residence-choice-heading > p {
    width: 100%;
  }

  .residence-choice-heading > p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
  }

  .residence-choice-heading h2 {
    max-width: 330px;
    margin-bottom: 0;
    font-size: clamp(34px, 10.8vw, 44px);
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .residence-choice-grid {
    gap: 14px;
  }

  .residence-choice-card {
    border-radius: 22px;
    box-shadow: none;
  }

  .residence-choice-media {
    aspect-ratio: 16 / 9;
  }

  .residence-type-badge {
    top: 14px;
    left: 14px;
    padding: 8px 13px;
    font-size: 9px;
  }

  .residence-choice-content {
    position: relative;
    padding: 17px 18px 18px;
  }

  .residence-choice-kicker {
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: 0.15em;
  }

  .residence-choice-content h3 {
    max-width: calc(100% - 54px);
    margin-bottom: 14px;
    font-size: clamp(23px, 7.2vw, 29px);
    line-height: 1.03;
  }

  .residence-choice-content > p {
    display: none;
  }


  .residence-choice-content .text-link {
    position: absolute;
    right: 18px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    background: var(--olive-deep);
    color: transparent;
    font-size: 0;
  }

  .residence-choice-content .text-link::after {
    content: "→";
    display: block;
    color: var(--white);
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    transform: translateY(-7px);
  }

  .residence-quality {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
    padding: 22px 0;
  }

  .residence-quality-eyebrow {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .residence-quality-title {
    font-size: 30px;
  }

  .residence-quality-copy {
    font-size: 14px;
    line-height: 1.55;
  }

  .residence-selector {
    width: 100%;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .residence-tab {
    border-radius: 15px;
  }

  .cta {
    padding: 76px 0 86px;
  }

  .cta-intro {
    margin-bottom: 28px;
  }

  .lead-form input:not([type="checkbox"]),
.lead-form select {
    font-size: 16px;
  }

  .footer-curve svg {
    height: 90px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .footer-logo {
    width: 180px;
  }

  .privacy-nav {
    min-height: 82px;
  }

  .privacy-brand img {
    width: 145px;
  }

  .privacy-back {
    padding: 8px 11px;
    font-size: 11px;
  }

  .privacy-page {
    padding: 64px 0 78px;
  }

  .privacy-intro h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .privacy-content section {
    padding: 26px 22px;
  }
}


/* =========================================================
   UBICACIÓN — AJUSTES DE ALTURA Y RESPONSIVE
   ========================================================= */

.map-frame,
.raff-location-map,
.raff-location-map svg {
  height: 460px;
}

@media (max-width: 1100px) {
  .location-layout {
    grid-template-columns: 1fr;
  }

  .location-map-column {
    order: 1;
    grid-template-rows: auto auto;
    height: auto;
  }

  .location-aside {
    order: 2;
  }
}

@media (max-width: 600px) {
  .map-card {
    min-height: 340px;
  }

  .map-frame,
  .raff-location-map,
  .raff-location-map svg {
    min-height: 340px;
    height: 340px;
  }
}


/* =========================================================
   RAFF PREMIUM TOTAL — UBICACIÓN ESTRATÉGICA OSCURA
   Recupera la paleta premium de la versión dev sin alterar
   la estructura, mapas, etiquetas ni correcciones anteriores.
   ========================================================= */

.location-section {
  background: #151712;
  color: var(--raff-cream);
}

.location-section .location-heading .eyebrow,
.location-section .route-gallery-heading .eyebrow {
  color: rgba(233, 223, 207, 0.74);
}

.location-section .location-heading h2,
.location-section .route-gallery-heading h3 {
  color: #f4ede1;
}

.location-section .location-heading > p,
.location-section .route-gallery-heading > p {
  color: rgba(233, 223, 207, 0.76);
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
}

/* Mapa oscuro, conservando el diseño ilustrado propio de RAFF. */
.location-section .map-card {
  border-color: rgba(233, 223, 207, 0.13);
  background: #1d1f1a;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.30), 0 8px 22px rgba(0, 0, 0, 0.16);
}

.location-section .map-frame,
.location-section .raff-location-map {
  background: #1d1f1a;
}

.location-section .map-bg {
  fill: #1d1f1a;
}

.location-section .map-area {
  fill: #24261f;
  opacity: 0.96;
}

.location-section .road-main {
  stroke: #666252;
}

.location-section .road-secondary {
  stroke: #514e42;
}

.location-section .road-local {
  stroke: #3e3d34;
}

.location-section .map-label rect {
  fill: rgba(29, 31, 26, 0.94);
  stroke: rgba(233, 223, 207, 0.15);
}

.location-section .map-label text {
  fill: #e9dfcf;
}

.location-section .pin-halo {
  fill: rgba(233, 223, 207, 0.10);
}

.location-section .pin-shape {
  fill: #e9dfcf;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.42));
}

.location-section .pin-core {
  fill: #151712;
}

/* CTA del mapa con contraste crema, como en la versión dev. */
.location-section .map-card-actions .btn,
.location-section .btn-dark-outline {
  background: #e9dfcf;
  border-color: #e9dfcf;
  color: #171813;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.30), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.location-section .map-card-actions .btn:hover,
.location-section .btn-dark-outline:hover {
  background: #f5efe5;
  border-color: #f5efe5;
  color: #171813;
}

/* Zonas cercanas debajo del mapa. */
.location-section .location-pills span,
.location-section .location-pills-below span {
  border-color: rgba(233, 223, 207, 0.20);
  background: rgba(255, 255, 255, 0.025);
  color: #eee5d7;
  box-shadow: none;
}

/* Tarjetas de conectividad y distancias. */
.location-section .proximity-card {
  border-color: rgba(233, 223, 207, 0.14);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.13);
}

.location-section .proximity-kicker {
  color: rgba(233, 223, 207, 0.63);
}

.location-section .proximity-card strong {
  color: #f3ecdf;
}

.location-section .proximity-card p {
  color: rgba(233, 223, 207, 0.76);
}

/* Mantiene las referencias de trayecto como piezas claras dentro del fondo oscuro. */
.location-section .route-card {
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24), 0 8px 20px rgba(0, 0, 0, 0.14);
}

@media (max-width: 600px) {
  .location-section .route-collage {
    border: 1px solid rgba(233, 223, 207, 0.08);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18), 0 8px 18px rgba(0, 0, 0, 0.12);
  }
}


/* =========================================================
   UBICACIÓN — DISTRIBUCIÓN FINAL
   ========================================================= */

.location-map-column {
  display: grid;
  grid-template-rows: auto minmax(92px, 1fr);
  gap: 18px;
  height: 100%;
}

.location-pills-below {
  align-self: center;
  justify-content: center;
  align-content: center;
  min-height: 92px;
  padding: 0 12px;
  margin: 0;
}

@media (max-width: 1100px) {
  .location-pills-below {
    min-height: 0;
    padding: 0;
    justify-content: flex-start;
  }
}


/* =========================================================
   TRAYECTOS — ACABADO FINAL SIN HALOS CLAROS
   ========================================================= */

.route-gallery-heading-simple {
  display: block;
  max-width: none;
  margin-top: 24px;
  margin-bottom: 18px;
}

.route-gallery-heading-simple h3 {
  width: 100%;
  margin: 0;
  font-size: clamp(32px, 3.5vw, 46px);
}


/* =========================================================
   LA VIVIENDA — refined visual system based on approved mockup
   ========================================================= */
.home-overview-section {
  padding-top: 28px;
  background: var(--paper);
}

.residence-selector {
  width: fit-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: -12px 0 26px;
  padding: 5px;
  border: 1px solid rgba(23, 24, 19, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.residence-tab {
  min-height: 46px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #686a62;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.residence-tab.is-active {
  background: var(--ink);
  color: var(--raff-cream);
  box-shadow: 0 8px 18px rgba(23, 24, 19, 0.14);
}

.residence-spec-panel[hidden] {
  display: none;
}

.delivery-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.delivery-card {
  min-width: 0;
  padding: 34px 34px 30px;
  border: 1px solid rgba(23, 24, 19, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.82) 100%);
  box-shadow: 0 20px 40px rgba(23, 24, 19, 0.05);
}

.delivery-card .delivery-section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #9c7855;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.delivery-card .delivery-section-label::before {
  content: "";
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: #b58b63;
}

.delivery-card h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 3.55vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.delivery-intro-specs,
.delivery-card .delivery-intro {
  margin: 0 0 24px;
  color: #66695f;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(17px, 1.12vw, 18px);
  line-height: 1.58;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.delivery-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  border-top: 0;
  border-bottom: 0;
  box-shadow: none;
}

.delivery-specs-grid .delivery-spec {
  min-width: 0;
  min-height: 205px;
  padding: 22px 16px 20px;
  border: 1px solid rgba(23, 24, 19, 0.06);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: linear-gradient(180deg, #f4f0e6 0%, #f7f4ec 100%);
}


.delivery-specs-grid .delivery-spec:nth-child(2),
.delivery-specs-grid .delivery-spec:nth-child(4) {
  background: linear-gradient(180deg, #edf0e3 0%, #f3f5eb 100%);
}

.delivery-specs-grid .delivery-spec:nth-child(1) .delivery-icon,
.delivery-specs-grid .delivery-spec:nth-child(3) .delivery-icon,
.delivery-specs-grid .delivery-spec:nth-child(5) .delivery-icon {
  background: #b59a77;
  color: #fff;
}

.delivery-specs-grid .delivery-spec:nth-child(2) .delivery-icon,
.delivery-specs-grid .delivery-spec:nth-child(4) .delivery-icon {
  background: #a5ae88;
  color: #fff;
}

.delivery-specs-grid .delivery-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(23, 24, 19, 0.07);
}

.delivery-specs-grid .delivery-icon svg {
  width: 34px;
  height: 34px;
}

.delivery-specs-grid .delivery-spec strong {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 3.5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
  text-align: center;
}

.delivery-specs-grid .delivery-spec-label {
  display: block;
  margin-top: 10px;
  color: #5f6259;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
}



.residence-differentiators {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.residence-differentiator {
  min-width: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(237, 240, 227, 0.76);
}

.residence-differentiator:only-child {
  grid-column: 1 / -1;
}

.residence-differentiator strong,
.residence-differentiator span {
  display: block;
}

.residence-differentiator strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.residence-differentiator span {
  color: #66695f;
  font-size: 14px;
  line-height: 1.5;
}

.delivery-included-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.delivery-included-grid .delivery-included-item {
  min-width: 0;
  min-height: 240px;
  padding: 26px 22px 24px;
  border: 1px solid rgba(23, 24, 19, 0.06);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #f4f0e6 0%, #f7f4ec 100%);
}

.delivery-included-grid .delivery-included-item:nth-child(2),
.delivery-included-grid .delivery-included-item:nth-child(3) {
  background: linear-gradient(180deg, #edf0e3 0%, #f3f5eb 100%);
}

.delivery-included-grid .delivery-included-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #b59a77;
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 24, 19, 0.07);
}

.delivery-included-grid .delivery-included-item:nth-child(2) .delivery-included-icon,
.delivery-included-grid .delivery-included-item:nth-child(3) .delivery-included-icon {
  background: #a5ae88;
}

.delivery-included-grid .delivery-included-icon svg {
  width: 38px;
  height: 38px;
}

.delivery-included-grid .delivery-included-item > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.delivery-included-grid .delivery-item-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.delivery-included-grid .delivery-item-kicker::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(181, 154, 119, 0.85);
}

.delivery-included-grid .delivery-included-item:nth-child(2) .delivery-item-kicker::after,
.delivery-included-grid .delivery-included-item:nth-child(3) .delivery-item-kicker::after {
  background: rgba(165, 174, 136, 0.88);
}

.delivery-included-grid .delivery-included-item p {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  color: #56594f;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  text-align-last: center;
}

.delivery-included-grid .delivery-included-item:first-child p {
  max-width: 250px;
}


@media (max-width: 1180px) {
  .delivery-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .delivery-card {
    padding: 28px 22px 24px;
    border-radius: 24px;
  }

  .delivery-card h3 {
    font-size: clamp(34px, 7vw, 58px);
  }

  .delivery-specs-grid .delivery-spec {
    min-height: 210px;
  }

  .delivery-included-grid .delivery-included-item {
    min-height: 210px;
  }
}

@media (max-width: 640px) {
  .delivery-card {
    padding: 22px 18px 20px;
  }

  .delivery-card .delivery-section-label {
    gap: 12px;
    margin-bottom: 16px;
    font-size: 11px;
  }

  .delivery-card .delivery-section-label::before {
    width: 34px;
  }

  .delivery-card h3 {
    font-size: clamp(30px, 10vw, 46px);
    line-height: 0.98;
  }

  .delivery-intro-specs,
  .delivery-card .delivery-intro {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .delivery-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .delivery-specs-grid .delivery-spec {
    grid-column: span 1;
    min-height: 160px;
    padding: 16px 12px 18px;
    border-radius: 18px;
  }

  .delivery-specs-grid .delivery-icon,
  .delivery-included-grid .delivery-included-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }

  .delivery-specs-grid .delivery-icon svg,
  .delivery-included-grid .delivery-included-icon svg {
    width: 28px;
    height: 28px;
  }

  .delivery-specs-grid .delivery-spec strong {
    font-size: clamp(34px, 10vw, 42px);
  }


  .delivery-specs-grid .delivery-spec-label {
    font-size: 14px;
  }

  .delivery-included-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .delivery-included-grid .delivery-included-item {
    min-height: 176px;
    padding: 18px 16px 20px;
    border-radius: 18px;
  }

  .delivery-included-grid .delivery-item-kicker {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .delivery-included-grid .delivery-included-item p {
    font-size: 15px;
  }

  .residence-differentiators {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .residence-differentiator:only-child {
    grid-column: auto;
  }

  .feature-card-content {
    padding: 15px 2px 0;
  }

  .cta-benefit {
    padding: 18px 0;
  }
}


.home-overview-copy {
  transform: translateY(-26px);
}

@media (max-width: 900px) {
  .home-overview-copy {
    transform: none;
  }
}


/* =========================================================
   PÁGINA DE GRACIAS — SISTEMA VISUAL COMPARTIDO
   ========================================================= */

.thank-you-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px);
  background: var(--ink);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
}

.thank-you {
  width: min(680px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.thank-you-logo {
  width: clamp(150px, 28vw, 220px);
  height: auto;
  margin: 0 auto clamp(28px, 4vw, 38px);
  filter:
    brightness(0)
    saturate(100%)
    invert(91%)
    sepia(18%)
    saturate(316%)
    hue-rotate(338deg)
    brightness(96%)
    contrast(92%);
}

.thank-you-eyebrow {
  width: 100%;
  margin: 0 0 16px;
  color: var(--raff-cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}

.thank-you-title {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--raff-cream);
  font-family: "Manrope", sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}

.thank-you-message {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
}

.thank-you-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 34px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--raff-cream);
  color: var(--ink);
  font-weight: 700;
}

.thank-you-small {
  width: 100%;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  text-align: center;
}

.thank-you-small a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-site-footer .footer-surface {
  padding-top: 18px;
}

.privacy-footer-bottom {
  border-top: 0;
}

@media (hover: hover) and (pointer: fine) {
  .thank-you-button {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .thank-you-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }
}

@media (max-width: 600px) {
  .thank-you-body {
    align-items: flex-start;
    padding: 30px 20px 26px;
  }

  .thank-you {
    padding-top: 8px;
  }

  .thank-you-logo {
    width: clamp(145px, 48vw, 195px);
    margin-bottom: 28px;
  }

  .thank-you-title {
    margin-bottom: 20px;
    font-size: clamp(38px, 12vw, 54px);
  }

  .thank-you-message {
    font-size: 16px;
    line-height: 1.6;
  }

  .thank-you-button {
    width: 100%;
    max-width: 280px;
    margin-top: 30px;
  }
}

/* =========================================================
   PARALLAX EDITORIAL — MOVIMIENTO SUTIL Y ACCESIBLE
   ========================================================= */
.parallax-media {
  --parallax-y: 0px;
  --parallax-scale: 1.075;
  transform: translate3d(0, var(--parallax-y), 0) scale(var(--parallax-scale));
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

.showcase-residence-card .parallax-media {
  --parallax-scale: 1.09;
}

.amenity-card .parallax-media {
  --parallax-scale: 1.085;
}



@media (max-width: 900px) {
  .parallax-media {
    --parallax-scale: 1.06;
  }

  .showcase-residence-card .parallax-media,
  .amenity-card .parallax-media {
    --parallax-scale: 1.07;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-media {
    transform: none !important;
    will-change: auto;
  }
}


/* =========================================================
   CINEMATIC LOGO REVEAL + SCROLL REVEAL EDITORIAL — V9 CORREGIDA
   ========================================================= */
.brand-reveal-section {
  --brand-aperture-scale: 1;
  --brand-aperture-opacity: 1;
  --brand-scene-scale: 1.075;
  position: relative;
  height: 235svh;
  background: #11130f;
}

.brand-reveal-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #11130f;
}

.brand-reveal-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(14, 15, 12, 0.12), rgba(14, 15, 12, 0.06)),
    url("assets/residencia-1p-fachada.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(var(--brand-scene-scale));
  transform-origin: center center;
  will-change: transform;
}

/*
  Esta imagen contiene el fondo oscuro con el logo RAFF completo
  (emblema + RAFF + INMOBILIARIA) recortado en transparencia.
  Se mantiene como overlay precompuesto para evitar dependencias de
  CSS mask-image y asegurar un resultado consistente entre navegadores.
*/
.brand-reveal-aperture {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 132vmax;
  max-width: none;
  height: auto;
  opacity: var(--brand-aperture-opacity);
  transform: translate(-50%, -50%) scale(var(--brand-aperture-scale));
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  will-change: opacity, transform;
}

.brand-reveal-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.18));
}




.motion-ready .scroll-reveal {
  max-width: 100%;
  opacity: 0;
  transition: none;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.motion-ready .scroll-reveal.reveal-left {
  transform: translate3d(-36px, 0, 0);
}

.motion-ready .scroll-reveal.reveal-right {
  transform: translate3d(36px, 0, 0);
}

.motion-ready .scroll-reveal.reveal-up {
  transform: translate3d(0, 28px, 0);
}

.motion-ready .scroll-reveal.is-revealed {
  opacity: 1;
  transform: none !important;
  transition:
    opacity 1600ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 1800ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: auto;
}

@media (max-width: 900px) {
  .brand-reveal-section {
    height: 205svh;
  }

  .brand-reveal-scene {
    background-position: 56% center;
  }

  .brand-reveal-aperture {
    width: 138vmax;
  }




  /*
    En móvil evitamos desplazamientos horizontales: el texto entra desde abajo
    para que nunca quede cortado por los bordes del viewport.
  */
  .motion-ready .scroll-reveal.reveal-left,
  .motion-ready .scroll-reveal.reveal-right,
  .motion-ready .scroll-reveal.reveal-up {
    transform: translate3d(0, 20px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-reveal-section {
    display: none;
  }

  .scroll-reveal,
  .motion-ready .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

/* =========================================================
   RAFFLIVELAST — arquitectura 2026-09-15
   Home más corta + página de exploración + Servicios RAFF
   ========================================================= */

.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(42px, 6vw, 76px);
  border: 1px solid rgba(23, 24, 19, 0.12);
  background: rgba(23, 24, 19, 0.12);
}

.project-fact {
  min-height: 122px;
  padding: 24px 26px;
  background: #f7f3ec;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.project-fact span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(23, 24, 19, 0.62);
}

.project-fact strong {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.15;
}

.personalization-compact {
  background: #f0ebe2;
}

.personalization-compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(42px, 7vw, 94px);
  align-items: center;
}

.personalization-visual {
  min-height: clamp(420px, 56vw, 680px);
  overflow: hidden;
  border-radius: 2px;
}

.personalization-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.personalization-copy h2,
.design-explore-heading h2,
.services-intro h2,
.explore-return-inner h2 {
  text-wrap: balance;
}

.personalization-copy > p:not(.eyebrow),
.design-explore-heading > p,
.services-intro > p:not(.eyebrow),
.services-points p,
.explore-hero > p:not(.eyebrow),
.explore-return-inner p,
.location-inline-link {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.personalization-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 34px;
}

.personalization-tags span {
  padding: 10px 14px;
  border: 1px solid rgba(23, 24, 19, 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.52);
}

.design-explore-section {
  background: #171813;
  color: #f7f3ec;
}

.design-explore-section .eyebrow.dark {
  color: #d9c8ac;
}

.design-explore-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: end;
}

.design-explore-heading > p {
  color: rgba(247, 243, 236, 0.72);
  margin: 0;
}

.design-explore-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 5vw, 64px);
}

.design-explore-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.design-explore-card-large {
  grid-row: 1 / span 2;
  min-height: 620px;
}

.design-explore-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.72,.2,1);
}

.design-explore-card:hover img,
.design-explore-card:focus-visible img {
  transform: scale(1.035);
}

.design-explore-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 13, 0.08) 25%, rgba(15, 16, 13, 0.78) 100%);
  z-index: 1;
}

.design-explore-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: clamp(26px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.design-explore-content small {
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #e1d2ba;
}

.design-explore-content strong {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.7rem, 3.1vw, 3rem);
  line-height: 1;
}

.design-explore-content em {
  font-size: 0.9rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
}

.location-inline-link {
  display: inline-flex;
  margin-left: 18px;
  color: #171813;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.services-section {
  background: #e8dfd1;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(52px, 8vw, 120px);
  align-items: start;
}

.services-intro {
  position: sticky;
  top: 130px;
}

.services-intro .btn {
  margin-top: 30px;
}

.services-points {
  border-top: 1px solid rgba(23, 24, 19, 0.16);
}

.services-points article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(23, 24, 19, 0.16);
}

.services-points article > span {
  font-family: 'Manrope', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(23, 24, 19, 0.48);
}

.services-points h3 {
  margin: 0 0 8px;
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
}

.services-points p {
  margin: 0;
  color: rgba(23, 24, 19, 0.68);
}

/* Página secundaria de exploración */
.explore-page-body {
  background: #f7f3ec;
}

.explore-site-header {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(23,24,19,.92) 0%, rgba(23,24,19,.66) 50%, rgba(23,24,19,.35) 100%),
    url('assets/residencia-1p-patio-2.jpg') center/cover no-repeat;
  color: #fff;
}

.nav-secondary {
  position: relative;
  top: 0;
}

.explore-hero {
  width: 100%;
  margin: auto;
  padding-top: 90px;
  padding-bottom: 90px;
}

.explore-hero h1 {
  max-width: 920px;
  margin: 12px 0 24px;
  font-size: clamp(3rem, 7.2vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.explore-hero h1 span {
  color: #dcccb2;
}

.explore-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255,255,255,.80);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.72;
}

.explore-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.explore-hero-actions a {
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.36);
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}

.explore-page-body .gallery-section {
  background: #f7f3ec;
}

.explore-page-body .feature-band {
  background: #ebe3d7;
}

.explore-page-body .amenities-section {
  background: #f7f3ec;
}

.explore-return-cta {
  background: #d9c9af;
}

.explore-return-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
}

.explore-return-inner > div {
  max-width: 760px;
}

.explore-footer .footer-surface {
  padding-top: 34px;
}

/* Cloudflare / media-ready: hero remains cover-based and does not alter layout. */
.hero-video source {
  display: none;
}

@media (max-width: 1100px) {
  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .personalization-compact-grid,
  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-intro {
    position: static;
  }
}

@media (max-width: 900px) {
  .design-explore-heading {
    grid-template-columns: 1fr;
  }

  .design-explore-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .design-explore-card,
  .design-explore-card-large {
    grid-row: auto;
    min-height: 460px;
  }

  .explore-return-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .project-facts {
    grid-template-columns: 1fr 1fr;
    margin-top: 38px;
  }

  .project-fact {
    min-height: 102px;
    padding: 18px 16px;
  }

  .personalization-compact-grid {
    gap: 34px;
  }

  .personalization-visual {
    min-height: 370px;
  }

  .design-explore-card,
  .design-explore-card-large {
    min-height: 360px;
  }

  .services-points article {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .explore-site-header {
    min-height: 78vh;
  }

  .explore-hero {
    padding-top: 72px;
    padding-bottom: 68px;
  }

  .explore-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.8rem);
  }
}



/* =========================================================
   CAPA DE COMPATIBILIDAD DE FORMATOS / NAVEGADORES
   WebP conserva prioridad; <picture> aporta JPEG como respaldo.
   ========================================================= */
picture.media-picture {
  display: block;
  width: 100%;
}

.gallery-item > picture.media-picture,
.amenity-card > picture.media-picture,
.residence-choice-media > picture.media-picture,
.personalization-visual > picture.media-picture {
  height: 100%;
}

.design-explore-card > picture.media-picture {
  position: absolute;
  inset: 0;
  height: 100%;
}

.feature-card-image > picture.media-picture {
  height: auto;
}

/* Fallbacks previos a funciones CSS modernas. */
body {
  font-size: 16px;
}

.container {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  min-height: 100vh;
}

/* El lightbox sigue operativo aunque <dialog>.showModal no exista. */
.lightbox.lightbox-fallback-open {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 4vh 4vw;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox.lightbox-fallback-open img {
  max-width: 92vw;
  max-height: 88vh;
}


/* =========================================================
   UBICACIÓN — CTA MAPA: CORRECCIÓN RESPONSIVE FINAL
   Evita que el botón se estire con contenido vecino y conserve
   forma de píldora en todos los anchos.
   ========================================================= */
.map-card-footer {
  align-items: center;
  max-width: calc(100% - 32px);
}

.map-card-actions .btn {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-height: 48px;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
  text-align-last: center;
}

@media (max-width: 600px) {
  .map-card-actions .btn {
    min-width: 0;
    padding: 14px 20px;
    font-size: 0.94rem;
  }
}

/* RAFFLIVELAST · Galería: referencias visuales de ubicación */
.gallery-location-sequence .route-collage {
  margin-top: 4px;
}

.gallery-location-sequence .route-card {
  min-height: 0;
}


/* =========================================================
   AJUSTES APROBADOS — NAVEGACIÓN, CHIPS Y CONTACTO
   ========================================================= */

/* En escritorio, la navegación de Explorar permanece accesible al hacer scroll.
   En <=900px ya existe navegación fija en la hoja base. */
@media (min-width: 901px) {
  .explore-page-body .nav-secondary {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 1200;
    width: calc(100% - 40px);
    max-width: 1180px;
    transform: translateX(-50%);
  }

  .explore-page-body .nav-secondary.is-scrolled {
    padding-left: 16px;
    padding-right: 16px;
    border: 1px solid rgba(233, 223, 207, 0.18);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: rgba(23, 24, 19, 0.94);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.explore-page-body .feature-card[id],
.explore-page-body .route-card[id] {
  scroll-margin-top: 118px;
}

.location-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(23, 24, 19, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #171813;
  font-size: 13px;
  text-align: left;
}

.location-section .location-pills a,
.location-section .location-pills-below a {
  border-color: rgba(233, 223, 207, 0.20);
  background: rgba(255, 255, 255, 0.025);
  color: #eee5d7;
  box-shadow: none;
}

.personalization-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(23, 24, 19, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
}

.location-pills a:focus-visible,
.personalization-tags a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.footer-social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-social-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(233, 223, 207, 0.45);
  border-radius: 999px;
  color: #e9dfcf;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-social-buttons a:hover,
.footer-social-buttons a:focus-visible {
  background: #e9dfcf;
  color: #171813;
}

@media (max-width: 900px) {
  .explore-page-body .feature-card[id],
  .explore-page-body .route-card[id] {
    scroll-margin-top: 104px;
  }
}


/* =========================================================
   PRODUCCIÓN V2 — AJUSTES SEGUROS POST-LAUNCH
   - navegación móvil de Explorar accesible durante scroll
   - contraste accesible de texto secundario
   - look oscuro de mapas conservando los assets/rutas aprobados
   ========================================================= */

/* WCAG AA: mejora mínima de contraste sin alterar jerarquía visual. */
.muted {
  color: #6f6f66;
}

/* En Explorar, .nav-secondary se declara más adelante como relative;
   esta regla final restaura el comportamiento fixed del menú móvil. */
@media (max-width: 900px) {
  .explore-page-body .nav-secondary {
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 1200;
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .explore-page-body .nav-secondary {
    top: 10px;
  }
}

/* Los destinos/nombres y trazados actuales se conservan. Solo se aplica
   una capa visual oscura inspirada en el mapa principal aprobado anterior. */
.explore-page-body .route-card img[src*="route-"],
.explore-page-body .lightbox img[src*="route-"] {
  filter: grayscale(1) invert(.93) sepia(.30) saturate(.72) brightness(.49) contrast(1.16);
  background: #121710;
}
