/* Oporto · landing (re-skin of the M6 master landing, same modules and rhythm)
   Brand Voice: #00769F blue, #3FB8E6 light blue (accent only, never text on light), #0B0B0C ink,
   #555555 text gray, #F2F1EE warm gray, white. Type: Inter Tight (headlines) + Inter (body). */

:root {
  --blue: #00769F;       /* primary: buttons, eyebrows, links (5.1:1 on white, 4.5:1 on warm gray) */
  --blue-dark: #005A79;  /* hover/pressed state of the blue (white text stays readable) */
  --sky: #3FB8E6;        /* light blue: lines, dots, gradients only; never text on light */
  --gray: #555555;
  --ink: #0B0B0C;
  --ink-2: #555555;
  --cream: #F2F1EE;      /* warm gray, replaces the master cream */
  --sand: #F2F1EE;       /* warm gray, replaces the master sand (sections alternate with white) */
  --white: #ffffff;
  --error: #B3261E;     /* form errors only (6.6:1 on white); the brand has no red */
  --line: rgba(11, 11, 12, .14);
  --grad: linear-gradient(120deg, var(--blue), var(--sky)); /* accents only, never behind text */

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --brand-shift: 56px; /* how far right the Oporto logo + partner lockup sit as a pair (keeps them off the left edge) */
  --sec-y: clamp(88px, 12vw, 168px);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* headings take their colour from their container (as the design assumes); needed when a host
   theme, e.g. WordPress, sets an explicit h1–h6 colour that would otherwise override by inheritance */
h1, h2, h3, h4, h5, h6 { color: inherit; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

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

/* Never leave a single word alone on the last line of text (Andrea 2026-10-24).
   text-wrap:pretty keeps normal line breaks but pulls a word down to avoid orphans. */
p, li, h1, h2, h3, h4, h5, h6, blockquote, figcaption, dd, dt, .lead, .eyebrow { text-wrap: pretty; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 14px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow--light { color: #fff; }
.h2 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.3vw, 58px); line-height: 1.02;
  letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 28px; max-width: 20ch;
}
.u-none { text-transform: none; } /* m² never becomes M² inside uppercase headlines (V6, chapter 02) */
.u-blue { color: var(--blue); }
.h2--light { color: #fff; }
/* 2026-10-22 PREVIEW: headline in Inter Black (900) instead of Inter Tight Bold */
.h2--black { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-weight: 900; }
.h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 16px; }
.h4 { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin: 22px 0 8px; letter-spacing: -.01em; }
.lead { font-size: clamp(16px, 1.35vw, 19px); font-weight: 300; color: var(--ink-2); max-width: 56ch; margin: 0 0 32px; }
.lead--light { color: rgba(255,255,255,.82); }
.small { font-size: 13.5px; color: var(--ink-2); }
.legal { font-size: 12px; color: var(--gray); margin: 28px 0 0; max-width: 90ch; }
.legal--light { color: rgba(255,255,255,.62); }
.legal--dark { color: #474747; } /* Espacios small print, easier to read (client 2026-10-20) */
.note { display: inline-block; padding: 10px 16px; border-left: 2px solid var(--sky); background: rgba(63,184,230,.12); font-size: 14.5px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; background: none;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 11.5px; }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-dark); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--link-light { color: #fff; padding: 0 8px; }
.btn--link-light:hover { color: var(--blue-dark); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--blue-dark); color: #fff; }
.btn--text { padding: 0 10px; color: var(--ink-2); }
.btn--text:hover { color: var(--blue-dark); }
.play-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); position: relative; }
/* impeccable-disable-next-line border-accent-on-rounded -- this is the CSS play-triangle (▶) drawn with borders, not a border accent on a rounded card */
.play-dot::after { content: ""; position: absolute; left: 11px; top: 9px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.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; text-decoration: underline; font-size: inherit; color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 18px;
  color: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); /* 2026-10-20: padding dropped from the tween (animating layout janks); the 8px compaction now snaps while the backdrop fades */
}
.site-header.is-scrolled {
  background: rgba(242,241,238,.94); backdrop-filter: blur(14px); color: var(--ink);
  padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px;
  box-shadow: 0 1px 0 var(--line);
}
/* text logo until the Oporto SVG arrives: OPORTO + "Un proyecto de Mejía Villegas" (V6 S00) */
.brand { display: inline-flex; flex-direction: column; gap: 4px; flex: none; text-decoration: none; line-height: 1; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: .2em; margin-right: -.2em; transition: font-size .5s var(--ease); }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .9; } /* 2026-10-20: 9.5px→11px (min functional size), tighter tracking keeps the compact look under OPORTO */
.site-header.is-scrolled .brand-word { font-size: 20px; }
/* real Oporto logo (Andrea 2026-10-21): white wordmark over the hero, dark wordmark once the bar turns light */
.brand--logo { flex-direction: row; }
.site-header .brand--logo { margin-left: var(--brand-shift); } /* 2026-10-24: move the Oporto logo + partner lockup right together, off the left edge (Andrea) */
@media (max-width: 760px) { :root { --brand-shift: 24px; } } /* smaller shift on phones so the logo doesn't over-indent */
.brand-logo { height: 41px; width: auto; display: block; } /* 2026-10-27: logo size now SNAPS (was animating height = layout thrash); matches the header-padding snap above, so the whole bar compacts in one beat while the backdrop fades */
.site-header .brand-logo--dark { display: none; }
.site-header.is-scrolled .brand-logo--white { display: none; }
.site-header.is-scrolled .brand-logo--dark { display: block; }
.site-header.is-scrolled .brand-logo { height: 36px; }
.footer-brand .brand-logo { height: 50px; }
.footer-brand .brand-logo--dark { display: none; }
.nav { display: flex; gap: clamp(14px, 1.6vw, 28px); margin-left: auto; margin-right: clamp(16px, 2.4vw, 40px); } /* 2026-10-14: menu sits to the right, away from the logos */
.nav a { font-size: 13px; font-weight: 500; text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.nav a:hover::after, .nav a.is-current::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; opacity: .85; }
.lang button, .lang a { background: none; border: 0; font-size: 11px; font-weight: 600; letter-spacing: .1em; padding: 5px 9px; border-radius: 999px; color: inherit; text-decoration: none; line-height: 1.2; }
.mobile-nav .lang { align-self: flex-start; margin-top: 8px; color: var(--ink); } /* ES | EN in the phone menu (2026-10-19) */
.mobile-nav .lang a { font-size: 13px; letter-spacing: .1em; padding: 8px 14px; }
.mobile-nav .lang .is-active { color: #fff; background: var(--ink); }
.lang .is-active { background: currentColor; }
.lang .is-active { color: var(--blue); background: #fff; }
.site-header.is-scrolled .lang .is-active { color: #fff; background: var(--ink); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-toggle span:first-child { top: 16px; } .menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 0; z-index: 45; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 90px var(--gutter) 40px;
}
.mobile-nav a { font-family: var(--font-head); font-size: 28px; font-weight: 700; text-decoration: none; }
.mobile-nav .btn { margin-top: 20px; align-self: flex-start; }

/* ---------- S01 Hero (sticky + curtain) ---------- */
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; z-index: 0; }
.hero-media { position: absolute; inset: -6% 0 0 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,0) 28%),
    linear-gradient(90deg, rgba(11,11,12,.45) 0%, rgba(11,11,12,0) 55%),
    linear-gradient(0deg, rgba(11,11,12,.88) 0%, rgba(11,11,12,.6) 22%, rgba(11,11,12,.18) 48%, rgba(11,11,12,0) 70%); /* 2026-10-16 client: darker under the small print */
}
.hero-inner {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(28px, 4vw, 48px);
  max-width: 1600px; margin-inline: auto;
}
.hero-eyebrow { margin-bottom: 18px; }
.hero-title {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(44px, 7.6vw, 124px); line-height: .96; letter-spacing: -.035em;
  text-transform: uppercase; margin: 0 0 clamp(28px, 4vw, 48px); max-width: 14ch;
}
/* the eyebrow lives inside the single H1 (V6 7.2); the <br> is for readers only, the span already breaks the line */
.hero-title .hero-eyebrow { display: block; font-family: var(--font); letter-spacing: .32em; line-height: 1.6; }
.hero-title br { display: none; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.28); }
.hero-copy { max-width: 560px; }
.hero-sub { font-size: clamp(16px, 1.4vw, 20px); margin: 0 0 10px; line-height: 1.45; }
.hero-meta { font-size: 13px; color: rgba(255,255,255,.92); margin: 0; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.hero-legal.legal--light { color: rgba(255,255,255,.85); text-shadow: 0 1px 10px rgba(0,0,0,.45); } /* 2026-10-16 client: more contrast on the hero small print */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-legal { margin-top: 18px; font-size: 12px; } /* 2026-10-20: 11px→12px, this is a body/legal sentence, matches .legal */
.scroll-cue { position: absolute; right: var(--gutter); top: 50%; width: 1px; height: 72px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* the rest of the page slides over the hero like a curtain */
.page { position: relative; z-index: 2; background: var(--cream); box-shadow: 0 -30px 60px rgba(0,0,0,.18); }

/* ---------- Sections ---------- */
.sec { padding-block: calc(var(--sec-y) / 2); position: relative; }
.sec--cream { background: var(--cream); }
.sec--sand { background: var(--sand); }
.sec--white { background: var(--white); }
.sec-head { margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.sec-head--split .lead { margin-bottom: 28px; }
/* line break that only appears on phones (hidden on desktop) */
.br-mobile { display: none; }
/* line break that only appears on desktop (hidden on tablet/phone) */
.br-desktop { display: inline; }

/* Placeholder image boxes: blank on purpose (Andrea 2026-10-20). Each slot names its asset in data-asset;
   drop an <img> inside the .ph when the photo arrives. No label text is shown. */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #E2E0DB; /* neutral warm gray, a step darker than the #F2F1EE sections so the slot reads */
}
.ph::after {
  content: attr(data-label); position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #3d3d3d;
}
.ph--dark { background: #3A3A3A; } /* neutral dark slot, used where white text sits on the photo */
.ph--dark::after { color: rgba(255,255,255,.78); }
.ph--blue { background: var(--blue); } /* brand-blue slot (PRECIO FIJO card) */
.ph--blue::after { color: rgba(255,255,255,.78); }
/* on the blue card, drop the heavy dark gradient so the blue reads true; keep a light bottom shade for the copy */
.fcard--blue .fcard-front::after { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,54,73,.42) 100%); }
.g-ref { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.85); padding: 5px 10px; border-radius: 999px; pointer-events: none; } /* "Imagen de referencia" tag on renders (2026-10-14; 10px→11px min size 2026-10-20, tighter tracking) */
.ph--4x5 { aspect-ratio: 4/5; }
.card-img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.ph--16x10 { aspect-ratio: 16/10; }
.ph--fill { position: absolute; inset: 0; border-radius: 0; }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- S02 ---------- */
.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(56px, 7vw, 96px);
}
.statement .fw { color: rgba(11,11,12,.16); transition: color .2s linear; }
.statement .fw.on { color: var(--ink); }
.statement .fw.hl.on { color: var(--blue); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); margin-bottom: 48px; }
.cards3-cta { margin: clamp(24px, 3vw, 36px) 0 clamp(30px, 3.4vw, 42px); } /* 2026-10-22: CTA sits above the 3 cards, like Zinnia */
/* arrows + dots under a swipe carousel (shown only at the sizes where the row becomes a carousel) */
.swipe-nav { display: none; align-items: center; justify-content: center; gap: 18px; margin: -14px 0 40px; }
.swipe-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(11,11,12,.3); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: opacity .3s, background .3s, color .3s; }
.swipe-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.swipe-arrow:not(:disabled):active { background: var(--ink); color: #fff; }
.swipe-arrow:disabled { opacity: .3; cursor: default; }
.swipe-dots { display: flex; gap: 8px; }
/* impeccable-disable-next-line layout-transition -- 6px indicator grows into a 22px pill; the width tween must reflow this tiny dot row (intended) — a transform would overlap neighbours */
.swipe-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(11,11,12,.25); transition: width .35s var(--ease), background .35s; }
.swipe-dots span.is-active { width: 22px; background: var(--blue); }
/* S02 flip cards: hover (or tap) turns the card over; back = same photo blurred + copy */
.fcard { aspect-ratio: 4 / 5; }
.fcard-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.fcard-face { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #fff; box-shadow: 0 24px 50px -26px rgba(11,11,12,.5); display: grid; place-items: center; text-align: center; }
.fcard-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.fcard-front::after, .fcard-back::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.fcard-front { align-items: start; }
.fcard-front .fcard-word { margin-top: 42px; line-height: 1; }
.fcard-front::after { background: linear-gradient(180deg, rgba(11,11,12,.62) 0%, rgba(11,11,12,.4) 16%, rgba(11,11,12,.16) 32%, rgba(11,11,12,0) 46%, rgba(11,11,12,.18) 58%, rgba(11,11,12,.55) 76%, rgba(11,11,12,.78) 100%); } /* darker at the bottom so the copy reads */
.fcard-front .fcard-copy { position: absolute; left: 0; right: 0; bottom: clamp(24px, 2.6vw, 34px); } /* 2026-10-15: copy on the front, no flip */
.fcard-back { transform: rotateY(180deg); }
.fcard-back img { filter: blur(22px) saturate(1.15); transform: scale(1.25); }
.fcard-back::after { background: rgba(11,11,12,.32); }
.fcard-tag { position: absolute; left: 0; right: 0; top: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .92; }
.fcard-tag--b { top: auto; bottom: 18px; }
.fcard-word { font-family: var(--font-head); font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.fcard-copy { padding: 0 clamp(22px, 2.6vw, 38px); }
.fcard-copy .h4 { color: #fff; margin: 0 0 12px; }
.fcard-copy p { margin: 0; color: rgba(255,255,255,.92); font-size: 15.5px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .fcard-inner { transition: none; } }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .ph { transition: transform .8s var(--ease); }
.card:hover .ph { transform: translateY(-6px); }

/* ---------- S03 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::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,12,.78), rgba(11,11,12,0) 60%); }
.panel-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.4vw, 34px); color: #fff; }
.panel-num { display: none; }
.panel h3 { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); margin: 6px 0 0; white-space: nowrap; transition: font-size .6s var(--ease); }
.panel:not(.is-open) h3 { font-size: 19px; }
.panel:not(.is-open) p { max-height: 0; margin: 0; overflow: hidden; }
.panel .ph::after { top: 16px; bottom: auto; color: rgba(255,255,255,.7); }
.panel p { margin: 10px 0 0; max-width: 36ch; font-size: 15px; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.panel.is-open p { opacity: 1; transform: none; transition-delay: .25s; }
.panel:focus-visible { box-shadow: 0 0 0 3px var(--blue); }

/* ---------- S04 sticky stages ---------- */
.stages { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 88px); }
.stages-media { position: sticky; top: 96px; aspect-ratio: 1 / 1; max-height: calc(100vh - 136px); border-radius: var(--radius); overflow: hidden; } /* square, between the old full-height and 6:5 (Andrea 2026-10-13) */
.stage-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
.stage-img.is-active { opacity: 1; transform: none; }
.stage-dots { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; z-index: 2; }
/* impeccable-disable-next-line layout-transition -- 6px stage dot grows into a 26px vertical pill; the height tween repositions this tiny dot stack (intended) — a transform would overlap neighbours */
.stage-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,118,159,.45); transition: height .5s var(--ease); box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.stage-dots .is-active { height: 26px; border-radius: 4px; background: var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.55); }
.stage { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 40px; opacity: .28; transition: opacity .6s var(--ease); }
.stage.is-active { opacity: 1; }
.stage p { color: var(--ink-2); max-width: 44ch; margin: 0 0 28px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; margin-bottom: 22px; }
.stage-mobile-img { display: none; }

