/* =============================================================
   ROYAL SATURN CORPORATION — styles.css
   Archetype: Editorial Dark Warm (luxury black & gold)
   1. Tokens · 2. Reset · 3. Utilities · 4. Typography
   5. Components · 6. Sections · 7. Effects · 8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — deep warm black, never #000 */
  --bg:        #0B0A07;
  --bg-2:      #12100B;
  --bg-3:      #191510;   /* cards */
  --bg-4:      #201A12;   /* hover cards */
  --ivory:     #F4EEDF;
  --ivory-2:   #D9CFB9;
  --mute:      #96896F;
  --gold:      #C9A24B;   /* metallic gold */
  --gold-2:    #E4CB84;   /* champagne */
  --gold-dim:  #8A6F33;
  --line:      rgba(201, 162, 75, 0.28);
  --line-soft: rgba(244, 238, 223, 0.10);

  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Inter", "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);
  --nav-h: 84px;

  /* Easings */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ivory-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; font-weight: 500; color: var(--ivory); }
ul, ol { padding-left: 1.2rem; }
::selection { background: var(--gold); color: var(--bg); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -120px; left: 1rem;
  padding: .65rem 1.1rem;
  background: var(--gold); color: var(--bg);
  font-weight: 500; font-size: .85rem;
  z-index: 9999; border-radius: 2px;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.container {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--wide  { width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Fine gold hairline separators */
.hairline {
  border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker--center { text-align: center; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .015em;
  color: var(--ivory);
}
h1.display { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 1.04; }
h2.display { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3.display { font-size: clamp(1.45rem, 2.6vw, 2rem); }

.display em {
  font-style: italic;
  color: var(--gold-2);
}
.display .caps { text-transform: uppercase; letter-spacing: .06em; }
.display .gold { color: var(--gold-2); font-style: normal; }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 300;
  color: var(--ivory-2);
  max-width: 58ch;
}

.section-head { margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-head .kicker { margin-bottom: 1.1rem; }
.section-head .lede { margin-top: 1.2rem; }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--split {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: flex-end; justify-content: space-between;
}

.gold-rule {
  width: 56px; height: 1px; border: 0;
  background: var(--gold);
  margin: 1.4rem 0;
}
.section-head--center .gold-rule { margin-inline: auto; }

/* =============================================================
   5. Components
   ============================================================= */

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .8rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 1.02rem 1.9rem;
  border-radius: 2px;
  transition: background .35s var(--ease-out), color .35s var(--ease-out),
              border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn .ic { width: 15px; height: 15px; flex: 0 0 auto; }
.btn:hover .arrow { transform: translateX(5px); }

.btn--gold {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 55%, var(--gold) 100%);
  background-size: 200% 100%;
  color: #171204;
  transition: background-position .6s var(--ease-out), transform .35s var(--ease-out);
}
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ivory);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.btn--text {
  padding: 0; letter-spacing: .24em;
  color: var(--gold); font-size: .74rem;
  border-bottom: 1px solid transparent; border-radius: 0;
}
.btn--text:hover { color: var(--gold-2); }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .45s var(--ease-soft), border-color .45s var(--ease-soft),
              backdrop-filter .45s var(--ease-soft), height .45s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 68px;
  background: rgba(11, 10, 7, 0.92);
  border-bottom-color: var(--line-soft);
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-scrolled { background: rgba(11, 10, 7, 0.78); backdrop-filter: blur(14px); }
}
.nav-inner {
  width: min(1400px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
/* Official Royal Saturn emblem (transparent WebP, from the master artwork) */
.brand-mark {
  height: 40px; width: auto; flex: 0 0 auto;
  transition: height .45s var(--ease-soft);
}
.nav.is-scrolled .brand-mark { height: 36px; }

/* Full logo lockup — footer and mobile menu, where it has room to breathe */
.brand--lockup { display: block; }
.brand-lockup { width: min(210px, 62%); height: auto; }
.menu-lockup {
  display: block; width: 132px; height: auto;
  margin: 0 auto 1.8rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.06rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-2);
  white-space: nowrap;
}
.brand-sub {
  font-size: .5rem; letter-spacing: .5em; text-transform: uppercase;
  color: var(--mute); white-space: nowrap;
}

.nav-links { display: none; }
.nav-cta { display: none; }

.nav-right { display: flex; align-items: center; gap: 1.1rem; }


.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px;
}
.nav-burger span {
  display: block; height: 1px; background: var(--ivory);
  transition: transform .4s var(--ease-out), opacity .3s, background .3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu — designed, not compressed */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(160deg, #0C0A07 0%, #141009 100%);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s var(--ease-out), visibility 0s .45s;
  overflow-y: auto;
}
.menu.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .45s var(--ease-out);
}
.menu-links { list-style: none; padding: 0; margin: 0 0 2rem; }
.menu-links li { border-bottom: 1px solid var(--line-soft); }
.menu-links a {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--serif); font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  color: var(--ivory); padding: .85rem 0;
  transition: color .3s, padding-left .3s var(--ease-out);
}
.menu-links a:hover, .menu-links a.is-current { color: var(--gold-2); padding-left: .5rem; }
.menu-links .num {
  font-family: var(--sans); font-size: .62rem;
  letter-spacing: .3em; color: var(--mute);
}
.menu-foot { margin-top: auto; display: grid; gap: 1.2rem; }
.menu-foot .markets {
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--mute);
}
.menu.is-open .menu-links li {
  animation: menuItem .6s var(--ease-out) backwards;
}
.menu.is-open .menu-links li:nth-child(1) { animation-delay: .05s; }
.menu.is-open .menu-links li:nth-child(2) { animation-delay: .09s; }
.menu.is-open .menu-links li:nth-child(3) { animation-delay: .13s; }
.menu.is-open .menu-links li:nth-child(4) { animation-delay: .17s; }
.menu.is-open .menu-links li:nth-child(5) { animation-delay: .21s; }
.menu.is-open .menu-links li:nth-child(6) { animation-delay: .25s; }
.menu.is-open .menu-links li:nth-child(7) { animation-delay: .29s; }
.menu.is-open .menu-links li:nth-child(8) { animation-delay: .33s; }
.menu.is-open .menu-links li:nth-child(9) { animation-delay: .37s; }
@keyframes menuItem {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Cards: developments / properties ---- */
.dev-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
.card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out),
              box-shadow .5s var(--ease-out), background .5s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  background: var(--bg-4);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-media > img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), filter .8s var(--ease-out);
}
.card:hover .card-media > img { transform: scale(1.06); filter: saturate(1.1) brightness(1.05); }
.card-media > img.is-alt { opacity: 0; }
.card-media > img { opacity: 1; transition: transform .8s var(--ease-out), filter .8s var(--ease-out), opacity .5s var(--ease-out); }

/* Indicador de cuántas fotos tiene la ficha */
.card-dots {
  position: absolute; z-index: 3; right: .8rem; bottom: .8rem;
  display: flex; gap: .3rem;
}
.card-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(244, 238, 223, 0.45);
  transition: background .35s var(--ease-out), transform .35s var(--ease-out);
}
.card-dots i.on { background: var(--gold-2); transform: scale(1.35); }

