/* Ítaca Tower · landing (same modules and proportions as Zinnia / Oporto / Porta Nova)
   Palette (Itaca Colors.pdf): steel blue #41768F, light aqua #BEE6EC, deep navy #11313D.
   Type: Raleway — 900 (Black) for the H1, 800 (ExtraBold) for H2, 400 (Regular) for body copy. */

:root {
  --aqua: #BEE6EC;       /* light aqua: accents on dark, soft fills (sampled from Itaca Colors.pdf, exact code pending) */
  --blue: #41768F;       /* steel blue = the logo's sail (exact value from the logo file); buttons, eyebrows (white on it 4.9:1) */
  --navy: #11313D;       /* deep navy (sampled, exact code pending): dark bands, hover */
  --gray: #575756;       /* logo "TOWER" gray */
  --ink: #1D2A30;
  --white: #ffffff;

  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { color: inherit; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scroll-behavior: smooth; } /* menu links land just below the fixed header */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p, h1, h2, h3 { text-wrap: pretty; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); }
.btn--aqua { background: var(--aqua); color: #000; } /* black text: white on this green is only 2.6:1 */
.btn--aqua:hover { background: #2E9A3F; color: #000; }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- S00 Bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.bar-logo { width: 150px; opacity: 0; transition: opacity .3s var(--ease); }
.bar-logo img { width: 100%; height: auto; }
.bar.is-solid { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.bar.is-solid .bar-logo { opacity: 1; }
.bar-nav { display: flex; align-items: center; gap: 32px; }
.bar-nav a:not(.btn) { color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.bar.is-solid .bar-nav a:not(.btn) { color: var(--ink); text-shadow: none; }
.bar-nav .btn { min-height: 44px; padding: 0 22px; font-size: 13px; }
@media (max-width: 900px) { .bar-nav a:not(.btn) { display: none; } }
/* menu stays on one line at laptop widths: compact 1191–1440px, links hide at 1190px and below like on tablets (updated 2026-11-04 for the logo lockup) */
.bar-logo { flex-shrink: 0; }
.bar-nav a { white-space: nowrap; }
@media (max-width: 1440px) and (min-width: 1221px) { .bar-nav { gap: 16px; } .bar-nav a:not(.btn) { font-size: 13px; } .bar-nav .btn { padding: 0 18px; font-size: 12px; } .bar-logo { width: 132px; } } /* compact from 1440px since the logo lockup (2026-11-04) */
@media (max-width: 1220px) { .bar-nav a:not(.btn) { display: none; } } /* was 1100px before the Mejía Villegas logo joined the header */
@media (max-width: 480px) { .bar-nav .btn { min-height: 40px; padding: 0 16px; font-size: 12px; } }

/* ---------- S01 Hero: logo + H1 rise from behind the buildings ----------
   Three layers locked to one "stage" that always keeps the render's proportions and covers the hero:
   sky (back) → logo + H1 (middle) → buildings with the sky cut out (front).
   Positions inside the stage are in % of the render, so the text always sits in the same patch of sky. */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px;
  overflow: hidden; color: #fff; background: #5fa9dc;
  container-type: size;
}
/* the stage is shifted up by 10% of its height (Andrea 2026-10-28: show more of the buildings),
   so it is sized to still cover the hero after the shift: width ≥ ratio × height / 0.9 */
.stage {
  --sw: max(100cqw, calc(100cqh * var(--img-ratio) / .97));
  position: absolute; left: 50%; transform: translateX(-50%);
  width: var(--sw); top: calc(var(--sw) / var(--img-ratio) * -.03);
  aspect-ratio: 3300 / 2500;
  container-type: inline-size;
  --shift: 2.27cqw;        /* the 3% shift above, in stage widths (was 10%; eased so the 700px headline clears the rooftops) */
  --r-left: 3.9cqw;        /* 3.9% of 1440 = 56px gutter */
  --r-pad: 56px;           /* eyebrow/headline stack starts this far below the top of the screen */
  --r-top: calc(var(--shift) + var(--r-pad));
  --bar-mid: 40px;         /* vertical centre of the nav bar (18px padding + 44px button) */
  --logo-w: 13.02cqw;      /* 20% smaller than 15.5cqw, then 5% bigger (Andrea 2026-10-29) */
  --gap: 1.5cqw;
  --h1: 8.78cqw;           /* headline ≈ 700px wide at 1440, ExtraBold (Andrea 2026-10-28) */
}
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage > .stage-front { z-index: 2; }
/* sky layer: light tint at the very top so the bar links read, plus a deeper sky behind the type,
   starting under the logo so the colour logo stays on the bright sky */
.stage-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,28,48,.28) 0%, rgba(16,28,48,0) 16%);
}
.stage-tint::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,28,48,.62) 0%, rgba(16,28,48,.4) 28%, rgba(16,28,48,0) 50%);
  /* shading only from the subtitle down to the bottom, none behind the headline (Andrea 2026-10-29);
     main.js sets --dark-start to the subtitle's top edge. Eased fade over ~350px so no visible line */
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) calc(var(--dark-start, 45%) - 200px), rgba(0,0,0,0.05) calc(var(--dark-start, 45%) - 150px), rgba(0,0,0,0.16) calc(var(--dark-start, 45%) - 100px), rgba(0,0,0,0.36) calc(var(--dark-start, 45%) - 50px), rgba(0,0,0,0.62) calc(var(--dark-start, 45%) + 0px), rgba(0,0,0,0.84) calc(var(--dark-start, 45%) + 50px), rgba(0,0,0,0.96) calc(var(--dark-start, 45%) + 100px), rgba(0,0,0,1) calc(var(--dark-start, 45%) + 150px));
          mask-image: linear-gradient(180deg, rgba(0,0,0,0) calc(var(--dark-start, 45%) - 200px), rgba(0,0,0,0.05) calc(var(--dark-start, 45%) - 150px), rgba(0,0,0,0.16) calc(var(--dark-start, 45%) - 100px), rgba(0,0,0,0.36) calc(var(--dark-start, 45%) - 50px), rgba(0,0,0,0.62) calc(var(--dark-start, 45%) + 0px), rgba(0,0,0,0.84) calc(var(--dark-start, 45%) + 50px), rgba(0,0,0,0.96) calc(var(--dark-start, 45%) + 100px), rgba(0,0,0,1) calc(var(--dark-start, 45%) + 150px));
}

/* Two identical stacks share one position.
   .riser sits BEHIND the buildings and rises up from behind them;
   .hero-front sits IN FRONT and fades in once the rise lands, so the large headline stays whole
   where it overlaps the towers. The front one is the real H1; the riser is decoration (aria-hidden). */
.riser, .hero-front {
  position: absolute; left: var(--r-left); top: var(--r-top);
  width: max(min(620px, calc(100vw - 2 * var(--gutter))), calc(var(--h1) * 5.7));
  display: flex; flex-direction: column; align-items: flex-start;
}
.riser { z-index: 1; }
.hero-front { z-index: 4; }
/* logo centred on the nav bar's line (Andrea 2026-10-29); the margins cancel out so the eyebrow and headline stay put.
   .1244 = logo height / width (193 / 776) */
