/* ==========================================================================
   Tu Inmobiliaria · solucions immobiliàries — sistema visual
   Marca: morado #7A1F82 · orquídea #B870A8 (OBSERVADO en su logo y web)
   Tipos: Fraunces (titulares) · Manrope (texto) · Caveat («la libreta rosa»)
   ========================================================================== */

:root {
  --brand: #7A1F82;
  --brand-2: #B870A8;
  --brand-deep: #4E1254;
  --brand-ink: #ffffff;
  --brand-soft: #F3E6F1;
  --brand-glow: rgba(184, 112, 168, .35);

  --bg: #FBF8FA;
  --bg-2: #F5EFF4;
  --bg-3: #EDE3EB;
  --surface: #FFFFFF;
  --surface-2: rgba(255, 255, 255, .72);
  --ink: #1E1521;
  --ink-2: #4A3D4E;
  --ink-3: #74667A;
  --line: rgba(78, 18, 84, .11);
  --line-2: rgba(78, 18, 84, .2);
  --shadow: 0 1px 1px rgba(78, 18, 84, .04), 0 12px 32px -12px rgba(78, 18, 84, .18), 0 40px 80px -40px rgba(78, 18, 84, .22);
  --shadow-lg: 0 2px 2px rgba(78, 18, 84, .05), 0 30px 60px -20px rgba(78, 18, 84, .28), 0 80px 120px -60px rgba(78, 18, 84, .3);
  --inner-hl: inset 0 1px 0 rgba(255, 255, 255, .9);
  --nav-bg: rgba(251, 248, 250, .72);
  --note: #9C3F8E;
  --ok: #2F7D5B;
  --err: #B3261E;
  --logo-a: #7A1F82;
  --logo-b: #B870A8;
  --logo-ink: #2B2B2E;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1rem;
  --r-sm: .65rem;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(96px, 13vw, 176px);
  --maxw: 1320px;

  --z-cursor: 90;
  --z-curtain: 80;
  --z-menu: 60;
  --z-nav: 50;
  --z-float: 40;
  --z-panel: 70;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand: #C58BD0;
  --brand-2: #E0A6D2;
  --brand-deep: #7A1F82;
  --brand-ink: #1A0F1C;
  --brand-soft: #2A1A2E;
  --brand-glow: rgba(197, 139, 208, .28);

  --bg: #120B14;
  --bg-2: #18101B;
  --bg-3: #221727;
  --surface: #1D1420;
  --surface-2: rgba(36, 24, 40, .7);
  --ink: #F6EEF5;
  --ink-2: #CEBFD1;
  --ink-3: #9B8C9F;
  --line: rgba(240, 214, 246, .1);
  --line-2: rgba(240, 214, 246, .2);
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(8, 2, 10, .7), 0 40px 80px -40px rgba(60, 10, 70, .5);
  --shadow-lg: 0 30px 60px -20px rgba(8, 2, 10, .8), 0 80px 120px -60px rgba(80, 20, 90, .45);
  --inner-hl: inset 0 1px 0 rgba(255, 255, 255, .07);
  --nav-bg: rgba(22, 14, 25, .7);
  --note: #E7A9DA;
  --ok: #7FD1A8;
  --err: #FF8A80;
  --logo-a: #C58BD0;
  --logo-b: #E0A6D2;
  --logo-ink: #F6EEF5;
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 110px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: clamp(16px, 1.05vw + 10px, 18px); line-height: 1.65;
  font-weight: 500; letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; transition: background-color .6s var(--ease), color .6s var(--ease);
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--brand-2); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 10px 18px; border-radius: 999px; transition: top .3s var(--ease); }
.skip:focus { top: 16px; }
.ph { font-size: 1.15em; line-height: 1; }

/* ---------- tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 520; line-height: 1.04; letter-spacing: -.018em; margin: 0; font-variation-settings: "opsz" 40; text-wrap: balance; }
h1 em, h2 em, h3 em, .display em { font-style: italic; color: var(--brand-2); font-weight: 480; font-variation-settings: "opsz" 40; }
:root[data-theme="dark"] h1 em, :root[data-theme="dark"] h2 em, :root[data-theme="dark"] h3 em { color: var(--brand-2); }
.display { font-family: var(--f-display); font-size: clamp(3.1rem, 8.6vw, 8.4rem); line-height: .98; letter-spacing: -.028em; font-weight: 540; font-variation-settings: "opsz" 48; }
.h1 { font-size: clamp(2.7rem, 6.4vw, 6rem); line-height: .98; }
.h2 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); }
.h3 { font-size: clamp(1.5rem, 2.3vw, 2.15rem); line-height: 1.1; letter-spacing: -.02em; }
.lead { font-size: clamp(1.1rem, 1.25vw + .6rem, 1.38rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.tiny { font-size: .82rem; color: var(--ink-3); }
.hand { font-family: var(--f-hand); font-weight: 600; color: var(--note); letter-spacing: 0; line-height: 1.05; }
.num { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; padding: .45em 1em .45em .75em;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
:root[data-theme="dark"] .eyebrow { color: var(--brand-2); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec) calc(var(--sec) * 1.08); position: relative; }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.sec--alt { background: var(--bg-2); }
.sec-head { display: grid; gap: 1.4rem; margin-bottom: clamp(48px, 7vw, 96px); max-width: 860px; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head--split { max-width: none; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 2rem 6vw; }
.sec-head--split .lead { justify-self: end; }
@media (max-width: 860px) { .sec-head--split { grid-template-columns: 1fr; } .sec-head--split .lead { justify-self: start; } }

/* ---------- botones (isla + botón dentro de botón) ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-ic: var(--brand-soft); --b-icf: var(--brand);
  position: relative; display: inline-flex; align-items: center; gap: .9rem; min-height: 56px;
  padding: .45rem .5rem .45rem 1.6rem; border-radius: 999px; background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: .98rem; letter-spacing: -.005em; white-space: nowrap;
  box-shadow: var(--inner-hl), 0 0 0 1px var(--line), var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
  isolation: isolate; overflow: hidden;
}
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 60%); opacity: 0; transition: opacity .4s var(--ease); z-index: -1; }
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--inner-hl), 0 0 0 1px var(--line-2), var(--shadow-lg); }
.btn:active { transform: scale(.975); transition-duration: .15s; }
.btn__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--b-ic); color: var(--b-icf); flex: none; transition: transform .55s var(--ease); }
.btn__ic .ph { font-size: 1.15rem; }
.btn:hover .btn__ic { transform: translate(3px, -1px) scale(1.06) rotate(-8deg); }
.btn--primary { --b-bg: var(--brand); --b-fg: var(--brand-ink); --b-ic: rgba(255,255,255,.16); --b-icf: var(--brand-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 34px -12px var(--brand-glow), 0 0 0 1px color-mix(in srgb, var(--brand) 60%, #000 0%); }
:root[data-theme="dark"] .btn--primary { --b-ic: rgba(26,15,28,.12); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 24px 50px -14px var(--brand-glow); }
.btn--ghost { --b-bg: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { --b-bg: var(--surface); }
.btn--sm { min-height: 46px; padding-left: 1.2rem; font-size: .9rem; }
.btn--sm .btn__ic { width: 36px; height: 36px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn--light { --b-bg: #fff; --b-fg: #1E1521; --b-ic: #F3E6F1; --b-icf: #7A1F82; }
.link {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--brand);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px;
  transition: background-size .6s var(--ease), gap .4s var(--ease);
}
:root[data-theme="dark"] .link { color: var(--brand-2); }
.link:hover { background-size: 100% 1.5px; gap: .7rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }

/* ---------- doble bisel ---------- */
.shell { padding: 7px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.core { border-radius: calc(var(--r-xl) - 7px); background: var(--surface); box-shadow: var(--inner-hl), var(--shadow); overflow: hidden; position: relative; }

/* ---------- textura y capas fijas ---------- */
.grain { position: fixed; inset: -50%; z-index: 30; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .05; }
.progress { position: fixed; top: 72px; left: 0; right: 0; height: 2px; z-index: calc(var(--z-nav) + 1); transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--brand-2)); pointer-events: none; }

