/* ==========================================================================
   Quinta da Beloura — hoja de estilos
   Paleta: verde de la Serra, arena cálida, oro de la Pena, azul Atlántico
   ========================================================================== */

:root {
  --paper: #f5efe3;
  --paper-2: #ece3d1;
  --paper-3: #e3d7c0;
  --white: #fffdf8;
  --ink: #18201b;
  --ink-2: #414a43;
  --ink-3: #6b726a;
  --forest: #1e3a2f;
  --forest-2: #28493c;
  --forest-deep: #11231b;
  --moss: #6e8b64;
  --sage: #b3c2a5;
  --gold: #b88a45;
  --gold-2: #d9b878;
  --gold-3: #efdcb2;
  --terracotta: #b5623f;
  --ocean: #2c5a74;
  --ocean-2: #4f86a3;
  --line: rgba(24, 32, 27, 0.12);
  --line-light: rgba(245, 239, 227, 0.18);

  --serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --sans: 'Manrope', 'Manrope Fallback', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 60px -30px rgba(17, 35, 27, 0.35);
  --shadow-soft: 0 12px 40px -18px rgba(17, 35, 27, 0.25);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --nav-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

::selection { background: var(--gold-2); color: var(--forest-deep); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--forest);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.015em;
}
.h1 { font-size: clamp(3.1rem, 1.6rem + 6.6vw, 8.2rem); }
.h2 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.9rem); line-height: 1; }
.h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.08; }
.h4 { font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.15; }
.display em, .h2 em, .h3 em, .h4 em { font-style: italic; color: var(--gold); }
.on-dark .display em, .on-dark .h2 em, .on-dark .h3 em, .on-dark em.accent { color: var(--gold-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.on-dark .eyebrow { color: var(--gold-2); }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
.on-dark .lead { color: rgba(245, 239, 227, 0.82); }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--forest);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.35s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { --bg: var(--gold-2); --fg: var(--forest-deep); }
.btn--gold:hover { --bg: var(--gold-3); }
.btn--ghost {
  --bg: transparent;
  --fg: currentColor;
  border-color: currentColor;
}
.btn--ghost-light {
  --bg: rgba(255, 253, 248, 0.08);
  --fg: var(--paper);
  border-color: rgba(245, 239, 227, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost-light:hover { --bg: rgba(255, 253, 248, 0.18); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow:hover { color: var(--gold); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  color: var(--paper);
  transition: background 0.4s, color 0.4s, box-shadow 0.4s, transform 0.45s var(--ease);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 20, 15, 0.45), transparent);
  pointer-events: none;
  transition: opacity 0.4s;
}
.nav.is-solid {
  background: rgba(245, 239, 227, 0.86);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 5px;
  font-weight: 600;
}
.nav__links {
  display: flex;
  gap: clamp(14px, 1.6vw, 26px);
  font-size: 0.86rem;
  font-weight: 500;
}
.nav__links a {
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  opacity: 0.9;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current='true']::after { transform: scaleX(1); transform-origin: left; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.lang a {
  text-decoration: none;
  padding: 6px 7px;
  border-radius: 6px;
  opacity: 0.6;
  text-transform: uppercase;
}
.lang a[aria-current='page'] { opacity: 1; }
.lang a:hover { opacity: 1; }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 0.85rem; }
.nav:not(.is-solid) .btn { --bg: var(--paper); --fg: var(--forest-deep); }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--forest-deep);
  color: var(--paper);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
body.menu-open { overflow: hidden; }
body.menu-open .menu { opacity: 1; visibility: visible; }
body.menu-open .nav { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu__links { display: grid; gap: 4px; }
.menu__links a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.15;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.menu__links a small {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold-2);
}
.menu .lang { font-size: 0.9rem; }

@media (max-width: 1240px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
}
@media (max-width: 560px) {
  .nav .btn, .nav .lang { display: none; }
  .brand__name { font-size: 1.25rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  background: var(--forest-deep);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero__slide.is-active img { animation: kenburns 14s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.07) translate3d(0, 0, 0); }
  to { transform: scale(1.0) translate3d(-0.6%, -0.6%, 0); }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 22, 16, 0.35) 0%, rgba(10, 22, 16, 0) 30%),
    linear-gradient(0deg, rgba(10, 22, 16, 0.88) 0%, rgba(10, 22, 16, 0.35) 45%, rgba(10, 22, 16, 0.05) 75%);
}
.hero__content {
  padding-block: calc(var(--nav-h) + 40px) clamp(40px, 8vh, 96px);
  width: 100%;
}
.hero__eyebrow { color: var(--gold-2); }
.hero__title { max-width: 14ch; text-wrap: balance; }
.hero__title em { color: var(--gold-2); }
.hero__rotator {
  display: inline-grid;
  vertical-align: bottom;
}
.hero__rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  font-style: italic;
  color: var(--gold-2);
  white-space: nowrap;
}
.hero__rotator > span.is-active { opacity: 1; transform: none; }
.hero__sub {
  max-width: 56ch;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  color: rgba(245, 239, 227, 0.88);
  margin: 26px 0 34px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 36px;
  font-size: 0.82rem;
  color: rgba(245, 239, 227, 0.8);
}
.hero__facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 4px;
}
.hero__credit {
  position: absolute;
  right: var(--gutter);
  bottom: 14px;
  font-size: 0.68rem;
  opacity: 0.55;
}
.hero__credit a { text-decoration: none; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 1px;
  height: 56px;
  background: rgba(245, 239, 227, 0.25);
  overflow: hidden;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--gold-2);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }
@media (max-width: 720px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); gap: 10px 18px; font-size: 0.74rem; width: 100%; }
  .hero__facts strong { font-size: 1.6rem; }
  .scroll-cue { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 160px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--white { background: var(--white); }
.section--sand { background: var(--paper-2); }
.section--dark { background: var(--forest); color: var(--paper); }
.section--deep { background: var(--forest-deep); color: var(--paper); }
.section--ocean { background: #173344; color: var(--paper); }
.on-dark { color: var(--paper); }
.on-dark .muted { color: rgba(245, 239, 227, 0.62); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 84px);
}
.section-head .lead { margin: 0; }
.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head--center .eyebrow::after {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
}

.num-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
}

/* ---------- Cifras clave ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(24px, 3vw, 40px) clamp(12px, 1.6vw, 26px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__value {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.7rem + 2.2vw, 4rem);
  line-height: 1;
  color: var(--forest);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__value small {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stat__label { margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n + 1) { border-left: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 1px solid var(--line) !important; border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0 !important; }
  .stat:nth-child(-n + 2) { border-top: 0; }
}

/* ---------- Manifiesto ---------- */
.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.manifesto__quote {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.manifesto__quote em { color: var(--gold); }
.manifesto__media {
  position: relative;
  aspect-ratio: 4 / 5;
}
.manifesto__media figure {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.manifesto__media figure img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__media figure:first-child { inset: 0 18% 14% 0; }
.manifesto__media figure:last-child {
  inset: 46% 0 0 44%;
  border: 8px solid var(--paper);
}
.manifesto__sign {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.manifesto__sign p { margin: 0; }
@media (max-width: 900px) {
  .manifesto { grid-template-columns: 1fr; }
  .manifesto__media { aspect-ratio: 1 / 1; max-width: 560px; }
}

/* ---------- Pilares (6 motivos) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar {
  background: var(--paper);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: background 0.35s;
  min-height: 280px;
}
.pillar:hover { background: var(--white); }
.pillar__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--gold-2);
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar p { color: var(--ink-2); margin: 0; }
.pillar .link-arrow { margin-top: auto; align-self: flex-start; font-size: 0.88rem; border: 0; color: var(--gold); }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }

/* ---------- Un día en Beloura ---------- */
.day { overflow: hidden; }
.day__sky {
  position: relative;
  height: 120px;
  margin-bottom: 8px;
}
.day__sky svg { width: 100%; height: 100%; overflow: visible; }
.day__sun {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 10px rgba(217, 184, 120, 0.16), 0 0 40px 6px rgba(217, 184, 120, 0.35);
  transition: background 0.6s, box-shadow 0.6s;
  will-change: transform;
}
.day__sun.is-moon { background: #e8ecf2; box-shadow: 0 0 0 10px rgba(232, 236, 242, 0.1), 0 0 40px 6px rgba(232, 236, 242, 0.25); }
.day__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(270px, 30vw, 380px);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 28px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  overscroll-behavior-x: contain;
}
.day__track::-webkit-scrollbar { height: 6px; }
.day__track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.moment {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.moment__img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.moment__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.moment:hover .moment__img img { transform: scale(1.05); }
.moment__time {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(17, 35, 27, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 7px 13px;
  border-radius: 999px;
}
.moment__place {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}
.moment__place svg { width: 14px; height: 14px; flex: none; }
.moment h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.moment p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.on-dark .moment p { color: rgba(245, 239, 227, 0.75); }
.day__controls { display: flex; gap: 10px; }
.round-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s;
}
.round-btn:hover { background: var(--gold-2); color: var(--forest-deep); border-color: var(--gold-2); }
.round-btn svg { width: 20px; height: 20px; }

/* ---------- Bloques temáticos (split) ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  box-shadow: var(--shadow);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.4;
}
.feature__badge strong { display: block; font-size: 0.95rem; }
.feature__badge .dot {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold-2);
  display: grid;
  place-items: center;
}
.feature__badge .dot svg { width: 20px; height: 20px; }
.feature__body > p:not(.eyebrow) { color: var(--ink-2); }
.on-dark .feature__body > p:not(.eyebrow) { color: rgba(245, 239, 227, 0.8); }
.checks { display: grid; gap: 14px; margin: 28px 0 34px; }
.checks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}
.checks li svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.checks li strong { display: block; font-weight: 700; }
.checks li span { color: var(--ink-2); font-size: 0.95rem; }
.on-dark .checks li span { color: rgba(245, 239, 227, 0.72); }
.on-dark .checks li svg { color: var(--gold-2); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .feature__media { aspect-ratio: 4 / 3; }
}

/* ---------- Tarjetas ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  text-decoration: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}
.chip svg { width: 14px; height: 14px; }
.chip--gold { background: var(--gold-3); color: #5c4520; }
.chip--forest { background: var(--forest); color: var(--paper); }
.chip--ocean { background: #dbe8ef; color: var(--ocean); }
.on-dark .chip { background: rgba(245, 239, 227, 0.1); color: var(--paper); }

/* Tarjetas grandes con imagen de fondo (deporte) */
.tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.tile {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 2.6vw, 38px);
  isolation: isolate;
  grid-column: span 4;
}
.tile--wide { grid-column: span 8; }
.tile--half { grid-column: span 6; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.4s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 22, 16, 0.9) 0%, rgba(10, 22, 16, 0.25) 55%, rgba(10, 22, 16, 0.05) 100%);
}
.tile__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 10px;
}
.tile h3 { font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.8rem); line-height: 1.02; margin-bottom: 12px; }
.tile p { margin: 0; color: rgba(245, 239, 227, 0.85); font-size: 0.95rem; max-width: 52ch; }
.tile .card__meta .chip { background: rgba(245, 239, 227, 0.14); color: var(--paper); backdrop-filter: blur(6px); }
@media (max-width: 960px) {
  .tile, .tile--wide, .tile--half { grid-column: span 12; min-height: 400px; }
}