.hero-logo {
  --lift: calc(var(--r-pad) - var(--bar-mid) - 14px + var(--logo-w) * .1244); /* 14px below the nav line, off the top edge (Andrea 2026-10-29) */
  width: var(--logo-w); height: auto;
  margin-top: calc(var(--lift) * -1); margin-bottom: calc(var(--gap) + var(--lift));
}
.hero-eyebrow {
  margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue); /* Andrea 2026-10-29: purple reads on the bright sky without a shadow */
}
.hero-title {
  margin: 0; font-weight: 800; font-size: var(--h1); line-height: .84; letter-spacing: -.01em; text-transform: uppercase;
  /* subtle drop shadow under each letter, now that the sky behind it is not darkened */
  text-shadow: 0 2px 4px rgba(10,25,50,.22), 0 4px 16px rgba(10,25,50,.18);
}
.hero-title > span { display: block; }
/* optical kerning on the loose pairs (Andrea 2026-10-28): P→A in PASO, Y→O in TUYO */
.hero-title .k { letter-spacing: -.07em; }
/* "TUYO" in brand purple (Andrea 2026-10-29, trial; green was rejected) */
.hero-title .hl { color: var(--blue); }

/* 1. rise from behind (main.js adds .is-ready once both layers have loaded) */
.riser > * { transform: translateY(var(--sink, 40cqw)); }
.hero.is-ready .riser > * { --sink: 0px; transition: transform 1.8s var(--ease); }
.hero.is-ready .riser > :nth-child(1) { transition-delay: .25s; }
.hero.is-ready .riser > :nth-child(2) { transition-delay: .35s; }
.hero.is-ready .riser > :nth-child(3) { transition-delay: .45s; }
/* 2. the headline now lands fully in open sky (retouched render), so the front stack only holds the
   layout for the body copy; its logo/eyebrow/headline stay invisible and the risen ones are the real ones */
.hero-front > :not(.hero-body) { visibility: hidden; }
/* 3. body copy and buttons */
.hero-body {
  margin-top: 2cqw; width: min(620px, calc(100vw - 2 * var(--gutter)));
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  opacity: 0; transform: translateY(16px);
}
.hero.is-ready .hero-body { opacity: 1; transform: none; transition: opacity 1s var(--ease) 1.3s, transform 1s var(--ease) 1.3s; }
.hero-body p { margin: 0; }
.hero-sub { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; margin-bottom: 8px !important; }
.hero-meta { font-weight: 400; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.9); margin-top: -12px !important; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* shade on the buildings only (masked to their outline), behind the type that sits over them */
.stage-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(16,28,48,.8) 0%, rgba(16,28,48,.62) 30%, rgba(16,28,48,0) 56%);
  -webkit-mask: url(assets/hero-front.webp) 0 0 / 100% 100% no-repeat,
                linear-gradient(180deg, rgba(0,0,0,0) calc(var(--dark-start, 45%) - 200px), rgba(0,0,0,0.05) calc(var(--dark-start, 45%) - 150px), rgba(0,0,0,0.16) calc(var(--dark-start, 45%) - 100px), rgba(0,0,0,0.36) calc(var(--dark-start, 45%) - 50px), rgba(0,0,0,0.62) calc(var(--dark-start, 45%) + 0px), rgba(0,0,0,0.84) calc(var(--dark-start, 45%) + 50px), rgba(0,0,0,0.96) calc(var(--dark-start, 45%) + 100px), rgba(0,0,0,1) calc(var(--dark-start, 45%) + 150px));
  -webkit-mask-composite: source-in;
          mask: url(assets/hero-front.webp) 0 0 / 100% 100% no-repeat intersect,
                linear-gradient(180deg, rgba(0,0,0,0) calc(var(--dark-start, 45%) - 200px), rgba(0,0,0,0.05) calc(var(--dark-start, 45%) - 150px), rgba(0,0,0,0.16) calc(var(--dark-start, 45%) - 100px), rgba(0,0,0,0.36) calc(var(--dark-start, 45%) - 50px), rgba(0,0,0,0.62) calc(var(--dark-start, 45%) + 0px), rgba(0,0,0,0.84) calc(var(--dark-start, 45%) + 50px), rgba(0,0,0,0.96) calc(var(--dark-start, 45%) + 100px), rgba(0,0,0,1) calc(var(--dark-start, 45%) + 150px));
}

/* subtitle: always exactly two lines on desktop (break after "construir") */
@media (min-width: 761px) {
  .hero-sub { white-space: nowrap; }
  .hero-meta { max-width: 620px; }
  .hero-body { width: max-content; max-width: calc(100vw - 2 * var(--gutter)); }
}
.nw-desk { white-space: nowrap; } /* keep this phrase on one line on desktop */
@media (max-width: 760px) { .br-desk { display: none; } .nw-desk { white-space: normal; } }