/* Brand-art placeholders (until real photography is provided) */
.card-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .8s var(--ease-out);
}
.card:hover .card-art { transform: scale(1.05); }
.card-art::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 62%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.card-art svg { width: 84px; height: 84px; opacity: .9; }

.art-1 { background: radial-gradient(120% 90% at 20% 10%, #2A2114 0%, #14100A 55%, #0C0A07 100%); }
.art-2 { background: radial-gradient(120% 90% at 80% 15%, #23252B 0%, #121316 50%, #0B0A08 100%); }
.art-3 { background: radial-gradient(130% 100% at 50% 0%, #2B1F1A 0%, #171009 55%, #0C0906 100%); }
.art-4 { background: radial-gradient(120% 90% at 15% 85%, #1D2620 0%, #10140F 55%, #0A0C09 100%); }
.art-5 { background: radial-gradient(130% 100% at 85% 80%, #292018 0%, #15100B 55%, #0B0906 100%); }
.art-6 { background: radial-gradient(120% 90% at 50% 100%, #20202B 0%, #111117 55%, #0A0A0E 100%); }

.card-tag--sold { color: var(--mute); border-color: var(--line-soft); }
.card-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: .58rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(11, 10, 7, 0.75);
  border: 1px solid var(--line);
  padding: .42rem .75rem; border-radius: 2px;
}
.card-body { padding: 1.5rem 1.5rem 1.6rem; }
.card-title {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold-2);
}
.card-loc { font-size: .8rem; color: var(--mute); margin-top: .3rem; }
.card-meta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-top: 1.15rem; padding-top: 1.05rem;
  border-top: 1px solid var(--line-soft);
}
.card-price-label {
  display: block; font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mute);
}
.card-price {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  color: var(--gold-2); letter-spacing: .02em;
}
.card-type { font-size: .78rem; color: var(--ivory-2); text-align: right; }
.card-cta { margin-top: 1.2rem; }

/* ---- Featured carousel ---- */
.car-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; }
.car-head .kicker { flex: 0 0 auto; }
.car-line { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--line), rgba(201,162,75,.05)); }
.car-arrows { display: flex; gap: .55rem; flex: 0 0 auto; }
.car-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--gold-2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, background .3s, opacity .3s;
}
.car-btn:hover { border-color: var(--gold); background: rgba(201,162,75,.08); }
.car-btn[disabled] { opacity: .3; pointer-events: none; }
.car-btn svg { width: 14px; height: 14px; }
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(310px, 84vw);
  gap: 1.3rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: .25rem .25rem 1.8rem;
  margin-inline: -.25rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
@media (min-width: 960px)  { .carousel-track { grid-auto-columns: calc((100% - 2.85rem) / 3); } }
@media (min-width: 1280px) { .carousel-track { grid-auto-columns: calc((100% - 4.15rem) / 4); } }

/* ---- Category tiles (investments) ---- */
.tile-grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.tile {
  background: var(--bg);
  padding: 2.2rem 1.8rem;
  transition: background .45s var(--ease-out);
  position: relative;
}
.tile:hover { background: var(--bg-2); }
.tile-icon { width: 40px; height: 40px; margin-bottom: 1.3rem; color: var(--gold); }
.tile-icon svg { width: 100%; height: 100%; }
.tile h3 {
  font-family: var(--serif); font-size: 1.28rem; font-weight: 600;
  letter-spacing: .05em; margin-bottom: .55rem;
}
.tile p { font-size: .88rem; color: var(--mute); max-width: 34ch; }
.tile .btn--text { margin-top: 1.1rem; display: inline-flex; gap: .5rem; }
.tile::after {
  content: ""; position: absolute; left: 1.8rem; right: 1.8rem; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.tile:hover::after { transform: scaleX(1); }

/* Home variant: centered band like the reference, six across on wide screens */
.tile-grid--band .tile { text-align: center; padding: 2.4rem 1.2rem 2.6rem; }
.tile-grid--band .tile-icon { margin: 0 auto 1.2rem; width: 44px; height: 44px; }
.tile-grid--band .tile h3 {
  font-family: var(--sans); font-weight: 500;
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .6rem;
}
.tile-grid--band .tile p { margin-inline: auto; font-size: .84rem; color: var(--ivory-2); max-width: 24ch; }
.tile-grid--band .tile::after { left: 30%; right: 30%; }

/* ---- Stats band ---- */
.stats {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 1.5rem;
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  color: var(--gold-2); letter-spacing: .02em;
  white-space: nowrap;
}
.stat-label {
  display: block;
  font-size: .72rem; line-height: 1.45;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute); margin-top: .45rem;
}
.stat-note { display: block; font-size: .64rem; color: var(--mute); letter-spacing: .04em; text-transform: none; }

/* Light marble variant — the reference's bottom indicators band */
.stats--light {
  background:
    radial-gradient(120% 160% at 10% 0%, rgba(201, 162, 75, 0.12), transparent 55%),
    radial-gradient(120% 160% at 95% 100%, rgba(201, 162, 75, 0.08), transparent 50%),
    linear-gradient(175deg, #F5F2EB 0%, #EAE5D9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(201, 162, 75, 0.35);
}
.stat-icon { display: none; }
.stats--light .stat {
  display: flex; align-items: center; justify-content: center;
  gap: .95rem; text-align: left;
}
.stats--light .stat-icon { display: block; flex: 0 0 auto; width: 42px; height: 42px; color: #A8862F; }
.stats--light .stat-icon svg { width: 100%; height: 100%; }
.stats--light .stat-value { color: #17120A; font-size: clamp(1.45rem, 2.3vw, 1.95rem); }
.stats--light .stat-label { color: #6E6350; margin-top: .15rem; font-size: .66rem; }
.stats--light .stat-note { color: #8A7E68; }

/* ---- Markets / global presence ---- */
.markets-grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.market {
  background: var(--bg); padding: 2.4rem 2rem;
  position: relative; overflow: clip;
  transition: background .5s var(--ease-out);
}
.market:hover { background: var(--bg-2); }
.market-index {
  font-family: var(--serif); font-style: italic;
  font-size: .95rem; color: var(--gold-dim);
}
.market h3 {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin: .7rem 0 .8rem;
}
.market p { font-size: .92rem; color: var(--mute); max-width: 44ch; }
.market-city { margin-top: 1.4rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

/* ---- Editorial split section ---- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-media {
  position: relative; aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft); border-radius: 3px; overflow: hidden;
}
.split-media .card-art { position: absolute; inset: 0; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body .lede { margin-top: 1.2rem; }
.split-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .85rem; }
.split-list li {
  display: flex; gap: .9rem; align-items: baseline;
  font-size: .95rem; color: var(--ivory-2);
}
.split-list li::before {
  content: "—"; color: var(--gold); flex: 0 0 auto;
}

/* ---- Quote band ---- */
.quote-band {
  text-align: center;
  padding: var(--section-pad) 0;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(201, 162, 75, 0.07), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.quote-band blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  color: var(--ivory); max-width: 26ch; margin-inline: auto;
  line-height: 1.3;
}
.quote-band cite {
  display: block; font-style: normal; font-family: var(--sans);
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-top: 1.6rem;
}

/* ---- Forms ---- */
.form-grid { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--mute);
}
.field input, .field select, .field textarea {
  font: inherit; color: var(--ivory);
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: .9rem 1rem;
  transition: border-color .3s, background .3s;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(150, 137, 111, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--bg-4);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23C9A24B' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.field textarea { min-height: 132px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--mute); }
.form-status { font-size: .85rem; color: var(--gold-2); min-height: 1.4em; }

/* ---- Filters (properties page) ---- */
.filters {
  display: grid; gap: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 1.4rem;
  margin-bottom: 2.6rem;
}
.filters .field label { font-size: .6rem; }
.filters-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.results-bar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.6rem;
  font-size: .8rem; color: var(--mute);
}
.empty-state {
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
  background: var(--bg-2);
}
.empty-state .glyph { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-dim); }
.empty-state h3 { font-family: var(--serif); font-size: 1.5rem; margin: .8rem 0 .5rem; }
.empty-state p { color: var(--mute); max-width: 46ch; margin-inline: auto; }

/* ---- Contact quick rail ---- */
.contact-rail {
  display: grid; gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.contact-cell {
  background: var(--bg-2); padding: 1.7rem 1.6rem;
  display: flex; flex-direction: column; gap: .4rem;
  transition: background .4s;
}
.contact-cell:hover { background: var(--bg-3); }
.contact-cell .kicker { font-size: .6rem; }
.contact-cell strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ivory); }
.contact-cell span { font-size: .82rem; color: var(--mute); }

/* ---- Footer ---- */
.footer {
  background: #080705;
  border-top: 1px solid var(--line-soft);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.2rem;
}
.footer-grid { display: grid; gap: 2.6rem; }
.footer-brand p { font-size: .85rem; color: var(--mute); max-width: 40ch; margin-top: 1rem; }
.footer-markets {
  margin-top: 1.4rem;
  font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.footer h4 {
  font-size: .68rem; font-weight: 500; letter-spacing: .3em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-links a { font-size: .9rem; color: var(--ivory-2); transition: color .3s; }
.footer-links a:hover { color: var(--gold-2); }
.footer-tagline {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.footer-tagline p {
  font-family: var(--serif); font-size: clamp(.95rem, 2vw, 1.2rem);
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dim);
}
.footer-legal {
  margin-top: 1.6rem; text-align: center;
  font-size: .72rem; color: var(--mute);
}
.footer-legal a { color: var(--ivory-2); }
.footer-legal a:hover { color: var(--gold-2); }

/* =============================================================
   6. Sections
   ============================================================= */
main { display: block; }
.section { padding: var(--section-pad) 0; position: relative; }
.section--tint { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
  overflow: clip;
}
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 78% 30%, rgba(201, 162, 75, 0.16) 0%, transparent 60%),
    radial-gradient(120% 90% at 50% 115%, #2B2115 0%, transparent 55%),
    linear-gradient(180deg, #0A0906 0%, #141008 46%, #1D1509 72%, #0C0A07 100%);
  animation: skyDrift 26s var(--ease-soft) infinite alternate;
}
@keyframes skyDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.hero-horizon {
  position: absolute; left: 0; right: 0; top: 66%;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(228, 203, 132, 0.5) 40%, rgba(228, 203, 132, 0.14) 78%, transparent);
}
.hero-orb {
  position: absolute; top: 30%; right: 14%;
  width: clamp(120px, 18vw, 240px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(228, 203, 132, 0.24), rgba(201, 162, 75, 0.06) 55%, transparent 72%);
  filter: blur(2px);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 10, 7, 0.82) 0%, rgba(11, 10, 7, 0.45) 55%, rgba(11, 10, 7, 0.15) 100%);
}

/* Cinematic photography layer. The <img> lights up automatically once
   assets/img/uploads/hero-home.webp exists; until then it removes itself
   and the gradient scene beneath acts as the fallback. */
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-position: 70% 48%; background-size: cover; background-repeat: no-repeat;
}
.split-photo {
  position: absolute; inset: 0; z-index: 1;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero--photo .hero-scrim {
  background:
    linear-gradient(90deg, #0B0A07 0%, rgba(11,10,7,.95) 24%, rgba(11,10,7,.62) 46%, rgba(11,10,7,.1) 70%, rgba(11,10,7,0) 100%),
    linear-gradient(180deg, rgba(11,10,7,.5) 0%, transparent 20%, transparent 72%, #0B0A07 100%);
}
@media (max-width: 719px) {
  .hero--photo .hero-scrim {
    background: linear-gradient(180deg, rgba(11,10,7,.88) 0%, rgba(11,10,7,.68) 45%, rgba(11,10,7,.92) 100%);
  }
}
.hero-inner { position: relative; z-index: 2; }
.hero .kicker { margin-bottom: 1.4rem; }
.hero-sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--gold-2); margin-top: 1.4rem;
}
.hero-desc { margin-top: 1.1rem; max-width: 54ch; font-size: clamp(.95rem, 1.4vw, 1.05rem); color: var(--ivory-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-markets {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem .85rem;
  margin-top: 2.4rem;
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.hero-markets .dot { color: var(--gold); }

@media (min-width: 720px) {
  .hero-markets {
    gap: .6rem 1.6rem; margin-top: 3rem;
    font-size: .68rem; letter-spacing: .28em;
  }
}
.hero-scrolldown {
  display: none;
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: .58rem; letter-spacing: .4em; text-transform: uppercase; color: var(--mute);
  flex-direction: column; align-items: center; gap: .7rem;
}
@media (min-width: 960px) {
  .hero-scrolldown { display: flex; }
}
.hero-scrolldown::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.4s var(--ease-soft) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: .4; }
  50%       { transform: scaleY(1); opacity: 1; }
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(70% 100% at 80% 0%, rgba(201, 162, 75, 0.08), transparent 60%),
    linear-gradient(180deg, #100D08 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: clip;
}
/* Editorial photo band behind interior page heroes. The slot stays empty
   (gradient only) until an image is set, so nothing 404s. */
.page-hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-position: center 45%; background-size: cover; background-repeat: no-repeat;
}
.page-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #0B0A07 0%, rgba(11,10,7,.92) 30%, rgba(11,10,7,.55) 62%, rgba(11,10,7,.25) 100%),
    linear-gradient(180deg, rgba(11,10,7,.6) 0%, transparent 35%, rgba(11,10,7,.85) 100%);
}
@media (max-width: 719px) {
  .page-hero-photo::after {
    background: linear-gradient(180deg, rgba(11,10,7,.85) 0%, rgba(11,10,7,.7) 50%, rgba(11,10,7,.93) 100%);
  }
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .kicker { margin-bottom: 1.1rem; }
.page-hero .lede { margin-top: 1.3rem; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 2rem;
}
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs .sep { color: var(--gold-dim); }

/* Consultation CTA band */
.cta-band {
  position: relative; overflow: clip;
  background:
    radial-gradient(70% 120% at 50% 130%, rgba(201, 162, 75, 0.14), transparent 60%),
    #0E0C08;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}
.cta-band .display { max-width: 22ch; margin-inline: auto; }
.cta-band .lede { margin: 1.3rem auto 0; }
.cta-band .hero-actions { justify-content: center; }

/* Floating quick-contact dock */
.dock {
  position: fixed; right: .75rem; bottom: .75rem; z-index: 80;
  display: flex; flex-direction: column; gap: .45rem;
}
.dock a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: rgba(17, 14, 9, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-2);
  transition: transform .35s var(--ease-out), background .35s, border-color .35s;
}
.dock a:hover { transform: translateY(-3px); background: var(--bg-4); border-color: var(--gold); }
.dock svg { width: 18px; height: 18px; }

.dock-label { display: none; }

@media (min-width: 540px) {
  .dock { right: 1.1rem; bottom: 1.1rem; gap: .5rem; }
  .dock a { width: 46px; height: 46px; }
  .dock svg { width: 19px; height: 19px; }
}

@media (min-width: 960px) {
  .dock {
    right: 14px; bottom: auto; top: 50%; transform: translateY(-50%);
    gap: 0; padding: .3rem;
    background: rgba(14, 12, 8, 0.86);
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  @supports (backdrop-filter: blur(8px)) {
    .dock { background: rgba(14, 12, 8, 0.74); backdrop-filter: blur(8px); }
  }
  .dock a {
    width: 78px; height: auto;
    flex-direction: column; gap: .5rem;
    padding: .95rem .4rem .85rem;
    background: transparent; border: 0; border-radius: 7px;
  }
  .dock a + a { border-top: 1px solid var(--line-soft); border-radius: 0; }
  .dock a:last-child { border-radius: 0 0 7px 7px; }
  .dock a:first-child { border-radius: 7px 7px 0 0; }
  .dock a:hover { transform: none; background: rgba(201, 162, 75, 0.08); }
  .dock svg { width: 21px; height: 21px; }
  .dock-label {
    display: block;
    font-size: .56rem; letter-spacing: .06em;
    color: var(--ivory-2); text-align: center; line-height: 1.3;
  }
}

/* ---- Compact brand block on phones ----
   The real emblem is wider than a plain icon, so the bar needs the brand
   tightened or the menu button gets pushed off-screen. */
@media (max-width: 539px) {
  .nav-inner { gap: 1rem; }
  .brand { gap: .5rem; }
  .brand-mark { height: 34px; }
  .nav.is-scrolled .brand-mark { height: 31px; }
  .brand-name { font-size: .86rem; letter-spacing: .1em; }
  .brand-sub { font-size: .44rem; letter-spacing: .36em; }
  .nav-right { gap: .6rem; }
  .lang-switch { font-size: .66rem; gap: .35rem; }
  .nav-burger { width: 40px; height: 40px; padding: 8px; }
}
/* Very small phones: the emblem alone carries the brand */
@media (max-width: 359px) {
  .brand-text { display: none; }
  .brand-mark { height: 36px; }
}

/* Spanish headlines run long: keep the biggest display type inside the
   gutters on phones instead of clipping at the viewport edge. */
@media (max-width: 539px) {
  h1.display { font-size: clamp(1.95rem, 8.6vw, 2.35rem); }
  h2.display { font-size: clamp(1.6rem, 6.6vw, 2rem); }
}

/* Keep buttons and page CTAs clear of the floating dock on small screens */
@media (max-width: 539px) {
  .hero-actions, .cta-band .hero-actions, .empty-state .hero-actions { padding-right: 54px; }
  .hero-actions .btn {
    width: 100%; justify-content: center;
    padding: 1rem 1.15rem;
    font-size: .71rem; letter-spacing: .13em;
    gap: .55rem;
  }
}

/* ---- Visor de fotos a pantalla completa (lightbox) ---- */
.card-media[data-photos] { cursor: zoom-in; }
.card-count {
  position: absolute; z-index: 3; right: .8rem; top: .8rem;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(11, 10, 7, 0.78);
  border: 1px solid var(--line);
  padding: .3rem .55rem; border-radius: 2px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.card:hover .card-count, .card:focus-within .card-count { opacity: 1; transform: none; }
.card-count svg { width: 11px; height: 11px; }

.lb {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: rgba(8, 7, 5, 0.97);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility 0s .35s;
}
@supports (backdrop-filter: blur(10px)) {
  .lb { background: rgba(8, 7, 5, 0.92); backdrop-filter: blur(10px); }
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out); }

.lb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--line-soft);
}
.lb-title {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--gold-2);
}
.lb-meta { font-size: .68rem; letter-spacing: .22em; color: var(--mute); }
.lb-close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, background .3s;
}
.lb-close:hover { border-color: var(--gold); background: rgba(201,162,75,.1); }
.lb-close svg { width: 15px; height: 15px; }

.lb-stage {
  flex: 1 1 auto; min-height: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.lb-stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  border-radius: 3px;
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.lb-stage img.is-on { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--gold-2);
  background: rgba(11, 10, 7, 0.7);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, background .3s, opacity .3s;
}
.lb-nav:hover { border-color: var(--gold); background: rgba(201,162,75,.14); }
.lb-nav[disabled] { opacity: .25; pointer-events: none; }
.lb-prev { left: max(.6rem, 2vw); }
.lb-next { right: max(.6rem, 2vw); }
.lb-nav svg { width: 16px; height: 16px; }

.lb-thumbs {
  display: flex; gap: .5rem; justify-content: center; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
  padding: .9rem var(--gutter) 1.2rem;
  border-top: 1px solid var(--line-soft);
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button {
  flex: 0 0 auto; width: 74px; height: 50px;
  border: 1px solid transparent; border-radius: 3px; overflow: hidden;
  opacity: .5; transition: opacity .3s, border-color .3s;
}
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button.is-on { opacity: 1; border-color: var(--gold); }

@media (max-width: 719px) {
  .lb-thumbs button { width: 58px; height: 40px; }
  .lb-nav { width: 40px; height: 40px; }
}

/* Tira de fotos bajo cada proyecto en la página de Desarrollos */
.proj-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .5rem; margin-top: .7rem;
}
.proj-strip button {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px;
  border: 1px solid var(--line-soft);
  transition: border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.proj-strip button:hover { border-color: var(--gold); transform: translateY(-2px); }
.proj-strip img { width: 100%; height: 100%; object-fit: cover; }
.proj-strip .more {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--gold-2);
  font-size: .8rem; letter-spacing: .06em;
}

/* =============================================================
   7. Effects
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

html.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .dev-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-rail { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 .field--full { grid-column: 1 / -1; }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .filters-actions { grid-column: 1 / -1; }
}

@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .split--flip .split-media { order: 2; }
}

@media (min-width: 960px) {
  .dev-grid { grid-template-columns: repeat(3, 1fr); }
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .tile-grid--band { grid-template-columns: repeat(3, 1fr); }
  .contact-rail { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(6, 1fr); }
  .filters { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Desktop navigation, revealed in tiers as the bar gains room.
        The menu button stays available at every width, so every page
        is always one click away. ---- */
@media (min-width: 1024px) {
  /* The links centre themselves in whatever room is left between the
     brand and the right-hand controls, so the bar stays balanced at
     every width instead of clustering to one side. */
  .nav-inner > nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
  .nav-links {
    display: flex; align-items: center; gap: 1.25rem;
    list-style: none; padding: 0; margin: 0;
  }
  .nav-links a {
    font-size: .7rem; font-weight: 400;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ivory-2);
    padding: .4rem 0; position: relative;
    white-space: nowrap;
    transition: color .3s;
  }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease-out);
  }
  .nav-links a:hover, .nav-links a.is-current { color: var(--gold-2); }
  .nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
  .nav-cta {
    display: inline-flex; padding: .74rem 1.15rem;
    font-size: .62rem; letter-spacing: .16em; white-space: nowrap;
  }
  /* Only the core four at this width */
  .nav-links .nav-link--xl,
  .nav-links .nav-link--lg { display: none; }
}

@media (min-width: 1280px) {
  /* Seis mercados: tres columnas dan dos filas iguales. Con cuatro, la
     segunda fila quedaba a medias. */
  .markets-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .tile-grid--band { grid-template-columns: repeat(6, 1fr); }
  .tile-grid--band .tile { padding: 2.4rem .9rem 2.6rem; }
}

@media (min-width: 1500px) {
  .nav-links { gap: 1.35rem; }
  .nav-links a { font-size: .72rem; letter-spacing: .16em; }
  .nav-links .nav-link--xl { display: list-item; }
}

@media (min-width: 1800px) {
  /* Con los 9 enlaces visibles hacen falta ~1670 px: en español las etiquetas
     son más largas que en inglés, así que la barra se ensancha aquí. */
  .nav-inner { width: min(1720px, 100% - 2 * var(--gutter)); }
  .nav-links .nav-link--lg { display: list-item; }
}

/* Red de seguridad medida en vivo (main.js): si los enlaces no caben —por zoom,
   por un idioma con etiquetas más largas o por una fuente distinta— se ocultan
   por niveles en lugar de solaparse. El botón de menú siempre queda disponible. */
.nav[data-fit="md"] .nav-links .nav-link--lg { display: none; }
.nav[data-fit="sm"] .nav-links .nav-link--lg,
.nav[data-fit="sm"] .nav-links .nav-link--xl { display: none; }

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sky { animation: none; }
  .hero-scrolldown::after { animation: none; }
  /* Reveals, hovers, tilts and transitions stay — they are functional */
}

