/* =========================================================
   DireCasa — hoja de estilos de la web nueva
   Concepto: la "casa doble" del logotipo. Fotografía grande,
   negro puro y blanco, y el cian de la marca solo donde
   marca una acción o una cifra.
   ========================================================= */

:root {
  --ink: #000000;          /* negro de marca */
  --paper: #ffffff;
  --stone: #eef2f1;        /* blanco hormigón, con un punto de cian */
  --mist: #8c9897;         /* gris de texto secundario sobre negro */
  --slate: #4c5655;        /* gris de texto secundario sobre blanco */
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(0, 0, 0, .12);
  --cyan: #00fff0;         /* cian de marca */
  --cyan-soft: rgba(0, 255, 240, .16);

  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  /* escala tipográfica (aprox. 1.333) */
  --t-xs: .9rem;
  --t-s: 1.02rem;
  --t-m: 1.0938rem;
  --t-l: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  --t-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --t-2xl: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem);
  --t-3xl: clamp(2.9rem, 1rem + 6.6vw, 7.6rem);

  --gut: max(20px, 4.5vw);
  --gut-l: max(20px, env(safe-area-inset-left, 0px), 4.5vw);
  --gut-r: max(20px, env(safe-area-inset-right, 0px), 4.5vw);
  --max: 1440px;
  --r-s: 10px;
  --r-m: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--t-m);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}

