/* Bacoia — home only. */

/* ---------- Hero: the brand itself, centered, with a short line on each side. Nothing shouts. ---------- */
.hero { position: relative; display: grid; place-items: center; min-height: 100svh; padding: calc(var(--bar) + 24px) 0 150px; overflow: hidden; background: #fff; }
.hero-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 72px); width: 100%; }
.hero-left { justify-self: start; display: grid; justify-items: start; gap: clamp(18px, 2vw, 28px); width: max-content; max-width: none; position: relative; z-index: 2; } /* the message runs on two fixed lines; it may run a little into the white margin around the logo */
.hero-say { white-space: nowrap; font-family: var(--f-voice); font-weight: 300; font-size: clamp(15px, 1.3vw, 21px); letter-spacing: -0.015em; line-height: 1.32; color: var(--ink); }
.hero-say em { font-style: italic; }
.hero-say { display: grid; }
.hero-say .say { grid-area: 1 / 1; margin: 0; }
/* The lines take turns: the current one rises out, the next rises in. Without motion only the first shows. */
html.js-motion .hero-say .say { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
html.js-motion .hero-say .say.is-on { opacity: 1; transform: none; }
html.js-motion .hero-say .say.is-out { opacity: 0; transform: translateY(-14px); }
html:not(.js-motion) .hero-say .say:not(:first-child) { display: none; }
.hero-right { justify-self: end; width: min(100%, 26ch); display: grid; justify-items: end; gap: 4px; text-align: right; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.45; color: var(--ink-2); }
/* The word slides through a clipped slot, right-aligned; the phrase under it never moves. */
.rot { position: relative; display: block; width: 100%; height: 1.5em; overflow: hidden; font-size: 1.55em; font-weight: 500; letter-spacing: -0.025em; line-height: 1.5; color: var(--ink); }
.rot .w { position: absolute; left: 0; right: 0; top: 0; text-align: right; white-space: nowrap; transform: translateY(115%); transition: transform .9s var(--ease); }
.rot .w.is-on { transform: none; }
.rot .w.is-out { transform: translateY(-115%); }
html:not(.js-motion) .rot .w:not(:first-child) { display: none; }
html:not(.js-motion) .rot .w:first-child { transform: none; }
.hero-fixed { display: block; }
.hero-mark { width: clamp(300px, 54vw, 820px); margin-inline: calc(-1 * clamp(24px, 6vw, 110px)); position: relative; perspective: 1200px; }
.hero-float { position: relative; z-index: 1; }
/* Light that follows the pointer, only while it is over the logo itself: the layer is cut with an alpha matte made from the render (assets/bacoia-marca-mask.webp),
   so it never shows on the white around the logo or at the edge of the image. "Screen" adds orange on the dark paper and does nothing on white. */
.hero-sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .6s var(--ease);
  -webkit-mask-image: url("../assets/bacoia-marca-mask.webp"); mask-image: url("../assets/bacoia-marca-mask.webp"); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,150,90,.8) 0, rgba(255,91,31,.45) 10%, rgba(255,91,31,.14) 22%, transparent 36%); }
.hero-mark.is-hot .hero-sheen { opacity: 1; }
.hero-mark img { width: 100%; height: auto; transform-style: preserve-3d; will-change: transform;
  /* Feather the last few percent of every edge so the render melts into the page even if its background is a shade off white. */
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent); mask-composite: intersect; }