@media print {
  .nav, .menu, .dock, .hero-scrolldown { display: none; }
  body { background: #fff; color: #111; }
}

/* =========================================================================
   AI REAL ESTATE CONCIERGE
   Mismo lenguaje que el resto del sitio: negro cálido, oro metálico y
   Cormorant para los titulares. Sin dependencias externas.
   ========================================================================= */

.cg-launcher {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900; display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.35rem .8rem .95rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: #17130B; background: linear-gradient(122deg, var(--gold), var(--gold-2));
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(228, 203, 132, .35);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), opacity .25s;
}
.cg-launcher:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(0, 0, 0, .5), 0 0 0 1px var(--gold-2); }
.cg-launcher svg { width: 20px; height: 20px; flex: 0 0 20px; }
.cg-launcher[hidden] { display: none; }

/* Un punto que respira: indica que hay alguien al otro lado sin gritar. */
.cg-launcher .cg-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #1E7A46;
  box-shadow: 0 0 0 0 rgba(30, 122, 70, .7); animation: cg-pulso 2.6s infinite;
}
@keyframes cg-pulso {
  0%   { box-shadow: 0 0 0 0 rgba(30, 122, 70, .65); }
  70%  { box-shadow: 0 0 0 7px rgba(30, 122, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 122, 70, 0); }
}