.h2 {
  font-size: var(--t-2xl);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.lead { font-size: var(--t-l); line-height: 1.5; }

/* ---------- botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 var(--t-s)/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 42px; padding: 0 1.2em; font-size: var(--t-xs); }
.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--cyan:hover { background: var(--paper); }
.btn--ghost { border-color: rgba(255, 255, 255, .4); color: var(--paper); background: rgba(0, 0, 0, .15); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--cyan); color: var(--ink); }

.link {
  font-weight: 500; font-size: var(--t-s); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .4s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- cabecera ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__in {
  max-width: var(--max); margin-inline: auto;
  padding: 18px var(--gut-r) 18px var(--gut-l);
  display: flex; align-items: center; gap: 32px;
}
.site-header.is-solid {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.site-header.is-hidden { transform: translateY(-110%); }
.brand img { width: 128px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a, .header-phone {
  font-size: var(--t-xs); font-weight: 400; text-decoration: none; color: rgba(255, 255, 255, .82);
  transition: color .25s;
}
.nav a:hover, .header-phone:hover { color: var(--cyan); }
.site-header__actions { display: flex; align-items: center; gap: 20px; }
.langs { display: flex; gap: 2px; }
.langs a {
  font-size: var(--t-xs); font-weight: 500; letter-spacing: .04em; text-decoration: none;
  color: rgba(255, 255, 255, .55); padding: 6px 7px; border-radius: 6px; transition: color .25s, background-color .25s;
}
.langs a:hover { color: var(--paper); }
.langs a[aria-current] { color: var(--ink); background: var(--paper); }
.mobile-menu nav.langs--menu { display: flex; gap: 8px; margin-top: auto; margin-bottom: 26px; }
.mobile-menu nav.langs--menu a { font-size: 1rem; line-height: 1; letter-spacing: .04em; padding: 12px 16px; border: 1px solid var(--line-dark); color: rgba(255,255,255,.7); }
.mobile-menu nav.langs--menu a[aria-current] { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 0; color: var(--paper); font: 400 var(--t-xs) var(--sans); cursor: pointer; padding: 8px 0;
}
.menu-toggle__bars { display: grid; gap: 5px; width: 22px; }
.menu-toggle__bars i { display: block; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gut-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gut-l);
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a {
  font-size: clamp(2rem, 9vw, 3rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.25; text-decoration: none;
}
.mobile-menu nav:not(.langs) a:first-child { color: var(--cyan); }
.mobile-menu__foot { display: grid; gap: 6px; color: var(--mist); }
.mobile-menu__foot a { text-decoration: none; }

@media (max-width: 1080px) {
  .nav, .header-phone { display: none; }
  .site-header__actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .site-header__actions .btn { display: none; }
  .site-header__actions > .langs { display: none; }
  .brand img { width: 112px; }
}

/* ---------- portada: la casa que se abre ---------- */
.hero { position: relative; background: var(--ink); }
.hero__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden;
  /* geometría de la casa en % del escenario (la anima JS) */
  --ax: 73%; --ay: 20%;          /* tejado */
  --l: 55%; --r: 91%;            /* paredes */
  --sh: 37%; --b: 64%;           /* hombros y suelo */
}
.hero__window {
  position: absolute; inset: 0;
  clip-path: polygon(var(--ax) var(--ay), var(--r) var(--sh), var(--r) var(--b), var(--l) var(--b), var(--l) var(--sh));
  will-change: clip-path;
}
.hero__window picture, .hero__window img { width: 100%; height: 100%; }
.hero__window img { object-fit: cover; object-position: 50% 60%; transform: scale(1.12); transform-origin: 60% 50%; }
.hero__shade {
  position: absolute; inset: 0; opacity: .35;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.85) 100%);
}
.hero__ghost { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero__ghost-path { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linejoin: miter; }
.hero__ghost-path--narrow { display: none; }
@media (max-width: 900px) { .hero__ghost-path--wide { display: none; } .hero__ghost-path--narrow { display: inline; } }

.hero__copy {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  max-width: var(--max); margin-inline: auto;
  padding: 0 var(--gut-r) clamp(28px, 6vh, 64px) var(--gut-l);
  display: grid; grid-template-columns: 54% minmax(0, 1fr); gap: 0; align-items: end;
  pointer-events: none;
}
.hero__copy a { pointer-events: auto; }
.hero__title {
  font-size: var(--t-3xl); font-weight: 300; line-height: .92; letter-spacing: -.055em;
  margin-left: -.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--accent { color: var(--cyan); }
.hero__aside { display: grid; gap: 22px; padding-bottom: .5em; padding-left: 0; }
.hero__aside p { color: rgba(255,255,255,.78); font-size: var(--t-s); max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__after {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 2; transform: translateY(-50%);
  text-align: center; padding: 0 var(--gut-r) 0 var(--gut-l);
  font-family: var(--serif); font-size: clamp(2.2rem, 1rem + 5vw, 6rem); line-height: 1; letter-spacing: -.01em;
  opacity: 0; pointer-events: none; color: var(--paper); text-shadow: 0 2px 6px rgba(0,0,0,.45), 0 4px 30px rgba(0,0,0,.6), 0 0 90px rgba(0,0,0,.55);
}
.hero__after::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(1100px, 110%); height: 260%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0));
}

