/* ============================================================
   PREYSOL — hoja de estilos única
   Estructura:
   1. Tokens y temas (Preysol / La Curva / El Nido)
   2. Base y tipografía
   3. Layout y utilidades
   4. Header y navegación
   5. Componentes (hero, tarjetas, tablas, fichas, franjas)
   6. Footer
   7. Responsive
   Para cambiar un color de marca, edita SOLO el bloque de su tema.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */

:root {
  /* Tema Preysol: blanco + naranja */
  --ink:        #191512;
  --ink-2:      #4a423b;
  --ink-3:      #7d7369;
  --paper:      #ffffff;
  --paper-2:    #f7f4f0;
  --line:       #e5ded6;
  --accent:     #ee6c1f;
  --accent-deep:#b34a08;
  --accent-soft:#fdf0e6;
  --dark-bg:    #191512;
  --dark-ink:   #f3efe9;
  --dark-line:  #3a332c;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;

  /* Escala tipográfica */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.75rem;
  --fs-4xl:  clamp(2.6rem, 6vw, 4.5rem);

  --gap:     1.5rem;
  --shell:   1240px;
  --radius:  3px;
}

/* Tema La Curva: café claro, bronce, dorado muy medido */
body[data-theme="curva"] {
  --ink:        #241a13;
  --ink-2:      #574636;
  --ink-3:      #8b7860;
  --paper:      #fbf8f3;
  --paper-2:    #f1e8db;
  --line:       #ded0ba;
  --accent:     #8a6a46;
  --accent-deep:#5b4128;
  --accent-soft:#efe3d1;
  --dark-bg:    #2b1f16;
  --dark-ink:   #f3ead9;
  --dark-line:  #4b382a;
  --metal:      #b0893c;      /* dorado: sólo filetes y detalles finos */

  --font-display: "Marcellus", Georgia, serif;
  --display-weight: 400;
  --display-tracking: 0.005em;
}

/* Tema La Curva Business Park: gris industrial y verde del parque */
body[data-theme="park"] {
  --ink:        #1c211b;
  --ink-2:      #4b514a;
  --ink-3:      #7c837b;
  --paper:      #f7f8f5;
  --paper-2:    #eaece4;
  --line:       #d5d9cf;
  --accent:     #6d9022;
  --accent-deep:#4c6617;
  --accent-soft:#e9efd8;
  --dark-bg:    #20261d;
  --dark-ink:   #f0f2ea;
  --dark-line:  #3a4235;
  --metal:      #a3c247;

  --font-display: "Archivo", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
}

/* Tema El Nido: verde profundo y café */
body[data-theme="nido"] {
  --ink:        #16241a;
  --ink-2:      #3d5340;
  --ink-3:      #71806e;
  --paper:      #faf8f1;
  --paper-2:    #edeadc;
  --line:       #d7d1bf;
  --accent:     #2e4630;
  --accent-deep:#16241a;
  --accent-soft:#e3e7d9;
  --dark-bg:    #17251a;
  --dark-ink:   #f2efe3;
  --dark-line:  #33452f;
  --metal:      #b79b5b;
  --brown:      #6b4b2e;

  --font-display: "Fraunces", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -0.005em;
}

/* ---------- 2. BASE ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 128px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.1;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 1.1em; max-width: 68ch; }
img { max-width: 100%; display: block; }
a { color: inherit; }

strong { font-weight: 600; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; z-index: 999;
}
.skip:focus { left: 0; }

/* ---------- 3. LAYOUT ---------- */

.shell { width: min(100% - 3rem, var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(100% - 3rem, 860px); margin-inline: auto; }

section { padding: 5.5rem 0; }
section.tight { padding: 3.5rem 0; }

.band-alt { background: var(--paper-2); }
.band-dark { background: var(--dark-bg); color: var(--dark-ink); }
.band-dark h2, .band-dark h3 { color: var(--dark-ink); }
.band-dark .lead, .band-dark p { color: color-mix(in srgb, var(--dark-ink) 82%, transparent); }

.head { margin-bottom: 2.8rem; max-width: 46ch; }
.head p { color: var(--ink-2); }

.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.55; }