.cg-panel {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 950; display: flex; flex-direction: column;
  width: min(410px, calc(100vw - 2rem)); height: min(620px, calc(100vh - 3rem));
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow: hidden; opacity: 0; transform: translateY(14px) scale(.98);
  pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.cg-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.cg-head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(201, 162, 75, .08), transparent);
}
.cg-head img { height: 30px; width: auto; }
.cg-head .cg-t { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.cg-head .cg-t b {
  display: block; font-family: var(--serif); font-size: 1.02rem; font-weight: 600;
  color: var(--ivory); letter-spacing: .01em;
}
.cg-head .cg-t span { display: block; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.cg-x {
  flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px;
  background: none; border: 1px solid transparent; border-radius: 50%; color: var(--mute); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.cg-x:hover { color: var(--ivory); border-color: var(--line-soft); }
.cg-x svg { width: 15px; height: 15px; }

.cg-log { flex: 1 1 auto; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .85rem; }
.cg-log::-webkit-scrollbar { width: 6px; }
.cg-log::-webkit-scrollbar-thumb { background: rgba(201, 162, 75, .25); border-radius: 3px; }

.cg-msg { max-width: 86%; font-size: .875rem; line-height: 1.6; white-space: pre-wrap; }
.cg-msg--bot {
  align-self: flex-start; color: var(--ivory-2);
  background: var(--bg-3); border: 1px solid var(--line-soft);
  padding: .75rem .9rem; border-radius: 4px 14px 14px 14px;
}
.cg-msg--yo {
  align-self: flex-end; color: #1A1509;
  background: linear-gradient(122deg, var(--gold), var(--gold-2));
  padding: .7rem .95rem; border-radius: 14px 4px 14px 14px;
}
.cg-msg--aviso {
  align-self: center; max-width: 100%; text-align: center;
  font-size: .76rem; color: var(--mute); padding: .3rem 0;
}

.cg-esperando { align-self: flex-start; display: flex; gap: 5px; padding: .9rem 1rem;
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 4px 14px 14px 14px; }
.cg-esperando i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .4;
  animation: cg-punto 1.3s infinite; }
.cg-esperando i:nth-child(2) { animation-delay: .18s; }
.cg-esperando i:nth-child(3) { animation-delay: .36s; }
@keyframes cg-punto { 0%,60%,100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Tarjetas de propiedad: las dibuja el navegador con datos que vienen del
   servidor, nunca con texto escrito por el modelo. */
.cg-props { display: flex; flex-direction: column; gap: .6rem; align-self: stretch; }
.cg-prop {
  display: flex; gap: .8rem; padding: .65rem;
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 12px;
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.cg-prop:hover { border-color: var(--line); transform: translateY(-1px); }
.cg-prop .cg-foto { flex: 0 0 84px; width: 84px; height: 68px; border-radius: 8px; overflow: hidden; background: var(--bg-4); }
.cg-prop .cg-foto img { width: 100%; height: 100%; object-fit: cover; }
.cg-prop .cg-foto.cg-sinfoto { display: grid; place-items: center; color: var(--gold-dim); }
.cg-prop .cg-foto.cg-sinfoto svg { width: 22px; height: 22px; }
.cg-prop .cg-d { flex: 1 1 auto; min-width: 0; }
.cg-prop .cg-n { font-family: var(--serif); font-size: .98rem; color: var(--ivory); line-height: 1.25; }
.cg-prop .cg-u { font-size: .73rem; color: var(--mute); margin-top: .1rem; }
.cg-prop .cg-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .3rem; }
.cg-prop .cg-meta span { font-size: .68rem; letter-spacing: .05em; color: var(--ivory-2);
  border: 1px solid var(--line-soft); border-radius: 20px; padding: .1rem .45rem; }
.cg-prop .cg-p { font-size: .86rem; font-weight: 500; color: var(--gold-2); margin-top: .35rem; }
.cg-prop .cg-ver {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: .4rem;
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid rgba(201, 162, 75, .4); padding-bottom: 1px;
}
.cg-prop .cg-ver:hover { color: var(--gold-2); border-color: var(--gold-2); }

.cg-pie { border-top: 1px solid var(--line-soft); padding: .8rem .9rem 1rem; background: var(--bg-2); }
.cg-form { display: flex; gap: .5rem; align-items: flex-end; }
.cg-form textarea {
  flex: 1 1 auto; resize: none; min-height: 42px; max-height: 110px;
  font: inherit; font-family: var(--sans); font-size: .87rem; color: var(--ivory);
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: .65rem .8rem;
}
.cg-form textarea::placeholder { color: var(--mute); }
.cg-form textarea:focus { outline: none; border-color: var(--gold-dim); }
.cg-enviar {
  flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 10px; cursor: pointer; color: #17130B;
  background: linear-gradient(122deg, var(--gold), var(--gold-2));
  transition: filter .2s, opacity .2s;
}
.cg-enviar:hover { filter: brightness(1.08); }
.cg-enviar:disabled { opacity: .4; cursor: default; }
.cg-enviar svg { width: 17px; height: 17px; }

.cg-acciones { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .6rem; }
.cg-asesor {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .74rem; letter-spacing: .04em; color: var(--gold);
}
.cg-asesor:hover { color: var(--gold-2); }
.cg-asesor svg { width: 14px; height: 14px; }
.cg-nota { font-size: .64rem; color: var(--mute); letter-spacing: .02em; }

.cg-sugerencias { display: flex; flex-wrap: wrap; gap: .4rem; align-self: stretch; }
.cg-sugerencias button {
  font: inherit; font-family: var(--sans); font-size: .75rem; color: var(--ivory-2);
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 20px;
  padding: .38rem .75rem; cursor: pointer; text-align: left;
  transition: border-color .2s, color .2s;
}
.cg-sugerencias button:hover { border-color: var(--line); color: var(--ivory); }

@media (max-width: 520px) {
  .cg-panel { right: .5rem; left: .5rem; bottom: .5rem; width: auto; height: min(78vh, 600px); }
  .cg-launcher span.cg-txt { display: none; }
  .cg-launcher { padding: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-launcher, .cg-panel, .cg-prop { transition: none; }
  .cg-launcher .cg-pulse, .cg-esperando i { animation: none; }
}

/* =========================================================================
   FICHA DE PROPIEDAD — property.php
   ========================================================================= */

.prop-hero .page-hero-photo { background-size: cover; background-position: center; }

.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.prop-main .h-rule {
  font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 600;
  color: var(--ivory); letter-spacing: -.01em;
  padding-bottom: .7rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.prop-nfotos { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em;
               text-transform: uppercase; color: var(--mute); }

.prop-p { color: var(--ivory-2); line-height: 1.85; margin-bottom: 1.1rem; font-size: 1rem; }
.prop-p:last-of-type { margin-bottom: 0; }

/* Galería: la portada manda y el resto la acompaña. Cualquier foto abre el
   visor a pantalla completa que ya usa el resto del sitio. */
.prop-galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; cursor: zoom-in; }
.prop-foto { margin: 0; overflow: hidden; border-radius: 4px; background: var(--bg-3);
             aspect-ratio: 4 / 3; border: 1px solid transparent; }
.prop-foto.es-portada { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.prop-foto img { width: 100%; height: 100%; object-fit: cover; display: block;
                 transition: transform .7s var(--ease-out), opacity .4s; }
.prop-galeria:hover .prop-foto img { opacity: .82; }
.prop-foto:hover img { transform: scale(1.04); opacity: 1; }
.prop-foto:hover { border-color: var(--line); }

.prop-desarrollo {
  margin-top: 3rem; padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(140deg, rgba(201, 162, 75, .08), transparent 65%);
}
.prop-desarrollo h2 { font-family: var(--serif); font-size: 1.3rem; color: var(--ivory); margin-bottom: .6rem; }
.prop-desarrollo p { color: var(--ivory-2); line-height: 1.7; margin-bottom: 1.3rem; max-width: 46ch; }

/* Columna lateral */
.prop-lado { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 1rem; }
.prop-caja { padding: 1.6rem; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--bg-3); }
.prop-etq { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.prop-precio { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--gold-2);
               line-height: 1.2; margin-top: .2rem; }

.prop-datos { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line-soft);
              display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.2rem; }
.prop-datos dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.prop-datos dd { font-size: .92rem; color: var(--ivory); text-align: right; }

.prop-cta h2 { font-family: var(--serif); font-size: 1.2rem; color: var(--ivory); margin-bottom: .5rem; }
.prop-cta p { font-size: .88rem; color: var(--mute); line-height: 1.65; margin-bottom: 1.2rem; }
.prop-cta .btn { display: flex; justify-content: center; width: 100%; }
.prop-cta .btn--text { margin-top: .8rem; }

@media (max-width: 1000px) {
  .prop-grid { grid-template-columns: 1fr; }
  .prop-lado { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .prop-galeria { grid-template-columns: repeat(2, 1fr); }
  .prop-lado { grid-template-columns: 1fr; }
  .prop-datos dd { text-align: left; }
}

/* =========================================================================
   SOBRE NOSOTROS — navegación interna y alianzas estratégicas
   ========================================================================= */

/* Índice de la página: cuatro apartados largos merecen un atajo. Se pega
   arriba al hacer scroll, debajo de la barra principal. */
.pagenav {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.pagenav .container { display: flex; align-items: center; gap: 1.4rem; padding-block: .75rem; }
.pagenav-lbl {
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mute); flex: 0 0 auto;
}
.pagenav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none;
}
.pagenav ul::-webkit-scrollbar { display: none; }
.pagenav a {
  display: block; white-space: nowrap;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ivory-2); text-decoration: none;
  padding-bottom: .2rem; border-bottom: 1px solid transparent;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.pagenav a:hover, .pagenav a:focus-visible { color: var(--gold-2); border-bottom-color: var(--gold); }
@media (max-width: 720px) {
  .pagenav .container { gap: .9rem; }
  .pagenav-lbl { display: none; }
  .pagenav ul { gap: 1.2rem; }
}

/* Las anclas no pueden quedar debajo de dos barras pegajosas. */
#historia, #filosofia, #alianzas, #contacto { scroll-margin-top: calc(var(--nav-h) + 4rem); }

/* ---- Aliados ---- */
.socios {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.socio {
  position: relative; display: flex; flex-direction: column; gap: 1.1rem;
  padding: 2rem 1.7rem; background: var(--bg);
  color: inherit; text-decoration: none;
  transition: background .45s var(--ease-out);
}
a.socio:hover, a.socio:focus-visible { background: var(--bg-2); }

/* El destacado ocupa dos columnas donde quepan: se nota sin gritar. */
.socio--destacado { background: linear-gradient(150deg, rgba(201, 162, 75, .07), transparent 60%); }
@media (min-width: 900px) { .socio--destacado { grid-column: span 2; } }

/* El logo vive en una caja de altura fija para que la rejilla no baile,
   aunque los socios manden logotipos de proporciones muy distintas. */
.socio-marca {
  height: 62px; display: flex; align-items: center;
  justify-content: flex-start;
}
.socio-marca img {
  max-height: 100%; max-width: 190px; width: auto; height: auto;
  object-fit: contain;
  filter: saturate(0) brightness(1.7); opacity: .85;
  transition: filter .45s var(--ease-out), opacity .45s var(--ease-out);
}
a.socio:hover .socio-marca img { filter: none; opacity: 1; }
.socio-nombre {
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold-2);
  letter-spacing: .01em; line-height: 1.1;
}

.socio-etq {
  position: absolute; top: 1.1rem; right: 1.2rem;
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line);
  border-radius: 2px; padding: .22rem .5rem;
}
.socio-cuerpo h3 {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600;
  color: var(--ivory); margin: .15rem 0 .5rem;
}
.socio-cuerpo p { font-size: .89rem; color: var(--mute); line-height: 1.7; }
.socio-cuerpo .kicker { margin-bottom: .1rem; }
.socio-ir {
  display: inline-block; margin-top: .9rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2);
}
a.socio:hover .socio-ir .arrow { transform: translateX(4px); }
.socio-ir .arrow { display: inline-block; transition: transform .35s var(--ease-out); }

/* =========================================================================
   SELECTOR DE IDIOMA
   Mismos colores que el resto del menú: oro para lo activo, marfil apagado
   para lo demás. Sin JavaScript el menú queda abierto y sigue siendo una
   lista de dos enlaces, que es lo que es.
   ========================================================================= */

.lang { position: relative; }

.lang-btn {
  /* La altura mínima no es capricho: iguala al icono de menú que tiene al lado
     y da un objetivo táctil decente en el móvil. */
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 34px; padding: .38rem .55rem;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .14em;
  color: var(--ivory-2); background: none;
  border: 1px solid var(--line-soft); border-radius: 3px;
  cursor: pointer;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.lang-btn:hover, .lang-btn:focus-visible { color: var(--gold-2); border-color: var(--line); }
.lang-btn[aria-expanded="true"] { color: var(--gold-2); border-color: var(--gold); background: var(--bg-2); }

.lang-flag { display: inline-flex; flex: 0 0 auto; width: 18px; height: 12px; }
.lang-flag svg { width: 100%; height: 100%; border-radius: 1.5px; display: block; }

.lang-code { line-height: 1; }
.lang-caret { width: 9px; height: 6px; flex: 0 0 auto; transition: transform .3s var(--ease-out); }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 60;
  min-width: 168px; margin: 0; padding: .3rem; list-style: none;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.lang-menu[hidden] { display: none; }

.lang-menu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .6rem; border-radius: 3px;
  font-size: .82rem; letter-spacing: .02em; color: var(--ivory-2);
  text-decoration: none; white-space: nowrap;
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--bg-3); color: var(--ivory); }
.lang-menu a.is-active { color: var(--gold-2); }
.lang-name { flex: 1 1 auto; }