@media (min-width: 901px) and (max-height: 820px) {
  .hero__aside p { display: none; }
}
@media (max-width: 900px) {
  .hero__stage { --ax: 50%; --ay: 17%; --l: 12%; --r: 88%; --sh: 31%; --b: 54%; min-height: 640px; }
  .hero__copy { grid-template-columns: 1fr; gap: 20px; }
  .hero__title { font-size: clamp(2.6rem, 12.5vw, 4.6rem); }
  .hero__aside { padding-bottom: 0; }
  .hero__aside p { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* ---------- valorador ---------- */
.valorar { background: var(--paper); color: var(--ink); padding-block: clamp(80px, 12vw, 160px); }
.valorar__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.valorar__text { display: grid; gap: 28px; }
.valorar__text .lead { color: var(--slate); max-width: 38ch; }
.ticks { display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; font-size: var(--t-s); color: var(--slate); max-width: 46ch; }
.ticks li strong { color: var(--ink); font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 11px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%);
}
.valorar__call { font-size: var(--t-s); color: var(--slate); }
.valorar__call a { color: var(--ink); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.valorar__form {
  position: relative; background: var(--stone); border-radius: var(--r-m);
  padding: clamp(8px, 1vw, 12px);
  box-shadow: 0 0 0 1px var(--line-light), 0 40px 80px -40px rgba(0, 40, 38, .35);
}
.tf-frame { min-height: 580px; height: 580px; border-radius: 12px; overflow: hidden; background: var(--paper);
  clip-path: inset(0 round 12px); -webkit-mask-image: -webkit-radial-gradient(white, black); isolation: isolate; transform: translateZ(0); }
.tf-frame { display: flex; flex-direction: column; }
.tf-frame > * { flex: 1 1 auto; width: 100% !important; height: 100% !important; min-height: 0; border-radius: 12px !important; overflow: hidden; }
.tf-frame iframe { width: 100% !important; height: 100% !important; border: 0 !important; display: block; border-radius: 12px !important; box-shadow: none !important; }
@media (max-width: 900px) {
  .valorar__grid { grid-template-columns: 1fr; }
  .tf-frame { min-height: 520px; height: 520px; }
}

/* ---------- manifiesto ---------- */
.manifesto { padding-block: clamp(110px, 16vw, 220px); }
.manifesto__text {
  font-size: clamp(1.7rem, 1rem + 3.2vw, 4rem); font-weight: 300; line-height: 1.16; letter-spacing: -.03em;
  max-width: 24ch;
}
.manifesto__text .w { opacity: .2; transition: opacity .2s linear; }
.manifesto__text .w.is-on { opacity: 1; }
.reduced .manifesto__text .w { opacity: 1; }

/* ---------- presentación ---------- */
.showcase { padding-block: clamp(100px, 13vw, 190px) clamp(100px, 14vw, 200px); }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head p { max-width: 44ch; color: var(--mist); font-size: var(--t-s); }
.section-head .h2 { max-width: 16ch; }

.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 14vw, 210px);
}
.tile {
  margin: 0; position: relative; border-radius: var(--r-s); overflow: hidden; background: #0d1312;
  isolation: isolate; cursor: default; --mx: 50%; --my: 50%;
}
.tile--a { grid-column: 1 / 8; grid-row: span 3; }
.tile--b { grid-column: 8 / 13; grid-row: span 2; }
.tile--c { grid-column: 8 / 13; grid-row: span 3; }
.tile--d { grid-column: 1 / 8; grid-row: span 2; }
.tile--e { grid-column: 1 / 13; grid-row: span 2; }

/* el mismo comportamiento para las cinco piezas */
.tile__media { position: absolute; inset: -8% 0; overflow: hidden; }
.tile__media > img, .tile__media > svg { width: 100%; height: 100%; transition: transform 1.4s var(--ease), filter 1s var(--ease); }
.tile__media > img { object-fit: cover; }
.tile__media--plan { background: #eef2f1; display: grid; place-items: center; padding: 12% 6% 24%; }
@media (hover: hover) { .tile:hover .tile__media > img, .tile:hover .tile__media > svg { transform: scale(1.06); } }
@media (hover: hover) { .tile:hover .tile__media > img { filter: saturate(1.08) contrast(1.04); } }

.tour-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.tour-frame.is-ready { opacity: 1; }
/* el título y el foco quedan encima del tour sin bloquear el ratón */
.tile--tour figcaption { pointer-events: none; }

/* foco de luz que sigue al cursor */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0, 255, 240, .22), rgba(0, 255, 240, 0) 60%);
  mix-blend-mode: screen; transition: opacity .5s var(--ease);
}
/* marco cian que aparece al pasar el cursor */
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 240, 0); transition: box-shadow .5s var(--ease);
}
@media (hover: hover) { .tile:hover::before { opacity: 1; } }
@media (hover: hover) { .tile:hover::after { box-shadow: inset 0 0 0 1px rgba(0, 255, 240, .7); } }