/* Fixed contact bar: WhatsApp (black) · Agendar visita (brand green), on screen from the first view */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex;
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.28);
}
.cta-bar a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: calc(50px + env(safe-area-inset-bottom, 0px)); padding: 0 10px env(safe-area-inset-bottom, 0px);
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
  transition: filter .3s var(--ease);
}
.cta-bar a:hover { filter: brightness(1.12); }
.cta-bar svg { width: 17px; height: 17px; flex: none; }
.cta-bar-wa { background: #666666; color: #fff; } /* brand gray #7F7F7F one step darker (Andrea 2026-10-29); white text 5.7:1 */
.cta-bar-wa svg { fill: #25d366; }
/* black text on the green (Andrea 2026-11-03) */
.cta-bar-ag { background: var(--aqua); color: #000; }
.cta-bar-cal { fill: none !important; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body { padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px)); }

/* trust bar sits right under the hero */
.trust { background: var(--blue); color: #fff; }
.trust ul {
  list-style: none; margin: 0 auto; max-width: var(--wrap); padding: 18px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.trust li { display: inline-flex; align-items: center; gap: 10px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }

/* ================= Sections (same modules and rhythm as Oporto; Porta Nova colours + Poppins) ================= */
:root { --tint: #EEF6F8; --sec-y: clamp(88px, 12vw, 168px); --radius: 18px; } /* --tint: a whisper of the brand purple, for alternating sections */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: calc(var(--sec-y) / 2); position: relative; }
.sec--tint { background: var(--tint); }
.sec--white { background: #fff; }
.sec--blue { background: var(--blue); color: #fff; }
.sec-head { margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head--center { text-align: center; }
.sec-head--center .h2 { margin-inline: auto; }

.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--blue); margin: 0 0 22px; }
.eyebrow--light { color: rgba(255,255,255,.85); }
.h2 { color: var(--ink); /* back to near-black after trying grays (Andrea 2026-10-29: reads better) */ font-weight: 700; font-size: clamp(30px, 4.3vw, 58px); line-height: 1.12; /* was 1.04 (Andrea 2026-10-29: more space between lines) */ letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 28px; max-width: 20ch; }
.h2--light { color: #fff; }
.u-blue { color: var(--blue); }
.u-aqua { color: #8FDB9A; } /* light tint of the brand green: #37B34A on the purple is only 2.6:1, this is 4.3:1 */
.lead { font-size: clamp(16px, 1.35vw, 19px); color: #4d4f52; max-width: 56ch; margin: 0 0 32px; }
.legal { font-size: 12px; color: #6b6b6b; margin: 28px 0 0; max-width: 90ch; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--aqua); color: var(--ink); }

/* image slots still waiting for the real photo (blank on purpose, data-asset names the file) */
.ph { position: relative; overflow: hidden; background: #E4E1E8; }
.ph--dark { background: #3b3a40; }
.ph--blue { background: var(--navy); }
.g-ref { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.85); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.flag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: #FFE58A; color: #3a3000; padding: 5px 10px; border-radius: 6px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- S02 La promesa ---------- */
#promesa .lead { margin-top: -12px; }
.statement { font-size: clamp(21px, 2.4vw, 34px); font-weight: 300; line-height: 1.36; letter-spacing: -.015em; max-width: 32ch; margin: 0 0 clamp(40px, 5vw, 64px); }
.statement .fw { color: rgba(31,36,32,.16); transition: color .2s linear; }
.statement .fw.on { color: var(--ink); }
.statement .fw.hl.on { color: var(--blue); font-weight: 500; }
.cards3-cta { margin: 0 0 clamp(30px, 3.4vw, 42px); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.fcard { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; color: #fff; text-align: center; box-shadow: 0 24px 50px -26px rgba(31,36,32,.5); isolation: isolate; }
.fcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.fcard:hover > img { transform: scale(1.04); }
.fcard::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,36,46,.62) 0%, rgba(12,36,46,.26) 26%, rgba(12,36,46,0) 44%, rgba(12,36,46,.2) 58%, rgba(12,36,46,.78) 100%); }
.fcard-word { display: block; margin-top: 64px; font-size: clamp(28px, 3vw, 44px); font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.fcard-copy { position: absolute; left: 0; right: 0; bottom: clamp(24px, 2.6vw, 34px); padding: 0 clamp(22px, 2.6vw, 38px); }
.fcard-copy p { margin: 0; color: rgba(255,255,255,.94); font-size: 15.5px; line-height: 1.55; font-weight: 400; }

/* ---------- S03 Por qué Portanova: expanding panels ---------- */
.panels { display: flex; gap: 12px; height: clamp(440px, 62vh, 640px); }
.panel { position: relative; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; outline: none; transition: flex-grow .9s var(--ease); }
.panel.is-open { flex-grow: 2.6; }
.panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel.is-open .panel-img { transform: scale(1.03); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,36,46,.86) 0%, rgba(12,36,46,.5) 30%, rgba(12,36,46,0) 62%); }
.panel-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.4vw, 34px); color: #fff; }
.panel h3 { color: #fff; font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; margin: 6px 0 0; white-space: nowrap; transition: font-size .6s var(--ease); }
.panel:not(.is-open) h3 { font-size: 19px; }
.panel p { margin: 10px 0 0; max-width: 36ch; font-size: 15px; font-weight: 400; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.panel:not(.is-open) p { max-height: 0; margin: 0; overflow: hidden; }
.panel.is-open p { opacity: 1; transform: none; transition-delay: .25s; }
.panel-link { color: #fff; font-weight: 500; text-underline-offset: 3px; }
.panel-link:hover { color: var(--aqua); }
.panel-flag { position: absolute; z-index: 2; left: 16px; top: 16px; }
.panel:focus-visible { box-shadow: 0 0 0 3px var(--aqua); }

/* ---------- S04 Tu intención ---------- */
.intent { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); max-width: 980px; margin: 0 auto; }
.intent-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left;
  padding: clamp(26px, 3vw, 44px); border-radius: 22px; border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06); color: #fff; font: inherit; cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), opacity 1s var(--ease);
}
.intent-card:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.intent-card[aria-checked="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.intent-card:focus-visible, .chip:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.intent-num { font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; opacity: .8; }
.intent-title { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.intent-card[aria-checked="true"] .intent-title { color: var(--blue); }
.intent-text { font-size: 16px; font-weight: 300; max-width: 30ch; }
.intent-check { position: absolute; top: 22px; right: 22px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .55; }
.intent-card[aria-checked="true"] .intent-check { opacity: 1; border-color: var(--aqua); background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F2420' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.where { text-align: center; margin-top: clamp(36px, 4vw, 56px); }
.where-q { margin: 0 0 16px; font-size: 14px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45); background: none; color: #fff; font: inherit; font-size: 15px; font-weight: 400; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.chip:hover { border-color: #fff; }
.chip[aria-checked="true"] { background: #fff; color: var(--blue); border-color: #fff; font-weight: 500; }
.intent-next { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; min-height: 52px; }
.intent-next .btn { animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }

/* ================= S05–S07 + modals (ported from Oporto S05–S08, 2026-10-29) ================= */
:root { --line: rgba(31,36,32,.12); }
.u-none { text-transform: none; } /* keeps "m²" lowercase inside uppercase type */
.sec-head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.sec-head--split .h2 { margin-bottom: 0; }
.sec-head--split .lead { margin-bottom: 4px; }

/* ---------- S05 Tu apartamento: overlay card + plan (Oporto S05) ---------- */
.apt { position: relative; display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.type { position: relative; aspect-ratio: 4 / 5.6; border-radius: 22px; overflow: hidden; isolation: isolate; color: #fff; box-shadow: 0 24px 50px -26px rgba(31,36,32,.5); }
.type-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.type:hover .type-img { transform: scale(1.05); }
.type-zoom { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; cursor: pointer; transition: background .3s, color .3s; }
.type-zoom:hover { background: #fff; color: var(--blue); }
.type-zoom svg, .type-icons svg, .plan-hint svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.type-glass { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 20px 20px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.type-glass::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,36,46,0) 0%, rgba(12,36,46,.4) 30%, rgba(12,36,46,.7) 100%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); -webkit-mask: linear-gradient(180deg, transparent 0, rgba(0,0,0,.5) 26px, #000 64px); mask: linear-gradient(180deg, transparent 0, rgba(0,0,0,.5) 26px, #000 64px); }
.type-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.type-name { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.type-loc { margin: 6px 0 0; font-size: 13px; font-weight: 500; opacity: .9; white-space: nowrap; }
.type-price { margin: 0; text-align: right; font-size: 18px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.type-price small { display: block; font-size: 11px; font-weight: 500; opacity: .85; }
.type-icons { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; font-weight: 500; }
.type-icons li { display: inline-flex; align-items: center; gap: 6px; }
.type-icons svg { stroke: #8FDB9A; }
.type-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.3); font-size: 15px; font-weight: 600; white-space: nowrap; }
.type-stats > div + div { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); }
.type-stats small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 3px; }

.plan-wrap { position: relative; border-radius: var(--radius); } /* no white card: the plan sits on the section color (Andrea 2026-11-03) */
.plan-open { display: block; width: 100%; padding: clamp(14px, 2vw, 28px) clamp(14px, 2vw, 28px) calc(clamp(14px, 2vw, 28px) + 44px); border: 0; background: none; cursor: zoom-in; border-radius: inherit; } /* bottom room so the "Ampliar plano" pill sits under the plan, not on it (Andrea 2026-11-03) */
.plan-stage { position: relative; }
.plan-spots { position: absolute; top: clamp(14px, 2vw, 28px); left: clamp(14px, 2vw, 28px); right: clamp(14px, 2vw, 28px); bottom: calc(clamp(14px, 2vw, 28px) + 44px); pointer-events: none; } /* hotspot % are measured on the plan image itself */
.plan-spots .hotspot { pointer-events: auto; }
/* key plan: the 8 units of the tower; the one shown is purple, tap another to switch (2026 book pp. 11–18) */
.plan-key { padding: clamp(16px, 2vw, 26px) clamp(14px, 2vw, 28px) 0; }
.plan-key svg { display: block; width: min(100%, 340px); height: auto; margin: 0 auto; overflow: visible; }
.pk-unit { cursor: pointer; outline: none; }
.pk-unit path { fill: #fff; stroke: #9a9a9a; stroke-width: 2.5; transition: fill .3s var(--ease); }
.pk-unit text { font: 700 44px var(--font); fill: #b3acbb; text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .3s var(--ease); }
.pk-unit:hover path, .pk-unit:focus-visible path { fill: var(--tint); stroke: var(--blue); }
.pk-unit:hover text, .pk-unit:focus-visible text { fill: var(--blue); }
.pk-unit.is-on path { fill: var(--blue); stroke: var(--navy); }
.pk-unit.is-on text { fill: #fff; }
.pk-line { fill: none; stroke: #9a9a9a; stroke-width: 2.5; }
.plan-key-cap { margin: 8px 0 0; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.plan-open img { width: 100%; height: auto; }
.plan-open:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.plan-hint { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: background .3s var(--ease); }
.plan-open:hover .plan-hint { background: var(--navy); }
/* numbered markers on the plan: hover / tap shows the space name */
.hotspot { position: absolute; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font: 600 13px/1 var(--font); cursor: pointer; box-shadow: 0 0 0 4px rgba(255,255,255,.7), 0 6px 18px rgba(0,0,0,.2); transition: transform .35s var(--ease); }
.hotspot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--blue); opacity: .5; animation: ping 2.6s ease-out infinite; }
.hotspot-num { position: relative; }
.hotspot:hover, .hotspot:focus-visible, .hotspot.is-active { transform: scale(1.12); z-index: 4; outline: none; }
.bubble { position: absolute; bottom: calc(100% + 12px); left: 50%; width: max-content; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; pointer-events: none; opacity: 0; transform: translateX(-50%) scale(.6); transform-origin: center bottom; transition: transform .4s var(--ease), opacity .2s ease; }
.bubble::before { content: ""; position: absolute; bottom: -5px; left: 50%; width: 12px; height: 12px; background: inherit; border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
.hotspot:hover .bubble, .hotspot:focus-visible .bubble, .hotspot.is-active .bubble { opacity: 1; transform: translateX(-50%) scale(1); }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
.price-tag { margin: 24px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.apt-plan .legal { margin: 8px 0 0; }
.apt-zonas { margin: 18px 0 26px; font-size: 15px; color: #4d4f52; }
.apt-zonas .flag { margin-left: 6px; vertical-align: 1px; }

/* ---------- S05 gallery: tabs + draggable row + lightbox (Oporto S06) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--line); margin: clamp(64px, 7vw, 104px) 0 24px; }
.tab { position: relative; background: none; border: 0; padding: 12px 0; font: 500 14px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #6b6b6b; cursor: pointer; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }
.tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.gallery-note { min-height: 0; margin-bottom: 20px; font-size: 14px; color: #4d4f52; }
.gallery-note:empty { display: none; }
.gallery-note p { margin: 0; }
.gallery { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; }
.gallery.is-dragging .g-item { pointer-events: none; }
.gallery-track { display: flex; gap: 18px; width: max-content; padding-bottom: 6px; }
.g-item { position: relative; flex: none; width: clamp(280px, 36vw, 520px); aspect-ratio: 16 / 10; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: none; cursor: zoom-in; animation: gIn .7s var(--ease) both; }
.g-item .ph, .g-item > img { width: 100%; height: 100%; }
.g-item > img { object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform .8s var(--ease); }
.g-item:hover > img { transform: scale(1.03); }
.g-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, rgba(12,36,46,0), rgba(12,36,46,.55)); pointer-events: none; }
.g-cap { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-align: left; text-shadow: 0 1px 8px rgba(0,0,0,.35); pointer-events: none; }
.g-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@keyframes gIn { from { opacity: 0; transform: translateX(40px); } }
.gallery-foot { margin-top: 18px; }
/* opening deck (Oporto's, 2026-11-03): photos stacked for 2 s when the gallery scrolls into view, then they spread out (main.js) */
.gallery.is-deck { overflow-x: clip; overflow-y: visible; cursor: default; } /* clip sideways so the still-stacked row never widens the page */
.gallery.is-deck .g-item, .gallery.is-deck-go .g-item { animation: none; }
.gallery.is-deck .g-item { pointer-events: none; box-shadow: 0 18px 40px rgba(12,36,46,.22); }
.gallery.is-deck-go .g-item { transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
.gallery.is-deck ~ .gallery-foot .drag-hint { visibility: hidden !important; }
.drag-hint { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6b6b6b; }

/* ---------- S06 Portanova en Montería: places + map (Oporto S08) ---------- */
.env { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (min-width: 901px) { .env > * { min-width: 0; } .env .h2 { max-width: none; width: max-content; white-space: nowrap; } } /* S06 headline in 2 lines, running into the empty space above the map (Andrea 2026-11-04) */
.places { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.place { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: transform .4s var(--ease); }
.place:hover { transform: translateX(10px); }
.place-min { font-size: 14px; color: #4d4f52; }
.place-min b { font-size: 34px; font-weight: 700; color: var(--blue); letter-spacing: -.03em; margin-right: 2px; }
.place-name { font-weight: 500; line-height: 1.4; }
/* route line + moving car/walker under each place (same as Oporto, Porta Nova colors) */
.place { position: relative; }
.place-route { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--len, 20%); background: linear-gradient(90deg, var(--blue), var(--aqua)); border-radius: 2px; }
.place-car { position: absolute; left: 0; bottom: -1px; color: var(--blue); line-height: 0; transform: translate(-30%, 50%); opacity: 0; }
.places.in .place-car { animation: place-drive var(--dur, 3.2s) var(--ease) .4s 1 forwards; } /* plays once when the list scrolls in, then rests at its time (Andrea 2026-11-04; was infinite) */
.place-car svg { width: 30px; height: auto; display: block; }
.place-car--walk svg { width: auto; height: 28px; } /* the walking figure is tall/narrow, so size it by height */
@keyframes place-drive { 0% { left: 0; opacity: 0; } 7% { opacity: 1; } 75% { left: var(--len); } 100% { left: var(--len); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .place-car, .places.in .place-car { animation: none; left: var(--len); opacity: 1; } }
.addr { margin: 0 0 24px; font-size: 15px; color: #4d4f52; }
.addr .flag { margin-left: 6px; vertical-align: 1px; }
.env-map { align-self: start; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #E4E1E8; }
.env-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); }
.map-card { position: absolute; left: 16px; top: 16px; z-index: 2; width: min(80%, 300px); background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(31,36,32,.18); padding: 15px 17px; }
.map-card-name { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.map-card-addr { margin: 0 0 14px; font-size: 12.5px; line-height: 1.45; color: #6b6b6b; }
.map-card-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .3s; }
.map-card-btn:hover { background: var(--navy); }
.map-card-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- S07 Recorrido 360: full-bleed render, darkened (Oporto S07) ---------- */
.tour { position: relative; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #11313D; }
.tour-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.tour > .g-ref { top: 24px; left: auto; right: var(--gutter); }
.tour-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,36,46,.8) 0%, rgba(12,36,46,.45) 50%, rgba(12,36,46,.1) 100%), linear-gradient(0deg, rgba(12,36,46,.78) 0%, rgba(12,36,46,.2) 65%); }
.tour-inner { position: relative; padding-block: calc(var(--sec-y) / 2) clamp(48px, 6vw, 88px); }
.tour .h2 { max-width: 14ch; }
.tour-meta { margin: -8px 0 32px; font-size: 15px; font-weight: 400; color: rgba(255,255,255,.88); }
.tour-note { margin: 14px 0 0; font-size: 13px; color: rgba(255,255,255,.8); }
.i360 { font-size: 11px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 2px 7px; letter-spacing: .05em; }

/* ---------- Modals + lightbox (Oporto) ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(12,36,46,.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: min(720px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 24px; padding: 40px; }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font: 300 26px/1 var(--font); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
/* visit window (Andrea 2026-11-03): presencial / virtual tabs + GoHighLevel calendar placeholder */
#modal-agenda h2 { margin: 0 0 22px; padding-right: 48px; }
#modal-agenda .seg { display: inline-flex; border: 1px solid var(--blue); border-radius: 999px; padding: 3px; margin: 0 0 22px; }
#modal-agenda .seg button { font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: none; border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer; }
#modal-agenda .seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
#modal-agenda .cal-ph { aspect-ratio: 16 / 10; border-radius: var(--radius); display: grid; place-items: center; color: var(--ink-2); font-size: 14px; font-weight: 500; }
@media (max-width: 600px) { #modal-agenda .seg button { padding: 10px 12px; font-size: 12px; } #modal-agenda .cal-ph { aspect-ratio: 3 / 4; } }
.modal-close:focus-visible, .lb-nav:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
.plan-box { width: min(1180px, 100%); padding: 28px; }
.plan-img { width: 100%; max-height: 66vh; object-fit: contain; }
.plan-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.plan-meta { margin: 0 0 12px; font-size: 14px; color: #4d4f52; }
.plan-extra { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #4d4f52; }
.plan-extra li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.plan-side { flex-shrink: 0; text-align: right; }
.plan-price { margin: 0 0 12px; font-size: 13px; color: #4d4f52; }
.plan-price b { display: block; font-size: 22px; font-weight: 600; color: var(--ink); }
.lb-stage { position: relative; width: min(1200px, 86vw); aspect-ratio: 3 / 2; }
.lb-stage > img, .lb-stage > .ph { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; }
.lb-stage > img { object-fit: contain; }
.lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
/* 360 window: full screen, Portanova bar on top */
.modal--tour { display: block; padding: 0; background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.tour-win { position: absolute; inset: 0; display: flex; flex-direction: column; }
.tour-bar { flex: none; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: clamp(16px, 3vw, 32px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.tour-bar-brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.tour-bar-brand img { width: 120px; height: auto; }
.tour-bar-title { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.22); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.tour-bar-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; }
.tour-bar-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font: 300 26px/1 var(--font); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.tour-bar-close:hover { background: #fff; color: var(--ink); }
.tour-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tour-stage iframe, .tour-ph { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; color: #fff; text-align: center; }
.tour-cover-num { font-size: clamp(64px, 10vw, 128px); font-weight: 800; letter-spacing: -.04em; line-height: 1; opacity: .9; }
.tour-stage.is-ready .tour-cover, .tour-stage.is-ready .tour-ph { display: none; }

/* ---------- S05–S07 + modals · tablet / mobile (2026-10-29) ---------- */
@media (max-width: 1020px) {
  .apt { grid-template-columns: 1fr; }
  .apt .type { width: 100%; max-width: 420px; justify-self: center; }
}
@media (max-width: 900px) {
  .sec-head--split, .env { grid-template-columns: 1fr; }
  .sec-head--split { gap: 16px; }
  .env-map { position: relative; top: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .hotspot { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 12px; box-shadow: 0 0 0 3px rgba(255,255,255,.7), 0 4px 12px rgba(0,0,0,.2); }
  .bubble { font-size: 12px; padding: 6px 10px; }
  .plan-hint { right: 8px; bottom: 8px; padding: 6px 10px; font-size: 11px; }
  .type-name { font-size: 30px; }
  .type-price { font-size: 16px; }
  .type-stats { font-size: 14px; }
  .type-stats > div + div { padding-left: 8px; }
  .tabs { gap: 0 18px; }
  .tab { font-size: 12.5px; letter-spacing: .06em; }
  .g-item { width: 82vw; }
  .place { grid-template-columns: 92px 1fr; gap: 12px; }
  .env .btn, .apt-plan > .btn { width: 100%; }
  .tour { min-height: 78vh; }
  .tour > .g-ref { top: 16px; }
  .tour .btn { width: 100%; }
  .modal-box { padding: 24px; }
  .plan-box { padding: 18px; }
  .plan-info { flex-direction: column; align-items: stretch; }
  .plan-side { text-align: left; }
  .plan-side .btn { width: 100%; }
  .lb-stage { width: 100%; }
  .lb-nav { top: auto; bottom: 24px; margin-top: 0; width: 46px; height: 46px; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .tour-bar { height: 60px; }
  .tour-bar-brand { gap: 12px; }
  .tour-bar-brand img { width: 96px; }
  .tour-bar-title { padding-left: 12px; font-size: 11px; letter-spacing: .14em; }
  .tour-bar .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot::before, .g-item { animation: none; }
}

@media (max-width: 900px) {
  .cards3 { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 24px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .cards3::-webkit-scrollbar { display: none; }
  .fcard { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
  .panels { flex-direction: column; height: auto; }
  .panel, .panel.is-open { flex: none; height: 300px; }
  .panel p, .panel:not(.is-open) p { opacity: 1; transform: none; max-height: none; margin: 10px 0 0; }
  .panel h3, .panel:not(.is-open) h3 { font-size: 24px; white-space: normal; }
  .intent { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  /* show the low left end of the building row so there is sky for the type */
  .stage { left: 0; transform: none; --r-left: var(--gutter); --r-pad: 72px; --logo-w: 11.76cqw; --gap: 2cqw; --h1: 4cqw; }
  .stage-shade {
    background: rgba(16,28,48,.66);
    -webkit-mask: url(assets/hero-front.webp) 0 0 / 100% 100% no-repeat,
                  linear-gradient(180deg, transparent 20%, #000 28%, #000 76%, transparent 94%);
    -webkit-mask-composite: source-in;
            mask: url(assets/hero-front.webp) 0 0 / 100% 100% no-repeat intersect,
                  linear-gradient(180deg, transparent 20%, #000 28%, #000 76%, transparent 94%);
  }
  .hero-body { gap: 18px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: .18em; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-sub { font-size: 16px; }
  .trust ul { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .riser > * { --sink: 0px !important; transition: none !important; }
  .hero-body { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ================= S08–S12 + footer (ported from Oporto S10, S11, S13–S16 + footer, 2026-10-29) ================= */
:root { --error: #B3261E; --ink-2: #4d4f52; }
.h3 { font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 16px; color: var(--ink); }
.h3--caps { text-transform: uppercase; } /* simulator heading in caps (Andrea 2026-11-03) */
.small { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.btn--line { border-color: var(--blue); color: var(--blue); background: none; cursor: pointer; }
.btn--line:hover { background: var(--blue); color: #fff; }
.btn--text { padding: 0 10px; background: none; color: var(--ink-2); cursor: pointer; }
.btn--text:hover { color: var(--blue); }
button.btn { cursor: pointer; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-btns--center { justify-content: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { color: #fff; }

/* ---------- S08 Condiciones: six conditions + simulator (Oporto S11) ---------- */
.conds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cond { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.cond:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.cond-k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.cond-k::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--aqua); }
.cond-v { display: block; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); margin-bottom: 8px; }
.cond p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 36ch; }
.cond .cond-note { margin-top: 8px; font-size: 12px; color: #6b6b6b; }
.cond .flag { margin-top: 12px; }

.sim { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; margin-top: clamp(64px, 7vw, 104px); }
.sim > div:first-child .btn { margin-top: 4px; }
.sim > div:first-child .legal { margin-top: 18px; }
.sim-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 80px rgba(31,36,32,.08); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field output { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 600; }
.sim-card > .field:first-child { margin-bottom: 4px; }
.sim-card > .field:first-child output { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.sim-sub { margin: 0 0 22px; font-size: 13px; color: #6b6b6b; }
.sim-range { margin-bottom: 8px; }
input[type=range] { width: 100%; height: 28px; accent-color: var(--blue); }
.sim-note { font-size: 13px; color: var(--ink-2); margin: 0; }
.sim-note--flag { margin-bottom: 18px; }
.sim-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.sim-out > div { background: var(--tint); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sim-out span { display: block; font-size: 12px; color: var(--ink-2); }
.sim-out b { margin-top: auto; font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.sim-out--one { grid-template-columns: 1fr; }
.sim-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(40px, 5vw, 64px); } /* home S08: button to the simulator page + microcopy */
.sim-cta .legal { margin: 0; }
.simpage .sim { margin-top: 8px; } /* simulator page (/simulador/) */
.sim-out b .flag { display: inline-block; font-size: 11px; letter-spacing: .04em; white-space: normal; }

.invest { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; margin-top: clamp(56px, 6vw, 88px); padding: clamp(28px, 4vw, 56px); border-radius: 24px; background: var(--blue); color: #fff; scroll-margin-top: 90px; }
.invest > div { max-width: 60ch; }
.invest .eyebrow { margin-bottom: 14px; }
.invest .h3 { color: #fff; }
.invest p:last-child { margin: 0; color: rgba(255,255,255,.9); }

/* ---------- S09 Respaldo: copy + count-up figures + logos + image (Oporto S10) ---------- */
.backing { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.backing .lead .flag { margin-left: 4px; vertical-align: 2px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(24px, 4vw, 56px); margin: 8px 0 36px; }
.stat { text-align: center; } /* label centered under its number (Andrea 2026-11-03) */
.stat b { display: block; font-size: clamp(44px, 5vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--blue); }
.stat > span { display: block; margin: 8px -.18em 0 0; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; margin-bottom: 24px; }
.logo-slot { display: grid; gap: 8px; }
.logo-slot .ph { width: 180px; height: 72px; border-radius: 12px; background: #E4E1E8; }
.logo-slot--img { height: 72px; align-content: center; } /* real logo: no gray box, no caption */
.logo-slot--img img { height: 40px; width: auto; max-width: 100%; }
.logo-slot--img .logo-mv { height: 36px; } /* 10% smaller than the trust logo, more room between them (Andrea 2026-11-03) */
.logo-slot span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b6b6b; }
.backing-line { margin: 0; font-weight: 500; color: var(--ink); }
.backing-media { position: relative; border-radius: var(--radius); overflow: hidden; }
.backing-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Proceso de compra: numbered timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: none; }
.pstep { position: relative; padding-top: 0; }
.pstep::before { content: ""; position: absolute; top: 27px; left: 64px; right: -24px; height: 2px; background: linear-gradient(90deg, var(--aqua), rgba(190,230,236,.25)); }
.pstep:last-child::before { display: none; }
.pstep-num { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 0 0 6px #fff; }
.pstep h3 { margin: 22px 0 8px; font-size: 20px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.pstep p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 26ch; }
.pstep-time { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--blue); } /* times are AX2LAB placeholders until M6 confirms */
.pstep-time svg { flex: none; }
/* Step path draws once on view (Andrea picked option A, 2026-11-02): circle pops, line walks to the next, copy fades up. main.js adds .go */
.steps[data-draw] .pstep::before { transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.65,0,.35,1); }
.steps[data-draw] .pstep-num { transform: scale(.4); opacity: 0; transition: transform .6s cubic-bezier(.34,1.56,.64,1), opacity .3s; }
.steps[data-draw] .pstep h3, .steps[data-draw] .pstep-time, .steps[data-draw] .pstep p { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.steps[data-draw].go .pstep::before, .steps[data-draw].go .pstep-num, .steps[data-draw].go .pstep h3, .steps[data-draw].go .pstep-time, .steps[data-draw].go .pstep p { opacity: 1; transform: none; }
.steps[data-draw] .pstep:nth-child(2) { --d: .45s; } .steps[data-draw] .pstep:nth-child(3) { --d: .9s; } .steps[data-draw] .pstep:nth-child(4) { --d: 1.35s; } .steps[data-draw] .pstep:nth-child(5) { --d: 1.8s; }
.steps[data-draw].go .pstep-num { transition-delay: var(--d, 0s); }
.steps[data-draw].go .pstep h3 { transition-delay: calc(var(--d, 0s) + .12s); }
.steps[data-draw].go .pstep-time { transition-delay: calc(var(--d, 0s) + .16s); }
.steps[data-draw].go .pstep p { transition-delay: calc(var(--d, 0s) + .2s); }
.steps[data-draw].go .pstep::before { transition-delay: calc(var(--d, 0s) + .2s); }
@media (max-width: 1020px) { .steps[data-draw] .pstep::before { transform: scaleY(0); transform-origin: top; } }
@media (prefers-reduced-motion: reduce) { .steps[data-draw] .pstep::before, .steps[data-draw] .pstep * { transition: none !important; } }
/* desktop: shift the row so circle 3 sits on the center line under the headline (Andrea 2026-11-03).
   left pad a solves a + 2·(W − a − 96)/5 + 28 = W/2  →  a = W/6 − 62.67px (96 = 4 gaps, 28 = circle radius) */
@media (min-width: 1021px) { .steps { padding-left: calc(100% / 6 - 62.67px); } }
.steps-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 20px; margin-top: clamp(48px, 5vw, 72px); }

/* ---------- S10 Formulario: 2 steps with progress + inline validation (Oporto S13) ---------- */
.split-form { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.split-form .h2 { max-width: 16ch; }
.split-form > div:first-child { position: sticky; top: 110px; } /* heading stays beside the tall step 2 */
.form { display: grid; gap: 18px; }
.form--card { background: #fff; border-radius: 24px; padding: clamp(24px, 3vw, 44px); box-shadow: 0 30px 80px rgba(31,36,32,.08); overflow: hidden; min-width: 0; }
.progress { position: relative; height: 3px; background: #E4E1E8; border-radius: 3px; margin-bottom: 26px; }
.progress-bar { position: absolute; inset: 0 50% 0 0; background: var(--aqua); border-radius: 3px; transition: right .7s var(--ease); }
.progress-label { position: absolute; right: 0; top: 10px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #6b6b6b; }
.form--card[data-at="2"] .progress-bar, .form--card[data-at="3"] .progress-bar { right: 0; }
.step { display: none; gap: 18px; min-width: 0; }
.step.is-active { display: grid; animation: stepSlide .6s var(--ease); }
@keyframes stepSlide { from { opacity: 0; transform: translateX(24px); } }
.get { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 0; }
.get li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 400; color: var(--ink); }
.get li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F2420' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.form .btn[type=submit], .form [data-next] { justify-self: start; }
.fl { position: relative; }
.fl input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 26px 0 10px; border-radius: 0; outline: none; transition: border-color .3s; }
.fl label { position: absolute; left: 0; top: 24px; color: var(--ink-2); font-size: 15px; pointer-events: none; transition: all .3s var(--ease); }
.fl input:focus { border-color: var(--blue); }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label { top: 2px; font-size: 11.5px; letter-spacing: .08em; color: var(--blue); }
select {
  font: inherit; font-size: 15px; color: var(--ink); background-color: var(--tint); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 40px 13px 14px; appearance: none; -webkit-appearance: none; width: 100%; min-width: 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(65,118,143,.18); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .field { margin-bottom: 16px; min-width: 0; align-content: start; }
.field-flag { justify-self: start; }
.grid2 .field > span { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; justify-content: flex-start; flex-wrap: wrap; gap: 6px 8px; }
.field .flag { font-style: normal; font-size: 11px; padding: 3px 7px; }
.fl small, .field small, .check small { display: none; color: var(--error); font-size: 12px; margin-top: 6px; }
.field small { margin-top: -2px; }
.fl.is-error input { border-color: var(--error); }
.field.is-error select { border-color: var(--error); }
.fl.is-error small, .field.is-error small, .check.is-error small { display: block; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; align-items: start; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
.check.is-error span { color: var(--error); }
.check small { grid-column: 2; margin-top: -6px; }
.step--done { text-align: center; justify-items: center; padding: 20px 0; outline: none; }
.step--done p { margin: 0; max-width: 44ch; color: var(--ink-2); }
.step--done .h3 { margin: 6px 0 0; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F2420' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 32px no-repeat; animation: spinIn 1.2s var(--ease); }
@keyframes spinIn { from { transform: rotate(-120deg) scale(.4); opacity: 0; } }
.form-error { color: var(--error); }

/* ---------- WhatsApp band (Oporto S14) ---------- */
.wa-band { background: var(--blue); color: #fff; padding-block: clamp(48px, 6vw, 80px); }
.wa-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 32px; flex-wrap: wrap; }
.wa-inner .h3 { color: #fff; margin-bottom: 10px; }
.wa-inner p { margin: 0; max-width: 60ch; color: rgba(255,255,255,.9); }

/* ---------- S11 Preguntas: accordion (Oporto S15) ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; color: var(--ink); transition: color .3s; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  --plus: var(--blue);
  background: linear-gradient(var(--plus), var(--plus)) center/14px 1.5px no-repeat, linear-gradient(var(--plus), var(--plus)) center/1.5px 14px no-repeat;
  transition: transform .5s var(--ease); }
.faq details[open] summary::after, .faq details.is-seen summary::after { --plus: var(--ink); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover h3 { color: var(--blue); }
.faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.faq-a p { margin: 0 0 24px; color: var(--ink-2); max-width: 68ch; }
.faq-a .flag { margin-left: 6px; vertical-align: 1px; }
.faq-a a { color: var(--blue); font-weight: 500; }

/* ---------- S12 Cierre (Oporto S16, dark per spec) ---------- */
.closing { position: relative; background: radial-gradient(120% 90% at 50% 0%, var(--blue) 0%, var(--navy) 55%, #0A2029 100%); color: #fff; padding-block: clamp(96px, 13vw, 180px); text-align: center; overflow: hidden; }
.closing-inner { position: relative; z-index: 1; }
.closing-leaf { position: absolute; left: 50%; top: 50%; height: 101%; width: auto; transform: translate(-50%, -50%); pointer-events: none; } /* whole leaf visible, top to bottom */
.closing-leaf-art { opacity: .13; } /* Andrea 2026-11-03: another 15% more transparent (.15 -> .13) */
.closing-leaf-foliage [data-leaf] { fill: #fff; }
.closing-leaf-cover { fill: #fff; transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(1); }
/* branch loop (Andrea 2026-11-03): 3s loop = grows 2.1s, holds 0.6s, quick fade back, starts over, only while the section is on screen */
.closing-leaf.is-looping .closing-leaf-cover { animation: leaf-grow 3s var(--ease) infinite; }
@keyframes leaf-grow {
  0% { transform: scaleY(1); opacity: 1; }
  70% { transform: scaleY(0); opacity: 1; }
  90% { transform: scaleY(0); opacity: 0; }
  90.1% { transform: scaleY(1); opacity: 0; }
  98% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .closing-leaf-cover, .closing-leaf.is-looping .closing-leaf-cover { animation: none; transform: scaleY(0); } }
.closing .h2 { margin-inline: auto; max-width: 22ch; text-shadow: 0 2px 14px rgba(6, 24, 32, .35); } /* subtle lift off the leaf */
.closing .lead { margin-inline: auto; color: #fff; font-weight: 500; } /* heavier + full white so it reads over the leaf */

/* ---------- Footer (Oporto) ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding-block: 80px 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; } /* Oporto footer: brand · sala de ventas · contacto · síguenos */
.footer b { color: #fff; font-weight: 600; }
.footer-mv-link { color: var(--aqua); font-weight: 600; }
.footer-follow { text-align: center; }
.social { display: flex; justify-content: center; gap: 12px; margin: 0 0 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; color: #fff; transition: background .3s var(--ease), border-color .3s var(--ease); }
.social a:hover { background: var(--blue); border-color: var(--blue); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-mv img { width: 188px; max-width: 100%; height: auto; display: block; margin-inline: auto; }
.footer-logo { width: 170px; height: auto; margin-bottom: 18px; }
.footer h3 { color: #fff; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin: 0 0 14px; }
.footer p { margin: 0 0 12px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-legal { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.55); }
.footer-legal p { max-width: none; } /* full width so the disclaimer sits on 2 lines on desktop (Andrea 2026-11-02) */
.footer-ck { text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; } /* cookie settings sit in the legal line, like Oporto */

/* ---------- Cookies (Oporto) ---------- */
.cookies { position: fixed; left: 20px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: min(460px, calc(100% - 40px)); background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.18); font-size: 13.5px; animation: stepSlide .6s var(--ease); }
.cookies p { margin: 0 0 16px; color: var(--ink-2); }
.cookies-prefs { display: grid; gap: 10px; margin-bottom: 16px; }
.cookies .btn { min-height: 40px; padding: 0 16px; font-size: 11px; }

/* ---------- S08–S12 · tablet / mobile ---------- */
@media (max-width: 1020px) {
  .conds { grid-template-columns: 1fr 1fr; }
  .cond, .cond:not(:nth-child(3n+1)) { padding: 24px 24px 26px 0; border-left: 0; }
  .cond:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .pstep { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding-bottom: 32px; }
  .pstep::before { top: 62px; bottom: 6px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--aqua), rgba(190,230,236,.25)); }
  .pstep-num { grid-row: span 3; }
  .pstep h3 { margin: 14px 0 6px; }
  .pstep p { max-width: none; }
}
@media (max-width: 900px) {
  .sim, .backing, .split-form, .faq-wrap { grid-template-columns: 1fr; }
  .faq-side, .split-form > div:first-child { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .backing-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .conds { grid-template-columns: 1fr; }
  .cond, .cond:not(:nth-child(3n+1)), .cond:nth-child(2n) { padding: 22px 0; border-left: 0; }
  .sim-out { gap: 8px; }
  .sim-out > div { padding: 14px 12px; }
  .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat b { font-size: 40px; }
  .stat > span { font-size: 11px; letter-spacing: .12em; }
  .logo-slot { flex: 1 1 0; }
  .logo-slot .ph { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-block: 56px 32px; }
  .sim .btn, .invest .btn, .steps-foot .btn, .wa-inner .btn, .closing .btn, .form .btn[type=submit], .form [data-next] { width: 100%; }
  .closing .row-btns { flex-direction: column; align-items: stretch; }
  .cookies { left: 12px; width: calc(100% - 24px); bottom: calc(62px + env(safe-area-inset-bottom, 0px)); padding: 20px; }
}
@media (max-width: 380px) { .sim-out { grid-template-columns: 1fr; } }

/* S04: the leaf-line graphic from page 1 of the Portanova Book 2025, in white, stretched to cover the purple
   at any size (Andrea 2026-10-29). Real vector lines pulled from the PDF (complete, also where the book logo covered them). */
#intencion { overflow: hidden; isolation: isolate; }
#intencion::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(assets/lines-white.svg) center / cover no-repeat;
  opacity: .162; /* was .38 → .2 → .18; another 10% softer (Andrea 2026-10-29) */
}
/* S04 option cards look like frosted glass over the purple + lines (Andrea 2026-10-29) */
#intencion .intent-card:not([aria-checked="true"]) {
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  -webkit-backdrop-filter: blur(2px) saturate(1.2); backdrop-filter: blur(2px) saturate(1.2); /* light blur so the lines still show through */
  border-color: rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 40px -24px rgba(6,24,32,.45);
}
#intencion .intent-card:not([aria-checked="true"]):hover { background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); }

/* ================= Legal pages (/terminos-y-condiciones/, /en/terms-and-conditions/) — same structure as Oporto's legal pages, 2026-10-30 ================= */
.legal-page .bar { position: sticky; }
.legal-wrap { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.legal-top { padding-block: clamp(56px, 7vw, 96px) 44px; }
.legal-top .h2 { max-width: none; margin-bottom: 18px; }
.legal-crumb { font-size: 13px; color: var(--gray); margin-bottom: 28px; }
.legal-crumb a { color: var(--gray); }
.legal-crumb b { color: var(--ink); font-weight: 500; }
.legal-meta { font-size: 14px; color: #5f5f5f; margin: 0; }
.legal-band { padding-block: clamp(32px, 3.6vw, 52px); }
.legal-band--tint { background: var(--tint); }
.legal-band p { font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.legal-band p:last-child { margin-bottom: 0; }
.legal-band a { color: var(--blue); }
.legal-h2 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0 0 14px; }
.legal-datos { margin: 4px 0 26px; }
.legal-datos > div { display: grid; grid-template-columns: 210px 1fr; gap: 4px 18px; padding: 11px 0; border-bottom: 1px solid rgba(31,36,32,.12); }
.legal-datos dt { font-weight: 600; font-size: 15px; }
.legal-datos dd { margin: 0; font-size: 16px; line-height: 1.55; }
@media (max-width: 640px) { .legal-datos > div { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; } }
.lang { display: inline-flex; gap: 2px; font-size: 13px; font-weight: 600; }
.lang > * { padding: 6px 8px; border-radius: 6px; color: var(--gray); text-decoration: none; text-shadow: none !important; }
.lang [aria-current] { color: var(--blue); background: var(--tint); }
.bar-nav .lang a { display: inline; color: var(--gray); }
@media (max-width: 480px) { .legal-page .bar-nav { gap: 12px; } .legal-page .bar-logo { width: 120px; } .legal-page .bar-nav .btn { white-space: nowrap; } }
.legal-band ul, .legal-band ol { margin: 0 0 14px; padding-left: 22px; }
.legal-band li { font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.legal-band li::marker { color: var(--blue); }
/* ES | EN toggle — Oporto's pill switch in Porta Nova purple (Andrea 2026-11-02) */
.lang { display: inline-flex; gap: 0; border: 1px solid var(--blue); border-radius: 999px; padding: 2px; }
.bar-nav .lang > *, .lang > * { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; line-height: 1.2; padding: 5px 10px; border-radius: 999px; color: var(--blue); background: none; text-decoration: none; text-shadow: none; }
.lang [aria-current] { color: #fff; background: var(--blue); }
.lang > * { text-indent: .1em; } /* balances the letter-spacing after the last letter so ES/EN sit centered in the bubble */
.bar-nav .lang a:hover { background: var(--tint); }
.bar.is-solid .bar-nav .lang a { display: inline-block; color: var(--blue); }
.bar.is-solid .bar-nav .lang a:hover { background: var(--tint); }
@media (max-width: 600px) { .legal-page .bar-nav { gap: 10px; } .legal-page .bar-logo { width: 112px; } .legal-page .bar-nav .btn { white-space: nowrap; min-height: 40px; padding: 0 14px; font-size: 12px; } .bar.is-solid .bar-nav .lang a, .lang > * { padding: 5px 8px; } }
/* ES | EN pill on the home pages while the bar is still transparent over the hero: white outline and text (2026-11-02) */
.bar:not(.is-solid) .lang { border-color: rgba(255,255,255,.85); }
.bar:not(.is-solid) .bar-nav .lang a { display: inline-block; color: #fff; }
.bar:not(.is-solid) .bar-nav .lang a:hover { background: rgba(255,255,255,.18); }
.bar:not(.is-solid) .lang [aria-current] { color: var(--blue); background: #fff; }
/* phones: the pill + button must fit on one line on the home bar too (2026-11-02) */
@media (max-width: 600px) { body:not(.legal-page) .bar { gap: 12px; } body:not(.legal-page) .bar-logo { width: 104px; } body:not(.legal-page) .bar-nav { gap: 10px; } body:not(.legal-page) .bar-nav .btn { white-space: nowrap; padding: 0 14px; } }
@media (max-width: 400px) { body:not(.legal-page) .bar-nav { gap: 8px; } body:not(.legal-page) .bar-nav .btn { padding: 0 10px; font-size: 11px; letter-spacing: .04em; } body:not(.legal-page) .bar-nav .lang > * { padding: 4px 6px; font-size: 11px; letter-spacing: .06em; text-indent: .06em; } }

/* ---------- S00 logo lockup: Porta Nova | Mejía Villegas 40 años (client change list, 2026-11-04) ---------- */
.bar .bar-logo { width: auto; display: flex; align-items: center; gap: 14px; }
.bar .bar-logo img { width: auto; height: 37px; }
.bar .bar-logo .bar-mv { height: 17.6px; } /* +10% (Andrea 2026-11-04) */
.lockup-sep { flex: none; width: 1px; height: 28px; background: rgba(31, 36, 32, .28); }
.hero-lockup { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px);
  --lift: calc(var(--r-pad) - var(--bar-mid) - 14px + var(--logo-w) * .1244);
  margin-top: calc(var(--lift) * -1); margin-bottom: calc(var(--gap) + var(--lift)); }
.hero-lockup .hero-logo { margin: 0; }
.hero-lockup .lockup-sep { height: calc(var(--logo-w) * .18); }
.hero-mv { width: calc(var(--logo-w) * .858); height: auto; } /* +10% (Andrea 2026-11-04) */
@media (max-width: 1440px) and (min-width: 1221px) { .bar .bar-logo img { height: 32px; } .bar .bar-logo .bar-mv { height: 15.4px; } .bar .bar-logo { gap: 10px; } }
@media (max-width: 600px) { /* phones: stacked lockup, Mejía Villegas under Porta Nova */
  .bar .bar-logo { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bar .bar-logo img { height: 26px; }
  .bar .bar-logo .bar-mv { height: 9.9px; }
  .bar .bar-logo .lockup-sep { display: none; }
}
@media (max-width: 400px) { .bar .bar-logo img { height: 23px; } .bar .bar-logo .bar-mv { height: 8.8px; } } /* after the 600px block so it wins */
@media (max-width: 380px) { .legal-page .bar-nav { gap: 8px; } .legal-page .bar-nav .btn { padding: 0 11px; font-size: 11px; letter-spacing: .05em; } } /* 360px phones: Spanish header fits */
@media (max-width: 600px) { .hero-lockup { flex-direction: column; align-items: flex-start; gap: 6px; } .hero-lockup .lockup-sep { display: none; } .hero-mv { width: calc(var(--logo-w) * .726); } } /* phones: stacked like the header lockup */
/* ---------- client change list 2026-11-04 ---------- */
.lbl-short { display: none; }
@media (max-width: 600px) { .bar-cta .lbl-long, .cta-bar .lbl-long { display: none; } .bar-cta .lbl-short, .cta-bar .lbl-short { display: inline; } }
/* sticky bar: Conocer disponibilidad is the primary action (purple), then WhatsApp and Agendar visita */
.cta-bar-av { background: var(--blue); color: #fff; }
.cta-bar-av .cta-bar-cal { stroke: #fff; }
@media (max-width: 600px) { .cta-bar a { gap: 6px; padding-inline: 6px; letter-spacing: .08em; font-size: 11px; } .cta-bar svg { width: 15px; height: 15px; } }
/* hero: WhatsApp link + microcopy under the two buttons */
.hero-wa { margin: 16px 0 0; font-size: 15px; font-weight: 600; }
.hero-wa a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: underline; text-underline-offset: 4px; text-shadow: 0 1px 3px rgba(10,20,40,.6), 0 2px 12px rgba(10,20,40,.45); }
.hero-wa a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px rgba(37,211,102,.3); }
.hero-micro { margin: 8px 0 0; font-size: 14px; font-weight: 500; color: #fff; text-shadow: 0 1px 3px rgba(10,20,40,.6), 0 2px 12px rgba(10,20,40,.45); }