/* ---------- Salud (banda) ---------- */
.health {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.health__media { position: relative; min-height: 420px; }
.health__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.health__body { padding: clamp(32px, 5vw, 72px); }
.health__meter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--paper);
}
.health__meter strong { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--forest); white-space: nowrap; }
@media (max-width: 900px) {
  .health { grid-template-columns: 1fr; }
  .health__media { min-height: 280px; }
}

/* ---------- Colegios ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.25s;
}
.filter:hover { border-color: var(--forest); }
.filter[aria-pressed='true'] { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.on-dark .filter { border-color: var(--line-light); }
.on-dark .filter[aria-pressed='true'] { background: var(--gold-2); color: var(--forest-deep); border-color: var(--gold-2); }

.schools { display: grid; gap: 0; border-top: 1px solid var(--line); }
.school {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding 0.4s var(--ease);
}
.school:hover { background: rgba(255, 253, 248, 0.6); padding-inline: 16px; }
.school[hidden] { display: none; }
.school__time { display: flex; flex-direction: column; line-height: 1; }
.school__time strong { font-family: var(--serif); font-size: 2.6rem; color: var(--forest); font-weight: 500; }
.school__time span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.school h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; margin-bottom: 6px; }
.school p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.school__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.school__link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: all 0.3s;
}
.school__link:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.school__link svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .school { grid-template-columns: 80px 1fr auto; }
  .school__tags { grid-column: 2 / -1; }
  .school__time strong { font-size: 2rem; }
}

/* ---------- Brújula de distancias ---------- */
.compass-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.compass-sticky { position: sticky; top: calc(var(--nav-h) + 24px); }
.compass {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.compass svg { width: 100%; height: 100%; overflow: visible; }
.compass .ring { fill: none; stroke: rgba(245, 239, 227, 0.16); stroke-dasharray: 2 6; }
.compass .ring-label { fill: rgba(245, 239, 227, 0.5); font-size: 11px; font-family: var(--sans); font-weight: 700; letter-spacing: 0.08em; }
.compass .spoke { stroke: rgba(217, 184, 120, 0.35); stroke-width: 1; }
.compass .pt { cursor: pointer; }
.compass .pt circle.dot { fill: var(--gold-2); transition: r 0.3s; }
.compass .pt circle.halo { fill: var(--gold-2); opacity: 0; transition: opacity 0.3s; }
.compass .pt text { fill: var(--paper); font-size: 13px; font-family: var(--sans); font-weight: 600; }
.compass .pt text.min { fill: var(--gold-2); font-size: 11px; font-weight: 700; }
.compass .pt[data-kind='beach'] circle.dot { fill: #8ec3dc; }
.compass .pt[data-kind='nature'] circle.dot { fill: var(--sage); }
.compass .pt:hover circle.halo,
.compass .pt.is-active circle.halo { opacity: 0.25; }
.compass .center-dot { fill: var(--gold-2); }
.compass .center-pulse { fill: none; stroke: var(--gold-2); animation: pulse 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { from { opacity: 0.8; transform: scale(0.6); } to { opacity: 0; transform: scale(2.6); } }
.compass .north { fill: rgba(245, 239, 227, 0.45); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; margin-top: 18px; color: rgba(245, 239, 227, 0.75); justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.times { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.time-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-light);
  cursor: default;
  transition: padding 0.3s var(--ease), background 0.3s;
}
.time-row:hover, .time-row.is-active { padding-inline: 12px; background: rgba(245, 239, 227, 0.05); }
.time-row__name { font-weight: 600; }
.time-row__name small { display: block; font-weight: 400; color: rgba(245, 239, 227, 0.6); font-size: 0.82rem; }
.time-row__km { font-size: 0.82rem; color: rgba(245, 239, 227, 0.6); }
.time-row__min { font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--gold-2); min-width: 3.4ch; text-align: right; }
.time-row__min small { font-family: var(--sans); font-size: 0.7rem; margin-left: 3px; color: rgba(245, 239, 227, 0.6); }
@media (max-width: 960px) {
  .compass-wrap { grid-template-columns: 1fr; }
  .compass-sticky { position: static; }
}

/* ---------- Mapa ---------- */
.map-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 620px;
}
.map-side {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
  max-height: 680px;
  overflow: auto;
}
.map-side .filters { margin: 0; gap: 8px; }
.map-side .filter { padding: 8px 14px; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 8px; }
.map-side .filter i { width: 9px; height: 9px; border-radius: 50%; }
.map-list { display: grid; gap: 2px; }
.map-list button {
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
}
.map-list button:hover, .map-list button.is-active { background: var(--paper); }
.map-list button i { width: 10px; height: 10px; border-radius: 50%; }
.map-list button small { color: var(--ink-3); font-size: 0.76rem; }
.map-list button[hidden] { display: none; }
#map { min-height: 620px; background: #e8e4da; z-index: 0; }
.leaflet-container { font-family: var(--sans) !important; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; box-shadow: var(--shadow-soft) !important; }
.leaflet-popup-content { margin: 14px 18px !important; font-size: 0.88rem; line-height: 1.45; }
.leaflet-popup-content strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; display: block; margin-bottom: 2px; }
.pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.pin--home {
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--forest);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(30, 58, 47, 0.2), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.pin--home svg { width: 26px; height: 26px; }
@media (max-width: 960px) {
  .map-shell { grid-template-columns: 1fr; }
  .map-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; }
  .map-list { display: none; }
  #map { min-height: 460px; }
}