/* ---------- S05 types ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 32px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 500; transition: all .3s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips-count { margin-left: auto; font-size: 13px; color: var(--gray); }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.type { position: relative; aspect-ratio: 4 / 6.2; border-radius: 26px; overflow: hidden; background: var(--sand); isolation: isolate; box-shadow: 0 24px 50px -28px rgba(11,11,12,.45); }
.type.is-out { display: none; }
.type-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 0%; transform: scale(1.02); transition: transform 1.4s var(--ease); z-index: -2; }
.type:hover .type-img { transform: scale(1.08); }
.type-pill { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.type-zoom { position: absolute; right: 14px; top: 14px; 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; transition: background .3s, color .3s; }
.type-zoom:hover { background: #fff; color: var(--ink); }
.type-zoom svg, .type-icons svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* lower half: the photo itself blurs in (progressive mask), with a light shade so white text reads */
.type-glass { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 18px 18px; color: #fff; 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(11,11,12,0) 0%, rgba(11,11,12,.22) 30%, rgba(11,11,12,.45) 100%); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); -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-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.type-loc { margin: 4px 0 0; white-space: nowrap; font-size: 13px; font-weight: 500; opacity: .9; }
.type-price { text-align: right; font-size: 17px; font-weight: 600; letter-spacing: -.01em; 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: 14px 0 0; padding: 0; display: flex; gap: 18px; font-size: 14px; font-weight: 500; }
.type-icons li { display: inline-flex; align-items: center; gap: 6px; }
.type-stats { display: grid; grid-template-columns: 1fr 1fr auto; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.3); font-size: 14px; font-weight: 600; white-space: nowrap; }
.type-stats > div { padding-right: 8px; }
.type-stats > div + div { padding-left: 8px; border-left: 1px solid rgba(255,255,255,.3); }
.type-stats small { display: block; font-size: 11px; font-weight: 500; opacity: .85; margin-bottom: 3px; }
.type-plan { align-self: center; border: 0; border-radius: 999px; background: #fff; color: var(--ink); padding: 9px 11px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-shadow: none; transition: background .3s, color .3s; } /* 2026-10-20: 9.5px→11px min size, tighter tracking keeps the small pill */
.type-plan:hover { background: var(--blue-dark); color: #fff; }
/* plan viewer */
.plan-box { width: min(1080px, 100%); padding: 28px; }
.plan-view { position: relative; display: grid; place-items: center; background: #fff; }
.plan-img { display: block; width: 100%; max-height: 62vh; object-fit: contain; }
.plan-view .lb-nav { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.plan-prev { left: -6px; } .plan-next { right: -6px; }
.plan-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 12px; }
.plan-title { margin: 0 0 6px; font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.plan-meta { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }
.plan-extra { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-2); }
.plan-extra li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.plan-side { text-align: right; flex-shrink: 0; }
.plan-price { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.plan-price b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); }

.siteplan-head { margin: clamp(80px, 9vw, 130px) 0 28px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.siteplan-head p { color: var(--ink-2); max-width: 46ch; margin: 0; }
.siteplan { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/8; background: var(--sand); }
.siteplan-stage { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.siteplan-stage:active { cursor: grabbing; }
.siteplan-canvas { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .5s var(--ease); }
.siteplan-canvas.is-dragging { transition: none; }
.hotspot {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 0 rgba(0,118,159,.5);
  animation: pulse 2.4s infinite; z-index: 2;
}
.hotspot--alt { background: var(--blue-dark); }
.hotspot.is-active { background: var(--ink); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(0,118,159,0); } 100% { box-shadow: 0 0 0 0 rgba(0,118,159,0); } }
.siteplan-ui { position: absolute; right: 16px; top: 16px; display: grid; gap: 6px; z-index: 3; }
.siteplan-ui button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.siteplan-tip { position: absolute; left: 16px; bottom: 16px; z-index: 3; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.12); max-width: 320px; }
.siteplan-tip strong { display: block; font-weight: 600; }
.siteplan-tip span { font-size: 13.5px; color: var(--ink-2); }

/* ---------- S06 gallery ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.tab { background: none; border: 0; padding: 12px 4px; margin-right: 22px; font-size: 14px; font-weight: 500; color: var(--gray); position: relative; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }
.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-track { display: flex; gap: 18px; width: max-content; padding-bottom: 6px; }
/* Avance de obra stills: warm tone to match the rest of the site's renders (gallery + lightbox) */
.ph[data-asset^="s06-avance-"] img { filter: sepia(.30) saturate(1.35) hue-rotate(-8deg) brightness(1.04) contrast(1.02); }
.g-item { position: relative; flex: none; width: clamp(300px, 36vw, 540px); aspect-ratio: 16/10; border: 0; padding: 0; background: none; text-align: left; animation: gIn .7s var(--ease) both; }
.g-item.g-item--wide { align-self: center; } /* all landscape now (Andrea 2026-10-20); --wide kept only for centering */
.g-item .ph { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.g-item:hover .ph { transform: scale(.98); }
@keyframes gIn { from { opacity: 0; transform: translateX(40px); } }
.gallery-foot { margin-top: 22px; }
.swipe-nav--gallery { display: flex; margin: 26px 0 0; transition: opacity .6s var(--ease); } /* gallery arrows + dots, every screen size (client, 2026-10-16) */
/* opening deck (from the master, 2026-10-19): photos stacked for 2 s, then they spread out (main.js) */
.gallery.is-deck { overflow: visible; cursor: default; } /* let the tilted pile show fully, not clipped by the box (Andrea 2026-10-20) */
.gallery.is-deck .g-item, .gallery.is-deck-go .g-item { animation: none; }
.gallery.is-deck .g-item { pointer-events: none; }
.gallery.is-deck .g-item .g-img, .gallery.is-deck .g-item .ph { box-shadow: 0 18px 40px rgba(11,11,12,.22); }
.gallery.is-deck-go .g-item { transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
.swipe-nav--gallery.is-deck { opacity: 0; pointer-events: none; }
.drag-hint { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }

/* ---------- S07 tour ---------- */
.tour { position: relative; min-height: 64vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.tour .ph { border-radius: 0; }
.tour-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.tour-bg--360 { border: 0; pointer-events: none; background: #1a1b1d; height: 150%; top: -50%; bottom: auto; } /* live 360 preview; non-interactive so it never traps scroll — the button opens it fullscreen. Taller + shifted up so the preview shows more floor/view and less ceiling */
.tour-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,.55), rgba(11,11,12,0) 70%), linear-gradient(0deg, rgba(11,11,12,.6), rgba(11,11,12,.12) 70%); }
.tour-inner { position: relative; padding-block: calc(var(--sec-y) / 2) clamp(40px, 5vw, 64px); }
.i360 { font-size: 11px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 2px 7px; letter-spacing: .05em; }

/* ---------- S08 env ---------- */
.env { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.places { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.place { position: relative; display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); transition: transform .4s var(--ease), color .4s; cursor: default; } /* 2026-10-20: nudge on hover via transform, not padding, so the row doesn't reflow */
.place:hover { transform: translateX(10px); }
.place:hover .place-min { color: var(--blue); }
.place-min { font-size: 14px; color: var(--ink-2); transition: color .3s; }
.place-min b { font-family: var(--font-head); font-size: 34px; font-weight: 700; color: inherit; letter-spacing: -.03em; margin-right: 2px; }
.place:hover .place-min b { color: var(--blue); }
.place-name { font-weight: 500; }
.place-km { font-size: 13px; color: var(--gray); }
/* route line + driving car under each place, in blue (like Zinnia's, our colors) */
.place-route { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--len, 20%); background: linear-gradient(90deg, var(--blue), var(--sky)); border-radius: 2px; }
.place-car { position: absolute; left: 0; bottom: -1px; color: var(--blue); line-height: 0; transform: translate(-30%, 50%); animation: place-drive var(--dur, 3.2s) var(--ease) infinite; }
.place-car svg { width: 30px; height: auto; display: block; }
@keyframes place-drive { 0% { left: 0; opacity: 0; } 7% { opacity: 1; } 60% { left: var(--len); } 82% { left: var(--len); opacity: 1; } 90% { opacity: 0; } 100% { left: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .place-car { animation: none; left: var(--len); opacity: 1; } }
.env-map { position: sticky; top: 100px; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.env-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); }
/* info card over the map (Oporto's place details + open/directions) */
.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(11,11,12,.18); padding: 15px 17px; }
.map-card-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); margin: 0 0 6px; }
.map-card-addr { font-size: 12.5px; line-height: 1.45; color: var(--gray); margin: 0 0 14px; }
.map-card-actions { display: flex; align-items: center; gap: 10px; }
.map-card-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 999px; text-decoration: none; transition: background .3s; }
.map-card-btn:hover { background: var(--blue-dark); }
.map-card-btn svg { width: 16px; height: 16px; }
.map-card-dir { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--blue); text-decoration: none; transition: background .3s; }
.map-card-dir:hover { background: var(--cream); }
.map-card-dir svg { width: 18px; height: 18px; }
.env .row-btns { margin-top: 24px; }

