/* Psicoanálisis en Barcelona — sistema "dos arcos"
   Papel cálido + tinta + vino. Instrument Serif para la voz, Hanken Grotesk para leer. */
:root {
  --paper: #f3eee6;
  --paper-2: #ebe4d8;
  --paper-3: #e2d8c9;
  --ink: #1d1a17;
  --ink-2: #3a342e;
  --muted: #6d645a;
  --wine: #6a2232;
  --wine-deep: #451520;
  --wine-soft: #c99aa0;
  --clay: #b98c6c;
  --line: rgba(29, 26, 23, .14);
  --line-strong: rgba(29, 26, 23, .32);
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --header: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
::selection { color: var(--paper); background: var(--wine); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 12px; padding: 10px 14px; color: var(--paper); background: var(--ink); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.shell { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.is-scrolled { background: rgba(243, 238, 230, .9); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; fill: none; stroke: var(--wine); stroke-width: 2.2; stroke-linecap: round; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font: 400 23px/1 var(--serif); letter-spacing: -.01em; }
.brand-text small { margin-top: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); font-size: 14.5px; font-weight: 500; }
.site-nav > a:not(.nav-cta) { position: relative; text-decoration: none; padding: 6px 0; }
.site-nav > a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.lang-switch { display: flex; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line-strong); font-size: 12.5px; letter-spacing: .08em; }
.lang-switch a, .lang-switch span { padding: 4px 6px; text-decoration: none; border-radius: 999px; }
.lang-switch span[aria-current] { color: var(--paper); background: var(--ink); }
.lang-switch a:hover { background: var(--paper-3); }
.nav-cta { padding: 11px 20px; color: var(--paper); background: var(--wine); border-radius: 999px; text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.nav-cta:hover { background: var(--wine-deep); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-solid { color: var(--paper); background: var(--ink); }
.btn-solid:hover { background: var(--wine); }
.btn-line { border: 1px solid var(--line-strong); }
.btn-line:hover { border-color: var(--ink); background: rgba(29, 26, 23, .04); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.kicker span { display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--wine); border: 1px solid currentColor; border-radius: 50% 50% 0 0; font: 400 14px/1 var(--serif); letter-spacing: 0; }
.eyebrow { margin-bottom: 26px; color: var(--wine); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
h2 { font: 400 clamp(40px, 5.4vw, 76px)/1 var(--serif); letter-spacing: -.02em; }
h2 em { color: var(--wine); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(32px, 5vw, 90px);
  min-height: 100svh;
  padding: calc(var(--header) + 40px) var(--gutter) 150px;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.hero h1 { font: 400 clamp(56px, 7.6vw, 118px)/.92 var(--serif); letter-spacing: -.035em; }
.hero h1 em { display: block; color: var(--wine); }
.hero-rotate { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em; margin: 34px 0 22px; font: 400 clamp(22px, 2.3vw, 32px)/1.2 var(--serif); }
.rotate-intro { color: var(--muted); }
.rotate-track { position: relative; display: inline-grid; flex: 1 1 14ch; min-width: 0; }
.rotate-track > span { grid-area: 1 / 1; font-style: italic; opacity: 0; transform: translateY(.45em); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rotate-track > span.is-active { opacity: 1; transform: none; }
.rotate-track > span.is-leaving { opacity: 0; transform: translateY(-.45em); }
.hero-lead { max-width: 54ch; color: var(--ink-2); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-visual { position: relative; margin: 0; justify-self: center; width: min(100%, 470px); transform: translate3d(0, var(--float, 0), 0); }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 6px 6px; background: var(--paper-3); }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-visual .arch { animation: arch-in 1.4s var(--ease) both; }
@keyframes arch-in { from { clip-path: inset(100% 0 0 0 round 999px 999px 6px 6px); } to { clip-path: inset(0 0 0 0 round 999px 999px 6px 6px); } }
.hero-visual figcaption { position: absolute; left: -26px; bottom: 34px; display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font: italic 400 20px/1 var(--serif); box-shadow: 0 18px 40px -24px rgba(29, 26, 23, .45); }
.hero-visual figcaption i { width: 8px; height: 8px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 0 rgba(106, 34, 50, .5); animation: pulse 2.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(106, 34, 50, 0); } 100% { box-shadow: 0 0 0 0 rgba(106, 34, 50, 0); } }
.hero-visual::before, .hero-visual::after { content: ''; position: absolute; z-index: -1; border: 1px solid var(--clay); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.hero-visual::before { inset: -18px -18px 40% -18px; opacity: .7; }
.hero-visual::after { inset: -38px -38px 52% -38px; opacity: .35; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-facts { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.hero-facts li { display: grid; gap: 2px; padding: 18px 18px 0 0; }
.hero-facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-facts strong { font: 400 22px/1.1 var(--serif); }
.hero-facts span { color: var(--muted); font-size: 13.5px; }

/* ---------- Approach ---------- */
.approach { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; padding: clamp(100px, 13vw, 180px) 0 clamp(80px, 10vw, 140px); }
.approach-head { grid-column: 1 / span 6; }
.approach-head h2 { max-width: 14ch; }
.approach-body { grid-column: 8 / span 5; padding-top: 70px; color: var(--ink-2); }
.approach-body .lead { color: var(--ink); font: 400 27px/1.3 var(--serif); }
.pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line-strong); counter-reset: p; }
.pillars li { position: relative; padding: 30px 30px 0 0; }
.pillars li + li { padding-left: 30px; border-left: 1px solid var(--line); }
.pillars h3 { margin-bottom: 8px; font: italic 400 34px/1 var(--serif); color: var(--wine); }
.pillars p { max-width: 32ch; color: var(--muted); }

/* ---------- Reasons ---------- */
.reasons { color: var(--paper); background: var(--wine-deep); background-image: radial-gradient(120% 80% at 100% 0%, #5d1d2b 0, transparent 60%); }
.reasons-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); padding: clamp(90px, 11vw, 160px) 0; }
.reasons .kicker { color: rgba(243, 238, 230, .7); }
.reasons .kicker span { color: var(--wine-soft); }
.reasons h2 em { color: var(--wine-soft); }
.reasons-head p:last-child { max-width: 40ch; margin-top: 28px; color: rgba(243, 238, 230, .75); }
.reasons-head { position: sticky; top: calc(var(--header) + 40px); align-self: start; }
.reasons-list { border-top: 1px solid rgba(243, 238, 230, .25); }
.reasons-list li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(243, 238, 230, .16); font: 400 clamp(22px, 2.2vw, 30px)/1.2 var(--serif); transition: padding .4s var(--ease), color .3s; }
.reasons-list li span { color: var(--wine-soft); font: 500 12px/1 var(--sans); letter-spacing: .14em; }
.reasons-list li:hover { padding-left: 12px; color: #fff; }

/* ---------- Migration ---------- */
.migration { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 110px); padding: clamp(100px, 12vw, 170px) 0; }
.migration-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.migration-art svg { width: 100%; height: 100%; fill: var(--wine); stroke: none; }
.migration-art .m-line { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.4s var(--ease) .2s; }
.migration-art.is-visible .m-line { stroke-dashoffset: 0; }
.migration-art span { position: absolute; font: italic 400 26px/1 var(--serif); color: var(--ink-2); }
.migration-art .w1 { left: 0; top: 84%; }
.migration-art .w2 { left: 50%; top: 18%; transform: translateX(-50%); }
.migration-art .w3 { right: 0; top: 84%; }
.migration-copy h2 { margin-bottom: 30px; max-width: 13ch; }
.migration-copy > p { max-width: 56ch; color: var(--ink-2); }
.migration-copy blockquote { margin: 34px 0 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--wine); font: italic 400 26px/1.3 var(--serif); }

/* ---------- Team ---------- */
.team { padding: clamp(40px, 6vw, 80px) 0 clamp(100px, 12vw, 170px); }
.team-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 60px; align-items: end; margin-bottom: 64px; }
.team-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.team-head p { color: var(--muted); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.person { display: grid; grid-template-rows: auto 1fr; }
.person-photo { position: relative; display: block; overflow: hidden; border-radius: 999px 999px 4px 4px; background: var(--paper-3); }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.person-photo:hover img { transform: scale(1.035); }
.person-nahuel .person-photo { background: #111; }
.person-copy { padding-top: 30px; }
.person-role { margin-bottom: 6px; color: var(--wine); font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.person h3 { margin-bottom: 14px; font: 400 clamp(40px, 4.4vw, 60px)/1 var(--serif); letter-spacing: -.02em; }
.person-copy > p { max-width: 50ch; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.tags li { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; }
.person-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Services ---------- */
.services { padding: clamp(90px, 11vw, 160px) 0; background: var(--paper-2); }
.services-head { margin-bottom: 56px; }
.services-head h2 { max-width: 16ch; }
.services-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.services-list article { position: relative; padding: 30px 26px 34px 0; transition: background .4s; }
.services-list article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.services-list .num { color: var(--wine); font: italic 400 22px/1 var(--serif); }
.services-list h3 { margin: 26px 0 8px; font: 400 29px/1.08 var(--serif); }
.services-list .meta { margin-bottom: 14px; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.services-list p:last-child { color: var(--muted); font-size: 15.5px; }
.services-note { margin: 34px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- First consultation ---------- */
.first { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(40px, 7vw, 120px); padding: clamp(100px, 12vw, 170px) 0; }
.first-photo { margin: 0; transform: translate3d(0, var(--float, 0), 0); }
.arch-soft { border-radius: 300px 300px 6px 6px; }
.first-copy h2 { margin-bottom: 30px; max-width: 14ch; }
.first-copy > p { max-width: 58ch; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 40px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 1px solid var(--ink); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--wine); font: italic 400 20px/1 var(--serif); }
.steps strong { display: block; font: 400 25px/1.1 var(--serif); }
.steps span { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- Places ---------- */
.places { padding: 0 0 clamp(100px, 12vw, 170px); }
.places-head { margin-bottom: 50px; }
.places-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.places-photo { margin: 0; overflow: hidden; border-radius: 4px; }
.places-photo img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.places-list { display: grid; border-top: 1px solid var(--line-strong); }
.places-list article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.places-list .zone { color: var(--wine); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.places-list h3 { margin: 6px 0 2px; font: 400 32px/1.1 var(--serif); }
.places-list p { margin: 0 0 8px; color: var(--muted); }
.places-list a { font-size: 14.5px; font-weight: 600; text-underline-offset: 4px; }
.places-list .online { border-bottom: 0; }

/* ---------- Blog teaser ---------- */
.blog-teaser { padding: 0 0 clamp(100px, 12vw, 170px); }
.blog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 30px; margin-bottom: 44px; }
.blog-head .kicker { flex-basis: 100%; margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 34px; }
.post-card { display: flex; flex-direction: column; min-height: 300px; padding: 30px; border: 1px solid var(--line-strong); border-radius: 160px 160px 4px 4px; text-decoration: none; transition: background .35s, color .35s, transform .45s var(--ease); }
.post-card:hover { color: var(--paper); background: var(--ink); transform: translateY(-4px); }
.post-tag { align-self: center; margin: 22px 0 26px; color: var(--wine); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.post-card:hover .post-tag { color: var(--wine-soft); }
.post-card h3 { margin-bottom: 12px; font: 400 29px/1.08 var(--serif); }
.post-card p { color: var(--muted); font-size: 15.5px; }
.post-card:hover p { color: rgba(243, 238, 230, .72); }
.post-more { margin-top: auto; font-size: 14px; font-weight: 600; }
.arrow-link { font-weight: 600; text-underline-offset: 5px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 100px); padding: 0 0 clamp(100px, 12vw, 170px); }
.faq-head { position: sticky; top: calc(var(--header) + 40px); align-self: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; display: block; padding: 24px 48px 24px 0; cursor: pointer; font: 400 25px/1.2 var(--serif); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; border-right: 1.5px solid var(--wine); border-bottom: 1.5px solid var(--wine); transform: translateY(-75%) rotate(45deg); transition: transform .35s var(--ease); }
details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
summary:hover { color: var(--wine); }
details p { max-width: 62ch; padding: 0 0 24px; margin: 0; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.contact-arcs { position: absolute; right: -6%; bottom: -10%; width: min(70vw, 760px); fill: none; stroke: rgba(201, 154, 160, .28); stroke-width: 1; }
.contact-inner { position: relative; padding: clamp(100px, 12vw, 170px) 0; }
.contact .kicker { color: var(--wine-soft); }
.contact-head h2 { max-width: 13ch; }
.contact-head p { max-width: 48ch; margin-top: 26px; color: rgba(243, 238, 230, .72); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; }
.contact-grid article { padding: 34px; background: rgba(243, 238, 230, .045); border: 1px solid rgba(243, 238, 230, .16); border-radius: 4px; }
.contact-grid .langs { color: var(--wine-soft); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.contact-grid h3 { margin-bottom: 24px; font: 400 44px/1 var(--serif); }
.contact-grid a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(243, 238, 230, .16); text-decoration: none; overflow-wrap: anywhere; transition: color .25s, padding .35s var(--ease); }
.contact-grid a:hover { color: var(--wine-soft); padding-left: 8px; }
.contact-wa { font-size: 18px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { color: rgba(243, 238, 230, .7); background: #141210; font-size: 14.5px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; align-items: start; padding: 50px 0; }
.footer-brand { display: flex; gap: 14px; }
.footer-brand .brand-mark { flex: none; stroke: var(--wine-soft); }
.footer-brand strong { color: var(--paper); font: 400 22px/1.2 var(--serif); }
.footer-links { display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--paper); }
.footer-legal { margin: 0; }

/* ---------- Dock + consent ---------- */
.dock { position: fixed; z-index: 90; left: 50%; bottom: 18px; display: flex; gap: 6px; padding: 6px; background: var(--ink); border-radius: 999px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); transform: translate(-50%, 140%); transition: transform .5s var(--ease); }
.dock.is-visible { transform: translate(-50%, 0); }
.dock a { padding: 12px 20px; border-radius: 999px; color: var(--paper); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dock-main { background: var(--wine); }
.consent { position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; max-width: 640px; margin-inline: auto; padding: 18px 20px; color: var(--paper); background: var(--ink); border-radius: 6px; font-size: 14.5px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 280px; }
.consent div { display: flex; gap: 8px; }
.consent button { padding: 10px 16px; border: 1px solid rgba(243, 238, 230, .3); border-radius: 999px; background: transparent; color: inherit; font: 600 14px var(--sans); cursor: pointer; }
.consent [data-consent-accept] { background: var(--wine); border-color: var(--wine); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .first-photo[data-reveal].is-visible, .js .hero-visual { transform: translate3d(0, var(--float, 0), 0); }

/* ---------- Article / blog pages ---------- */
.page-hero { padding: calc(var(--header) + 70px) 0 50px; }
.page-hero h1 { max-width: 18ch; font: 400 clamp(46px, 6.4vw, 92px)/.98 var(--serif); letter-spacing: -.03em; }
.page-hero .lead { max-width: 58ch; margin-top: 26px; color: var(--ink-2); font-size: 19px; }
.crumbs { margin-bottom: 30px; color: var(--muted); font-size: 14px; }
.crumbs a { text-underline-offset: 3px; }
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 140px; }
.article { padding-bottom: 120px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.prose { max-width: 68ch; margin: 50px auto 0; font-size: 18.5px; line-height: 1.75; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
.prose p { margin-bottom: 1.15em; }
.prose ul { margin: 0 0 1.3em; padding-left: 0; }
.prose li { position: relative; margin-bottom: .5em; padding-left: 26px; }
.prose li::before { content: ''; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--wine); }
.prose blockquote { margin: 1.8em 0; padding-left: 26px; border-left: 2px solid var(--wine); font: italic 400 27px/1.32 var(--serif); }
.article-cta { max-width: 68ch; margin: 60px auto 0; padding: 36px; color: var(--paper); background: var(--wine-deep); border-radius: 220px 220px 4px 4px; text-align: center; }
.article-cta h2 { margin: 30px 0 12px; font-size: clamp(30px, 3vw, 40px); }
.article-cta p { color: rgba(243, 238, 230, .78); }
.article-cta .btn-solid { background: var(--paper); color: var(--ink); }
.article-cta .btn-solid:hover { background: var(--wine-soft); }
.article-disclaimer { max-width: 68ch; margin: 30px auto 0; color: var(--muted); font-size: 14px; }
.simple-page { padding: calc(var(--header) + 70px) 0 120px; }
.simple-page .prose { margin-left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav > a:not(.nav-cta) { font-size: 14px; }
  .services-list { grid-template-columns: 1fr 1fr; }
  .services-list article:nth-child(3) { padding-left: 0; border-left: 0; }
  .services-list article:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --header: 66px; }
  .nav-toggle { position: relative; z-index: 2; display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper); cursor: pointer; }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 90px var(--gutter) 40px; background: var(--paper); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .site-nav[data-open='true'] { opacity: 1; visibility: visible; }
  .site-nav > a:not(.nav-cta) { font: 400 40px/1.15 var(--serif); }
  .lang-switch { order: 10; margin-top: 18px; padding-left: 0; border-left: 0; font-size: 15px; }
  .nav-cta { margin-top: 14px; font-size: 16px; padding: 14px 24px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 60px; gap: 46px; }
  .hero-visual { width: min(82%, 420px); }
  .hero-facts { position: static; grid-template-columns: 1fr 1fr; grid-column: 1; }
  .hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .approach-head, .approach-body { grid-column: 1 / -1; }
  .approach-body { padding-top: 0; }
  .reasons-inner, .migration, .first, .places-grid, .faq, .team-head { grid-template-columns: 1fr; }
  .reasons-head, .faq-head { position: static; }
  .migration-art { max-width: 340px; }
  .first-photo { max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .post-grid, .blog-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .brand-text strong { font-size: 21px; }
  .hero { padding-top: calc(var(--header) + 28px); }
  .hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-rotate { margin-top: 24px; }
  .rotate-track { flex-basis: 100%; min-height: 2.4em; }
  .btn { width: 100%; }
  .hero-visual figcaption { left: -8px; bottom: 20px; font-size: 18px; }
  .pillars, .services-list, .steps, .team-grid, .contact-grid, .post-grid, .blog-list { grid-template-columns: 1fr; }
  .pillars li + li, .services-list article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .services-list article:nth-child(n) { padding-left: 0; border-left: 0; }
  .reasons-list li { grid-template-columns: 40px 1fr; }
  .person-actions .btn { width: auto; flex: 1; }
  .contact-grid article { padding: 26px 22px; }
  .contact-grid h3 { font-size: 38px; }
  .post-card { min-height: 0; border-radius: 120px 120px 4px 4px; }
  .footer-inner { grid-template-columns: 1fr; }
  .places-photo img { min-height: 260px; }
  .article-cta { padding: 30px 22px; border-radius: 140px 140px 4px 4px; }
  .prose { font-size: 17.5px; }
}

@media (min-width: 961px) { .dock { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .migration-art .m-line { stroke-dashoffset: 0; }
}

.cta-mark { width: 46px; height: 46px; margin: 0 auto; stroke: var(--wine-soft); }
.simple-title { margin-bottom: .6em; font: 400 clamp(44px, 6vw, 80px)/1 var(--serif); letter-spacing: -.03em; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .4em; font: 400 26px/1.2 var(--serif); }
.prose a { color: var(--wine); text-underline-offset: 3px; }

/* =========================================================
   Scroll coreografiado — geometría, máscaras y texto
   --p (0→1) lo escribe app.js. Sin JS o con reduced-motion, --p = 1.
   ========================================================= */

/* Escena fija: dos arcos que convergen */
.scene { position: relative; height: 340vh; background: var(--paper); }
.scene-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.scene { --a: clamp(0, calc(var(--p, 1) * 2.1), 1); --b: clamp(0, calc((var(--p, 1) - .5) * 3.4), 1); }
.scene-geo { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--clay); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.scene-geo path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--a)); opacity: calc(.25 + var(--a) * .5); }
.scene-geo path:nth-child(2) { stroke-dashoffset: calc(1 - clamp(0, calc(var(--a) * 1.3 - .2), 1)); }
.scene-geo path:nth-child(3) { stroke: var(--wine); stroke-dashoffset: calc(1 - clamp(0, calc(var(--a) * 1.6 - .5), 1)); }
.scene-a, .scene-b { position: absolute; z-index: 2; top: 50%; left: 50%; width: clamp(150px, 19vw, 290px); margin: 0; overflow: hidden; border-radius: 999px 999px 6px 6px; box-shadow: 0 40px 80px -40px rgba(29, 26, 23, .55); }
.scene-a img, .scene-b img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(calc(1.25 - var(--a) * .25)); }
.scene-a { transform: translate(calc(-50% - (1 - var(--a)) * 46vw - 32%), calc(-50% + 13vh + (1 - var(--a)) * 20vh)) rotate(calc((1 - var(--a)) * -8deg)); }
.scene-b { z-index: 1; transform: translate(calc(-50% + (1 - var(--a)) * 46vw + 32%), calc(-50% + 13vh - (1 - var(--a)) * 10vh)) rotate(calc((1 - var(--a)) * 8deg)); }
.scene-a, .scene-b { opacity: calc(1 - var(--b) * .85); }
.scene-c { position: absolute; z-index: 3; inset: 0; margin: 0; clip-path: inset(calc((1 - var(--b)) * 50%) calc((1 - var(--b)) * 50%) calc((1 - var(--b)) * 50%) calc((1 - var(--b)) * 50%) round calc(50vw * (1 - var(--b) * .7)) calc(50vw * (1 - var(--b) * .7)) 0 0); }
.scene-c img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.3 - var(--b) * .3)); filter: brightness(.62); }
.scene-text { position: absolute; z-index: 4; top: 15vh; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: min(92vw, 1100px); transition: top .8s var(--ease); text-align: center; pointer-events: none; }
.scene[data-step='2'] .scene-text { top: 38vh; }
.scene-text h2 { grid-area: 1 / 1; font-size: clamp(42px, 6.2vw, 104px); line-height: .95; letter-spacing: -.03em; opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s; }
.scene[data-step='0'] .t0, .scene[data-step='1'] .t1, .scene[data-step='2'] .t2 { opacity: 1; transform: none; filter: none; }
.scene-text .t2 { color: var(--paper); }
.scene-text .t2 em { color: var(--wine-soft); }
.scene-sub { grid-area: 2 / 1; margin-top: 22px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; transition: color .5s; }
.scene[data-step='2'] .scene-sub { color: rgba(243, 238, 230, .8); }
.scene-bar { position: absolute; z-index: 5; left: 50%; bottom: 34px; width: 120px; height: 2px; background: rgba(29, 26, 23, .15); transform: translateX(-50%); }
.scene-bar span { display: block; height: 100%; background: var(--wine); transform-origin: left; transform: scaleX(var(--p, 1)); }
.scene[data-step='2'] .scene-bar { background: rgba(243, 238, 230, .25); }
.scene[data-step='2'] .scene-bar span { background: var(--paper); }
.scroll-static .scene { height: auto; }
.scroll-static .scene-sticky { position: relative; height: 80vh; }

/* Banda de texto que se desplaza con el scroll */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line-strong); }
.marquee p { display: flex; width: max-content; margin: 0; font: italic 400 clamp(36px, 5vw, 72px)/1 var(--serif); white-space: nowrap; transform: translateX(calc(var(--p, 0) * -33%)); }
.marquee span { display: inline-flex; align-items: center; gap: .55em; padding-right: .55em; }
.marquee span::after { content: ''; width: .42em; height: .5em; border: 1.5px solid var(--wine); border-bottom: 0; border-radius: 999px 999px 0 0; }
.marquee span:nth-child(3n + 2) { color: var(--wine); }

/* Palabras que se encienden */
[data-words] .w { opacity: clamp(.16, calc(var(--p, 1) * (var(--n) + 6) - var(--i)), 1); transition: opacity .2s linear; }

/* Máscaras geométricas sobre fotos */
.person-photo { clip-path: inset(calc((1 - var(--p, 1)) * 42%) 0 0 0 round 999px 999px 4px 4px); }
.person-photo img { transform: scale(calc(1.18 - var(--p, 1) * .18)); }
.person-photo:hover img { transform: scale(1.035); }
.places-photo { clip-path: circle(calc(18% + var(--p, 1) * 72%) at 50% 100%); }
.places-photo img { transform: scale(calc(1.2 - var(--p, 1) * .2)); }
.first-photo .arch { clip-path: inset(calc((1 - var(--p, 1)) * 60%) calc((1 - var(--p, 1)) * 18%) 0 calc((1 - var(--p, 1)) * 18%) round 300px 300px 6px 6px); }
.first-photo img { transform: scale(calc(1.2 - var(--p, 1) * .2)) translateY(calc((1 - var(--p, 1)) * 30px)); }
.contact-arcs path { stroke-dasharray: 1600; stroke-dashoffset: calc((1 - var(--p, 1)) * 1600); }

/* Encabezados de sección: la línea del kicker se dibuja */
.js .kicker span { transition: border-radius .6s var(--ease); }

@media (max-width: 760px) {
  .scene { height: 280vh; }
  .scene-a, .scene-b { width: 40vw; }
  .scene-a { transform: translate(calc(-50% - (1 - var(--a)) * 60vw - 30%), calc(-50% + 14vh + (1 - var(--a)) * 10vh)); }
  .scene-b { transform: translate(calc(-50% + (1 - var(--a)) * 60vw + 30%), calc(-50% + 14vh - (1 - var(--a)) * 10vh)); }
  .scene-text { top: 14vh; }
  .scene-text h2 { font-size: clamp(40px, 12vw, 60px); }
}