/* ---------- Sintra / monumentos ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: clamp(12px, 1.4vw, 18px);
}
.gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(4) { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 50px 20px 18px;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(8, 18, 13, 0.85), transparent);
  font-size: 0.86rem;
  line-height: 1.4;
}
.gallery figcaption strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery figure:nth-child(1) { grid-column: span 2; }
  .gallery figure:nth-child(4) { grid-row: span 1; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery figure:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}

.quote-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.quote-block blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.8rem);
  line-height: 1.1;
}
.quote-block cite { display: block; margin-top: 22px; font-style: normal; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }

/* ---------- Playas (carrusel) ---------- */
.beaches {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 28vw, 360px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 28px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
  scrollbar-color: var(--ocean-2) transparent;
}
.beach {
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4.3;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  isolation: isolate;
}
.beach img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.beach:hover img { transform: scale(1.06); }
.beach::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(9, 25, 35, 0.9) 0%, rgba(9, 25, 35, 0.1) 60%); }
.beach__min {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ocean);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 800;
}
.beach h3 { font-family: var(--serif); font-size: 2rem; line-height: 1; margin-bottom: 8px; }
.beach p { margin: 0 0 12px; font-size: 0.9rem; color: rgba(245, 239, 227, 0.86); }
.beach .card__meta { padding: 0; }
.beach .chip { background: rgba(245, 239, 227, 0.16); color: var(--paper); }

/* ---------- Clima ---------- */
.climate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.climate__chart { width: 100%; }
.climate__chart svg { width: 100%; height: auto; overflow: visible; }
.climate__chart .bar { fill: var(--gold-2); opacity: 0.9; }
.climate__chart .bar.sun { fill: var(--gold-3); }
.climate__chart .line { fill: none; stroke: var(--terracotta); stroke-width: 2.5; }
.climate__chart .line2 { fill: none; stroke: var(--ocean); stroke-width: 2; stroke-dasharray: 5 5; }
.climate__chart text { font-family: var(--sans); font-size: 11px; fill: var(--ink-3); }
.climate__chart .val { fill: var(--ink); font-weight: 700; }
.climate__legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.82rem; color: var(--ink-2); margin-top: 16px; }
.climate__legend span { display: inline-flex; align-items: center; gap: 8px; }
.climate__legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.mini-stat { background: var(--white); border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); }
.mini-stat strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--forest); font-weight: 500; }
.mini-stat span { font-size: 0.82rem; color: var(--ink-2); }
@media (max-width: 900px) { .climate { grid-template-columns: 1fr; } }