.grid { display: grid; gap: var(--gap); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.split--wide-img { grid-template-columns: 1fr 1.15fr; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Marcador de sección: filete + nombre, no etiqueta decorativa */
.marker {
  display: flex; align-items: center; gap: .8rem;
  font-size: var(--fs-sm); color: var(--ink-3);
  margin-bottom: 1.2rem;
}
.marker::before {
  content: ""; width: 34px; height: 1px; background: var(--accent); flex: none;
}
.band-dark .marker { color: color-mix(in srgb, var(--dark-ink) 65%, transparent); }
.band-dark .marker::before { background: var(--metal, var(--accent)); }

/* ---------- 4. HEADER ---------- */

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.topbar.is-stuck { box-shadow: 0 1px 14px rgba(0,0,0,.07); }

.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 70px;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand__mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .16em; font-size: .95rem; text-transform: uppercase;
}
.brand__sub { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .08em; }

/* Conmutador de proyectos: la pieza más visible del header */
.switch { display: flex; align-items: center; gap: .4rem; }
.switch__link {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.switch__link:hover { background: var(--paper-2); border-color: var(--ink-3); }
.switch__link[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--plaza { background: #8a6a46; box-shadow: 0 0 0 2px #e6d6bd inset; }
.dot--park  { background: #6d9022; box-shadow: 0 0 0 2px #20261d inset; }
.dot--nido  { background: #2e4630; box-shadow: 0 0 0 2px #b79b5b inset; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .5rem .8rem; font: inherit;
  font-size: var(--fs-sm); cursor: pointer; color: var(--ink);
}

/* Subnavegación de proyecto */
.subnav {
  position: sticky; top: 70px; z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.subnav__in { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a {
  padding: .95rem 1.1rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- 5. COMPONENTES ---------- */

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem;
  background: var(--accent); color: #fff;
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-3); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band-dark .btn--ghost { color: var(--dark-ink); border-color: var(--dark-line); }
.band-dark .btn--ghost:hover { background: var(--dark-ink); color: var(--dark-bg); }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Hero de portada */
.hero { padding: 4.5rem 0 0; }
.hero__claim { max-width: 20ch; margin-bottom: 1.4rem; }
.hero__text { max-width: 54ch; }

/* Puertas de proyecto (portada) */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3.5rem; }
.doors--3 { grid-template-columns: repeat(3, 1fr); }
.doors--3 .door { min-height: 430px; }
.doors--3 .door__title { font-size: 1.8rem; }
.door--park .door__title { font-family: "Archivo", system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 1080px) { .doors--3 { grid-template-columns: 1fr 1fr; } }
.door {
  position: relative; display: block; text-decoration: none;
  color: #fff; overflow: hidden; border-radius: var(--radius);
  min-height: 460px;
  isolation: isolate;
}
.door img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}
.door::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,8,6,.15) 0%, rgba(10,8,6,.35) 45%, rgba(10,8,6,.86) 100%);
}
.door:hover img { transform: scale(1.035); }
.door__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem; }
.door__kicker { font-size: var(--fs-xs); letter-spacing: .14em; opacity: .85; margin-bottom: .5rem; }
.door__title { font-size: 2.1rem; margin: 0 0 .4rem; line-height: 1.05; }
.door--curva .door__title { font-family: "Marcellus", Georgia, serif; font-weight: 400; letter-spacing: .02em; }
.door--nido  .door__title { font-family: "Fraunces", Georgia, serif; font-weight: 400; }
.door__meta { font-size: var(--fs-sm); opacity: .88; margin: 0; max-width: 40ch; }
.door__go { margin-top: 1rem; font-size: var(--fs-sm); border-bottom: 1px solid rgba(255,255,255,.5); display: inline-block; padding-bottom: 2px; }

/* Hero de proyecto */
.phero { position: relative; padding: 0; color: #fff; isolation: isolate; }
.phero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,9,6,.82) 0%, rgba(12,9,6,.55) 48%, rgba(12,9,6,.25) 100%);
}
.phero__in { padding: 7rem 0 6rem; }
.phero__title { font-size: var(--fs-4xl); margin-bottom: .5rem; }
.phero__tag { font-size: var(--fs-lg); max-width: 34ch; color: rgba(255,255,255,.9); }
.phero__facts {
  display: flex; flex-wrap: wrap; gap: 2.4rem;
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.25);
}
.phero__fact { font-size: var(--fs-sm); color: rgba(255,255,255,.78); }
.phero__fact b {
  display: block; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 1.6rem; color: #fff; line-height: 1.2;
}