/* ---------- S09 film ---------- */
.film { background: var(--ink); color: #fff; padding-block: var(--sec-y); overflow: hidden; }
.film-head { margin-bottom: 56px; }
.film-frame-wrap { padding-inline: var(--gutter); }
.film-frame {
  position: relative; display: block; width: 100%; max-width: 1600px; margin: 0 auto; aspect-ratio: 16/9; border: 0; padding: 0;
  border-radius: var(--radius); overflow: hidden; background: #000; cursor: none; transform-origin: 50% 50%;
}
.film-frame .ph { border-radius: 0; }
.film-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-cursor {
  position: absolute; left: 50%; top: 50%; width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; pointer-events: none;
  transition: transform .4s var(--ease);
}
.film-frame:hover .film-cursor { transform: scale(1.08); }
.film-cursor { transition: transform .4s var(--ease), opacity .3s; }
.film-frame.is-playing .film-cursor { opacity: 0; }
.film-foot { margin-top: 48px; text-align: center; }

/* ---------- S10 backing ---------- */
.backing { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(24px, 4vw, 56px); margin: 8px 0 40px; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(44px, 5vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--blue); } /* solid blue: the light-blue end of the gradient fails contrast on light */
.stat > span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.marquee { margin-top: clamp(64px, 8vw, 120px); overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: clamp(36px, 6vw, 88px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.marquee-track img { width: clamp(36px, 4vw, 60px); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } } /* 2026-10-20: explicitly stop the "El respaldo se construye" loop (the tour-cover-bar loop is stopped below) */

/* ---------- S11 simulator ---------- */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.sim-card { background: #fff; border-radius: 24px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 80px rgba(11,11,12,.08); }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }
.field output { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 15px; }
select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 40px 13px 14px; appearance: none; -webkit-appearance: none; width: 100%;
  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;
}
/* stage picker: the visible box wraps long options onto two lines; the real select sits invisibly on top so tapping still opens the phone's own picker */
.sim-select { position: relative; }
.sim-select-label { display: block; font-size: 15px; line-height: 1.4; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 40px 13px 14px; min-height: 48px;
  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; }
.sim-select select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sim-select:focus-within .sim-select-label { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,11,12,.12); }
@media (max-width: 600px) { .sim-select-note { display: block; } .sim-select-label { font-size: 14px; padding-right: 36px; } } /* phones: "(30% en 5 meses)" on its own line; first part fits one line */
input[type=range] { width: 100%; accent-color: var(--blue); height: 28px; }
.sim-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 14px; }
.sim-out div { background: var(--cream); border-radius: 14px; padding: 16px; }
.sim-out span { display: block; font-size: 12px; color: var(--ink-2); }
.sim-out b { font-family: var(--font-head); font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.sim-note { font-size: 13px; color: var(--ink-2); margin: 0; }

/* ---------- Forms ---------- */
.split-form { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.form { display: grid; gap: 18px; }
.form--card { background: #fff; border-radius: 24px; padding: clamp(24px, 3vw, 44px); box-shadow: 0 30px 80px rgba(11,11,12,.08); overflow: hidden; }
.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); }
.fl small, .seg small, .check small { display: none; color: var(--error); font-size: 12px; margin-top: 6px; }
.fl.is-error input { border-color: var(--error); }
.fl.is-error small, .seg.is-error small, .check.is-error small { display: block; }
.seg { border: 0; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; cursor: pointer; transition: all .3s var(--ease); }
.seg label input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg label input:focus-visible + span { box-shadow: 0 0 0 3px var(--blue-dark); }
.seg small { flex-basis: 100%; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 13px; 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; }
.form .btn[type=submit], .form [data-next] { justify-self: start; }
.form-ok { background: var(--sand); border-radius: 12px; padding: 16px; margin: 0; }
.progress { position: relative; height: 3px; background: var(--sand); border-radius: 3px; margin-bottom: 18px; }
.progress-bar { position: absolute; inset: 0 50% 0 0; background: var(--grad); 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: var(--gray); }
.form--card[data-at="2"] .progress-bar { right: 0; }
.step { display: none; gap: 18px; }
.step.is-active { display: grid; animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .field > span { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.step--done { text-align: center; justify-items: center; padding: 30px 0; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); animation: spinIn 1.2s var(--ease); } /* replaces the master flower */
@keyframes spinIn { from { transform: rotate(-120deg) scale(.4); opacity: 0; } }

/* ---------- S14 WhatsApp band ---------- */
.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: 32px; flex-wrap: wrap; }
.wa-inner p { margin: 0 0 6px; max-width: 60ch; }
.wa-inner .h3 { margin-bottom: 10px; }
/* Fixed contact bar: WhatsApp · Agendar (client v5, 2026-10-16; Andrea chose the full-width strip, Option B). A strip along the bottom edge on every screen size */
.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);
  /* slides up once the hero (which has its own buttons) is scrolled past, so it never sits on the hero text */
  transform: translateY(100%); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cta-bar.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.cta-bar a, .cta-bar button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 0;
  height: calc(64px + env(safe-area-inset-bottom, 0px)); padding: 0 10px env(safe-area-inset-bottom, 0px);
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #fff; text-decoration: none; cursor: pointer;
  transition: filter .3s var(--ease);
}
.cta-bar a:hover, .cta-bar button:hover { filter: brightness(1.12); }
.cta-bar svg { width: 20px; height: 20px; flex: none; }
.cta-bar-wa { background: var(--ink); }
.cta-bar-wa svg { color: #25d366; }
.cta-bar-ag { background: var(--blue); }
.cta-bar-cal { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } /* room for the bar, so it never covers the footer */
body .cookies { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } /* sits above the bar */

/* ---------- S15 FAQ ---------- */
.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-family: var(--font-head); font-size: clamp(16px, 1.4vw, 19px); font-weight: 700; }
.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-a { overflow: hidden; }
.faq-a p { margin: 0 0 24px; color: var(--ink-2); max-width: 68ch; }