.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 80px 24px 22px; display: grid; gap: 4px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.78));
}
.tile figcaption strong { font-weight: 500; font-size: var(--t-l); letter-spacing: -.01em; display: flex; align-items: center; }
.tile figcaption strong::before {
  content: ""; width: 0; height: 2px; margin-right: 0; background: var(--cyan); transition: width .5s var(--ease), margin-right .5s var(--ease);
}
@media (hover: hover) { .tile:hover figcaption strong::before { width: 28px; margin-right: 12px; } }
.tile figcaption span {
  font-size: var(--t-s); color: rgba(255,255,255,.78);
  transform: translateY(4px); transition: transform .5s var(--ease), color .5s var(--ease);
}
@media (hover: hover) { .tile:hover figcaption span { transform: translateY(0); color: var(--paper); } }
@media (max-width: 800px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 10px; }
  .tile--a, .tile--d, .tile--e { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3.2; }
  .tile--b, .tile--c { grid-column: span 1; grid-row: auto; aspect-ratio: 3 / 4; }
  .tile figcaption { padding: 48px 16px 16px; gap: 2px; }
  .tile figcaption strong { font-size: 1.05rem; line-height: 1.2; }
  .tile figcaption span { font-size: .9rem; line-height: 1.35; transform: none; }
  .tile--b figcaption span, .tile--c figcaption span { display: none; }
  .tile__media--plan { padding: 8% 4% 30%; }
}


/* ---------- método ---------- */
.method { background: var(--stone); color: var(--ink); }
.method__pin { padding-block: clamp(90px, 10vw, 140px); overflow: hidden; }