/* Logos of the businesses that work with Bacoia: a slow strip at the foot of the hero, grey until you point at one. */
.brands { position: absolute; left: 0; right: 0; bottom: 26px; display: grid; justify-items: center; gap: 16px; }
.brands-k { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.brands-row { display: flex; width: min(100%, 1100px); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.brands-track { display: flex; align-items: center; flex-shrink: 0; gap: clamp(48px, 6vw, 96px); padding-right: clamp(48px, 6vw, 96px); animation: brands 48s linear infinite; }
.brands-row:hover .brands-track { animation-play-state: paused; }
@keyframes brands { to { transform: translateX(-100%); } }
.brand { display: grid; place-items: center; height: 52px; filter: grayscale(1); opacity: .55; transition: filter .5s var(--ease), opacity .5s var(--ease); }
.brand:hover { filter: none; opacity: 1; }
.brand img { width: auto; height: 46px; max-width: none; }
.brand-word { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
@media (max-width: 900px) {
  .hero-right { justify-self: center; justify-items: center; text-align: center; }
  .rot .w { text-align: center; }
  .hero-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; text-align: center; }
  .hero-mark { order: -1; width: min(112vw, 560px); margin-inline: 0; margin-block: -6vw; }
  .hero-left, .hero-right { justify-self: center; max-width: 22ch; text-align: center; }
  .hero-left { max-width: none; justify-items: center; }
  .hero-say { font-size: clamp(17px, 5vw, 22px); }
}

/* ---------- Section dots: a thin index on the right edge. Only the dot itself answers to the pointer, so reading text near the edge never opens a label. ---------- */
.dots { position: fixed; z-index: 40; right: clamp(10px, 1.6vw, 24px); top: 50%; display: flex; flex-direction: column; gap: 4px; padding: 10px 0; transform: translateY(-50%); transition: opacity .4s var(--ease); pointer-events: none; }
.dots.is-away { opacity: 0; }
.dots a { position: relative; display: flex; align-items: center; justify-content: center; width: 24px; min-height: 24px; text-decoration: none; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); pointer-events: auto; }
.dots.is-away a { pointer-events: none; }
.dots span { position: absolute; right: calc(100% + 6px); top: 50%; padding: 6px 12px; border-radius: 4px; background: #fff; box-shadow: 0 8px 22px -10px rgba(18,18,18,.4), 0 0 0 1px var(--line); opacity: 0; transform: translate(8px, -50%); transition: opacity .35s var(--ease), transform .45s var(--ease); white-space: nowrap; pointer-events: none; }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #CFCFCB; transition: background-color .3s var(--ease), transform .45s var(--ease); }
.dots a:hover i { background: var(--ink-2); }
.dots a[aria-current] { color: var(--ink); }
.dots a[aria-current] i { background: var(--ink); transform: scale(1.35); }
@media (max-width: 1100px) { .dots { display: none; } }

/* Small label over a section title. */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Trabajos: the column frame (guides, labels, two-screen figures) is shared and lives in site.css; this is the section's own header and button. ---------- */
.work { padding-block: clamp(72px, 9vw, 128px) var(--gap); }
.work-head { position: relative; margin-bottom: clamp(56px, 7vw, 96px); }
.work-lead { margin-top: 20px; max-width: 28ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; color: var(--ink); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); margin-top: clamp(56px, 7vw, 104px); }
.quote { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.quote blockquote { margin: 0; }
.quote p { max-width: 34ch; font-size: clamp(18px, 1.5vw, 22px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.quote figcaption { margin-top: 18px; font-size: 14px; color: var(--muted); }
.quote figcaption b { display: block; font-weight: 600; color: var(--ink); }
.work-foot { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); margin-top: clamp(40px, 5vw, 72px); }
.work-all { grid-column: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; min-height: 64px; padding: 18px 18px 18px 20px; border-left: 3px solid var(--accent); background: var(--paper-2); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background-color .4s var(--ease); }
.work-all svg { width: 18px; height: 18px; margin-top: 18px; flex-shrink: 0; transition: transform .5s var(--ease); }
.work-all:hover { background: #E9E9E6; }
.work-all:hover svg { transform: translateX(5px); }
@media (max-width: 900px) {
  .quotes { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .work-foot { display: block; }
  .work-all { margin-top: 8px; }
}

/* ---------- Services: the four services shown working. Text on the left; on the right one screen that changes as you scroll (desktop: sticky), one under each text on phones. ---------- */
.services { padding-bottom: var(--gap); }
.svc-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "k k" "h l"; gap: 18px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.svc-head .eyebrow { grid-area: k; }
.svc-head .h2 { grid-area: h; }
.svc-head .lead { grid-area: l; justify-self: end; max-width: 34ch; }
.svc-list { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(32px, 5vw, 88px); }
.svc { display: contents; }
.svc-copy { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; min-height: min(64vh, 520px); transition: opacity .6s var(--ease); }
.svc:nth-child(1) .svc-copy { grid-row: 1; } .svc:nth-child(2) .svc-copy { grid-row: 2; } .svc:nth-child(3) .svc-copy { grid-row: 3; } .svc:nth-child(4) .svc-copy { grid-row: 4; }
html.js-motion .svc-copy { opacity: .5; }
html.js-motion .svc-copy.is-on { opacity: 1; }
.svc h3 { font-size: clamp(34px, 4vw, 56px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
.svc-d { max-width: 30ch; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); }
.svc-prices { display: grid; gap: 14px; }
.svc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; color: var(--muted); }
.svc-price > span:first-child:not(:last-child) { flex-basis: 100%; }
.svc-price b { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.svc-go { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 8px; padding: 0 20px; border-radius: var(--btn-r); background: #EFEFED; font-size: 15px; font-weight: 500; transition: background-color .3s var(--ease), transform .4s var(--ease); }
.svc-go svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.svc-go:hover { background: #E4E4E1; }
.svc-go:hover svg { transform: translateX(4px); }
.svc-go:active { transform: scale(.97); }

/* The screen. Every size inside is in em of .win, which follows the width of the panel, so it scales as a whole. */
.ui { grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(var(--bar) + 28px); container: ui / inline-size; aspect-ratio: 5 / 4; border-radius: 24px; background: #EFEFED; overflow: hidden; transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s linear .6s; }
html.js-motion .ui { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); pointer-events: none; }
html.js-motion .ui.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.win { display: flex; flex-direction: column; height: calc(100% - 12cqw); margin: 6cqw; font-size: max(11px, 1.9cqw); line-height: 1.3; color: var(--ink); background: #fff; border-radius: 1.4em; overflow: hidden; box-shadow: 0 1px 2px rgba(18,18,18,.05), 0 24px 48px -24px rgba(18,18,18,.28); }
.win-bar { display: flex; align-items: center; gap: .5em; height: 2.7em; padding: 0 1.1em; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.win-bar i { width: .7em; height: .7em; border-radius: 50%; background: #DCDCD8; }
.win-url { margin-left: .9em; padding: .25em 1em; border-radius: 4px; background: #F4F4F2; color: var(--muted); font-size: .88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { position: relative; flex: 1; min-height: 0; padding: 1.5em; overflow: hidden; }
.win-body b { font-weight: 600; }
.win-body em { font-style: normal; }
.win-body s { display: block; height: .5em; border-radius: 4px; background: #ECECE9; text-decoration: none; }
.w-cta, .s-add { position: relative; }
.cur { position: absolute; left: 62%; top: 48%; transform: translate(var(--cx, 0em), var(--cy, 0em)); width: 1.9em; height: 1.9em; fill: var(--ink); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(18,18,18,.25)); }
.toast { position: absolute; right: 1.3em; bottom: 1.3em; display: flex; align-items: center; gap: .85em; padding: .8em 1.2em .8em .8em; border-radius: 1em; background: var(--ink); color: #fff; box-shadow: 0 14px 30px -12px rgba(18,18,18,.55); }
.toast b { display: block; }
.toast em { display: block; margin-top: .1em; font-size: .9em; color: rgba(255,255,255,.72); }
.toast-ico { display: grid; place-items: center; flex-shrink: 0; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--accent); color: var(--ink); }
.toast-ico svg { width: 1.2em; height: 1.2em; }

/* 1 · Web */
.w-nav { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.w-nav b { font-size: 1.15em; }
.w-links { display: flex; gap: 1.4em; color: var(--muted); }
.w-links u { text-decoration: none; }
.w-hero { margin-top: 3em; }
.w-hero h4 { font-size: 2.6em; font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; }
.w-hero p { margin-top: .9em; color: var(--muted); }
.w-cta { display: inline-block; margin-top: 1.3em; padding: .75em 1.5em; border-radius: 4px; background: var(--accent); color: var(--ink); font-weight: 600; }
.w-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; margin-top: 3em; }
.w-cards div { padding: 1em; border: 1px solid var(--line); border-radius: .8em; }
.w-cards s { margin-top: .65em; }
.w-cards s:last-child { width: 68%; }
@container ui (max-width: 520px) { .w-links { display: none; } .w-hero h4 { font-size: 2.2em; } }

/* 2 · Tienda */
.s-head { display: flex; align-items: center; justify-content: space-between; }
.s-head b { font-size: 1.35em; }
.s-cart { display: inline-flex; align-items: center; gap: .5em; padding: .35em .5em .35em .95em; border: 1px solid var(--line); border-radius: 4px; font-weight: 500; }
.s-count { display: grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: .9em; font-weight: 700; }
.s-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1em; margin-top: 1.5em; }
.s-img { aspect-ratio: 1 / 1; border-radius: .8em; }
.s-img.t1 { background: #EADFD2; } .s-img.t2 { background: #D9DEDA; } .s-img.t3 { background: #F3D8CA; }
.s-p b { display: block; margin-top: .75em; }
.s-p s { width: 38%; margin: .55em 0 .9em; }
.s-add { display: block; padding: .5em 0; border: 1px solid var(--line); border-radius: 4px; text-align: center; font-weight: 500; }
.s-p:nth-child(2) .s-add { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 3 · Sistema */
.k-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.k-cols span { padding: 0 .6em .8em; color: var(--muted); font-weight: 500; }
.k-board { position: relative; height: 21em; background: linear-gradient(to right, transparent calc(33.333% - 1px), var(--line) calc(33.333% - 1px) 33.333%, transparent 33.333% calc(66.666% - 1px), var(--line) calc(66.666% - 1px) 66.666%, transparent 66.666%); }
.k-card { position: absolute; width: calc(33.333% - 1.2em); padding: .85em .9em; border: 1px solid var(--line); border-radius: .8em; background: #fff; box-shadow: 0 8px 18px -14px rgba(18,18,18,.35); }
.k-card b { display: block; }
.k-card span { display: block; margin-top: .15em; color: var(--muted); }
.k-card { left: calc(33.333% * var(--col, 0) + .6em); }
.k-card.c1 { top: 1em; --col: 2; }
.k-card.c2 { top: 7em; --col: 1; }
.k-card.c3 { top: 13em; --col: 0; }

/* 4 · Agente */
.b-head { display: flex; align-items: center; gap: .9em; padding-bottom: 1.1em; border-bottom: 1px solid var(--line); }
.b-av { position: relative; flex-shrink: 0; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--ink); }
.b-av::after { content: ""; position: absolute; inset: 0; margin: auto; width: .8em; height: .8em; border-radius: 50%; background: var(--accent); }
.b-head b { display: block; }
.b-head em { color: var(--muted); font-size: .9em; }
.b-msgs { display: flex; flex-direction: column; gap: .95em; margin-top: 1.6em; }
.m { margin: 0; max-width: 78%; padding: .8em 1.1em; font-size: 1.08em; border-radius: 1.1em; }
.m.me { align-self: flex-end; background: #F1F1EE; border-bottom-right-radius: .3em; }
.m.bot { align-self: flex-start; background: var(--ink); color: #fff; border-bottom-left-radius: .3em; }

/* Panels you can play with: once you press something the loop stops and the screen answers you. */
:where(.win-body button) { font: inherit; color: inherit; border: 0; background: none; text-align: inherit; cursor: pointer; }
.win-body button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.w-btn, .w-cta, .s-add, .k-card, .qk { transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease), box-shadow .3s var(--ease); }
.w-btn { padding: .5em 1.1em; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 500; }
.w-btn:hover { background: #34332F; }
.w-cta { display: inline-block; text-align: center; }
.w-cta:hover { transform: translateY(-1px); background: #FF7440; }
.w-cta:active, .w-btn:active, .s-add:active, .qk:active { transform: scale(.96); }
.s-add { width: 100%; background: #fff; }
.s-add:hover { border-color: var(--ink); }
.s-add.is-added, .ui.is-live .s-add.is-added { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.ui.is-live .s-p:nth-child(2) .s-add:not(.is-added) { background: #fff; border-color: var(--line); color: inherit; }
.k-card { text-align: left; }
.k-card:hover { box-shadow: 0 12px 22px -14px rgba(18,18,18,.5); transform: translateY(-1px); }
.ui.is-live .k-card { transition: left .7s var(--ease), box-shadow .3s var(--ease), transform .4s var(--ease); }
.b-chips { position: absolute; left: 1.5em; right: 1.5em; bottom: 1.4em; display: flex; flex-wrap: wrap; gap: .6em; }
.qk { padding: .5em .9em; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-weight: 500; }
.qk:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.qk:disabled { opacity: .4; cursor: default; }
.ui-bot .toast { bottom: 5.4em; }
.ui-hint { position: absolute; left: 0; right: 0; bottom: 1.7cqw; margin: 0; text-align: center; font-size: max(11px, 1.6cqw); color: var(--muted); transition: opacity .5s var(--ease); }
.ui.is-live .ui-hint { opacity: 0; }
.ui.is-live .cur { display: none; }
.ui.is-live .toast { opacity: 0; transform: translateY(18px) scale(.96); pointer-events: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.ui.is-live .toast.is-show { opacity: 1; transform: none; }
.ui.is-live .m { animation: msgIn .55s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .svc-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "h" "l"; }
  .svc-head .lead { justify-self: start; }
  .svc-list { grid-template-columns: minmax(0, 1fr); }
  .svc-copy { grid-column: 1; min-height: 0; padding-top: 44px; }
  .svc:nth-child(1) .svc-copy { grid-row: 1; } .svc:nth-child(2) .svc-copy { grid-row: 3; } .svc:nth-child(3) .svc-copy { grid-row: 5; } .svc:nth-child(4) .svc-copy { grid-row: 7; }
  html.js-motion .svc-copy { opacity: 1; }
  .ui { grid-column: 1; position: relative; top: auto; aspect-ratio: 1 / 1.04; margin-top: 24px; border-radius: 20px; }
  .svc:nth-child(1) .ui { grid-row: 2; } .svc:nth-child(2) .ui { grid-row: 4; } .svc:nth-child(3) .ui { grid-row: 6; } .svc:nth-child(4) .ui { grid-row: 8; }
  html.js-motion .ui { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
}
.svc-incl-wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.svc-incl-t { font-size: 16px; color: var(--ink-2); }
.svc-incl { display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 2.6vw, 36px); }
.svc-inc { position: relative; padding-left: 16px; font-size: 16px; font-weight: 500; }
.svc-inc::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Process: four steps on a rail. With motion, the rail fills and each step arrives as you scroll (desktop: pinned). ---------- */
.process { padding-bottom: var(--gap); }
.process.is-pinned { height: 100vh; display: flex; align-items: center; padding: var(--bar) 0 0; }
.process.is-pinned .wrap { width: 100%; }
.process-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.process-head .lead { justify-self: end; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 34px; }
.steps-rail, .steps-fill { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.steps-fill { background: var(--ink); transform-origin: left; }
html:not(.js-motion) .steps-fill { display: none; }
.step { position: relative; --on: 1; }
/* Each step has a marker on the rail; --on (0..1) lights it, driven by the scroll. */
.step::before { content: ""; position: absolute; top: -34px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--accent) calc(var(--on) * 100%), var(--line)); transform: translateY(-4px) scale(calc(1 + .4 * var(--on))); }
.step-ico { display: block; width: 44px; height: 44px; margin-bottom: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-ico * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.step h3 { margin-bottom: 8px; font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.step-t { margin-bottom: 12px; font-size: 15px; font-weight: 600; color: #A63C0E; } /* accent darkened to pass AA as small text */
.step p:last-child { font-size: 16.5px; color: var(--ink-2); }
@media (max-width: 900px) { .process-head { grid-template-columns: 1fr; } .process-head .lead { justify-self: start; } .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Who is behind: a small portrait that stays while three moments arrive ---------- */
.behind { padding-bottom: clamp(72px, 9vw, 128px); }
.behind-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.behind-photo { position: sticky; top: calc(var(--bar) + 40px); max-width: 300px; }
.behind-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 22px; filter: saturate(.9) sepia(.08); }
.behind-photo figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.behind-steps { margin: clamp(32px, 4vw, 56px) 0 44px; display: grid; gap: clamp(32px, 4vw, 48px); }
.behind-step { padding-top: 22px; border-top: 1px solid var(--line); }
.behind-line { max-width: 20ch; font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
.behind-step p:last-child { margin-top: 14px; max-width: 46ch; color: var(--ink-2); }
.behind-line.behind-motto { max-width: 20ch; font-family: var(--f-voice); font-weight: 300; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.03em; line-height: 1.08; }
.behind-motto em { font-style: italic; }
@media (max-width: 900px) {
  .behind-in { grid-template-columns: 1fr; }
  .behind-photo { position: static; max-width: 220px; }
}

/* ---------- Preguntas frecuentes: questions on the left, the chosen answer on the right. ---------- */
.qa { padding-bottom: var(--gap); }
.qa-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 112px); align-items: start; }
.qa-copy .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.faq-list { display: none; }
.qa.qa-live .faq-list { display: block; border-bottom: 1px solid var(--line); }
.qa.qa-live .qa-list { display: none; }
.qa-list { display: grid; gap: 24px; }
.qa-q { font-size: 20px; font-weight: 500; }
.qa-a { margin-top: 6px; color: var(--ink-2); max-width: 50ch; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; padding: 22px 0; border-top: 1px solid var(--line); text-align: left; font-size: clamp(19px, 1.7vw, 25px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--muted); transition: color .4s var(--ease), padding .5s var(--ease); }
.faq-q:hover { color: var(--ink); }
.faq-q[aria-selected="true"] { color: var(--ink); padding-left: 14px; }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.faq-q[aria-selected="true"] svg, .faq-q:hover svg { opacity: 1; transform: none; }
.qa-right { position: sticky; top: calc(var(--bar) + 40px); }
.qa.qa-live .faq-panel { min-height: 280px; padding: 4px 0 28px clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); }
.faq-pq { font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.faq-pa { margin-top: 20px; max-width: 28ch; font-size: clamp(26px, 2.7vw, 40px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.22; text-wrap: balance; color: var(--ink); }
.faq-panel.is-in .faq-pq, .faq-panel.is-in .faq-pa { animation: faqIn .8s var(--ease) both; }
.faq-panel.is-in .faq-pa { animation-delay: .06s; }
@keyframes faqIn { from { opacity: 0; transform: translateY(14px); } }
.faq-more { display: inline-block; margin-top: 12px; padding-left: clamp(24px, 3vw, 48px); font-size: 16px; }
@media (max-width: 900px) { .qa-in { grid-template-columns: minmax(0, 1fr); } .qa-right { position: static; } .qa.qa-live .faq-panel { min-height: 0; padding-left: 0; border-left: 0; padding-top: 8px; } .faq-more { padding-left: 0; } }