.lang-check { width: 14px; height: 14px; flex: 0 0 auto; opacity: 0; }
.lang-menu a.is-active .lang-check { opacity: 1; }

/* En pantallas muy estrechas el código sobra: la bandera ya lo dice. */
@media (max-width: 420px) {
  .lang-btn { min-height: 40px; padding: .34rem .5rem; gap: .3rem; }
  .lang-code { display: none; }
}

/* Amenidades del proyecto. Dos columnas en cuanto hay sitio: son listas
   cortas y en una sola columna dejan medio ancho vacío. */
.prop-amenidades {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: .55rem 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.prop-amenidades li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .95rem;
  line-height: 1.5;
}
.prop-amenidades li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .5rem;
  height: .5rem;
  border: 1px solid var(--gold, #C6A15B);
  transform: rotate(45deg);
}

/* El lema con el que el proyecto se presenta, bajo la ubicación. */
.prop-lema {
  margin: .5rem 0 0;
  font-style: italic;
  opacity: .85;
  max-width: 46rem;
}

/* De dónde sale un precio convertido. Discreto pero legible: es una
   advertencia, no letra pequeña para esconderla. */
.prop-nota {
  margin: .55rem 0 0;
  font-size: .78rem;
  line-height: 1.45;
  opacity: .72;
}