/* ---------- Vivienda ---------- */
.homes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.home {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.home__img { aspect-ratio: 4 / 3; overflow: hidden; }
.home__img img { width: 100%; height: 100%; object-fit: cover; }
.home__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.home__body p { color: var(--ink-2); margin: 0; font-size: 0.95rem; }
.home__price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.home__price strong { font-family: var(--serif); font-size: 1.5rem; color: var(--forest); font-weight: 600; }
@media (max-width: 960px) { .homes { grid-template-columns: 1fr; } }
.note {
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }

/* ---------- Comparativa / checklist ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare th, .compare td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--line-light); vertical-align: middle; }
.compare thead th { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--gold-2); }
.compare .no { opacity: 0.35; }
.compare svg { width: 20px; height: 20px; display: inline-block; }
.compare tbody tr:hover { background: rgba(245, 239, 227, 0.04); }
.compare-scroll { overflow-x: auto; }
.compare-scroll table { min-width: 620px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 980px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 56px 26px 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
  line-height: 1.2;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--gold-3); }
.faq .faq__a { padding: 0 60px 28px 0; color: var(--ink-2); }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- CTA / contacto ---------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  background: var(--forest-deep);
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 22, 16, 0.94) 0%, rgba(10, 22, 16, 0.75) 50%, rgba(10, 22, 16, 0.4) 100%); }
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}
.itinerary { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line-light); }
.itinerary li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
}
.itinerary b { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-2); font-weight: 500; }
.itinerary span { color: rgba(245, 239, 227, 0.82); font-size: 0.95rem; }
.form {
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.6vw, 48px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}
.form h3 { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin-bottom: 6px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 184, 120, 0.25);
}
.form .btn { width: 100%; margin-top: 18px; }
.form__legal { font-size: 0.74rem; color: var(--ink-3); margin: 14px 0 0; }
.interest { display: flex; flex-wrap: wrap; gap: 8px; }
.interest label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0;
  color: var(--ink);
  transition: all 0.25s;
}
.interest input { position: absolute; opacity: 0; pointer-events: none; }
.interest input:checked + label { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.interest input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 960px) {
  .cta__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--forest-deep);
  color: rgba(245, 239, 227, 0.75);
  padding: clamp(60px, 8vw, 110px) 0 36px;
  font-size: 0.9rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-light);
}
.footer .brand { color: var(--paper); margin-bottom: 18px; }
.footer h4 { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; margin-bottom: 16px; font-family: var(--sans); }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-2); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  font-size: 0.78rem;
  color: rgba(245, 239, 227, 0.5);
}
.footer__credits { font-size: 0.72rem; color: rgba(245, 239, 227, 0.45); margin-top: 22px; line-height: 1.6; }
.footer__credits a { text-decoration: underline; text-decoration-color: rgba(245, 239, 227, 0.2); }
.footer__big {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 12vw, 11rem);
  line-height: 0.9;
  color: rgba(245, 239, 227, 0.08);
  letter-spacing: -0.02em;
  margin: 40px 0 0;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}

/* ---------- Toast de idioma ---------- */
.lang-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 20px;
  background: var(--forest-deep);
  color: var(--paper);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  transition: transform 0.6s var(--ease);
  max-width: calc(100vw - 32px);
}
.lang-toast.is-visible { transform: translate(-50%, 0); }
.lang-toast .btn { min-height: 38px; padding: 0 16px; font-size: 0.82rem; }
.lang-toast button.close { background: none; border: 0; color: inherit; opacity: 0.6; cursor: pointer; padding: 6px 10px; font-size: 1.2rem; line-height: 1; }

/* ---------- Revelado al hacer scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Marquee de palabras */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  background: var(--paper);
}
.marquee__track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 48s linear infinite;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  font-style: italic;
  color: var(--forest);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: '✦'; font-style: normal; font-size: 0.6em; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

.divider-mountains { display: block; width: 100%; height: auto; color: var(--forest); margin-bottom: -1px; }

/* Barra de progreso de lectura */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--gold-2);
  z-index: 101;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__slide img { transform: none !important; }
}

@media print {
  .nav, .menu, .scroll-cue, .lang-toast, .progress, #map { display: none !important; }
  .hero { min-height: auto; color: var(--ink); }
}

/* ==========================================================================
   Añadidos: hero, widgets y bloques específicos
   ========================================================================== */
.hero__title { max-width: none; margin: 0; }
.hero__title .hero__eyebrow { display: flex; font-size: 0.78rem; margin-bottom: 20px; line-height: 1.4; }
.hero__main { display: block; max-width: 12.5ch; text-wrap: balance; }
.hero__pairs {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 3rem);
  line-height: 1.1;
  min-height: 1.15em;
}
.hero__rotator { display: grid; }

