/* ============================================================
   NIRAM PARK ONE — Design tokens
   ============================================================ */
:root {
  --color-primary: #7c2328;      /* maroon from logo */
  --color-primary-dark: #5c1a1e;
  --color-primary-light: #a9303c;
  --color-accent: #c1272d;       /* higher-contrast red for CTAs */
  --color-gray: #8d8d8f;         /* logo gray */
  --color-ink: #1c1a19;
  --color-ink-soft: #58565a;
  --color-bg: #faf8f6;
  --color-surface: #ffffff;
  --color-surface-alt: #f2eeea;
  --color-border: #e6e1dc;
  --color-dark-bg: #14100f;
  --color-dark-surface: #1e1817;

  --font-display: 'Barlow Semi Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 6px rgba(28, 26, 25, 0.08), 0 12px 26px rgba(28, 26, 25, 0.12);
  --shadow-md: 0 6px 14px rgba(28, 26, 25, 0.10), 0 26px 52px rgba(28, 26, 25, 0.18);
  --shadow-lg: 0 10px 24px rgba(28, 26, 25, 0.14), 0 42px 84px rgba(28, 26, 25, 0.24);
  --shadow-primary: 0 14px 30px rgba(124, 35, 40, 0.35);

  --container-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; margin: 0; color: var(--color-ink); }
p { line-height: 1.7; color: var(--color-ink-soft); margin: 0 0 16px; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   Reveal-on-scroll utility
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(124, 35, 40, 0.45);
}
.btn--ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  /* Versión inicial (arriba del todo): más alta, logo grande, fondo transparente y letras blancas */
  padding: 14px 0;
  background: transparent;
  box-shadow: none;
  transition: padding .45s cubic-bezier(.22,1,.36,1), background .45s ease, box-shadow .45s ease;
}
.navbar.is-scrolled {
  padding: 10px 0;
  background: rgba(250, 248, 246, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(28,26,25,0.08);
}
.navbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.navbar__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.navbar__brand { gap: 0; transition: gap .45s cubic-bezier(.22,1,.36,1); }
.navbar.is-scrolled .navbar__brand { gap: 12px; }
.navbar__logo { height: 118px; width: auto; object-fit: contain; transition: height .45s cubic-bezier(.22,1,.36,1), padding .45s cubic-bezier(.22,1,.36,1), background .35s ease, box-shadow .35s ease; }
.navbar.is-scrolled .navbar__logo { height: 48px; }
/* Versión inicial: fondito blanco sutil solo detrás del logo para que sus letras no se pierdan sobre la foto */
.navbar__logo { border-radius: 0; background: rgba(255,255,255,0); padding: 0; }
.navbar:not(.is-scrolled) .navbar__logo { border-radius: 12px; background: rgba(255,255,255,0.72); padding: 6px 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.10); }
/* El nombre solo aparece en la versión con scroll */
.navbar__project {
  display: flex; flex-direction: column; line-height: 1.1;
  max-width: 0; overflow: hidden; opacity: 0; transform: translateX(-10px);
  transition: max-width .45s cubic-bezier(.22,1,.36,1), opacity .3s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.navbar.is-scrolled .navbar__project { max-width: 220px; opacity: 1; transform: none; transition-delay: 0s, .12s, 0s; }
.navbar__project-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: .02em; color: var(--color-ink); white-space: nowrap; transition: color .35s ease; }
.navbar__project-name em { font-style: normal; color: var(--color-primary); transition: color .35s ease; }
.navbar__project-name strong { font-weight: inherit; color: var(--color-primary); }
.navbar__project-tag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #cfc7c2; font-weight: 600; transition: color .35s ease; }
.navbar.is-scrolled .navbar__project-name { color: var(--color-ink); }
.navbar.is-scrolled .navbar__project-name em { color: var(--color-primary); }
.navbar.is-scrolled .navbar__project-tag { color: var(--color-gray); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--color-ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease;
  white-space: normal;
  max-width: 140px;
}
.navbar__links a:hover { color: var(--color-primary); border-color: var(--color-primary); }
.navbar:not(.is-scrolled) .navbar__links a:not(.navbar__cta) { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.navbar:not(.is-scrolled) .navbar__links a:not(.navbar__cta):hover { border-color: #fff; }
.navbar:not(.is-scrolled) .navbar__burger span { background: #fff; }
.navbar__links.is-open a { color: var(--color-ink) !important; text-shadow: none; }
.navbar__links .navbar__cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border-bottom: none !important;
  box-shadow: 0 8px 18px rgba(124,35,40,0.3);
  text-transform: uppercase;
  text-align: center;
}
.navbar__cta:hover { background: var(--color-primary-dark) !important; transform: translateY(-2px); }

.navbar__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--color-ink-soft);
}
.lang-switch__divider { opacity: .5; }
.lang-switch__opt { padding: 2px 5px; border-radius: 6px; transition: background .2s ease, color .2s ease; }
.lang-switch[data-current="es"] .lang-switch__opt[data-lang="es"],
.lang-switch[data-current="en"] .lang-switch__opt[data-lang="en"] {
  background: var(--color-primary);
  color: #fff;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.navbar__burger span {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .35s ease;
}
.navbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navbar__burger[aria-expanded="true"] span { background: var(--color-ink) !important; }