/* ---------------------------------------------------------------- chino
   Cormorant Garamond e Inter no tienen glifos chinos. Sin esto, el navegador
   elige por su cuenta y cada sistema pinta la página con una fuente distinta
   y a un tamaño que no cuadra con el resto.

   Las fuentes de marca se dejan DELANTE en la pila: así «Royal Saturn»,
   «THE WAVE» o «US$ 87,700» siguen saliendo en la tipografía de la casa, y
   solo los caracteres chinos caen a la fuente CJK del sistema. Se usan las del
   sistema —PingFang en Mac, Microsoft YaHei en Windows, Noto en Linux— y no
   una webfont: una CJK completa pesa megas y aquí no aporta nada.

   El interlineado sube un punto porque el chino, sin espacios entre palabras,
   se lee peor apretado. */
[lang="zh"] {
  --serif: "Cormorant Garamond", "Times New Roman", "Songti SC", "SimSun",
           "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans:  "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei",
           "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  line-height: 1.75;
}

/* El chino no parte palabras: se corta donde toque y nunca desborda. */
[lang="zh"] h1, [lang="zh"] h2, [lang="zh"] h3,
[lang="zh"] .display, [lang="zh"] .lede, [lang="zh"] .kicker {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

/* El espaciado entre letras está pensado para versales latinas; en chino
   separa los ideogramas y deja la línea deshilachada. */
[lang="zh"] .kicker,
[lang="zh"] .caps,
[lang="zh"] .btn {
  letter-spacing: .02em;
}

/* =========================================================
   INSIGHTS — portada con tarjetas y página de artículo
   Todo con prefijo insight-: no toca ninguna regla anterior.
   ========================================================= */
.insight-cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px)  { .insight-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .insight-cards { grid-template-columns: repeat(3, 1fr); } }