.live {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(10, 22, 16, 0.42);
  border: 1px solid rgba(245, 239, 227, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.82rem;
  color: rgba(245, 239, 227, 0.88);
}
.live { min-height: 42px; transition: opacity 0.6s; }
.live.is-loading { visibility: hidden; opacity: 0; }
@media (max-width: 560px) { .live { min-height: 66px; } }
.live b { color: var(--paper); font-weight: 700; }
.live .live__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7fd18b;
  box-shadow: 0 0 0 0 rgba(127, 209, 139, 0.6);
  animation: livepulse 2s infinite;
}
.live span { display: inline-flex; align-items: center; gap: 7px; }
.live svg { width: 15px; height: 15px; opacity: 0.85; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(127, 209, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 209, 139, 0); } }
@media (max-width: 560px) { .live { border-radius: 18px; } }

/* Día: cabecera con controles */
.day__aside { display: grid; gap: 24px; justify-items: start; }
.day__controls { display: flex; align-items: center; gap: 10px; }
.day__clock {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  margin-left: 14px;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
}

/* Universidades */
.uni {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink-2);
}
.uni svg { color: var(--gold); flex: none; }
.uni p { margin: 0; }

/* Día a día */
.amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.amenity {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.amenity:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }
.amenity__icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--paper);
  color: var(--forest);
}
.amenity__icon svg { width: 24px; height: 24px; }
.amenity h3 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; margin-bottom: 6px; }
.amenity p { margin: 0 0 12px; color: var(--ink-2); font-size: 0.93rem; }
.amenity .chip svg { width: 12px; height: 12px; }
@media (max-width: 1000px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .amenities { grid-template-columns: 1fr; } }

/* Playas */
.water { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: #9fd0e6; font-weight: 600; font-size: 0.95rem; }

/* Ubicación: interruptor de tráfico */
.toggle {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(245, 239, 227, 0.08);
  border: 1px solid var(--line-light);
  margin-bottom: 22px;
}
.toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: rgba(245, 239, 227, 0.75);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.toggle button[aria-pressed='true'] { background: var(--gold-2); color: var(--forest-deep); }
.compass .pt { transition: transform 0.9s var(--ease); }
.compass .spoke { transition: opacity 0.4s; }
.compass.is-peak .spoke { opacity: 0; }
.compass .center-label { fill: var(--paper); font-family: var(--serif); font-size: 18px; font-style: italic; }
.legend .lg-town { background: var(--gold-2); }
.legend .lg-beach { background: #8ec3dc; }
.legend .lg-nature { background: var(--sage); }
.legend .lg-work { background: #e3a78d; }
.legend .lg-city { background: #f5efe3; }
.compass .pt[data-kind='work'] circle.dot { fill: #e3a78d; }
.compass .pt[data-kind='city'] circle.dot { fill: #f5efe3; }
.compass .pt:focus { outline: none; }
.compass .pt:focus-visible circle.halo { opacity: 0.45; }

.transport {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(50px, 6vw, 80px);
}
.transport__item {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(245, 239, 227, 0.05);
  border: 1px solid var(--line-light);
}
.transport__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(217, 184, 120, 0.14); color: var(--gold-2); margin-bottom: 14px; }
.transport__icon svg { width: 22px; height: 22px; }
.transport__item h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 6px; }
.transport__item p { margin: 0; font-size: 0.92rem; color: rgba(245, 239, 227, 0.72); }
@media (max-width: 1000px) { .transport { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .transport { grid-template-columns: 1fr; } }

/* Historia */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.timeline li {
  position: relative;
  padding: 34px 28px 34px 0;
  border-bottom: 1px solid var(--line-light);
}
.timeline li::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-2);
}
.timeline__year {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.4rem);
  line-height: 1;
  color: var(--gold-2);
  margin-bottom: 14px;
}
.timeline p { margin: 0; color: rgba(245, 239, 227, 0.8); font-size: 0.95rem; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } .timeline li { padding-right: 0; } }

.form__ok { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--gold-3); color: #5c4520; font-size: 0.88rem; }
.manifesto__body .lead { margin-top: 20px; font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); }

.form .muted { color: var(--ink-3); }
.itinerary { padding: 0; list-style: none; }
ol { margin: 0; }
/* Navegación sobre secciones oscuras */
.nav.is-solid.is-dark {
  background: rgba(17, 35, 27, 0.82);
  color: var(--paper);
  box-shadow: 0 1px 0 var(--line-light);
}
.nav.is-dark .btn--gold { --bg: var(--gold-2); --fg: var(--forest-deep); }
/* Mapa: teselas OSM con tono cálido y sobrio */
#map .leaflet-tile-pane { filter: grayscale(0.55) sepia(0.18) saturate(0.9) contrast(0.96) brightness(1.03); }