.method__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.method__head .h2 { max-width: 15ch; }
.method__progress { width: min(260px, 30vw); height: 1px; background: var(--line-light); position: relative; flex: none; margin-bottom: 1.2em; }
.method__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.method__viewport { padding-left: var(--gut-l); }
.method__track { display: flex; gap: 14px; width: max-content; padding-right: var(--gut-r); }
.step {
  width: clamp(280px, 30vw, 420px); min-height: clamp(320px, 34vw, 440px);
  background: var(--paper); border-radius: var(--r-m); padding: clamp(24px, 2.4vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 0 0 1px var(--line-light);
}
.step__n {
  font-family: var(--serif); font-size: clamp(4rem, 3rem + 3vw, 7rem); line-height: .8; letter-spacing: -.02em;
  margin-bottom: auto; color: var(--ink);
}
.step h3 { font-size: var(--t-xl); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.step p { font-size: var(--t-s); color: var(--slate); }
.step:last-child { background: var(--ink); color: var(--paper); }
.step:last-child .step__n { color: var(--cyan); }
.step:last-child p { color: var(--mist); }

@media (min-width: 1024px) {
  .method__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(90px + 2vh) 5vh; }
  .method__head { margin-bottom: min(5vw, 5vh); }
  .method__head .h2 { font-size: min(var(--t-2xl), 7.2vh); max-width: 24ch; }
  .step { width: clamp(300px, 32vw, 440px); min-height: clamp(220px, calc(100vh - 380px), 440px); }
  .step__n { font-size: min(clamp(4rem, 3rem + 3vw, 7rem), 11vh); }
}
@media (max-width: 1023px), (prefers-reduced-motion: reduce) {
  .method__progress { display: none; }
  .method__viewport { padding-right: var(--gut-r); }
  .method__track { width: auto; flex-direction: column; padding-right: 0; }
  .step { width: auto; min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; row-gap: 6px; align-items: start; }
  .step__n { grid-row: span 2; font-size: 3.4rem; margin: 0; }
}

/* ---------- honorarios ---------- */
.fees { padding-block: clamp(100px, 14vw, 200px); }
.fees__panel {
  background: var(--cyan); color: var(--ink); border-radius: 26px;
  padding: clamp(28px, 4vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px);
}
.fees__intro { display: grid; gap: 20px; align-content: start; }
.fees__intro .h2 { max-width: 13ch; }
.fees__intro p { max-width: 40ch; color: #0b2b29; font-size: var(--t-s); }
.fees__cards { display: grid; grid-template-columns: 1fr; gap: 12px; align-self: end; }
.fee { background: var(--paper); border-radius: var(--r-m); padding: clamp(20px, 2.4vw, 32px); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; }
.fee__range { font-size: var(--t-s); color: var(--slate); }
.fee__value--s { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.6rem); line-height: 1.05; max-width: 16ch; }
.fees__notes .link { color: var(--ink); }
.fee__value { font-family: var(--serif); font-size: clamp(2.3rem, 1.5rem + 2.8vw, 4.4rem); line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fees__notes { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; font-size: var(--t-xs); color: #0b2b29; border-top: 1px solid rgba(0,0,0,.18); padding-top: 18px; }

.included__title { margin: clamp(56px, 7vw, 96px) 0 24px; font-size: var(--t-l); font-weight: 400; }
.included { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); border-top: 1px solid var(--line-dark); }
.included li {
  display: flex; align-items: center; gap: 14px; padding: 18px 4px; font-size: var(--t-s);
  border-bottom: 1px solid var(--line-dark);
}
.included svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .fees__panel { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .fees__cards { grid-template-columns: 1fr; }
}

/* ---------- fundador ---------- */
.founder { background: var(--paper); color: var(--ink); padding-block: clamp(100px, 13vw, 190px); }
.founder__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.founder__photo { position: relative; aspect-ratio: 5 / 6; max-width: 100%; }
/* misma caja que la foto, desplazada: así las líneas quedan paralelas al tejado */
.founder__ghost { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; transform: translate(8%, -6%); }
.founder__ghost path { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.founder__photo img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 8% 50%;
  clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
}
.founder__text { display: grid; gap: 22px; }
.founder__quote { font-family: var(--serif); font-size: clamp(2.2rem, 1.2rem + 3vw, 4.4rem); line-height: 1.02; letter-spacing: -.015em; max-width: 17ch; margin-bottom: 8px; }
.founder__text > p { color: var(--slate); max-width: 52ch; }
.founder__facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 10px 0 0; padding-top: 22px; border-top: 1px solid var(--line-light); }
.founder__facts dt { font-size: var(--t-xs); color: var(--slate); }
.founder__facts dd { margin: 0; font-weight: 500; }
.founder__facts a { text-decoration: none; }
.founder__links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 10px; }
@media (max-width: 860px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__photo { width: min(78%, 420px); margin-inline: auto 0; margin-right: 9%; }
}

/* ---------- zona ---------- */
.area { position: relative; overflow: hidden; padding-block: clamp(120px, 16vw, 230px); isolation: isolate; }
.area__bg { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; z-index: -2; }
.area::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.35) 100%); }
.area__in { display: grid; gap: 18px; }
.area__in > p { color: rgba(255,255,255,.75); }
.area__towns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.area__towns li {
  padding: 10px 18px; border-radius: 999px; font-size: var(--t-s);
  border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.25); backdrop-filter: blur(6px);
}