.insight-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden;
  transition: border-color .5s var(--ease-out), background .5s var(--ease-out), transform .5s var(--ease-out);
}
.insight-card:hover { border-color: var(--line); background: var(--bg-4); transform: translateY(-3px); }
.insight-card:focus-within { border-color: var(--gold); }
.insight-card-media {
  aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(80% 120% at 80% 0%, rgba(201, 162, 75, .16), transparent 60%), #0E0C08;
}
.insight-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s var(--ease-out);
}
.insight-card:hover .insight-card-media img { transform: scale(1.05); }
.insight-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.4rem; }
.insight-card-body .kicker { margin-bottom: .8rem; }
.insight-card-title {
  font-family: var(--serif); font-weight: 500; line-height: 1.2;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem); color: var(--ivory);
}
.insight-card-title a { color: inherit; outline: none; }
.insight-card-title a::after { content: ""; position: absolute; inset: 0; }
.insight-card-sum {
  margin: .8rem 0 1.4rem; color: var(--mute); font-size: .9rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.insight-card-foot {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.insight-card-mas { color: var(--gold-2); white-space: nowrap; }
.insight-card-mas .arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.insight-card:hover .insight-card-mas .arrow { transform: translateX(4px); }
/* El artículo más reciente abre la portada a todo el ancho, con la foto junto
   al texto. Con un solo artículo, la rejilla de tres ya no queda coja. */
@media (min-width: 900px) {
  .insight-cards > .insight-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .insight-cards > .insight-card:first-child .insight-card-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 380px; }
  .insight-cards > .insight-card:first-child .insight-card-body { justify-content: center; padding: clamp(2rem, 4vw, 3.2rem); }
  .insight-cards > .insight-card:first-child .insight-card-title { font-size: clamp(1.9rem, 3vw, 2.6rem); }
  .insight-cards > .insight-card:first-child .insight-card-sum { -webkit-line-clamp: 6; font-size: .98rem; }
  .insight-cards > .insight-card:first-child .insight-card-foot { margin-top: 1.2rem; }
}

/* ---------- artículo ---------- */
.insight-hero .display { max-width: 18ch; }
.insight-sub {
  margin-top: 1.1rem; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.3; color: var(--gold-2);
}
[lang="zh"] .insight-sub { font-style: normal; }
.insight-hero .lede { max-width: 58ch; }
.insight-meta {
  margin-top: 2rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}

.insight-cuerpo { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.insight-cuerpo > :first-child { margin-top: 0; }
.insight-cuerpo p { color: var(--ivory-2); font-size: 1.02rem; line-height: 1.9; margin-bottom: 1.2rem; }
.insight-cuerpo h2 {
  font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ivory);
  font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 3.4rem 0 1.1rem;
}
.insight-cuerpo h2::before {
  content: ""; display: block; width: 42px; height: 1px; background: var(--gold); margin-bottom: 1.2rem;
}
.insight-cuerpo h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.25;
  color: var(--ivory); margin: 2.3rem 0 .7rem;
}
.insight-cuerpo strong { color: var(--ivory); font-weight: 500; }
.insight-cuerpo p a, .insight-cuerpo li a {
  color: var(--gold-2); text-decoration: underline;
  text-decoration-color: var(--gold-dim); text-underline-offset: 3px;
}
.insight-cuerpo p a:hover, .insight-cuerpo li a:hover { text-decoration-color: var(--gold-2); }