.stat__value sup { font-size: 0.45em; vertical-align: super; margin-left: 2px; color: var(--gold); font-family: var(--serif); }
@media (max-width: 600px) {
  .compass { max-width: none; margin-inline: calc(var(--gutter) * -0.5); }
  .compass .pt text { font-size: 21px; }
  .compass .pt text.min { font-size: 18px; transform: translateY(7px); }
  .compass .pt.up text:not(.min) { transform: translateY(-9px); }
  .compass .pt.up text.min { transform: translateY(-2px); }
  .compass .ring-label { font-size: 15px; }
  .compass .pt[data-kind='work'], .compass .pt[data-key='belem'],
  .compass .spoke[data-spoke='tagus'], .compass .spoke[data-spoke='lagoas'], .compass .spoke[data-spoke='belem'] { display: none; }
  .compass .center-label { font-size: 24px; }
}
@media (max-width: 600px) { .legend span:has(.lg-work) { display: none; } }
.tile .card__meta { margin-top: 18px; padding-top: 0; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 22, 16, 0.72) 0%, rgba(10, 22, 16, 0.38) 45%, rgba(10, 22, 16, 0) 75%);
  pointer-events: none;
}
.hero__title, .hero__pairs, .hero__sub { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
@media (max-width: 720px) {
  .hero::before { background: linear-gradient(0deg, rgba(10, 22, 16, 0.55), rgba(10, 22, 16, 0.2)); }
}
.beach .card__meta { margin-top: 0; }
/* Galería de Sintra: composición editorial de 6 piezas */
@media (min-width: 961px) {
  .gallery {
    grid-template-areas: 'a a b c' 'a a d c' 'e e f f';
    grid-auto-rows: 250px;
  }
  .gallery figure:nth-child(1) { grid-area: a; }
  .gallery figure:nth-child(2) { grid-area: b; }
  .gallery figure:nth-child(3) { grid-area: c; }
  .gallery figure:nth-child(4) { grid-area: d; }
  .gallery figure:nth-child(5) { grid-area: e; }
  .gallery figure:nth-child(6) { grid-area: f; }
}

/* ---------- Selector de idioma (8 idiomas) ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 239, 227, 0.35);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.3s, border-color 0.3s;
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu summary .chev { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.lang-menu[open] summary .chev { transform: rotate(180deg); }
.lang-menu summary:hover { background: rgba(245, 239, 227, 0.1); }
.nav.is-solid:not(.is-dark) .lang-menu summary { border-color: var(--line); }
.nav.is-solid:not(.is-dark) .lang-menu summary:hover { background: rgba(24, 32, 27, 0.05); }
.lang-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  padding: 8px;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
  animation: menuIn 0.25s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.lang-menu__list a small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-3); }
.lang-menu__list a:hover { background: var(--paper); }
.lang-menu__list a[aria-current='page'] { background: var(--forest); color: var(--paper); }
.lang-menu__list a[aria-current='page'] small { color: var(--gold-2); }
@media (max-width: 560px) { .nav .lang-menu { display: none; } }

.lang--names { flex-wrap: wrap; gap: 4px 6px; letter-spacing: 0; text-transform: none; }
.lang--names a { text-transform: none; font-size: 0.85rem; font-weight: 600; padding: 6px 10px; border: 1px solid var(--line-light); border-radius: 999px; }
.lang--names a[aria-current='page'] { background: var(--gold-2); color: var(--forest-deep); border-color: var(--gold-2); opacity: 1; }

/* ---------- Chino simplificado ---------- */
html[lang='zh-Hans'] {
  --serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}
html[lang='zh-Hans'] body { line-height: 1.8; }
html[lang='zh-Hans'] .display,
html[lang='zh-Hans'] .manifesto__quote,
html[lang='zh-Hans'] .quote-block blockquote:not([lang]) { letter-spacing: 0.02em; line-height: 1.22; font-weight: 500; }
html[lang='zh-Hans'] .h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 6.2rem); }
html[lang='zh-Hans'] .h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.9rem); }
html[lang='zh-Hans'] em { font-style: normal; }
html[lang='zh-Hans'] .hero__main { max-width: 9.5em; }
html[lang='zh-Hans'] .hero__rotator > span { font-style: normal; }
html[lang='zh-Hans'] .eyebrow { letter-spacing: 0.14em; }
html[lang='zh-Hans'] .brand__name, html[lang='zh-Hans'] .footer__big, html[lang='zh-Hans'] .stat__value,
html[lang='zh-Hans'] .school__time strong, html[lang='zh-Hans'] .time-row__min, html[lang='zh-Hans'] .timeline__year,
html[lang='zh-Hans'] .day__clock, html[lang='zh-Hans'] .hero__facts strong, html[lang='zh-Hans'] .mini-stat strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
}
html[lang='zh-Hans'] .quote-block blockquote[lang='en'] { font-family: 'Cormorant Garamond', Georgia, serif; }
html[lang='zh-Hans'] .marquee__track { font-style: normal; }
html[lang='zh-Hans'] .manifesto__quote { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.45rem); line-height: 1.35; }
html[lang='zh-Hans'] .quote-block blockquote:not([lang]), html[lang='zh-Hans'] .h3 { line-height: 1.3; }
html[lang='zh-Hans'] .lead, html[lang='zh-Hans'] p { text-wrap: pretty; }
/* ==========================================================================
   v2 — Beloura real: aérea, venta, acceso propietarios, login
   (se concatena al final de styles.css en el build)
   ========================================================================== */