/* ---------- preloader + cortina ---------- */
.preload { position: fixed; inset: 0; z-index: calc(var(--z-curtain) + 1); display: grid; place-items: center; background: var(--bg); }
.preload__mark { width: clamp(84px, 10vw, 120px); overflow: visible; }
.preload__word { margin-top: 22px; width: clamp(170px, 20vw, 230px); color: var(--logo-ink); }
.preload__inner { display: grid; justify-items: center; }
.preload__bar { margin-top: 26px; width: 120px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.preload__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.js) .preload, .no-preload .preload { display: none; }
.curtain { position: fixed; inset: 0; z-index: var(--z-curtain); pointer-events: none; display: grid; place-items: center; background: var(--brand-deep); transform: translateY(100%); }
.curtain::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 40%, rgba(184,112,168,.45), transparent 70%); }
.curtain img { width: 72px; position: relative; opacity: 0; }
.curtain.is-cover { transform: translateY(0); }

/* ---------- navegación isla ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav); }
.nav__bar {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 72px; padding: 10px max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  border-radius: 0; background: var(--nav-bg); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(78,18,84,.35);
  transition: background-color .6s var(--ease), box-shadow .6s var(--ease);
}
:root[data-theme="dark"] .nav__bar { box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(0,0,0,.6); }
.nav__logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--logo-ink); }
.nav__logo .iso { width: 30px; transition: transform .8s var(--ease); }
.nav__logo:hover .iso { transform: rotateY(180deg); }
.nav__logo .word { width: 118px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; display: block; padding: .6rem 1rem; border-radius: 999px; font-weight: 650; font-size: .94rem; color: var(--ink-2); transition: color .35s var(--ease), background-color .35s var(--ease); }
.nav__links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav__links a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
:root[data-theme="dark"] .nav__links a[aria-current="page"] { color: var(--brand-2); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.theme-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: color .3s var(--ease), background-color .3s var(--ease); overflow: hidden; }
.theme-btn:hover { color: var(--brand); background: var(--brand-soft); }
.theme-btn .ph { position: absolute; font-size: 1.2rem; transition: transform .7s var(--ease), opacity .5s var(--ease); }
.theme-btn .t-dark { transform: translateY(140%) rotate(-90deg); opacity: 0; }
:root[data-theme="dark"] .theme-btn .t-light { transform: translateY(-140%) rotate(90deg); opacity: 0; }
:root[data-theme="dark"] .theme-btn .t-dark { transform: none; opacity: 1; }
.burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; right: 20px; }
.menu-open .burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22.5px; right: 14px; transform: rotate(-45deg); }
@media (max-width: 1060px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
}

/* menú móvil */
.menu { position: fixed; inset: 0; z-index: var(--z-menu); display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--gutter) 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); visibility: hidden; opacity: 0; transition: opacity .6s var(--ease), visibility 0s .6s; overflow-y: auto; }
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity .6s var(--ease); }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__list a { display: flex; align-items: baseline; justify-content: space-between; padding: .5rem 0; font-family: var(--f-display); font-size: clamp(2.4rem, 10vw, 3.6rem); letter-spacing: -.02em; font-weight: 500; transform: translateY(105%); transition: transform .9s var(--ease), color .3s; }
.menu__list a small { font-family: var(--f-body); font-size: .8rem; color: var(--ink-3); letter-spacing: .12em; }
.menu__list a[aria-current="page"] { color: var(--brand); }
:root[data-theme="dark"] .menu__list a[aria-current="page"] { color: var(--brand-2); }
.menu-open .menu__list a { transform: none; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu__foot { display: grid; gap: 1rem; margin-top: 2rem; opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s; }
.menu-open .menu__foot { opacity: 1; transform: none; }
.menu__quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.menu__quick a { display: flex; align-items: center; gap: .6rem; padding: 1rem; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: .95rem; }
.menu__quick a .ph { color: var(--brand-2); font-size: 1.3rem; }

/* ---------- hero inicio ---------- */
.hero { position: relative; min-height: 100dvh; padding: 132px 0 0; display: flex; flex-direction: column; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; flex: 1; }
.hero__copy { position: relative; z-index: 2; padding-bottom: 40px; }
.hero__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.hero__title { margin-bottom: 30px; }
.hero__title .ln { display: block; }
.hero .lead { margin-bottom: 40px; }
.hero__trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__trust li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 650; color: var(--ink-2); }
.hero__trust .ph { color: var(--brand-2); font-size: 1.2rem; }
.hero__trust ul, ul.clean { list-style: none; margin: 0; padding: 0; }
.hero__media { position: relative; align-self: stretch; min-height: 560px; }
.arch { position: absolute; inset: 0; border-radius: 999px 999px var(--r-xl) var(--r-xl); overflow: hidden; background: var(--bg-3); box-shadow: var(--shadow-lg); transform: translateZ(0); }
.arch video, .arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(30,10,34,.35)); pointer-events: none; }
.hero__media .arch { inset: 0 0 -40px; }
.float-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--surface-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--inner-hl), 0 0 0 1px var(--line), var(--shadow); font-size: .88rem; font-weight: 700; }
.float-note .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: 1.15rem; flex: none; }
.float-note small { display: block; font-weight: 600; color: var(--ink-3); font-size: .76rem; }
.hero__note-1 { left: -38px; bottom: 22%; }
.hero__note-2 { right: -12px; top: 16%; }
.scribble { position: absolute; z-index: 3; font-size: clamp(1.5rem, 2vw, 1.9rem); transform: rotate(-6deg); pointer-events: none; }
.scribble svg { position: absolute; overflow: visible; }
.scribble path { fill: none; stroke: var(--note); stroke-width: 2; stroke-linecap: round; }
.hero__scribble { right: 6%; bottom: -8px; }
.hero__scribble svg { left: -62px; top: -48px; width: 70px; height: 60px; }
.scroll-cue { display: flex; align-items: center; gap: 12px; margin: 60px 0 28px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--brand-2); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
@media (max-width: 960px) {
  .hero { padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 4.3; order: -1; margin-inline: 4px; }
  .hero__media .arch { inset: 0; }
  .hero__note-1 { left: -6px; bottom: 9%; }
  .hero__note-2 { right: -6px; top: 22%; }
  .hero__scribble { display: none; }
  .scroll-cue { display: none; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 30px 0; border-block: 1px solid var(--line); background: var(--bg); }
.marquee__track { display: flex; width: max-content; gap: 0; will-change: transform; }
.marquee__item { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--f-display); font-size: clamp(1.7rem, 3.2vw, 3rem); font-weight: 480; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.marquee__item em { font-style: italic; color: var(--brand-2); }
.marquee__item img { width: 26px; opacity: .9; }

/* ---------- bifurcación vender / comprar ---------- */
.fork { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(16px, 2vw, 28px); }
.fork__card { position: relative; display: block; min-height: clamp(460px, 48vw, 640px); border-radius: var(--r-xl); overflow: hidden; color: #fff; isolation: isolate; box-shadow: var(--shadow-lg); }
.fork__card:nth-child(2) { margin-top: clamp(0px, 6vw, 90px); }
.fork__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.fork__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,8,24,.05) 20%, rgba(20,8,24,.82)); transition: background-color .6s; }
.fork__card:hover img { transform: scale(1.12); }
.fork__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 14px; }
.fork__tag { justify-self: start; padding: .45em 1em; border-radius: 999px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.fork__card h3 { font-size: clamp(2.2rem, 4.2vw, 4rem); color: #fff; }
.fork__card h3 em { color: #F2C6E8; }
.fork__list { display: grid; gap: 8px; margin: 4px 0 10px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), opacity .6s var(--ease); font-size: .98rem; color: rgba(255,255,255,.86); }
.fork__list li { display: flex; gap: .6rem; align-items: center; }
.fork__list .ph { color: #F2C6E8; }
.fork__card:hover .fork__list, .fork__card:focus-visible .fork__list { max-height: 220px; opacity: 1; }
.fork__go { display: inline-flex; align-items: center; gap: .8rem; font-weight: 800; }
.fork__go i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #7A1F82; font-size: 1.2rem; transition: transform .6s var(--ease); }
.fork__card:hover .fork__go i { transform: translateX(6px) rotate(-45deg); }
@media (hover: none) { .fork__list { max-height: 220px; opacity: 1; } }
@media (max-width: 860px) { .fork { grid-template-columns: 1fr; } .fork__card:nth-child(2) { margin-top: 0; } .fork__card { min-height: 480px; } }

/* ---------- Tu Inmobiliaria ---------- */
.eva { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.eva__media { position: relative; }
.eva__photo { position: relative; aspect-ratio: 4 / 5.2; border-radius: 999px 999px var(--r-xl) var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.eva__photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 20%; }
.eva__badge { position: absolute; right: -24px; bottom: 12%; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); }
.eva__badge svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 22s linear infinite; }
.eva__badge text { font-family: var(--f-body); font-size: 10.2px; font-weight: 800; letter-spacing: .26em; fill: var(--ink-2); text-transform: uppercase; }
.eva__badge img { width: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }
.eva blockquote { margin: 0 0 32px; font-family: var(--f-display); font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 500; }
.eva blockquote em { font-style: italic; color: var(--brand-2); }
.eva__sign { display: flex; align-items: center; gap: 18px; margin: 34px 0 36px; }
.eva__sign svg { width: 150px; height: 64px; overflow: visible; }
.eva__sign path { fill: none; stroke: var(--note); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.eva__sign small { display: block; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--ink-3); }
.eva__sign strong { font-weight: 750; }
@media (max-width: 860px) { .eva { grid-template-columns: 1fr; } .eva__media { max-width: 440px; } .eva__badge { right: -8px; width: 112px; height: 112px; } }

/* ---------- pilares apilados ---------- */
.stack { display: grid; gap: 22px; }
.stack__card { position: sticky; top: calc(110px + var(--i, 0) * 22px); display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 64px); align-items: start; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--inner-hl), 0 0 0 1px var(--line), var(--shadow); transform-origin: 50% 0; }
.stack__n { font-family: var(--f-display); font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: .8; font-weight: 420; color: var(--brand-2); font-style: italic; }
.stack__card h3 { margin-bottom: 14px; }
.stack__card p { color: var(--ink-2); max-width: 56ch; margin: 0; }
.stack__ic { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 2rem; }
:root[data-theme="dark"] .stack__ic { color: var(--brand-2); }
@media (max-width: 760px) { .stack__card { grid-template-columns: 1fr; } .stack__ic { display: none; } }