.insight-lista { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.insight-lista li { position: relative; padding-left: 1.6rem; color: var(--ivory-2); line-height: 1.75; }
.insight-lista li::before {
  content: ""; position: absolute; left: 0; top: .85em; width: .7rem; height: 1px; background: var(--gold);
}
.insight-pasos { list-style: none; counter-reset: paso; padding: 0; margin: .4rem 0 1.8rem; border-top: 1px solid var(--line-soft); }
.insight-pasos li {
  counter-increment: paso; position: relative; padding: 1.15rem 0 1.15rem 3.7rem;
  border-bottom: 1px solid var(--line-soft); color: var(--ivory-2); line-height: 1.7;
}
.insight-pasos li::before {
  content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: .95rem;
  font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; color: var(--gold);
}

.insight-destacado {
  margin: 2.8rem 0; padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid var(--line); border-radius: 6px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(201, 162, 75, .10), transparent 60%), var(--bg-3);
}
.insight-destacado h2 { margin-top: 0; }
.insight-destacado > :last-child { margin-bottom: 0; }
.insight-hr { border: 0; height: 1px; background: var(--line-soft); margin: 3rem 0; }
.insight-legal {
  margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft);
}
.insight-cuerpo .insight-legal { font-size: .8rem; line-height: 1.75; color: var(--mute); }

/* ---------- las tres vías de contacto ---------- */
.insight-vias { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
/* Tres columnas solo en la banda final, que es ancha. Dentro de la columna de
   lectura (760 px) no caben: el texto de cada botón se partía en tres líneas. */
@media (min-width: 720px) { .insight-final .insight-vias { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.insight-via {
  display: flex; align-items: center; gap: .9rem; min-width: 0;
  padding: 1.05rem 1.1rem; text-align: left; color: var(--ivory);
  border: 1px solid var(--line); border-radius: 6px; background: rgba(11, 10, 7, .35);
  transition: border-color .35s var(--ease-out), background .35s var(--ease-out), transform .35s var(--ease-out);
}
.insight-via:hover { border-color: var(--gold); background: rgba(201, 162, 75, .08); transform: translateY(-2px); }
.insight-via:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.insight-via--wa { background: linear-gradient(135deg, rgba(201, 162, 75, .14), rgba(11, 10, 7, .35) 70%); }
.insight-via-ico {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--gold-2);
}
.insight-via-ico svg { width: 20px; height: 20px; }
.insight-via-txt { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.insight-via-txt strong { font-weight: 500; font-size: .92rem; line-height: 1.3; color: var(--ivory); }
.insight-via-txt span { font-size: .76rem; line-height: 1.4; color: var(--mute); }
.insight-via .arrow { color: var(--gold-2); transition: transform .35s var(--ease-out); }
.insight-via:hover .arrow { transform: translateX(4px); }

.insight-final .display { max-width: 20ch; }
.insight-final .insight-vias { max-width: 980px; margin: 2.8rem auto 0; }
.insight-form-wrap { width: min(880px, 100% - 2 * var(--gutter)); margin-inline: auto; }
#insight-contacto, #insight-form { scroll-margin-top: var(--nav-h); }

@media (max-width: 539px) {
  /* El botón flotante de contacto no puede tapar las vías. */
  .insight-vias { padding-right: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .insight-card, .insight-card-media img, .insight-via, .insight-via .arrow, .insight-card-mas .arrow { transition: none; }
  .insight-card:hover, .insight-via:hover { transform: none; }
  .insight-card:hover .insight-card-media img { transform: none; }
}