/* Botón de propietarios en la barra */
.nav__owners {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 239, 227, 0.35);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s;
}
.nav__owners svg { width: 18px; height: 18px; }
.nav__owners:hover { background: rgba(245, 239, 227, 0.12); }
.nav.is-solid:not(.is-dark) .nav__owners { border-color: var(--line); }
.nav.is-solid:not(.is-dark) .nav__owners:hover { background: rgba(24, 32, 27, 0.05); }
@media (max-width: 1439px) {
  .nav__owners { width: 42px; padding: 0; justify-content: center; }
  .nav__owners span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.menu__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.menu__ctas .btn svg,
.hero__ctas .btn svg { width: 18px; height: 18px; }

/* Beloura desde el aire */
.aerial__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(210px, 22vw, 300px);
  gap: clamp(12px, 1.4vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 26px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  overscroll-behavior-x: contain;
}
.aerial__track::-webkit-scrollbar { height: 6px; }
.aerial__track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.aerial__item {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--forest-2);
  isolation: isolate;
}
.aerial__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.aerial__item:hover img { transform: scale(1.05); }
.aerial__item::after {
  content: '';
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(0deg, rgba(8, 18, 13, 0.8), transparent);
}
.aerial__item figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.aerial__item figcaption span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gold-2);
  line-height: 1;
}
.aerial__credit { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 0.78rem; color: rgba(245, 239, 227, 0.55); }
.aerial__credit svg { width: 15px; height: 15px; }
.aerial__credit a { text-decoration: none; }
.aerial__credit a:hover { color: var(--gold-2); }

/* Vivienda: enlaces a idealista */
.home__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.home__link:hover { color: var(--gold); }
.sale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  margin-top: clamp(40px, 5vw, 70px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.sale__media { position: relative; min-height: 380px; }
.sale__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sale__body { padding: clamp(30px, 4.5vw, 64px); color: var(--paper); }
.sale__body .h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); margin-bottom: 18px; }
.sale__body .lead { margin: 0 0 28px; }
.sale__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.sale__ctas .btn svg { width: 17px; height: 17px; }
.sale__note { margin: 22px 0 0; font-size: 0.76rem; color: rgba(245, 239, 227, 0.55); }
@media (max-width: 960px) {
  .sale { grid-template-columns: 1fr; }
  .sale__media { min-height: 240px; }
}

/* Página de acceso de propietarios */
.login-page { background: var(--paper); }
.login { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.login__media { position: relative; color: var(--paper); overflow: hidden; isolation: isolate; background: var(--forest-deep); }
.login__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.login__main { display: flex; flex-direction: column; padding: clamp(20px, 3vw, 40px) clamp(20px, 5vw, 80px) 40px; }
.login__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.login__back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.login__back svg { width: 18px; height: 18px; }
.login__back:hover { color: var(--forest); }
.lang-menu--light summary { border-color: var(--line); color: var(--ink); }
.lang-menu--light summary:hover { background: rgba(24, 32, 27, 0.05); }
.login__card { width: 100%; max-width: 440px; margin: auto; padding: clamp(30px, 6vh, 70px) 0; }
.login__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold-2);
  margin-bottom: 20px;
}
.login__icon svg { width: 24px; height: 24px; }
.login__card h1 { margin-bottom: 28px; }
.login__form { display: grid; gap: 16px; }
.login__pass { position: relative; }
.login__pass input { padding-right: 48px; }
.login__eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.login__eye svg { width: 20px; height: 20px; }
.login__eye:hover { color: var(--forest); }
.login__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.86rem; }
.login__row a { color: var(--forest); font-weight: 600; }
.login__check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-2); }
.login__check input { width: 17px; height: 17px; accent-color: var(--forest); }
.login__form .btn { width: 100%; margin-top: 4px; }
.login__soon {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--gold-3);
  color: #4d3a19;
  font-size: 0.9rem;
  line-height: 1.45;
}
.login__soon[hidden] { display: none; }
.login__soon svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.login__soon strong { display: block; font-size: 0.95rem; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login__main { order: -1; }
  .login__media { min-height: 240px; }
}