/* Ficha / tarjeta de contenido */
.card { border: 1px solid var(--line); padding: 1.6rem; border-radius: var(--radius); background: var(--paper); }
.card h3 { margin-bottom: .5rem; font-size: var(--fs-lg); }
.card p { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: 0; }
.band-dark .card { background: transparent; border-color: var(--dark-line); }
.band-dark .card p { color: color-mix(in srgb, var(--dark-ink) 72%, transparent); }

/* Listas de características */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border: 1px solid var(--accent); border-radius: 50%;
}
.band-dark .ticks li { color: color-mix(in srgb, var(--dark-ink) 80%, transparent); }
.band-dark .ticks li::before { border-color: var(--metal, var(--accent)); }

.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; color: var(--ink-2); }
.plain li { border-bottom: 1px solid var(--line); padding-bottom: .55rem; font-size: var(--fs-sm); }
.plain li:last-child { border-bottom: 0; }

/* Tabla de disponibilidad — pieza central de cada proyecto */
.board { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.board__cap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem;
  padding: 1rem 1.3rem; background: var(--dark-bg); color: var(--dark-ink);
}
.board__cap h3 { margin: 0; font-size: var(--fs-lg); color: var(--dark-ink); }
.board__cap span { font-size: var(--fs-xs); color: color-mix(in srgb, var(--dark-ink) 68%, transparent); }
table.board__tbl { width: 100%; border-collapse: collapse; }
.board__tbl th, .board__tbl td { padding: .95rem 1.3rem; text-align: left; font-size: var(--fs-sm); }
.board__tbl thead th {
  font-weight: 500; color: var(--ink-3); background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.board__tbl tbody tr + tr td { border-top: 1px solid var(--line); }
.board__tbl td.unit { font-weight: 600; color: var(--ink); white-space: nowrap; }
.board__tbl td.price {
  font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap;
  font-size: var(--fs-base);
}
.tag {
  display: inline-block; padding: .18rem .55rem; border-radius: 999px;
  font-size: var(--fs-xs); border: 1px solid var(--line); color: var(--ink-2);
  white-space: nowrap;
}
.tag--now { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.note { font-size: var(--fs-xs); color: var(--ink-3); margin-top: .9rem; }

/* Precio destacado */
.pricebox {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; background: var(--paper);
  display: grid; gap: .35rem; align-content: start;
}
.pricebox--hi { background: var(--dark-bg); color: var(--dark-ink); border-color: var(--dark-bg); }
.pricebox__label { font-size: var(--fs-sm); color: var(--ink-3); }
.pricebox--hi .pricebox__label { color: color-mix(in srgb, var(--dark-ink) 70%, transparent); }
.pricebox__num {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 2.5rem; line-height: 1.05; font-variant-numeric: tabular-nums;
}
.pricebox__num small { font-size: .95rem; font-family: var(--font-body); font-weight: 400; letter-spacing: .06em; }
.pricebox__sub { font-size: var(--fs-sm); color: var(--ink-2); }
.pricebox--hi .pricebox__sub { color: color-mix(in srgb, var(--dark-ink) 78%, transparent); }
.pricebox ul { margin: .9rem 0 0; }

/* Retorno / comparativa */
.roi { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.roi--best { border-color: var(--accent); }
.roi__name { font-size: var(--fs-base); font-weight: 600; margin-bottom: .2rem; }
.roi__inv { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: 1rem; }
.roi__rows { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: var(--fs-sm); }
.roi__rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.roi__rows li b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.roi__big { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2.4rem; line-height: 1; }
.roi__big span { display: block; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 400; color: var(--ink-3); letter-spacing: .1em; margin-top: .35rem; }

/* Galería */
.gal { display: grid; gap: 1rem; }
.gal img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.gal--3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; }
.gal--4 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure figcaption { font-size: var(--fs-xs); color: var(--ink-3); margin-top: .6rem; }

.imgfull { width: 100%; border-radius: var(--radius); }

/* Amenidades / iconografía textual */
.amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; }
.amen li { background: var(--dark-bg); padding: 1.5rem 1.1rem; font-size: var(--fs-sm); color: color-mix(in srgb, var(--dark-ink) 85%, transparent); }
.amen li b { display: block; font-weight: 600; color: var(--dark-ink); margin-bottom: .2rem; }

/* Comparativa dos columnas */
.vs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vs__row { display: grid; grid-template-columns: 1fr 1fr; }
.vs__row + .vs__row { border-top: 1px solid var(--line); }
.vs__cell { padding: 1.1rem 1.3rem; font-size: var(--fs-sm); }
.vs__cell:first-child { background: var(--accent-soft); color: var(--ink); border-right: 1px solid var(--line); }
.vs__cell:last-child { color: var(--ink-3); }
.vs__head .vs__cell { font-weight: 600; font-size: var(--fs-sm); background: var(--dark-bg); color: var(--dark-ink); border-right-color: var(--dark-line); }

/* Cita */
.quote {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.35;
  max-width: 24ch; margin: 0;
}
.quote--wide { max-width: 34ch; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.social { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0; }
.social li { border-top: 1px solid var(--line); }
.social li:last-child { border-bottom: 1px solid var(--line); }
.social a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; text-decoration: none; font-size: var(--fs-sm); color: var(--ink);
}
.social a span { color: var(--ink-3); }
.social a:hover span { color: var(--accent); }
.band-dark .social li { border-color: var(--dark-line); }
.band-dark .social a { color: var(--dark-ink); }
.band-dark .social a span { color: color-mix(in srgb, var(--dark-ink) 60%, transparent); }

/* ---------- 6. FOOTER ---------- */

.foot { background: var(--dark-bg); color: var(--dark-ink); padding: 4rem 0 2rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot h4 { font-size: var(--fs-sm); letter-spacing: .12em; color: color-mix(in srgb, var(--dark-ink) 60%, transparent); margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot a { color: color-mix(in srgb, var(--dark-ink) 82%, transparent); text-decoration: none; font-size: var(--fs-sm); }
.foot a:hover { color: var(--dark-ink); }
.foot__bar {
  margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--dark-line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: var(--fs-xs); color: color-mix(in srgb, var(--dark-ink) 55%, transparent);
}
.foot p { color: color-mix(in srgb, var(--dark-ink) 75%, transparent); font-size: var(--fs-sm); }

/* Aviso legal pequeño */
.legal { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.6; }

/* Entrada única y orquestada del hero */
.reveal > * { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.25,1) forwards; }
.reveal > *:nth-child(1) { animation-delay: .05s; }
.reveal > *:nth-child(2) { animation-delay: .16s; }
.reveal > *:nth-child(3) { animation-delay: .27s; }
.reveal > *:nth-child(4) { animation-delay: .38s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal > * { opacity: 1; transform: none; animation: none; } }

/* ---------- 7. RESPONSIVE ---------- */

@media (max-width: 1240px) {
  .brand__sub { display: none; }
  .nav { gap: 1.1rem; }
  .switch__link { padding: .5rem .75rem; font-size: .85rem; }
}

/* Hero sin fotografía, para proyectos en preparación */
.phero--flat { background: var(--dark-bg); color: var(--dark-ink); }
.phero--flat::after { display: none; }

/* El menú colapsa antes que el resto: tres píldoras de proyecto necesitan espacio */
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 0 1.2rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 1.4rem; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
  .switch { flex-direction: column; align-items: stretch; padding: 1rem 1.4rem 0; gap: .6rem; }
  .switch__link { justify-content: flex-start; border-radius: var(--radius); padding: .8rem 1rem; font-size: var(--fs-base); }
  .topbar__in { position: relative; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 116px; }
  .shell, .shell--narrow { width: min(100% - 2.2rem, var(--shell)); }
  section { padding: 4rem 0; }
  .split, .split--wide-img, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 380px; }
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
  .amen { grid-template-columns: repeat(2, 1fr); }
  .gal--3, .gal--4 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .phero__in { padding: 5rem 0 4rem; }
  .phero__facts { gap: 1.6rem; }
  .subnav { top: 71px; }
}

@media (max-width: 620px) {
  :root { --fs-3xl: 2rem; --fs-2xl: 1.65rem; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .gal--3, .gal--4 { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .amen { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .vs__row { grid-template-columns: 1fr; }
  .vs__cell:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .board__tbl th, .board__tbl td { padding: .8rem .9rem; }
  .board__wrap { overflow-x: auto; }
  .board__tbl { min-width: 560px; }
}