/* ---------- blog ---------- */
.journal { padding-block: clamp(100px, 13vw, 180px); }
.journal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.post { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.post__media { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r-s); overflow: hidden; background: #0d1312; margin-bottom: 8px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; opacity: .9; }
.post:hover .post__media img { transform: scale(1.05); opacity: 1; }
.post h3 { font-size: var(--t-l); font-weight: 400; letter-spacing: -.02em; line-height: 1.25; }
.post:hover h3 { color: var(--cyan); }
.post p { font-size: var(--t-s); color: var(--mist); }
@media (max-width: 860px) {
  .journal__grid { grid-template-columns: 1fr; }
  .post { grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; }
  .post__media { grid-row: span 2; margin: 0; aspect-ratio: 1; }
}

/* ---------- preguntas ---------- */
.faq { background: var(--stone); color: var(--ink); padding-block: clamp(100px, 12vw, 170px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid .h2 { max-width: 10ch; }
.faq__list { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-size: var(--t-l); font-weight: 400; letter-spacing: -.015em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details p { padding: 0 48px 26px 0; color: var(--slate); max-width: 62ch; }
.faq details a { color: var(--ink); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- cierre ---------- */
.closing { padding-block: clamp(110px, 14vw, 200px); }
.closing__grid > * { min-width: 0; }
.closing__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 100px); align-items: end; }
.closing__title { font-size: var(--t-2xl); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 28px; }
.closing__phone {
  display: inline-block; text-decoration: none; color: var(--cyan);
  font-family: var(--serif); font-size: clamp(3rem, 1.4rem + 7vw, 8.4rem); line-height: .95; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.closing__phone:hover { color: var(--paper); }
.closing__alt { display: flex; gap: 28px; margin-top: 22px; font-size: var(--t-s); }
.closing__alt a { color: var(--mist); text-decoration: none; }
.closing__alt a:hover { color: var(--paper); }
.callback { border: 1px solid var(--line-dark); border-radius: var(--r-m); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.callback h3 { font-size: var(--t-xl); font-weight: 400; letter-spacing: -.03em; }
.callback > p { color: var(--mist); font-size: var(--t-s); }
.callback__form { display: flex; gap: 10px; margin-top: 8px; }
.callback__form { width: 100%; }
.callback__form input {
  flex: 1; min-width: 0; width: 100%; min-height: 52px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--paper);
  font: 400 var(--t-m) var(--sans);
}
.callback__form input::placeholder { color: var(--mist); }
.callback__form input:focus { border-color: var(--cyan); outline: none; }
.callback__note { font-size: var(--t-xs) !important; }
.callback__note a { color: var(--paper); }
.callback__error { color: #ffb4a8 !important; }
.callback__done h3 { color: var(--cyan); }
@media (max-width: 860px) {
  .closing__grid { grid-template-columns: minmax(0, 1fr); }
  .closing__phone { font-size: clamp(2.8rem, 15vw, 5rem); }
  .callback { width: 100%; }
}
@media (max-width: 420px) { .callback__form { flex-direction: column; } .callback__form input { flex: none; } }

/* ---------- pie ---------- */
.site-footer { border-top: 1px solid var(--line-dark); padding-top: clamp(64px, 8vw, 110px); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.site-footer__brand { display: grid; gap: 20px; align-content: start; }
.site-footer__brand img { width: 150px; height: auto; }
.site-footer__brand p { color: var(--mist); font-size: var(--t-s); max-width: 38ch; }
.site-footer__h { font-size: var(--t-xs); font-weight: 400; color: var(--mist); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; font-size: var(--t-s); }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--cyan); }
.site-footer__aicat { margin-top: 22px; font-size: var(--t-xs); color: var(--mist); max-width: 30ch; }
.site-footer__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(56px, 7vw, 96px); padding-block: 22px; border-top: 1px solid var(--line-dark);
  font-size: var(--t-xs); color: var(--mist);
}
.site-footer__base a { text-decoration: none; }
.site-footer__base a[href*="canvia22"] { color: var(--cyan); font-weight: 500; }
.site-footer__base a[href*="canvia22"]:hover { color: var(--paper); }
.subvencion { background: var(--paper); color: var(--ink); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); }
.subvencion__in { display: flex; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.subvencion__logos { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; max-width: 100%; }
.subvencion__logos img { height: 42px; width: auto; max-width: calc(50% - 14px); object-fit: contain; object-position: left center; }
.subvencion p { font-size: var(--t-xs); color: var(--slate); max-width: 70ch; flex: 1 1 320px; }
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- WhatsApp ---------- */
.wsp {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.wsp:hover { transform: scale(1.06); background: var(--cyan); }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero__window img { transform: none; }
}

/* =========================================================
   Páginas interiores: contacto y textos legales
   ========================================================= */
.page main { padding-top: calc(110px + env(safe-area-inset-top, 0px)); }

.contact { padding-bottom: clamp(90px, 12vw, 160px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; padding-top: clamp(30px, 5vw, 70px); }
.contact__info { display: grid; gap: 26px; align-content: start; }
.contact__title { font-size: var(--t-2xl); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; }
.contact__info .lead { color: rgba(255,255,255,.75); max-width: 40ch; }
.contact__list { display: grid; gap: 18px; margin: 10px 0 0; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.contact__list dt { font-size: var(--t-xs); color: var(--mist); }
.contact__list dd { margin: 0; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--cyan); }
.contact__card { color-scheme: light; background: var(--paper); color: var(--ink); border-radius: var(--r-m); padding: clamp(24px, 3.4vw, 48px); }
.contact__done { display: grid; gap: 16px; justify-items: start; }
.contact__done h2 { font-size: var(--t-xl); font-weight: 400; letter-spacing: -.03em; }
.contact__done p { color: var(--slate); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: var(--t-xs); font-weight: 500; }
.field label span { font-weight: 300; color: var(--slate); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.18); background: var(--paper); color: var(--ink);
  font: 400 var(--t-m) var(--sans); color-scheme: light;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--cyan-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-xs); color: var(--slate); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); }
.form__error { color: #b42318; font-size: var(--t-s); }
.form .btn { justify-self: start; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

.legal { padding-bottom: clamp(90px, 12vw, 160px); }
.legal__head { display: grid; gap: 14px; padding-block: clamp(30px, 5vw, 70px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line-dark); margin-bottom: clamp(36px, 5vw, 64px); }
.legal__head h1 { font-size: var(--t-2xl); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; }
.legal__head p { color: rgba(255,255,255,.75); max-width: 56ch; }
.legal__head .legal__date { font-size: var(--t-xs); color: var(--mist); }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--t-l); font-weight: 400; letter-spacing: -.015em; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: rgba(255,255,255,.8); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; margin: 10px 0; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--paper); font-weight: 500; }
.prose a { color: var(--cyan); }
.prose__small { font-size: var(--t-xs); }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line-dark); border-radius: var(--r-s); }
.table-scroll table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--t-xs); }
.table-scroll th, .table-scroll td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-dark); color: rgba(255,255,255,.8); }
.table-scroll th { font-weight: 500; color: var(--paper); }
.table-scroll tr:last-child td { border-bottom: 0; }