/* ---------- S16 closing ---------- */
.closing { position: relative; background: var(--cream); padding-block: clamp(120px, 16vw, 220px); text-align: center; overflow: hidden; }
/* the logo's real double arch behind the text (decoration only): grows from
   small to full size, scrubbed by scroll (see main.js), like the hero arch. */
.closing-arch { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: -1;
  width: min(74vw, 600px); height: auto; opacity: 0; pointer-events: none; transform-origin: 50% 50%; }
.closing-arch path { fill: var(--blue); }
@media (prefers-reduced-motion: reduce) { .closing-arch { opacity: .12; transform: scale(1.2); } }
.closing-inner { position: relative; isolation: isolate; }
.closing .h2 { margin-inline: auto; max-width: 20ch; }
.closing .lead { margin-inline: auto; color: var(--ink); }

/* ---------- Footer ---------- */
.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; }
.footer-logo { width: 150px; margin-bottom: 18px; }
.footer h3 { color: #fff; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin: 0 0 14px; } /* 2026-10-20: footer column titles are h3 (not h4) so the heading order after the closing h2 doesn't skip a level; size set by class, look unchanged */
.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,.5); }

/* ---------- Modals / lightbox / cookies ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(11,11,12,.72); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; background: #fff; border-radius: 24px; padding: 40px; width: min(720px, 100%); max-height: 90vh; overflow: auto; }
.modal-box--full { width: 100%; height: 100%; max-height: none; padding: 0; overflow: hidden; }
.modal-box--video { width: min(1200px, 100%); aspect-ratio: 16/9; padding: 0; overflow: hidden; background: #000; }
.modal-box--video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.seg--tabs { margin: 8px 0 20px; }
.seg--tabs button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 9px 18px; font-size: 13.5px; }
.seg--tabs .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.lb-stage { width: min(1200px, 86vw); aspect-ratio: 3/2; position: relative; }
.lb-stage .ph { position: absolute; inset: 0; }
.lb-stage .ph img { object-fit: contain; }
.lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 0; background: #fff; font-size: 28px; line-height: 1; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.cookies {
  position: fixed; left: 20px; bottom: calc(20px + 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: stepIn .6s var(--ease);
}
.cookies p { margin: 0 0 16px; color: var(--ink-2); }
.cookies-prefs { display: grid; gap: 10px; margin-bottom: 16px; }
.cookies .btn { --h: 40px; padding: 0 16px; font-size: 11px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .types { grid-template-columns: repeat(2, 1fr); }
  /* phones: tighten the big gaps around the split-head paragraph, and left-align the price under the tower buttons */
  .sec-head--split { gap: 16px; margin-bottom: 22px; }
  .sec-head--split h2 { margin-bottom: 6px; }
  .sec-head--split .lead { margin-bottom: 10px; }
  .br-mobile { display: inline; }
  .br-desktop { display: none; }
  /* "The real Oporto" head: pull the paragraph tight to the headline and the tabs */
  #galeria .sec-head--split { gap: 10px; margin-bottom: 14px; }
  #galeria .sec-head--split .lead { margin-bottom: 0; }
  /* "The film" head: pull the paragraph tight to the headline and the video */
  .film-head { margin-bottom: 26px; }
  .film-head h2 { margin-bottom: 12px; }
  .film-head .lead { margin-bottom: 0; }
  /* "Let's talk" head: pull the paragraph tight to the headline and the form */
  #formulario .split-form { row-gap: 20px; }
  #formulario .split-form h2 { margin-bottom: 12px; }
  #formulario .split-form .lead { margin-bottom: 0; }
  /* closing section: less empty space above the headline and below the CTAs */
  .closing { padding-top: 56px; padding-bottom: 60px; }
  .chips-count { margin-left: 0; }
  /* room above the floor plan so the upward "3" speech bubble isn't clipped by the card above */
  .apt-plan { padding-top: 64px; }
  .siteplan--plan { overflow: visible; }
  /* nudge pin 2's bubble right so it clears the left screen edge; keep its pointer on the pin */
  .siteplan--plan .hotspot[data-pin="2"] .bubble { margin-left: 30px; }
  .siteplan--plan .hotspot[data-pin="2"] .bubble::before { margin-left: -30px; }
  /* cut the big gray gap under the Tower-2 button so "The apartment" moves up */
  #torres { padding-bottom: 22px; }
  #torres .stage { padding-bottom: 18px; }
  /* trim the gray gap under the card carousel so "Why Oporto" moves up */
  #proyecto { padding-bottom: 20px; }
  #proyecto .swipe-nav--cards { margin-bottom: 14px; }
  /* "How Oporto is laid out": less space above, and headline close to its paragraph */
  .siteplan-head { gap: 10px; margin-top: 36px; margin-bottom: 12px; }
  .siteplan-head h3 { margin-bottom: 0; }
  /* aerial: let the upward pin bubbles show (was clipped), with room above so they clear the paragraph */
  .siteplan#implantacion { overflow: visible; padding-top: 40px; }
  /* "Areas are approximate…" sits closer to the image */
  .siteplan#implantacion + .legal { margin-top: 10px; }
}
@media (max-width: 900px) {
  .header-actions .btn, .header-actions .lang { display: none; }
  .sec-head--split, .env, .backing, .sim, .split-form, .faq-wrap { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .cards3 .ph--4x5 { aspect-ratio: 4/3; }
  .fcard { max-width: 420px; width: 100%; justify-self: center; }
  /* 2026-10-15 client: on phones/tablets the cards scroll sideways instead of stacking (next card peeks in) */
  .cards3.cards3--flip { display: flex; flex-direction: row; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 30px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cards3.cards3--flip::-webkit-scrollbar { display: none; }
  .cards3--flip .fcard { flex: 0 0 min(78vw, 340px); max-width: none; scroll-snap-align: start; }
  .swipe-nav--cards { display: flex; }
  .cards3.cards3--flip ~ .btn.btn { display: flex; width: fit-content; align-self: center; margin-inline: auto; } /* CTA under the cards centered (2026-10-15) */
  .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; }
  .stages { grid-template-columns: 1fr; }
  .stages-media { display: none; }
  .stage { min-height: 0; opacity: 1; padding-block: 0 56px; }
  .stage-mobile-img { display: block; width: 100%; margin-bottom: 22px; }
  .env-map { position: relative; top: 0; aspect-ratio: 4/3; }
  .faq-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .siteplan { aspect-ratio: 4/3; }
  .film-frame { cursor: pointer; }
}
@media (max-width: 600px) {
  .cta-bar a, .cta-bar button { height: calc(58px + env(safe-area-inset-bottom, 0px)); font-size: 11px; letter-spacing: .12em; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  body .cookies { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .hero-shade { background: linear-gradient(0deg, rgba(11,11,12,.88) 0%, rgba(11,11,12,.45) 65%, rgba(11,11,12,.55) 100%); }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-ctas .btn--link-light { flex: 0 0 100%; justify-content: flex-start; }
  .scroll-cue { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .sim-out { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .place { grid-template-columns: 80px 1fr; }
  .place-km { grid-column: 2; margin-top: -10px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .lb-nav { display: none; }
  .plan-box { padding: 18px; }
  .plan-view .lb-nav { display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; font-size: 22px; }
  .plan-info { flex-direction: column; align-items: stretch; }
  .plan-side { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
.btn--link-light:hover .play-dot { background: var(--blue-dark); border-color: var(--blue-dark); }

/* Room count: double-bed icon + number (Andrea's sample, 2026-10-11) */
.ico-bed { display: inline-block; width: 1.35em; height: 1.35em; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11V6.5A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V11'/%3E%3Crect x='6.5' y='7.5' width='4.5' height='3.5' rx='1'/%3E%3Crect x='13' y='7.5' width='4.5' height='3.5' rx='1'/%3E%3Cpath d='M2.5 18v-4.5A2.5 2.5 0 0 1 5 11h14a2.5 2.5 0 0 1 2.5 2.5V18Z'/%3E%3Cpath d='M2.5 18v2M21.5 18v2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11V6.5A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V11'/%3E%3Crect x='6.5' y='7.5' width='4.5' height='3.5' rx='1'/%3E%3Crect x='13' y='7.5' width='4.5' height='3.5' rx='1'/%3E%3Cpath d='M2.5 18v-4.5A2.5 2.5 0 0 1 5 11h14a2.5 2.5 0 0 1 2.5 2.5V18Z'/%3E%3Cpath d='M2.5 18v2M21.5 18v2'/%3E%3C/svg%3E") center / contain no-repeat; }
.beds { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.type-icons .ico-bed { width: 19px; height: 19px; }
.plan-beds { margin-left: 10px; font-size: 18px; color: var(--ink-2); }
.fcard-tag .beds { font-size: 15px; }

/* Footer social icons (2026-10-11) */
.social { display: flex; gap: 12px; margin: 0 0 16px; }
.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-dark); border-color: var(--blue-dark); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }


/* S03 panel photos */
.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:has(.panel-img)::after { background: linear-gradient(0deg, rgba(11,11,12,.86) 0%, rgba(11,11,12,.5) 30%, rgba(11,11,12,0) 62%); }
.panel-img { object-position: 70% center; }


/* S04 stage photos */
.stage-img img { width: 100%; height: 100%; object-fit: cover; }
img.stage-mobile-img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.stage-mobile-wrap { position: relative; padding: 0; background: transparent; }
.stage-mobile-wrap img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: transparent; border-radius: var(--radius); }

/* S08 route lines (Andrea chose option A, 2026-10-12) */
.place { position: relative; }
.place::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--d, 0); background: var(--sky); transform: scaleX(0); transform-origin: left; }
.place-dot { position: absolute; bottom: 1px; left: 0; width: 22px; height: 11px; background: var(--sky); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath fill-rule='evenodd' d='M1 9.2V7.6c0-.6.4-1.1 1-1.2l3.6-.7 3-3.2c.5-.5 1.1-.8 1.8-.8h5.4c.7 0 1.3.3 1.8.8l2.9 3.1 2.6.4c.9.2 1.5.9 1.5 1.8v1.4c0 .4-.3.7-.7.7h-1.6a2.6 2.6 0 0 0-5.2 0H9.4a2.6 2.6 0 0 0-5.2 0H1.7c-.4 0-.7-.3-.7-.7ZM9.9 3.3 7.6 5.6h4.6V3.1H10.6c-.3 0-.5.1-.7.2Zm3.6-.2v2.5h5l-2.1-2.3c-.2-.1-.4-.2-.7-.2Z'/%3E%3Ccircle cx='6.8' cy='9.9' r='1.9'/%3E%3Ccircle cx='19.2' cy='9.9' r='1.9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath fill-rule='evenodd' d='M1 9.2V7.6c0-.6.4-1.1 1-1.2l3.6-.7 3-3.2c.5-.5 1.1-.8 1.8-.8h5.4c.7 0 1.3.3 1.8.8l2.9 3.1 2.6.4c.9.2 1.5.9 1.5 1.8v1.4c0 .4-.3.7-.7.7h-1.6a2.6 2.6 0 0 0-5.2 0H9.4a2.6 2.6 0 0 0-5.2 0H1.7c-.4 0-.7-.3-.7-.7ZM9.9 3.3 7.6 5.6h4.6V3.1H10.6c-.3 0-.5.1-.7.2Zm3.6-.2v2.5h5l-2.1-2.3c-.2-.1-.4-.2-.7-.2Z'/%3E%3Ccircle cx='6.8' cy='9.9' r='1.9'/%3E%3Ccircle cx='19.2' cy='9.9' r='1.9'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; }
.places.is-routed .place-dot i { display: none; }
.places.is-routed .place::after { animation: route-draw var(--t) cubic-bezier(.6,.05,.25,1) var(--delay) forwards; }
.places.is-routed .place-dot { animation: route-ride var(--t) cubic-bezier(.6,.05,.25,1) var(--delay) forwards; }
@keyframes route-draw { to { transform: scaleX(1); } }
@keyframes route-ride { 0% { opacity: 1; left: 0; transform: translateY(0); } 25% { transform: translateY(-.6px); } 50% { transform: translateY(0); } 75% { transform: translateY(-.6px); } 100% { opacity: 1; left: calc(var(--d) - 22px); transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .places.is-routed .place::after, .places.is-routed .place-dot { animation: none; }
  .places.is-routed .place::after { transform: scaleX(1); }
  .places.is-routed .place-dot { opacity: 1; left: calc(var(--d) - 22px); }
}

/* S10 Respaldo photo */
.backing-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* S05 site plan · aerial photo + brand-color bubbles that pop open with the text */
.siteplan { aspect-ratio: 16/10; }
.siteplan-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.siteplan .hotspot { --c: var(--blue); --fg: #fff; background: var(--c); color: var(--fg); animation: none; padding: 0; overflow: visible;
  box-shadow: 0 0 0 4px rgba(255,255,255,.55), 0 6px 18px rgba(0,0,0,.25); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.siteplan .hotspot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); opacity: .5; animation: bubble-ping 2.6s ease-out infinite; z-index: -1; }
.hotspot--ink { --c: var(--ink) !important; }
.siteplan .hotspot:hover, .siteplan .hotspot:focus-visible, .siteplan .hotspot.is-active { transform: scale(1.12); z-index: 4; }
.siteplan .hotspot.is-active::before { animation: none; opacity: 0; }
.hotspot-num { position: relative; }
.bubble { position: absolute; top: 50%; left: calc(100% + 12px); width: max-content; max-width: 230px; text-align: left;
  background: var(--c); color: var(--fg); border-radius: 18px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.22);
  font-weight: 400; line-height: 1.35; pointer-events: none;
  transform-origin: left center; transform: translateY(-50%) scale(calc(.4 / var(--z, 1))); opacity: 0;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .2s ease; }
.bubble::before { content: ""; position: absolute; top: 50%; left: -6px; width: 14px; height: 14px; background: inherit; border-radius: 3px; transform: translateY(-50%) rotate(45deg); }
.bubble strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.bubble span { display: block; font-size: 13px; opacity: .92; }
.hotspot[data-side="left"] .bubble { left: auto; right: calc(100% + 12px); transform-origin: right center; }
.hotspot[data-side="left"] .bubble::before { left: auto; right: -6px; }
.siteplan .hotspot.is-active .bubble { opacity: 1; transform: translateY(-50%) scale(calc(1 / var(--z, 1))); }
/* "top": the bubble opens above the number, so it never covers the outlined towers (2026-10-19) */
.hotspot[data-side="top"] .bubble { top: auto; bottom: calc(100% + 12px); left: 50%; right: auto; transform-origin: center bottom; transform: translateX(-50%) scale(calc(.4 / var(--z, 1))); }
.hotspot[data-side="top"] .bubble::before { top: auto; bottom: -6px; left: 50%; right: auto; transform: translateX(-50%) rotate(45deg); }
.siteplan .hotspot[data-side="top"].is-active .bubble { transform: translateX(-50%) scale(calc(1 / var(--z, 1))); }
.hotspot[data-side="top-end"] .bubble { top: auto; bottom: calc(100% + 12px); left: auto; right: -8px; transform-origin: right bottom; transform: scale(calc(.4 / var(--z, 1))); }
.hotspot[data-side="top-end"] .bubble::before { top: auto; bottom: -6px; left: auto; right: 18px; transform: rotate(45deg); }
.siteplan .hotspot[data-side="top-end"].is-active .bubble { transform: scale(calc(1 / var(--z, 1))); }
@keyframes bubble-ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
@media (max-width: 720px) {
  .siteplan { aspect-ratio: 16/10; }
  .siteplan .hotspot { width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 12px; }
  .bubble { max-width: 160px; padding: 9px 12px; border-radius: 14px; }
  .bubble strong { font-size: 13px; }
  .bubble span { font-size: 11.5px; }
  .siteplan-ui { top: auto; right: auto; left: 10px; bottom: 10px; display: flex; gap: 6px; }
  .siteplan-ui button { width: 32px; height: 32px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .siteplan .hotspot::before { animation: none; } .bubble { transition: opacity .2s; } }

/* Respaldo stats: label centered under its number (margin offsets the trailing letter-spacing) */
.stat { text-align: center; }
.stat > span { display: block; margin-right: -.18em; padding-left: clamp(24px, 2.7vw, 39px); } /* skip the "+" so the label sits under the digits */


/* Oporto real gallery: photos replace the blank slots */
.g-item .g-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius); transition: transform .8s var(--ease); user-select: none; }
/* photo caption: small white name over a soft dark fade at the bottom (client 2026-10-19) */
.g-item--photo { position: relative; }
.g-item--photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(180deg, rgba(11,11,12,0) 0%, rgba(11,11,12,.55) 100%); pointer-events: none; }
.g-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.35); pointer-events: none; }
.g-item:hover .g-img { transform: scale(.98); }
.lb-stage .lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 360° tour window: Oporto frame around the panoee tour (the tour itself lives on their site, so its inside keeps their look) */
.modal--tour { display: block; padding: 0; background: var(--ink); 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,.08); }
.tour-bar-brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.tour-bar-brand .brand-word { font-size: 20px; }
.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; overflow: hidden; text-overflow: ellipsis; }
.tour-bar-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.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-bar-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tour-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tour-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-cover { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; color: #fff; transition: opacity .7s var(--ease), visibility .7s; }
.tour-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-cover::after { content: ""; position: absolute; inset: 0; background: rgba(11,11,12,.6); }
.tour-cover-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; }
.tour-cover-num { font-family: var(--font-head); font-size: clamp(64px, 10vw, 128px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.tour-cover-text { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.tour-cover-bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.tour-cover-bar::before { content: ""; display: block; width: 40%; height: 100%; background: var(--blue); animation: tour-load 1.4s var(--ease) infinite; }
@keyframes tour-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.tour-stage.is-ready .tour-cover { opacity: 0; visibility: hidden; }
@media (max-width: 640px) {
  .tour-bar { height: 60px; }
  .tour-bar-brand { gap: 12px; }
  .tour-bar-brand .brand-word { font-size: 16px; }
  .tour-bar-title { padding-left: 12px; font-size: 10.5px; letter-spacing: .14em; }
  .tour-bar .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tour-cover-bar::before { animation: none; width: 100%; } }



/* ======================================================================
   Oporto additions (2026-10-20): pieces the Oporto V6 needs on top of the master
   ====================================================================== */

/* internal review notes from the V6 ("validar con legal", "cifra pendiente"). Remove before launch */
.flag { display: inline-block; padding: 2px 8px; border: 1px dashed #A07800; border-radius: 6px; background: #FFF4D6; color: #5C4300;
  font: 600 11px/1.4 var(--font); letter-spacing: 0; text-transform: none; white-space: nowrap; vertical-align: middle; text-shadow: none; }
.panel-flag { position: absolute; z-index: 2; left: 16px; top: 16px; }
.fcard-tag .flag { white-space: normal; max-width: 80%; }
.faq summary .flag { margin-top: 8px; }

/* hero: the claim is its own line inside the H1 */
.hero-claim { display: block; }
.hero-claim .w:first-child { display: block; } /* "Avanzar" on its own line, rest wraps to line 2 (Andrea 2026-10-21) */
.hero-claim .w:first-child > span { color: var(--blue); }

/* blank image slots inside the master's photo spots */
.fcard-img { position: absolute; inset: 0; z-index: -1; border-radius: 0; }
.panel-img.ph, .type-img.ph, .siteplan-img.ph, .tour-bg.ph { border-radius: 0; }
.stage-mobile-img.ph { aspect-ratio: 16 / 10; }
.stage-img .g-ref, .stage-mobile-img .g-ref { top: 14px; left: 14px; }
.backing-img.ph { width: 100%; }
.lb-stage .ph { border-radius: var(--radius); }

/* S03 with 6-7 panels: closed titles may wrap, the open one gets more room */
.panels--many .panel.is-open { flex-grow: 3.2; }
.panels--many .panel:not(.is-open) .panel-body { padding: 20px 16px; }
.panels--many .panel:not(.is-open) h3 { white-space: normal; font-size: 17px; line-height: 1.15; }
.panel-link { color: #fff; font-weight: 600; text-underline-offset: 3px; }
/* card 1 (Precio fijo) stands out in brand blue (V6) */
.panel.panel--feature::after { background: linear-gradient(0deg, rgba(0,90,121,.96) 0%, rgba(0,90,121,.7) 40%, rgba(0,90,121,.25) 100%); }
.panel--feature h3 { color: #fff; }

/* S04 stage buttons side by side */
.stage .row-btns { gap: 8px 18px; }
.stage .btn--text { color: var(--blue); padding: 0 4px; text-decoration: underline; text-underline-offset: 4px; }
.stage .btn--text:hover { color: var(--blue-dark); }

/* S05 apartment: overlay card + plan with scenes */
.apt { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.apt .type { width: 100%; }
.type-plan:hover { background: var(--blue); color: #fff; }
.siteplan--plan { aspect-ratio: 5150 / 3563; background: #fff; }
.siteplan--plan .siteplan-ui button { font-size: 16px; }
.scenes { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scenes li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding-top: 14px; border-top: 1px solid var(--line); cursor: default; }
.scenes p { margin: 0; font-size: 15px; color: var(--ink-2); }
.scenes b { color: var(--ink); font-weight: 600; }
.scene-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; transition: background .3s var(--ease); }
.scenes li.is-active .scene-num { background: var(--ink); }
.price-tag { margin: 16px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink); } /* 2026-10-20: dropped uppercase — this is a long price disclosure line (~90 chars), not a short label; reads as sentence case */
.chips-count { font-weight: 600; color: var(--ink); }

/* S05 "Así se entrega tu apartamento" (#entrega) */
/* full-bleed black band, full viewport height, centered (Andrea 2026-10-20) */
.inc { margin-top: clamp(80px, 9vw, 130px); margin-bottom: calc(-1 * var(--sec-y)); width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(64px, 9vh, 120px) var(--gutter); border-radius: 0; background: var(--ink); color: #fff; scroll-margin-top: 0; }
.inc > * { width: 100%; max-width: var(--wrap); margin-inline: auto; } /* keep content at reading width while the band is full-bleed */
.inc .h2 { color: var(--blue); }
.inc .h2 .u-white { color: #fff; }
.inc-head .lead { margin-bottom: 36px; color: rgba(255,255,255,.72); }
.inc-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 64px); }
.inc-title { margin: 0 0 14px; font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.inc-list { list-style: none; margin: 0 0 28px; padding: 0; }
.inc-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 15px; color: #fff; }
.inc-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }
.inc-list--no li::before { top: 20px; width: 14px; height: 0; border-left: 0; border-bottom: 2px solid rgba(255,255,255,.5); transform: none; }
.inc .btn--line { background: var(--blue); border-color: var(--blue); color: #fff; } /* CTA solid blue on black */
.inc .btn--line:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.inc .legal { margin-top: 8px; color: rgba(255,255,255,.5); }

/* S06 text under the tabs */
.gallery-note { margin: -16px 0 28px; max-width: 76ch; color: var(--ink-2); }
.gallery-note p { margin: 0; font-size: 15px; }
.gallery-note .h4 { margin: 0 0 6px; color: var(--ink); }
.anchor { display: block; height: 0; scroll-margin-top: 110px; }

/* S10 seal marquee: brand dot in place of the master flower */
.marquee-dot { flex: none; width: clamp(14px, 1.6vw, 22px); aspect-ratio: 1; border-radius: 50%; background: var(--grad); }

/* S11 simulator: three results, then the loan block */
.sim-card { border: 1px solid var(--line); }
.sim-out--3 { grid-template-columns: repeat(3, 1fr); }
.sim-out--one { grid-template-columns: 1fr; }
.sim-years { margin-top: 22px; }
.sim-exit { margin-top: 20px; }
input[type=range] { accent-color: var(--blue); }

/* footer text logo */
.footer-brand { margin: 0 0 18px; color: #fff; }
.footer-brand .brand-word { font-size: 28px; }

@media (max-width: 1180px) {
  .apt { grid-template-columns: minmax(260px, 340px) 1fr; }
  .scenes { grid-template-columns: 1fr; gap: 0; }
  .scenes li { padding-block: 12px; }
}
@media (max-width: 900px) {
  .apt { grid-template-columns: 1fr; }
  .apt .type { max-width: 420px; justify-self: center; }
  /* single column must be allowed to shrink to the screen; the no-wrap download
     button was stretching this column past the phone width and clipping the list */
  .inc-cols { grid-template-columns: minmax(0, 1fr); }
  /* keep the download button on one line within the phone width */
  .inc-cols .btn--line { white-space: nowrap; padding-left: 16px; padding-right: 16px; }
  .sim-out--3 { grid-template-columns: 1fr; }
}