/* ============================================================
   Hero Top (imagen de fondo + título principal)
   ============================================================ */
.hero-top {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding: 180px 60px 70px;
  background: var(--color-dark-bg);
}
.hero-top__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-top__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(20,16,15,0.05) 0%, rgba(20,16,15,0.6) 48%, rgba(20,16,15,0.92) 80%, rgba(20,16,15,0.96) 100%),
    linear-gradient(180deg, rgba(15,12,11,0.3) 0%, transparent 28%, rgba(15,12,11,0.45) 100%);
}
.hero-top__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
}
.hero-top__content h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.2vw, 82px);
  line-height: 1.06;
  letter-spacing: .005em;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.55), 0 20px 40px rgba(0,0,0,0.4);
  margin: 0;
  opacity: 0;
  will-change: transform, opacity;
  animation:
    heroTopIn .9s cubic-bezier(.22,1,.36,1) .6s both,
    heroFloatY 6.5s ease-in-out 1.6s infinite;
}
.hero-top__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  opacity: 0;
  will-change: transform, opacity;
  animation:
    heroTopIn .9s cubic-bezier(.22,1,.36,1) 1s both,
    heroFloatY 6.5s ease-in-out 2s infinite;
}
.hero-top__actions .btn--primary { box-shadow: var(--shadow-primary), 0 22px 40px rgba(0,0,0,0.4); }
.hero-top__actions .btn--ghost { box-shadow: 0 22px 40px rgba(0,0,0,0.35); background: rgba(20,16,15,0.35); }

@keyframes heroTopIn {
  from { opacity: 0; transform: translateY(52px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFloatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-top__content h1, .hero-top__actions { opacity: 1; animation: none; }
}

@media (max-width: 640px) {
  .hero-top { justify-content: center; padding: 150px 20px 70px; min-height: 100vh; }
  .hero-top__content { align-items: center; text-align: center; max-width: 100%; }
  .hero-top__content h1 { font-size: clamp(36px, 11vw, 56px); }
  .hero-top__actions { justify-content: center; flex-direction: column; width: 100%; }
  .hero-top__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 150px 28px 90px;
  background: linear-gradient(165deg, var(--color-dark-bg) 0%, #221a19 55%, var(--color-dark-bg) 100%);
  overflow: hidden;
}
.hero__accent-bar {
  position: absolute;
  left: 0;
  bottom: 64px;
  width: 220px;
  height: 10px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary-dark));
  box-shadow: 0 0 30px rgba(193,39,45,0.55);
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 520px at 50% 20%, rgba(124,35,40,0.28), transparent 70%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title { color: #fff; margin-bottom: 14px; }
.hero__title span {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: .01em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.hero__sizes {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 24px);
  color: #e9e3df;
  margin-bottom: 20px;
}
.hero__sizes i { color: var(--color-primary-light); font-style: normal; }
.hero__sizes-highlight {
  color: #fff;
  background: var(--color-accent);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(193,39,45,0.4);
}
.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--color-primary-light);
  margin-bottom: 10px;
}
.hero__desc { color: #cfc7c2; max-width: 560px; font-size: 17px; margin-bottom: 32px; }
.hero__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #d9d2cd;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
}
.hero__meta-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-primary-light); }
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4caf6a;
  box-shadow: 0 0 0 0 rgba(76,175,106,0.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(76,175,106,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(76,175,106,0); }
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: #c9c2bc;
  z-index: 2;
  animation: floatDrift 2.6s ease-in-out infinite;
}
.hero__scroll svg { width: 24px; height: 24px; }
@keyframes floatDrift { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }

/* ============================================================
   Image frames (fotografías reales)
   ============================================================ */
.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-alt);
  transition: transform .35s ease, box-shadow .35s ease;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.img-frame:hover { transform: translateY(-6px); box-shadow: 0 46px 90px rgba(28,26,25,0.28); }
.img-frame:hover img { transform: scale(1.045); }
.img-frame--photo { aspect-ratio: 4/3; }
.img-frame--wide { aspect-ratio: 16/6.2; margin-top: 46px; }
.img-frame--full { border-radius: var(--radius-md); }
.img-frame--full img { height: auto; object-fit: initial; }

/* ============================================================
   Sections / generic layout
   ============================================================ */
.section { padding: 100px 0; }
.section--alt { background: var(--color-surface-alt); }
.section--dark {
  background: linear-gradient(180deg, var(--color-dark-bg) 0%, #201917 100%);
  color: #fff;
}
.section--dark p { color: #cfc7c2; }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 16px; text-transform: uppercase; }
.section__title--light { color: #fff; }
.section__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--color-primary);
  margin: 0 0 14px;
}
.section__subtitle--light { color: #f0b9bb; }
.section__lead { font-size: 17px; }
.section__lead--light { color: #cfc7c2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,35,40,0.09);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}
.eyebrow svg { width: 15px; height: 15px; flex-shrink: 0; }
.eyebrow--light { background: rgba(255,255,255,0.1); color: #f0b9bb; }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 90px;
}
.grid-2--reverse { direction: rtl; }
.grid-2--reverse > * { direction: ltr; }

.stat-highlight {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 20px;
}
.stat-highlight span { font-size: 56px; color: var(--color-primary); line-height: 1; }
.stat-highlight small { font-weight: 600; font-size: 20px; color: var(--color-ink); text-transform: none; }

/* "30 años...": arranca al ras de la imagen y el contenido se reparte en su alto */
@media (min-width: 981px) {
  .why-intro {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
  }
  .why-intro > * { margin-top: 0; margin-bottom: 0; }
  .why-intro .stat-highlight span { line-height: .8; }
}

.client-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 6px;
}
.client-marquee span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-soft);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.client-marquee span:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.fine-print { font-size: 13px; color: var(--color-gray); margin: 0; }

.check-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15.5px;
  color: var(--color-ink);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.check-list li span, .check-list li strong { color: inherit; }

/* Location panel */
.location-panel {
  background: linear-gradient(160deg, var(--color-dark-bg) 0%, #241c1b 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.location-panel h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 10px 0 14px; }
.location-panel p { color: #cfc7c2; }
.location-panel__distances { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.distance-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 3px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.distance-card:hover { transform: translateY(-4px); }
.distance-card__value { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--color-primary-light); }
.distance-card span:last-child { font-size: 13px; color: #d9d2cd; }

.distance-card--1 { border-top-color: #e2434b; }
.distance-card--1 .distance-card__value { color: #e2434b; }
.distance-card--1:hover { background: rgba(226,67,75,0.2); }

.distance-card--2 { border-top-color: #e0a640; }
.distance-card--2 .distance-card__value { color: #e0a640; }
.distance-card--2:hover { background: rgba(224,166,64,0.18); }

.distance-card--3 { border-top-color: #4fb3a4; }
.distance-card--3 .distance-card__value { color: #4fb3a4; }
.distance-card--3:hover { background: rgba(79,179,164,0.18); }

.distance-card--4 { border-top-color: #5b8fd6; }
.distance-card--4 .distance-card__value { color: #5b8fd6; }
.distance-card--4:hover { background: rgba(91,143,214,0.18); }

/* Configurator */
.configurator { display: flex; flex-direction: column; gap: 14px; }
.configurator__row {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.configurator__row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.configurator__row--full { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); border-color: transparent; }
.configurator__row--full .configurator__label strong,
.configurator__row--full .configurator__label span { color: #fff; }
.configurator__label { display: flex; flex-direction: column; min-width: 128px; flex-shrink: 0; }
.configurator__label strong { font-family: var(--font-display); font-size: 19px; color: var(--color-ink); }
.configurator__label span { font-size: 12.5px; color: var(--color-gray); text-transform: uppercase; letter-spacing: .04em; }
.configurator__blocks { display: flex; gap: 8px; flex: 1; }
.block {
  flex: 1;
  aspect-ratio: 1/1;
  max-width: 42px;
  border-radius: 8px;
  background: var(--color-border);
  transition: background .3s ease, transform .3s ease;
}
.configurator__row--full .block { background: rgba(255,255,255,0.25); }
.block--active { background: var(--color-accent); box-shadow: 0 6px 14px rgba(193,39,45,0.35); }
.configurator__row--full .block--active { background: #fff; box-shadow: 0 6px 14px rgba(0,0,0,0.25); }

/* Specs */
.specs-row { margin-bottom: 64px; }
.specs-row:last-child { margin-bottom: 0; }
.specs-intro h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; margin-top: 14px; text-transform: uppercase; }
.specs-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}
.specs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.specs-card h3 { font-size: 22px; margin-bottom: 22px; color: var(--color-primary); }

/* Compare table */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-bottom: 44px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--color-dark-surface); }
.compare-table th, .compare-table td { padding: 16px 22px; text-align: left; font-size: 14.5px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f0b9bb;
  background: rgba(124,35,40,0.18);
}
.compare-table__highlight { color: #fff !important; background: var(--color-primary) !important; }
.compare-table td:first-child { font-weight: 700; color: #fff; white-space: nowrap; }
.compare-table td:nth-child(2) { color: #a39d99; }
.compare-table td:nth-child(3) { color: #f2d9da; background: rgba(124,35,40,0.09); font-weight: 500; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background-color: rgba(255,255,255,0.03); }
.compare-table tbody tr:hover td:nth-child(3) { background-color: rgba(124,35,40,0.16); }

.compare-callout { text-align: center; margin-bottom: 20px; }
.compare-callout p { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px,2.4vw,24px); color: #fff; margin-bottom: 8px; }
.compare-callout__accent { color: var(--color-primary-light) !important; }

/* CTA section */
.cta-section { background: var(--color-surface-alt); }
.cta-pricing { align-items: center; }
.cta-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cta-highlight {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta-highlight:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cta-highlight__value { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--color-primary); }
.cta-highlight > span:first-child { font-size: 12px; color: var(--color-ink-soft); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }

.cta-highlight--accent { background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); border-color: transparent; }
.cta-highlight--accent .cta-highlight__value,
.cta-highlight--accent > span:first-child { color: #fff; }

.cta-grid { margin-bottom: 20px; }
.location-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.location-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px rgba(28,26,25,0.22); }
.cta-grid h3 { font-size: 24px; margin-bottom: 12px; }
.location-card { text-align: center; }
.location-card > .btn { display: flex; width: 100%; justify-content: center; }
.location-card .contact-list { justify-content: center; }

.contact-block { margin-top: 28px; }
.contact-block h4 {
  font-size: 24px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 14px;
}
.contact-list { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.contact-list__item:hover { border-color: var(--color-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-list__item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-primary); }
.contact-list__item span { font-size: 14.5px; font-weight: 600; color: var(--color-ink); }

/* Ubicación / contacto: botón de mapa en blanco, WhatsApp y correo en rojo */
.location-card > .btn--primary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.location-card > .btn--primary svg { color: var(--color-primary); }
.location-card > .btn--primary:hover { background: var(--color-surface); border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.location-card .contact-list__item { background: var(--color-accent); border-color: transparent; box-shadow: var(--shadow-primary); }
.location-card .contact-list__item svg,
.location-card .contact-list__item span { color: #fff; }
.location-card .contact-list__item:hover { background: var(--color-primary-dark); border-color: transparent; }
.contact-phones { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--color-ink-soft); }
.contact-phones svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-primary); }

.tagline { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--color-primary); margin-top: 30px; }

.tagline-cta { text-align: center; margin-top: 26px; }

.location-map { min-height: 320px; }
.location-map iframe { width: 100%; height: 100%; min-height: 320px; display: block; border: 0; }

/* Tarjeta de Ubicación y mapa: mismo alto, alineados arriba y abajo */
@media (min-width: 981px) {
  .cta-grid { align-items: stretch; }
  .location-card { display: flex; flex-direction: column; justify-content: center; }
}

/* Módulos: exactamente del alto del plano, con las filas repartidas en ese alto
   (contain: size evita que los módulos empujen el alto; la imagen lo define). */
@media (min-width: 981px) {
  .grid-2.flex-grid { align-items: stretch; }
  .flex-grid .flex-plano { align-self: center; }
  .flex-grid .configurator { contain: size; }
  .flex-grid .configurator__row { flex: 1 1 0; min-height: 0; }
}

/* Documentos */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
}
.doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.doc-card svg { width: 34px; height: 34px; color: var(--color-primary); }
.doc-card span { font-size: 14.5px; font-weight: 600; color: var(--color-ink); }
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--color-dark-bg); color: #c9c2bc; padding: 60px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer__brand { max-width: 340px; }
.footer__logo-wrap { display: inline-block; background: #fff; border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.footer__logo { height: 120px; width: auto; }
.footer__brand p { color: #a39d99; font-size: 14px; margin: 0; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; color: #c9c2bc; transition: color .2s ease; }
.footer__links a:hover { color: var(--color-primary-light); }
.footer__copy { text-align: center; font-size: 12.5px; color: #79726e; margin: 0; }

/* ============================================================
   Secciones que caben en una pantalla (escritorio)
   ============================================================ */
.flex-grid,
.cta-pricing {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 0;
}
.flex-grid .configurator { flex: 0 0 250px; gap: 8px; }
.flex-grid .configurator__row { padding: 8px 14px; gap: 12px; border-radius: var(--radius-sm); }
.flex-grid .configurator__label { min-width: 88px; }
.flex-grid .configurator__label strong { font-size: 15px; line-height: 1.2; }
.flex-grid .configurator__label span { font-size: 10.5px; }
.flex-grid .configurator__blocks { gap: 5px; }
.flex-grid .block { max-width: 18px; border-radius: 4px; }
.flex-plano { flex: 0 1 auto; min-width: 0; }
.flex-plano img { width: auto; max-width: 100%; height: auto; max-height: 640px; }
/* Margen blanco alrededor del plano para que no quede pegado al borde del marco */
.flex-grid .flex-plano { background: #fff; padding: 16px 42px; }
.flex-plano img[data-lightbox] { cursor: zoom-in; }

/* Lightbox: plano en grande con zoom (clic/toque alterna; en celular también funciona el pellizco) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 16, 15, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  padding: 56px 16px 16px;
  -webkit-overflow-scrolling: touch;
}
.lightbox__img {
  flex-shrink: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}
.lightbox.is-zoomed .lightbox__img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }
html.lightbox-open, html.lightbox-open body { overflow: hidden; }

.cta-side { flex: 0 0 280px; text-align: left; }
.cta-side .section__subtitle { margin: 0 0 6px; line-height: 1.25; }
.section--fit .cta-side .section__lead { margin: 0 0 18px; font-size: 16px; line-height: 1.55; }
.cta-highlights { grid-template-columns: 1fr; gap: 8px; }
.cta-highlights .cta-highlight { padding: 8px 12px; gap: 0; border-radius: var(--radius-md); }
.cta-highlights .cta-highlight__value { font-size: 18px; }
.cta-highlights .cta-highlight > span:first-child { font-size: 11px; }
.cta-photo { flex: 0 1 auto; min-width: 0; }
.cta-pricing .cta-photo img { max-width: 100%; }
.cta-photo img { width: auto; max-width: 100%; height: auto; max-height: 640px; }
.cta-section--contact { padding-top: 0; }

/* Columna de precios: exactamente del alto de la foto, con las tarjetas repartidas en ese alto.
   contain: size evita que la columna empuje el alto de la fila; la foto lo define. */
@media (min-width: 981px) {
  .cta-pricing { align-items: stretch; }
  .cta-pricing .cta-photo { align-self: center; }
  .cta-side {
    display: flex;
    flex-direction: column;
    contain: size;
  }
  .cta-side .cta-highlights { flex: 1 1 0; min-height: 0; grid-auto-rows: minmax(0, 1fr); gap: 10px; }
  .cta-side .cta-highlight { padding: 6px 14px; min-height: 0; }
}

.docs-section { padding: 72px 0; }
.docs-section .section__head { margin-bottom: 36px; }

@media (min-width: 981px) and (min-height: 480px) {
  :root { --nav-h: 64px; }
  /* Título, subtítulo, descripción y contenido principal caben en una pantalla */
  .section--fit { padding-top: calc(var(--nav-h) + 24px); }
  .fit-screen {
    min-height: calc(100vh - var(--nav-h) - 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .section--fit .section__head { max-width: 960px; margin-bottom: 28px; }
  .section--fit .section__head h2 { margin-bottom: 4px; }
  .section--fit .section__subtitle { margin-bottom: 4px; }
  .section--fit .section__lead { margin-bottom: 0; }
  .flex-plano img { max-height: max(260px, calc(100vh - 320px)); }
  #flexibilidad.section--fit { padding-top: calc(var(--nav-h) + 4px); }
  .cta-photo img { max-height: max(320px, calc(100vh - 200px)); }
  #contacto.section--fit { padding-bottom: 40px; }
  .cta-section--contact { padding: 40px 0 64px; }
  .docs-section { padding: 56px 0; }

  /* "¿Por qué NIRAM Park One?": título + foto + "30 años" caben en una pantalla */
  #oportunidad { padding-top: calc(var(--nav-h) + 24px); }
  #oportunidad .section__head { margin-bottom: 24px; }
  #oportunidad .section__head h2 { margin-bottom: 4px; }
  #oportunidad .section__subtitle { margin-bottom: 0; }
  #oportunidad .grid-2--reverse { grid-template-columns: auto minmax(0,1fr); }
  #oportunidad .grid-2--reverse .img-frame--photo { height: clamp(330px, calc(100vh - 260px), 480px); }

  /* "Documentos" + footer caben juntos en una pantalla */
  .docs-section { padding: 40px 0 44px; }
  .docs-section .section__head { margin-bottom: 24px; }
  .docs-section .section__head h2 { margin-bottom: 4px; }
  .docs-section .section__subtitle { margin-bottom: 0; }
  .doc-card { padding: 24px 20px; }
  .footer { padding: 36px 0; }
  .footer__logo-wrap { padding: 10px 14px; margin-bottom: 12px; }
  .footer__logo { height: 84px; }
  .footer__links { gap: 7px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1300px) {
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }
  .navbar__links.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--color-surface);
    padding: 20px 28px 28px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    gap: 4px;
  }
  .navbar__links.is-open a { padding: 12px 4px; border-bottom: 1px solid var(--color-border); width: 100%; max-width: none; font-size: 14.5px; }
  .navbar__links.is-open .navbar__cta { text-align: center; margin-top: 8px; border-radius: var(--radius-sm); }
}

@media (max-width: 980px) {
  .grid-2, .location-panel { grid-template-columns: 1fr; gap: 36px; }
  .grid-2--reverse { direction: ltr; }
  .location-panel__distances { grid-template-columns: 1fr 1fr; }
  .docs-grid { grid-template-columns: 1fr 1fr; }
  .flex-grid, .cta-pricing { flex-direction: column; align-items: stretch; gap: 28px; }
  .flex-grid .configurator, .cta-side { flex: none; }
  .cta-side { text-align: center; }
  .flex-plano, .cta-photo { align-self: center; }
  .flex-grid .flex-plano { padding: 12px 20px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 130px 20px 70px; }
  .navbar__logo { height: 76px; }
  .navbar.is-scrolled .navbar__logo { height: 38px; }
  .navbar__project-name { font-size: 16px; }
  .cta-highlights { grid-template-columns: 1fr; }
  .footer__logo { height: 96px; }
  .navbar__actions { gap: 8px; }
  .location-panel { padding: 30px 22px; }
  .location-panel__distances { grid-template-columns: 1fr; }
  .specs-card { padding: 28px 24px; }
  .compare-table th, .compare-table td { padding: 12px 16px; font-size: 13px; }
  .configurator__row { flex-wrap: wrap; }
  .configurator__blocks { width: 100%; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .docs-grid { grid-template-columns: 1fr; gap: 12px; }
  .doc-card { flex-direction: row; justify-content: center; gap: 12px; padding: 18px 20px; }
  .doc-card svg { width: 26px; height: 26px; }
}