/* ---------- frase que se rellena ---------- */
.statement { font-family: var(--f-display); font-size: clamp(2.1rem, 5.2vw, 5.2rem); line-height: 1.08; letter-spacing: -.022em; font-weight: 500; max-width: 18ch; text-wrap: balance; }
.statement .w { display: inline-block; opacity: .14; transition: none; }
.statement em { font-style: italic; color: var(--brand-2); }
.statement-wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.statement-wrap .hand { font-size: clamp(1.6rem, 2.4vw, 2.2rem); transform: rotate(-4deg); max-width: 14ch; }
@media (max-width: 760px) { .statement-wrap { grid-template-columns: 1fr; } }

/* ---------- inmuebles: carrusel horizontal fijado ---------- */
.hscroll { position: relative; }
.hscroll__pin { overflow: hidden; }
.hscroll__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.prop { position: relative; width: clamp(300px, 34vw, 500px); flex: none; display: flex; flex-direction: column; }
.prop__img { position: relative; aspect-ratio: 4 / 3.1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-3); }
.prop__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.prop:hover .prop__img img { transform: scale(1.1); }
.prop__chip { position: absolute; left: 14px; top: 14px; padding: .4em .85em; border-radius: 999px; background: rgba(255,255,255,.88); color: #1E1521; font-size: .74rem; font-weight: 800; letter-spacing: .06em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; gap: .4em; align-items: center; }
.prop__body { padding: 22px 6px 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.prop__place { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2); display: flex; align-items: center; gap: .4rem; }
.prop h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
.prop p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.prop__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.prop__facts li { display: flex; align-items: center; gap: .4rem; padding: .4em .8em; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.prop__facts .ph { color: var(--brand-2); }
.prop__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.prop__price { font-size: .86rem; color: var(--ink-3); font-weight: 650; }
.prop--cta { width: clamp(280px, 26vw, 380px); justify-content: center; padding: clamp(28px, 3vw, 44px); border-radius: var(--r-lg); background: var(--brand-deep); color: #fff; overflow: hidden; isolation: isolate; }
.prop--cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 80% 10%, rgba(184,112,168,.6), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(122,31,130,.9), transparent 70%); }
.prop--cta h3 { color: #fff; font-size: clamp(1.9rem, 2.8vw, 2.6rem); margin: 18px 0 14px; }
.prop--cta h3 em { color: #F2C6E8; }
.prop--cta p { color: rgba(255,255,255,.8); margin-bottom: 26px; }
.hscroll__bar { margin: 40px var(--gutter) 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hscroll__bar i { display: block; height: 100%; background: var(--brand-2); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 860px) {
  .hscroll__pin { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; }
  .hscroll__pin::-webkit-scrollbar { display: none; }
  .prop { width: 82vw; scroll-snap-align: center; }
  .hscroll__bar { display: none; }
}

/* ---------- mapa de zonas ---------- */
.zonas { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.zonas__list { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.zonas__list button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 4px; border-bottom: 1px solid var(--line); text-align: left; font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -.01em; font-weight: 500; color: var(--ink-2); transition: color .3s var(--ease), padding .5s var(--ease); }
.zonas__list button .ph { opacity: 0; transform: translateX(-10px); transition: all .5s var(--ease); color: var(--brand-2); }
.zonas__list button:hover, .zonas__list button.is-on { color: var(--ink); padding-left: 14px; }
.zonas__list button.is-on .ph, .zonas__list button:hover .ph { opacity: 1; transform: none; }
.map { position: relative; aspect-ratio: 1 / .9; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--inner-hl), 0 0 0 1px var(--line), var(--shadow-lg); }
.map__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.6); }
:root[data-theme="dark"] .map__bg { opacity: .16; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .river { fill: none; stroke: var(--brand-2); stroke-width: 3; stroke-linecap: round; opacity: .75; }
.map .river-glow { fill: none; stroke: var(--brand-2); stroke-width: 18; opacity: .12; stroke-linecap: round; }
.map .road { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 4 6; }
.map .contour { fill: none; stroke: var(--line); stroke-width: 1; }
.pin { cursor: pointer; }
.pin circle.dot { fill: var(--brand); transition: r .4s var(--ease-spring); }
.pin circle.halo { fill: var(--brand-2); opacity: .25; transform-box: fill-box; transform-origin: center; animation: halo 2.6s var(--ease) infinite; }
.pin text { font-family: var(--f-body); font-size: 15px; font-weight: 800; fill: var(--ink); letter-spacing: -.01em; paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
.pin.is-home circle.dot { fill: var(--brand-2); }
.pin.is-on circle.dot, .pin:hover circle.dot { r: 10; }
@keyframes halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }
.map__card { position: absolute; left: 18px; bottom: 18px; right: 18px; max-width: 340px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); font-size: .92rem; }
.map__card strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; letter-spacing: -.02em; }
.map__card p { margin: 4px 0 0; color: var(--ink-2); }
@media (max-width: 900px) { .zonas { grid-template-columns: 1fr; } }

/* ---------- pasos con trazo ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.steps__path { position: absolute; left: 0; right: 0; top: 34px; height: 80px; width: 100%; overflow: visible; pointer-events: none; }
.steps__path path { fill: none; stroke: var(--brand-2); stroke-width: 1.6; stroke-dasharray: 3 7; opacity: .7; }
.step { position: relative; display: grid; gap: 14px; align-content: start; }
.step__ic { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; font-size: 1.7rem; background: var(--surface); color: var(--brand); box-shadow: var(--inner-hl), 0 0 0 1px var(--line), var(--shadow); }
:root[data-theme="dark"] .step__ic { color: var(--brand-2); }
.step:nth-child(odd) { margin-top: 40px; }
.step__n { font-size: .74rem; font-weight: 800; letter-spacing: .18em; color: var(--brand-2); text-transform: uppercase; margin-top: 10px; }
.step h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); }
.step p { color: var(--ink-2); font-size: .98rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 20px; } .steps__path { display: none; } .step:nth-child(odd) { margin-top: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- bloque CTA final ---------- */
.cta-band { position: relative; border-radius: clamp(28px, 4vw, 48px); overflow: hidden; padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 96px); background: var(--brand-deep); color: #fff; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(40% 50% at var(--gx, 80%) var(--gy, 20%), rgba(184,112,168,.75), transparent 70%), radial-gradient(50% 60% at 0% 100%, #7A1F82, transparent 70%), radial-gradient(30% 40% at 50% 120%, rgba(242,198,232,.4), transparent 70%); transition: background-position 1s; }
.cta-band__iso { position: absolute; right: -60px; bottom: -80px; width: clamp(240px, 32vw, 460px); opacity: .14; z-index: -1; transform: rotate(-8deg); }
.cta-band h2 { color: #fff; max-width: 14ch; margin-bottom: 22px; }
.cta-band h2 em { color: #F2C6E8; }
.cta-band .lead { color: rgba(255,255,255,.82); margin-bottom: 40px; }
.cta-band__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.quick { display: grid; gap: 12px; padding: 10px; border-radius: 28px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.quick .field input, .quick .field select { background: rgba(255,255,255,.95); color: #1E1521; box-shadow: none; }
.quick .field label { color: rgba(255,255,255,.75); }
@media (max-width: 860px) { .cta-band__grid { grid-template-columns: 1fr; } }

/* ---------- formularios ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; position: relative; }
.field label, .fieldset legend { font-size: .82rem; font-weight: 750; color: var(--ink-2); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 15px 18px; border: 0; border-radius: 16px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--inner-hl); font-size: 1rem; font-weight: 550;
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease); appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256'%3E%3Cpath fill='%23B870A8' d='M213.7 101.7l-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); font-weight: 500; }
.field input:hover, .field textarea:hover, .field select:hover { box-shadow: inset 0 0 0 1px var(--brand-2), var(--inner-hl); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand-2), 0 0 0 6px color-mix(in srgb, var(--brand-2) 16%, transparent); }
.field.is-err input, .field.is-err textarea, .field.is-err select { box-shadow: inset 0 0 0 2px var(--err); }
.field__err { display: none; font-size: .8rem; font-weight: 700; color: var(--err); }
.field.is-err .field__err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--surface); display: grid; place-items: center; transition: all .3s var(--ease); cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .35s var(--ease-spring); }
.check input:checked { background: var(--brand); box-shadow: none; }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .check a { color: var(--brand-2); }
.check.is-err input { box-shadow: inset 0 0 0 2px var(--err); }
.hp { position: absolute; left: -9999px; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .55rem; min-height: 50px; padding: .7rem 1.2rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 700; font-size: .95rem; transition: all .35s var(--ease); }
.chip span .ph { color: var(--brand-2); font-size: 1.2rem; }
.chip input:hover + span { box-shadow: inset 0 0 0 1px var(--brand-2); }
.chip input:checked + span { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px -12px var(--brand-glow); }
.chip input:checked + span .ph { color: inherit; }
.chip input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.chips--big .chip span { min-height: 96px; padding: 1rem 1.6rem; border-radius: 22px; flex-direction: column; justify-content: center; min-width: 140px; font-size: 1rem; }
.chips--big .chip span .ph { font-size: 2rem; }
.form-msg { display: none; padding: 16px 18px; border-radius: 16px; font-size: .92rem; font-weight: 600; line-height: 1.5; }
.form-msg.is-on { display: block; }
.form-msg--err { background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--err) 30%, transparent); }
.form-msg a { text-decoration: underline; font-weight: 800; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn__ic .ph { animation: spin .9s linear infinite; }
.range { display: grid; gap: 10px; }
.range output { font-family: var(--f-display); font-size: 2.6rem; letter-spacing: -.03em; line-height: 1; }
.range output small { font-family: var(--f-body); font-size: 1rem; color: var(--ink-3); margin-left: 4px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--p, 30%), var(--line-2) var(--p, 30%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--p, 30%), var(--line-2) var(--p, 30%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px var(--brand), 0 6px 16px rgba(78,18,84,.35); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 6px var(--brand), 0 6px 16px rgba(78,18,84,.35); }

/* ---------- asistente de valoración («la libreta») ---------- */
.libreta { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; border-radius: clamp(28px, 3vw, 40px); overflow: hidden; background: var(--surface); box-shadow: var(--inner-hl), 0 0 0 1px var(--line), var(--shadow-lg); }
.libreta__side { position: relative; padding: clamp(28px, 4vw, 56px); background: linear-gradient(160deg, #F7D8EE, #E9B9DB 60%, #D79BC8); color: #3B0F42; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; isolation: isolate; overflow: hidden; }
:root[data-theme="dark"] .libreta__side { background: linear-gradient(160deg, #3A1F40, #4E2656 60%, #5E2C66); color: #F6E2F2; }
.libreta__side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(180deg, transparent 0 33px, rgba(122,31,130,.12) 33px 34px); }
.libreta__side::after { content: ""; position: absolute; top: 0; bottom: 0; right: 22px; width: 2px; background: rgba(184,40,120,.25); }
.libreta__side h2 { color: inherit; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.libreta__side h2 em { color: #7A1F82; }
:root[data-theme="dark"] .libreta__side h2 em { color: #F2C6E8; }
.libreta__side .hand { color: inherit; font-size: 1.6rem; opacity: .9; }
.libreta__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.libreta__steps li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .92rem; opacity: .55; transition: opacity .4s var(--ease); }
.libreta__steps li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; transition: all .4s var(--ease); }
.libreta__steps li.is-done, .libreta__steps li.is-on { opacity: 1; }
.libreta__steps li.is-on::before { background: #7A1F82; color: #fff; box-shadow: none; }
.libreta__steps li.is-done::before { content: "✓"; background: rgba(122,31,130,.18); box-shadow: none; }
.libreta__main { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; min-height: 600px; }
.libreta__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 30px; }
.libreta__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: 0 50%; transform: scaleX(.1); transition: transform .8s var(--ease); }
.wstep { display: none; flex: 1; flex-direction: column; gap: 22px; }
.wstep.is-on { display: flex; animation: wIn .7s var(--ease) both; }
.wstep.is-back { animation-name: wInBack; }
@keyframes wIn { from { opacity: 0; transform: translateX(40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wInBack { from { opacity: 0; transform: translateX(-40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.wstep h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.wstep__q { font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-2); }
.wnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 26px; }
.wnav [data-w-back] { display: inline-flex; align-items: center; gap: .5rem; font-weight: 750; color: var(--ink-2); padding: .8rem .4rem; }
.wnav [data-w-back][hidden] { display: inline-flex; visibility: hidden; }
@media (max-width: 900px) { .libreta { grid-template-columns: 1fr; } .libreta__steps { display: none; } .libreta__main { min-height: 0; } }

/* ---------- tarjetas que giran (preguntas) ---------- */
.flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1600px; }
.flip { position: relative; min-height: 300px; cursor: pointer; transform-style: preserve-3d; transition: transform 1s var(--ease); border-radius: var(--r-lg); }
.flip:nth-child(3n+1) { rotate: -1.2deg; } .flip:nth-child(3n+2) { rotate: .8deg; margin-top: 26px; } .flip:nth-child(3n) { rotate: -.4deg; }
.flip.is-flipped { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: inherit; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.flip__front { background: var(--surface); box-shadow: var(--inner-hl), 0 0 0 1px var(--line), var(--shadow); }
.flip__front::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(180deg, transparent 0 31px, color-mix(in srgb, var(--brand-2) 16%, transparent) 31px 32px); pointer-events: none; opacity: .7; }
.flip__front .hand { position: relative; font-size: clamp(1.7rem, 2.2vw, 2.05rem); color: var(--ink); }
.flip__front small { position: relative; display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); }
.flip__back { transform: rotateY(180deg); background: var(--brand-deep); color: #fff; overflow: auto; }
.flip__back p { font-size: .96rem; color: rgba(255,255,255,.88); margin: 0; }
.flip__back strong { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; letter-spacing: -.01em; }
.flip__back small { color: rgba(255,255,255,.6); font-size: .74rem; }
@media (max-width: 960px) { .flips { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .flips { grid-template-columns: 1fr; } .flip { rotate: none !important; margin-top: 0 !important; min-height: 280px; } }

/* ---------- hero de páginas interiores ---------- */
.phero { position: relative; padding: clamp(140px, 16vw, 200px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.phero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.phero__crumbs { display: flex; gap: .6rem; align-items: center; font-size: .82rem; font-weight: 700; color: var(--ink-3); margin-bottom: 26px; }
.phero__crumbs a:hover { color: var(--brand); }
.phero h1 { margin-bottom: 28px; }
.phero__media { position: relative; aspect-ratio: 4 / 4.6; }
.phero__media .arch { inset: 0; }
.phero__media--wide { aspect-ratio: 16 / 11; }
.phero__media--wide .arch { border-radius: var(--r-xl); }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }
.orb--a { width: 520px; height: 520px; background: color-mix(in srgb, var(--brand-2) 55%, transparent); top: -180px; right: -120px; }
.orb--b { width: 380px; height: 380px; background: color-mix(in srgb, var(--brand) 35%, transparent); bottom: -200px; left: -160px; }
:root[data-theme="dark"] .orb { opacity: .35; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } .phero__media { aspect-ratio: 4 / 3.6; } }

/* ---------- confianza / tres motivos ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.reason { padding: 40px clamp(16px, 2.5vw, 40px) 10px 0; display: grid; gap: 14px; align-content: start; }
.reason + .reason { padding-left: clamp(16px, 2.5vw, 40px); border-left: 1px solid var(--line); }
.reason__n { font-family: var(--f-display); font-style: italic; font-weight: 420; font-size: clamp(4rem, 7vw, 6.5rem); line-height: .8; color: var(--brand-2); }
.reason h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.reason p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; } .reason + .reason { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- timeline horizontal fijado (vender) ---------- */
.journey { position: relative; }
.journey__pin { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 100px 60px; }
.journey__track { display: flex; gap: clamp(20px, 3vw, 40px); padding-inline: var(--gutter); width: max-content; will-change: transform; align-items: stretch; }
.jcard { width: clamp(300px, 38vw, 540px); flex: none; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--inner-hl), 0 0 0 1px var(--line), var(--shadow); }
.jcard__img { aspect-ratio: 16 / 10; overflow: hidden; }
.jcard__img img { width: 100%; height: 100%; object-fit: cover; }
.jcard__body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; align-content: start; }
.jcard__n { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-2); }
.jcard__n b { font-family: var(--f-display); font-style: italic; font-size: 2.6rem; font-weight: 420; letter-spacing: -.02em; }
.jcard h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
.jcard p { color: var(--ink-2); margin: 0; }
.jcard--intro { background: transparent; box-shadow: none; display: flex; flex-direction: column; justify-content: center; width: clamp(300px, 34vw, 480px); }
.journey__line { position: relative; margin: 44px var(--gutter) 0; height: 40px; }
.journey__line svg { width: 100%; height: 100%; overflow: visible; }
.journey__line .base { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 2 8; fill: none; stroke-linecap: round; }
.journey__line .fill { stroke: var(--brand-2); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.journey__key { position: absolute; top: 50%; left: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: 1.3rem; box-shadow: 0 10px 30px -8px var(--brand-glow); }
@media (max-width: 860px) {
  .journey__pin { min-height: 0; padding-block: 0; }
  .journey__track { width: auto; flex-direction: column; padding-inline: var(--gutter); }
  .jcard, .jcard--intro { width: 100%; }
  .journey__line { display: none; }
}

/* ---------- tarjetas inmuebles (comprar) + filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.seg button { position: relative; z-index: 1; padding: .7rem 1.25rem; border-radius: 999px; font-weight: 750; font-size: .92rem; color: var(--ink-2); transition: color .4s var(--ease); }
.seg button.is-on { color: var(--brand-ink); }
.seg__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--brand); transition: transform .6s var(--ease), width .6s var(--ease); box-shadow: 0 8px 20px -10px var(--brand-glow); }
.props { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.props .prop { width: auto; grid-column: span 4; }
.props .prop:nth-child(1) { grid-column: span 7; }
.props .prop:nth-child(2) { grid-column: span 5; margin-top: 70px; }
.props .prop:nth-child(3) { grid-column: 3 / span 6; }
.props .prop:nth-child(4) { grid-column: span 4; }
.props .prop.is-hidden { display: none; }
.props .prop:nth-child(1) .prop__img { aspect-ratio: 16 / 10.5; }
@media (max-width: 900px) { .props .prop, .props .prop:nth-child(n) { grid-column: 1 / -1; margin-top: 0; } }
.empty { grid-column: 1 / -1; padding: 60px 24px; text-align: center; border-radius: var(--r-xl); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: none; }
.empty.is-on { display: block; }

/* panel lateral */
.panel { position: fixed; inset: 0; z-index: var(--z-panel); visibility: hidden; pointer-events: none; }
.panel.is-open { visibility: visible; pointer-events: auto; }
.panel__scrim { position: absolute; inset: 0; background: rgba(20,8,24,.5); opacity: 0; transition: opacity .6s var(--ease); }
.panel.is-open .panel__scrim { opacity: 1; }
.panel__sheet { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(620px, calc(100% - 20px)); border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--shadow-lg); transform: translateX(110%); transition: transform .8s var(--ease); overflow-y: auto; overscroll-behavior: contain; }
.panel.is-open .panel__sheet { transform: none; }
.panel__close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); font-size: 1.2rem; transition: transform .5s var(--ease); }
.panel__close:hover { transform: rotate(90deg); }
.panel__img { aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--r-lg); margin: 10px; }
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
.panel__body { padding: 18px clamp(20px, 3vw, 36px) 36px; display: grid; gap: 16px; }
.panel__body h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
@media (max-width: 640px) { .panel__sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(105%); } }

/* ---------- bento (conócenos) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento__item { border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); background: var(--surface); box-shadow: var(--inner-hl), 0 0 0 1px var(--line), var(--shadow); display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.bento__item .ph-big { font-size: 2.2rem; color: var(--brand-2); }
.bento__item h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
.bento__item p { color: var(--ink-2); margin: 0; }
.bento__a { grid-column: span 4; grid-row: span 2; background: var(--brand-deep); color: #fff; }
.bento__a h3 { color: #fff; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.bento__a h3 em { color: #F2C6E8; }
.bento__a p { color: rgba(255,255,255,.82); font-size: 1.08rem; }
.bento__a::after { content: ""; position: absolute; right: -10%; bottom: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(184,112,168,.55), transparent 65%); }
.bento__b, .bento__c { grid-column: span 2; }
.bento__d { grid-column: span 3; }
.bento__e { grid-column: span 3; padding: 0; min-height: 280px; }
.bento__e img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento__item { grid-column: auto !important; grid-row: auto !important; } }

/* pestañas */
.tabs__list { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; margin-bottom: 44px; }
.tabs__list button { position: relative; z-index: 1; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 800; color: var(--ink-2); transition: color .4s var(--ease); display: flex; gap: .5rem; align-items: center; }
.tabs__list button[aria-selected="true"] { color: var(--brand-ink); }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-in .step { animation: wIn .8s var(--ease) both; }
.tabs__panel.is-in .step:nth-child(2) { animation-delay: .07s; } .tabs__panel.is-in .step:nth-child(3) { animation-delay: .14s; } .tabs__panel.is-in .step:nth-child(4) { animation-delay: .21s; }

/* red de profesionales */
.net { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.net li { display: grid; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.net li:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.net .ph { font-size: 1.8rem; color: var(--brand-2); }
.net strong { font-weight: 800; }
.net span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 860px) { .net { grid-template-columns: 1fr 1fr; } }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact__card { padding: clamp(24px, 3.4vw, 48px); }
.channels { display: grid; gap: 12px; }
.channel { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
a.channel:hover { transform: translateX(6px); box-shadow: inset 0 0 0 1px var(--brand-2), var(--shadow); }
.channel__ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.5rem; flex: none; }
:root[data-theme="dark"] .channel__ic { color: var(--brand-2); }
.channel small { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.channel strong { font-weight: 750; font-size: 1.05rem; }
.channel .ph-go { margin-left: auto; color: var(--ink-3); }
.hours { display: grid; gap: 0; margin-top: 8px; }
.hours div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: .94rem; }
.hours div.is-today { font-weight: 800; color: var(--brand); }
:root[data-theme="dark"] .hours div.is-today { color: var(--brand-2); }
.status { display: inline-flex; align-items: center; gap: .55rem; padding: .45em .95em; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status.is-open i { background: #2FA36B; box-shadow: 0 0 0 4px rgba(47,163,107,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47,163,107,0); } }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: f; }
.flow li { position: relative; padding: 30px 20px 0 0; display: grid; gap: 10px; }
.flow li::before { counter-increment: f; content: "0" counter(f); font-size: .76rem; font-weight: 800; letter-spacing: .18em; color: var(--brand-2); }
.flow li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--brand-2), transparent); }
.flow strong { font-family: var(--f-display); font-weight: 520; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.02em; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }

/* ---------- pie ---------- */
.footer { position: relative; padding: clamp(80px, 10vw, 140px) 0 120px; background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.footer__big { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.footer__big h2 { font-size: clamp(2.8rem, 7.5vw, 7.2rem); line-height: .92; letter-spacing: -.045em; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; }
.footer__cols h4 { font-family: var(--f-body); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__cols a { color: var(--ink-2); font-weight: 600; transition: color .3s; }
.footer__cols a:hover { color: var(--brand); }
:root[data-theme="dark"] .footer__cols a:hover { color: var(--brand-2); }
.footer__brand .word { width: 180px; color: var(--logo-ink); margin-bottom: 20px; }
.footer__brand p { color: var(--ink-2); max-width: 34ch; font-size: .95rem; }
.footer__api { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; border-radius: 14px; background: #fff; width: max-content; box-shadow: inset 0 0 0 1px var(--line); }
.footer__api img { width: 92px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-3); }
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--ink); }
.footer__ghost { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font-family: var(--f-display); font-weight: 300; font-size: clamp(6rem, 22vw, 22rem); letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); white-space: nowrap; pointer-events: none; user-select: none; }
@media (max-width: 900px) { .footer__big { grid-template-columns: 1fr; } .footer__cols { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- flotantes: WhatsApp y barra móvil ---------- */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: var(--z-float); display: flex; align-items: center; gap: 12px; }
.wa__btn { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; font-size: 1.9rem; box-shadow: 0 14px 30px -10px rgba(37,211,102,.6), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .5s var(--ease-spring); }
.wa__btn:hover { transform: scale(1.08) rotate(-6deg); }
.wa__tip { padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); font-size: .86rem; font-weight: 750; opacity: 0; transform: translateX(10px); transition: all .5s var(--ease); pointer-events: none; }
.wa:hover .wa__tip, .wa.is-hint .wa__tip { opacity: 1; transform: none; }
.mbar { display: none; }
@media (max-width: 760px) {
  .wa { display: none; }
  .mbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--z-float); display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 6px; border-radius: 22px; background: var(--nav-bg); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -16px rgba(30,10,34,.45); transition: transform .6s var(--ease); }
  .mbar.is-hidden { transform: translateY(140%); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 52px; border-radius: 16px; font-weight: 800; font-size: .88rem; }
  .mbar a .ph { font-size: 1.25rem; }
  .mbar .m-wa { color: #1A8F4A; }
  :root[data-theme="dark"] .mbar .m-wa { color: #5BE38F; }
  .mbar .m-go { background: var(--brand); color: var(--brand-ink); }
  .footer { padding-bottom: 140px; }
}

/* ---------- prosa (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 56px 0 18px; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose .pend { background: color-mix(in srgb, var(--brand-2) 18%, transparent); padding: 0 .3em; border-radius: 4px; font-weight: 700; color: var(--ink); }
.toc { position: sticky; top: 120px; display: grid; gap: 8px; }
.toc a { color: var(--ink-2); font-weight: 650; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 6vw; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- 404 / gracias ---------- */
.center-hero { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 140px var(--gutter) 80px; position: relative; overflow: hidden; }
.center-hero .display { margin: 24px 0; }
.center-hero .lead { margin: 0 auto 36px; }
.center-hero .btn-row { justify-content: center; }
.big-iso { width: clamp(120px, 16vw, 200px); margin: 0 auto; }

/* ---------- utilidades de animación ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(48px); filter: blur(8px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: block; }
.js [data-split] .line-mask > span { transform: translateY(110%); }
.js [data-split].is-in .line-mask > span { transform: none; transition: transform 1.25s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--l, 0) * .09s); }
.parallax-img { overflow: hidden; }
[data-mag] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-split] .line-mask > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .statement .w { opacity: 1 !important; }
  .preload { display: none; }
}

/* ---------- transiciones de tema (View Transitions) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 999; }

/* ---------- logotipo según tema + estados de carga ---------- */
.logo-d { display: none; }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
.preload__word img { width: 100%; height: auto; }
.from-nav .curtain { transform: translateY(0); }
.from-nav .curtain img { opacity: 1; }
.from-nav .preload { display: none; }
.fieldset.is-err .chip span { box-shadow: inset 0 0 0 1.5px var(--err); }
.fieldset__err { display: none; font-size: .8rem; font-weight: 700; color: var(--err); }
.fieldset.is-err .fieldset__err { display: block; }

/* ---------- retoques QA 1 ---------- */
.sec-head > .eyebrow, .sec-head > div > .eyebrow, .sec-head > [data-reveal].eyebrow { justify-self: start; }
.sec-head--center > .eyebrow { justify-self: center; }
@media (max-width: 960px) { .hero__media { aspect-ratio: 4 / 3.5; } .hero .display { font-size: clamp(3rem, 14vw, 5rem); } }

/* ---------- retoques QA 2 ---------- */
.btn[hidden] { display: none; }
.clean { list-style: none; margin: 0; padding: 0; }
.libreta { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.libreta > * { min-width: 0; }
@media (max-width: 900px) {
  .libreta { grid-template-columns: minmax(0, 1fr); }
  .chips--big .chip span { min-width: 0; width: 100%; }
  .chips--big { display: grid; grid-template-columns: 1fr 1fr; }
  .wnav .btn { padding-left: 1.2rem; }
}
.eva-scribble { left: -190px; top: 2%; font-size: 1.75rem; transform: rotate(-8deg); }
.eva-scribble svg { left: 120px; top: 18px; width: 80px; height: 60px; }
@media (max-width: 1100px) { .eva-scribble { display: none; } }
.bento__a { align-content: space-between; min-height: 420px; }
.bento__a h3 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .95; margin-bottom: 10px; }
.bento__a p { font-size: clamp(1.05rem, 1.3vw, 1.25rem); max-width: 46ch; position: relative; z-index: 1; }
.eva--rev { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 860px) { .eva--rev { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .hero__media { aspect-ratio: 16 / 12; }
  .hero__note-2 { display: none; }
  .hero__note-1 { left: 10px; bottom: 12px; padding: 8px 14px 8px 8px; font-size: .8rem; }
  .hero__note-1 .ic { width: 32px; height: 32px; font-size: 1rem; }
  .hero__kicker { margin-bottom: 18px; }
  .hero__title { margin-bottom: 20px; }
  .hero .lead { margin-bottom: 28px; }
}
@media (max-width: 600px) { .hero__kicker .status { display: none; } }
/* contraste AA en etiquetas pequeñas (modo claro) */
:root:not([data-theme="dark"]) :is(.prop__place, .step__n, .wstep__q, .jcard__n, .flip__front small, .hero__trust .ph, .net .ph, .flow li) { --lbl: var(--brand); }
:root:not([data-theme="dark"]) :is(.prop__place, .step__n, .wstep__q, .jcard__n, .flip__front small) { color: var(--brand); }
:root:not([data-theme="dark"]) .flow li::before { color: var(--brand); }