/* ---------- portales: cinta hacia la izquierda, el color se enciende al pasar por el centro ---------- */
.portals { padding-block: clamp(80px, 9vw, 140px) clamp(70px, 8vw, 120px); overflow: hidden; }
.portals__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 60px; margin-bottom: clamp(44px, 6vw, 80px); }
.portals__title { font-size: var(--t-2xl); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; max-width: 15ch; }
.portals__lead { color: var(--mist); font-size: var(--t-m); line-height: 1.5; max-width: 34ch; }
.portals__belt {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
/* franja de luz del centro */
.portals__belt::before {
  content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.075), rgba(255,255,255,0));
  width: min(46vw, 560px); left: 50%; transform: translateX(-50%);
}
.portals__track {
  --h: clamp(30px, 2.2rem + 1.2vw, 58px);
  display: flex; align-items: center; gap: clamp(64px, 8vw, 140px); width: max-content;
  padding: clamp(40px, 5vw, 70px) clamp(32px, 4vw, 70px); will-change: transform;
}
.portal { --p: 0; position: relative; flex: none; height: calc(var(--h) * var(--k, 1)); }
.portal img { display: block; height: 100%; width: auto; }
.portal__w { opacity: clamp(0, calc(.92 - (var(--p) - .55) * 2.1), .92); }
.portal__c {
  position: absolute; inset: 0; opacity: var(--p);
  filter: drop-shadow(0 0 22px var(--glow));
  transform: scale(calc(1 + var(--p) * .06)); transform-origin: 50% 50%;
}
.portal--idealista   { --k: 1;    --glow: rgba(225,245,111,.38); }
.portal--fotocasa    { --k: 1.04; --glow: rgba(60,80,255,.6); }
.portal--habitaclia  { --k: 1.32; --glow: rgba(255,102,0,.42); }
.portal--milanuncios { --k: 1;    --glow: rgba(24,186,93,.45); }
.portal--yaencontre  { --k: 1;    --glow: rgba(229,0,90,.45); }
/* sin animación: los logos quedan quietos, centrados y en color */
.reduced .portals__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 40px; }
.reduced .portal { --p: 1; }
.reduced .portals__belt { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 700px) {
  .portals__track { --h: 30px; gap: 56px; }
  .portals__belt::before { width: 70vw; }
  .portals__belt {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
}

/* ---------- todo incluido ---------- */
.incl { padding-block: clamp(100px, 14vw, 200px); border-top: 1px solid var(--line-dark); }
.portals + .incl { padding-top: clamp(80px, 10vw, 150px); }
.incl__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.incl__aside { align-self: stretch; }
.incl__sticky { position: sticky; top: calc(120px + env(safe-area-inset-top, 0px)); display: grid; gap: 22px; justify-items: start; }
.incl__title { font-size: var(--t-2xl); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; }
.incl__num {
  font-family: var(--serif); font-size: clamp(8rem, 5rem + 12vw, 17rem); line-height: .78; letter-spacing: -.04em;
  color: var(--cyan); font-variant-numeric: tabular-nums; margin: 18px 0 4px -.04em;
}
.incl__lead { color: rgba(255,255,255,.75); font-size: var(--t-l); line-height: 1.45; max-width: 26ch; }
.incl__sticky .btn { margin-top: 10px; }

.incl__list { border-top: 1px solid rgba(255,255,255,.22); }
.incl__row {
  position: relative;
  display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, .95fr); column-gap: 26px; align-items: baseline;
  padding: 26px 8px 26px 4px;
  transition: padding-left .5s var(--ease), background-color .4s var(--ease);
}
.incl__row::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: rgba(255,255,255,.22);
  transform: scaleX(var(--line, 1)); transform-origin: 0 50%;
}
.incl__row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.incl__row svg {
  width: 30px; height: 30px; align-self: center; fill: none; stroke: var(--cyan); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s var(--ease), transform .5s var(--ease);
}
.incl__row h3 { font-size: var(--t-xl); font-weight: 300; letter-spacing: -.03em; line-height: 1.15; transition: color .4s var(--ease); }
.incl__row p { font-size: var(--t-s); color: var(--mist); transition: color .4s var(--ease); }
.incl__row:hover { padding-left: 18px; background: linear-gradient(90deg, rgba(0,255,240,.07), rgba(0,255,240,0) 70%); }
.incl__row:hover::after { transform: scaleX(1); }
.incl__row:hover svg { transform: scale(1.15) rotate(-6deg); }
.incl__row:hover h3 { color: var(--cyan); }
.incl__row:hover p { color: rgba(255,255,255,.85); }

@media (max-width: 900px) {
  .incl__grid { grid-template-columns: 1fr; }
  .incl__sticky { position: static; }
  .incl__num { font-size: clamp(7rem, 34vw, 11rem); }
  .incl__row { grid-template-columns: 28px minmax(0, 1fr); row-gap: 6px; column-gap: 16px; padding: 20px 0; }
  .incl__row p { grid-column: 2; }
  .incl__row:hover { padding-left: 0; }
}

.area__title { font-size: var(--t-2xl); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; }
.area__in { justify-items: start; }
.area__in > p { max-width: 46ch; font-size: var(--t-l); line-height: 1.45; margin-bottom: 14px; }
