/* ARRAIGO · one-page · by EMDAI */

:root {
  /* Paleta del manual de marca */
  --verde: #1F3B2D;
  --trigo: #D9B26A;
  --terracota: #A64B30;
  --crema: #F5F0E6;
  --carbon: #16181A;
  /* Apoyos */
  --hueso: #FCFAF5;
  --salvia: #DDE3D3;
  --musgo: #3F6B52;
  --ocre: #755519;
  --corteza: #52564D;
  --humo: #232629;
  --borde: #E2DACA;
  --borde-oscuro: #2E3236;
  /* Derivados del mockup */
  --arena: #EFE8D9;
  --trigo-claro: #F2E4C6;
  --wa: #2C7A4C;
  --blanco: #FFFFFF;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-tag: 8px;
  --r-btn: 14px;
  --r-card: 22px;
  --r-panel: 28px;
  --sh-soft: 0 1px 2px rgba(22, 24, 26, .06), 0 12px 32px rgba(31, 59, 45, .08);
  --sh-up: 0 24px 56px rgba(31, 59, 45, .16);
  --nav-h: 76px;
  --gutter: 22px;
  --pad-sec: 80px;
  --ease: cubic-bezier(.22, .7, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--crema); color: var(--carbon); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
section[id], ul[id="agentes"] { scroll-margin-top: calc(var(--nav-h) - 8px); }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--trigo); outline-offset: 2px; }
/* En fondos claros el anillo Trigo suma un filo Verde para llegar a contraste */
:where(.solution, .demo, .calc__form, .faq, .book, .rollout, .plans) :focus-visible { box-shadow: 0 0 0 6px var(--verde); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--trigo); color: var(--carbon); padding: 10px 16px; border-radius: var(--r-tag); font-weight: 700; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

.wrap { width: 100%; max-width: calc(1200px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: var(--pad-sec); }

/* ───────── Tipografía ───────── */
h1, .h2, .calc__title, .trust__num, .card h3, .flow h3, .steps h3, .pack h3, .plan__price, .quote p, .voice blockquote p, .manifesto__text, .timeline__year, .card__n, .case__stats dd, .pulse__kpis p, .calc__big {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 50;
  font-optical-sizing: auto;
}
.h2 { font-variation-settings: 'SOFT' 50, 'opsz' 96; font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -.015em; color: var(--verde); }
.eyebrow { font-family: var(--sans); font-size: 13px; line-height: 1.4; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: var(--ocre); margin-bottom: 14px; }
.eyebrow--trigo { color: var(--trigo); }
.lead { margin-top: 20px; font-size: 18px; line-height: 1.6; color: #34382F; }
.measure { max-width: 630px; }
.fineprint { font-size: 13px; line-height: 1.5; color: var(--corteza); margin-top: 24px; }

/* ───────── Botones ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 24px; border: 1px solid transparent; border-radius: var(--r-btn); font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: .005em; text-align: center; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn--lg { min-height: 56px; padding-inline: 30px; font-size: 17px; }
.btn--trigo { background: var(--trigo); color: var(--carbon); }
.btn--trigo:hover { background: #E4C181; }
.btn--verde { background: var(--verde); color: var(--crema); }
.btn--verde:hover { background: #2B5040; }
.btn--ghost { border-color: rgba(245, 240, 230, .55); color: var(--crema); }
.btn--ghost:hover { background: rgba(245, 240, 230, .1); border-color: var(--crema); }
.btn--wa { background: var(--wa); color: var(--hueso); }
.btn--wa:hover { background: #246840; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Menú ───────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .3s, box-shadow .3s; }
.nav::before { content: ''; position: absolute; inset: 0; background: var(--verde); opacity: 0; transition: opacity .3s; z-index: -1; }
.nav.is-solid::before, .nav.is-open::before { opacity: 1; }
.nav.is-solid { box-shadow: 0 8px 24px rgba(10, 20, 14, .22); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding-inline: var(--gutter); max-width: 1580px; margin-inline: auto; }
.nav__logo { display: block; border-radius: 4px; }
.nav__logo img { width: 106px; }
.nav__burger { position: relative; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; border-radius: var(--r-tag); color: var(--crema); }
.nav__burger-i, .nav__burger-i::before, .nav__burger-i::after { position: absolute; left: 12px; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav__burger-i { top: 23px; }
.nav__burger-i::before, .nav__burger-i::after { content: ''; left: 0; }
.nav__burger-i::before { transform: translateY(-7px); }
.nav__burger-i::after { transform: translateY(7px); }
.nav.is-open .nav__burger-i { background: transparent; }
.nav.is-open .nav__burger-i::before { transform: rotate(45deg); }
.nav.is-open .nav__burger-i::after { transform: rotate(-45deg); }
.nav__menu a:not(.btn) { color: var(--crema); text-decoration: none; font-weight: 600; font-size: 16px; }
.js .nav__menu { position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); overflow-y: auto; background: var(--verde); padding: 8px var(--gutter) 40px; visibility: hidden; }
.js .nav.is-open .nav__menu { visibility: visible; animation: menu-in .25s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.js .nav__menu li { border-bottom: 1px solid rgba(245, 240, 230, .14); }
.js .nav__menu li a { display: block; padding: 15px 0; font-size: 19px; }
.js .nav__cta { width: 100%; margin-top: 24px; }
html:not(.js) .nav { position: absolute; }
html:not(.js) .nav__burger { display: none; }
html:not(.js) .nav__menu { display: none; }

/* ───────── Reveals (solo con JS y con movimiento) ───────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
  .js [data-reveal="fade"] { transform: none; transition-duration: 1s; }
  .js [data-reveal="rise"] { transform: translateY(60px); transition-duration: .9s; }
  .js [data-reveal="mosaic"] { transform: translateY(24px) scale(.94); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ───────── Capas de parallax (solo se mueven en desktop; en el resto no tienen transform) ───────── */
.plx-layer { position: absolute; inset: 0; }

/* ───────── 01 Hero ───────── */
.hero { position: relative; min-height: max(640px, 100vh); min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; background: #17291F; color: var(--crema); isolation: isolate; }
.hero__media { z-index: -3; }
.hero__media picture, .hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .8s; }
.hero__video.is-playing { opacity: 1; }
.hero__veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(20, 34, 25, .2) 0%, rgba(20, 34, 25, 0) 28%, rgba(18, 31, 23, .42) 62%, rgba(18, 31, 23, .72) 100%), rgba(20, 34, 26, .55); }
.hero__roots { position: absolute; z-index: -1; top: 0; right: -34%; width: 130%; color: var(--trigo); opacity: .3; pointer-events: none; }
.hero__roots svg { width: 100%; height: auto; max-width: none; }
.hero__content { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 92px; }
.hero h1 { max-width: 880px; font-size: clamp(42px, 11.3vw, 52px); line-height: 1.03; font-weight: 600; letter-spacing: -.02em; }
.hero__lead { max-width: 660px; margin-top: 24px; font-size: 18px; line-height: 1.62; color: #EAE5D9; }
.hero__actions { display: grid; gap: 14px; margin-top: 36px; }
.hero__down { position: absolute; left: 50%; bottom: 24px; margin-left: -22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: rgba(245, 240, 230, .75); }
.hero__pause { position: absolute; left: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(245, 240, 230, .45); background: rgba(22, 24, 26, .42); color: var(--crema); }
.hero__pause-i { position: absolute; left: 16px; top: 14px; width: 10px; height: 14px; border-inline: 3px solid currentColor; }
.hero__pause[aria-pressed="true"] .hero__pause-i { left: 17px; border: 0; border-block: 7px solid transparent; border-left: 12px solid currentColor; width: 0; height: 14px; }
[data-roots] svg path { transition-property: stroke-dashoffset, opacity; transition-timing-function: linear; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-roots] svg path { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
  .js [data-roots].is-drawn svg path { stroke-dashoffset: 0; opacity: 1; }
  .js .hero__in { opacity: 0; transform: translateY(22px); animation: rise .8s var(--ease) forwards; animation-delay: calc(150ms + var(--d, 0ms)); }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ───────── 02 Barra de confianza ───────── */
.trust { background: var(--hueso); padding-block: 72px; border-bottom: 1px solid var(--borde); }
.trust__title { text-align: center; margin-bottom: 30px; }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 16px; text-align: center; }
.trust__grid p { font-size: 15px; line-height: 1.45; color: var(--corteza); }
.trust__grid .trust__num { font-size: 40px; line-height: 1.05; font-weight: 500; color: var(--verde); margin-bottom: 12px; font-variant-numeric: lining-nums tabular-nums; }

/* ───────── Tarjetas ───────── */
.card { background: var(--hueso); border: 1px solid var(--borde); border-radius: var(--r-card); padding: 30px; }
.card--soft { box-shadow: var(--sh-soft); }
.card h3 { font-size: 22px; line-height: 1.22; font-weight: 600; color: var(--verde); }
.card p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: #34382F; }
.card__n { display: block; font-size: 17px; font-weight: 600; margin-bottom: 18px; }

.split { display: grid; gap: 36px; align-items: center; }
.split > * { min-width: 0; }

.frame { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--arena); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--32 { aspect-ratio: 3 / 2; }
.frame--169 { aspect-ratio: 16 / 9; }
.frame--45 { aspect-ratio: 4 / 5; }
.frame--11 { aspect-ratio: 1; }

/* ───────── 03 Problema ───────── */
.problem__cards { display: grid; gap: 16px; margin-top: 72px; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-zoom] img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
  .js [data-zoom].is-in img { transform: scale(1); }
}

/* ───────── 04 Solución ───────── */
.solution__title { max-width: 920px; }
.agents { display: grid; gap: 16px; margin-top: 56px; }
.agent { background: var(--hueso); border: 1px solid var(--borde); border-radius: var(--r-card); padding: 26px; }
.agent__icon { width: 64px; height: 64px; color: var(--tint); }
.agent__icon > rect { fill: var(--tint); }
.agent__icon .ln { fill: none; stroke: var(--verde); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.agent__icon .spark { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .js .agent.is-in .spark { animation: spark .7s var(--ease) calc(var(--d, 0ms) + 450ms) 1; } }
@keyframes spark { 0% { transform: scale(1); } 40% { transform: scale(1.38); } 100% { transform: scale(1); } }
.agent h3 { margin-top: 12px; font-size: 16px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--verde); }
.agent p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: #34382F; }
.agent--core { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--verde); border-color: var(--verde); color: var(--crema); }
.agent--core h3 { color: #DAD8CB; margin-top: 0; }
.agent--core p { color: #DAD8CB; }
.agent--core a { margin-top: 12px; color: var(--trigo); font-weight: 700; font-size: 16px; text-underline-offset: 4px; }
@media (hover: hover) and (min-width: 1024px) {
  .js .agent.is-done:not(.agent--core) { transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s; transition-delay: 0s; }
  .agent:not(.agent--core):hover { background: var(--tint); border-color: var(--tint); box-shadow: var(--sh-soft); }
  .js .agent.is-done:not(.agent--core):hover, html:not(.js) .agent:not(.agent--core):hover { transform: translateY(-4px); }
  .agent:not(.agent--core):hover .agent__icon > rect { fill: var(--hueso); }
}

/* ───────── 05 Probá Brújula ───────── */
.demo { background: var(--salvia); }
.demo__grid { display: grid; gap: 36px; align-items: center; }
.demo__grid > * { min-width: 0; }
.demo__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; max-width: 400px; }
.demo__tabs button { min-height: 46px; padding: 10px 18px; border: 0; border-radius: var(--r-btn); background: rgba(252, 250, 245, .6); color: var(--verde); font-size: 15px; font-weight: 700; transition: background-color .2s, color .2s; }
.demo__tabs button:hover { background: var(--hueso); }
.demo__tabs button[aria-selected="true"] { background: var(--verde); color: var(--crema); }
.chat { background: var(--hueso); border-radius: var(--r-panel); padding: 26px; box-shadow: var(--sh-up); }
.chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--borde); }
.chat__avatar { width: 44px; height: 44px; }
.chat__head p { line-height: 1.35; }
.chat__head strong { display: block; font-size: 16px; }
.chat__head span { font-size: 13px; color: var(--musgo); font-weight: 600; }
.chat__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 14px; min-height: 560px; transition: opacity .22s; }
.chat__body.is-fading { opacity: 0; }
.bubble { max-width: 94%; background: var(--blanco); border: 1px solid var(--borde); border-radius: 20px 20px 20px 6px; padding: 14px 18px; font-size: 16px; line-height: 1.55; }
.bubble--why { background: var(--trigo-claro); border-color: var(--trigo-claro); }
.chat__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.chat__actions .btn:disabled { background: #C9D1C2; color: var(--verde); }
.typing { display: inline-flex; gap: 5px; align-items: center; background: var(--blanco); border: 1px solid var(--borde); border-radius: 999px; padding: 13px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9A9D93; animation: blinkdot .9s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blinkdot { 0%, 70%, 100% { opacity: .4; transform: none; } 35% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: no-preference) { .chat__body > .bubble, .chat__body > .chat__actions { animation: msg .35s var(--ease) both; } }
@keyframes msg { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ───────── 06 Roles ───────── */
.grid4 { display: grid; gap: 16px; margin-top: 52px; }
.ibox { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: var(--r-btn); background: var(--salvia); color: var(--verde); }
.ibox svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .js .draw path { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .6s ease calc(var(--d, 0ms) + 250ms), opacity .01s linear calc(var(--d, 0ms) + 250ms); }
  .js .is-in .draw path { stroke-dashoffset: 0; opacity: 1; }
}

/* ───────── 07 Adentro de la app ───────── */
.inapp { background: var(--verde); color: var(--crema); overflow: hidden; }
.inapp__title { color: var(--crema); max-width: 920px; margin-inline: auto; }
.stage { display: none; position: relative; margin-top: 56px; }
.stage__monitor { width: 78.4%; margin-inline: auto; }
.stage__monitor img { width: 100%; }
.stage__phone { position: absolute; width: 19.5%; }
.stage__phone img { width: 100%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .35)); }
.stage__phone--l { left: 4.7%; top: 28%; }
.stage__phone--r { right: 4.7%; top: 21%; }
.stage { padding-bottom: 70px; }
@media (prefers-reduced-motion: no-preference) {
  .js .stage .stage__img { opacity: 0; transform: translateY(48px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .stage.is-in .stage__img { opacity: 1; transform: none; }
  .js .stage.is-in .stage__phone--l img { transition-delay: .45s; }
  .js .stage.is-in .stage__phone--r img { transition-delay: .65s; }
}
.phones { margin-top: 40px; }
.phones__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px calc(50% - min(33vw, 130px)) 10px; scrollbar-width: none; }
.phones__track::-webkit-scrollbar { display: none; }
.phones__track li { flex: 0 0 min(66vw, 260px); scroll-snap-align: center; }
.phones__track img { width: 100%; }
.phones__track p { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 600; color: #DAD8CB; }
.carousel__track:focus-visible { outline-offset: -3px; }
.inapp__cta { margin-top: 36px; }
.inapp__cta p { margin: 14px auto 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: #DAD8CB; }

.dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin-top: 12px; }
.dots button { position: relative; width: 24px; height: 28px; padding: 0; border: 0; background: none; border-radius: 6px; }
.dots button::before { content: ''; position: absolute; left: 8px; top: 10px; width: 8px; height: 8px; border-radius: 8px; background: rgba(31, 59, 45, .3); transition: background-color .2s, width .25s, left .25s; }
.dots button[aria-current="true"]::before { left: 3px; width: 18px; background: var(--verde); }
.dots--light button::before { background: rgba(245, 240, 230, .35); }
.dots--light button[aria-current="true"]::before { background: var(--trigo); }

/* ───────── 08 Caso ───────── */
.case { background: var(--hueso); }
.cobrand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 44px; }
.cobrand__a { width: 170px; }
.cobrand__x { font-size: 26px; line-height: 1; color: var(--corteza); }
.cobrand__c { width: 330px; }
.case__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 40px; }
.case__stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.case__stats dd { font-size: 48px; line-height: 1.1; font-weight: 500; color: var(--verde); font-variant-numeric: lining-nums tabular-nums; }
.case__stats dt { font-size: 15px; color: var(--corteza); }
.mapcard { background: #F1EADB; border-radius: var(--r-panel); }
.mapcard .map { width: 100%; height: auto; }
.case__photo { margin-top: 56px; }

.map { display: block; width: 100%; height: auto; overflow: visible; }
.map__line { fill: none; stroke: var(--trigo); stroke-width: 1.6; }
.map__line--soon { stroke-dasharray: 5 6; }
.map__label { font: 700 16px var(--sans); }
.map__minor { font: 500 16px var(--sans); }
.map__soon { fill: none; stroke: var(--trigo); stroke-width: 2; stroke-dasharray: 4 4; }
.map__halo { fill: none; stroke: var(--trigo); stroke-width: 1.8; }
.map--case .map__label { fill: var(--verde); }
.map--case .map__minor { fill: var(--corteza); }
.map--case .map__dot { fill: var(--verde); }
.map--case .map__site--hq .map__dot, .map--case .map__site--ext .map__dot { fill: var(--trigo); }
.map--case text { paint-order: stroke; stroke: #F1EADB; stroke-width: 5px; stroke-linejoin: round; }
.map--founders .map__label { fill: var(--crema); }
.map--founders .map__minor { fill: #CBD0C2; }
.map--founders .map__dot { fill: var(--crema); }
.map--founders .map__site--hq .map__dot, .map--founders .map__site--ext .map__dot { fill: var(--trigo); }
.map--founders text { paint-order: stroke; stroke: var(--verde); stroke-width: 5px; stroke-linejoin: round; }
.map__ring-static { fill: none; stroke: var(--trigo); stroke-width: 1; opacity: .28; }
.map__wave { fill: none; stroke: var(--trigo); stroke-width: 1.6; opacity: 0; transform-origin: 227px 527px; }
.map__mask { fill: none; stroke: #fff; stroke-width: 10; }
@media (prefers-reduced-motion: no-preference) {
  /* 08: mapa estático, solo se encienden las sedes en orden de apertura */
  .js .map--case .map__site { opacity: .12; transition: opacity .5s ease; }
  .js .map--case .map__dot { transform-box: fill-box; transform-origin: center; }
  .js .is-lit .map--case .map__site { opacity: 1; }
  .js .is-lit .map--case .map__site .map__dot { animation: light .55s var(--ease) backwards; animation-delay: inherit; }
  .js .is-lit .map--case .map__site:nth-of-type(n) .map__dot { animation-delay: inherit; }
  /* 12: expansión animada (ondas, líneas que viajan, etiquetas) */
  .js .is-live .map__wave { animation: wave 4s linear infinite; }
  .js .is-paused .map__wave, .js .is-paused .map__site--soon, .js .is-paused .map__line--soon { animation-play-state: paused; }
  .js .map--founders .map__line:not(.map__line--soon) { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .9s ease, opacity .05s; }
  .js .map--founders .map__mask { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease; }
  .js .map--founders .map__site--ext { opacity: 0; transition: opacity .5s ease; }
  .js .is-live .map--founders .map__line { stroke-dashoffset: 0; opacity: 1; }
  .js .is-live .map--founders .map__mask { stroke-dashoffset: 0; }
  .js .is-live .map--founders .map__site--ext { opacity: 1; }
  .js .is-live .map--founders .map__site--soon circle { animation: soft-blink 2.4s ease-in-out 3.6s infinite; }
  .js .is-live .map--founders .map__line--soon { animation: soft-blink 2.4s ease-in-out 3.6s infinite; }
}
@keyframes light { 0% { transform: scale(.2); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes wave { 0% { transform: scale(.06); opacity: .75; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes soft-blink { 50% { opacity: .35; } }

/* ───────── 09 Martina ───────── */
.martina__grid { display: grid; gap: 40px; align-items: start; }
.martina__grid > * { min-width: 0; }
.timeline { position: relative; margin-top: 36px; }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 71px; width: 2px; background: var(--borde); }
.timeline__line span { position: absolute; inset: 0; background: linear-gradient(var(--trigo), var(--verde)); transform-origin: top; transform: scaleY(var(--grow, 1)); }
.timeline__item { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 40px; align-items: center; padding-block: 12px; }
.timeline__item::before { content: ''; position: absolute; left: 65px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--trigo); box-shadow: 0 0 0 0 rgba(217, 178, 106, .35); transition: background-color .35s, box-shadow .35s, transform .35s var(--ease); }
.timeline__year { font-size: 21px; font-weight: 600; color: var(--verde); transition: color .35s; }
.timeline__item p { font-size: 17px; line-height: 1.5; }
.js .timeline__item:not(.is-on)::before { background: #CFC6B1; transform: scale(.8); }
.js .timeline__item:not(.is-on) .timeline__year { color: #6C7166; }
.timeline__item.is-on::before { box-shadow: 0 0 0 5px rgba(217, 178, 106, .28); }
.quote { margin-top: 64px; max-width: 1000px; }
.quote p { font-size: 28px; line-height: 1.28; font-weight: 500; color: var(--verde); }
.quote figcaption { margin-top: 24px; font-weight: 600; font-size: 16px; color: var(--corteza); }
@media (prefers-reduced-motion: no-preference) {
  .js .quote .w { opacity: .001; transition: opacity .3s ease var(--wd); }
  .js .quote.is-in .w { opacity: 1; }
}

/* ───────── 10 Aula ───────── */
.aula { padding-top: 24px; }
.aula__grid { display: grid; gap: 40px; align-items: center; }
.aula__grid > * { min-width: 0; }
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.kicker .eyebrow { margin: 0; }
.kicker__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--tint); }
.kicker__icon img { width: 40px; height: 40px; border-radius: 10px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.features li { background: var(--hueso); border: 1px solid var(--borde); border-radius: 18px; padding: 20px; }
.features svg { width: 24px; height: 24px; margin-bottom: 10px; fill: none; stroke: var(--musgo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features span { display: block; font-size: 16px; font-weight: 700; line-height: 1.38; }
.aula__photos { position: relative; padding-bottom: 24%; }
.aula__photo-a { width: 100%; }
.aula__photo-b { position: absolute; right: -10px; bottom: 0; width: 38%; }
.aula__photo-b .frame { border: 8px solid var(--crema); }

/* ───────── 11 Momentos ───────── */
.moments { background: var(--arena); }
.moments__title { max-width: 880px; }
.gallery { margin-top: 52px; }
.gallery__track li { overflow: hidden; border-radius: var(--r-card); }
.gallery__track img { width: 100%; height: 100%; object-fit: cover; }
.gallery__w { aspect-ratio: 3 / 2; }
.gallery__s { aspect-ratio: 1; }

/* ───────── 12 Fundadores ───────── */
.founders { position: relative; overflow: hidden; background: var(--verde); color: var(--crema); isolation: isolate; }
.founders__rings { position: absolute; inset: 0; z-index: -1; opacity: .5; background: repeating-radial-gradient(circle at 74% 118%, transparent 0 69px, rgba(217, 178, 106, .2) 69px 70px, transparent 70px 71px); }
.founders h2 { color: var(--crema); }
.founders__lead { margin-top: 20px; font-size: 18px; color: #E1DFD2; max-width: 560px; }
.founders__grid { display: grid; gap: 32px; }
.founders__grid > * { min-width: 0; }
.founders__photos { display: grid; gap: 16px; }
.founders__map { width: 100%; max-width: 600px; margin-inline: auto; }

/* ───────── 13 Manifiesto ───────── */
.manifesto { position: relative; overflow: hidden; background: var(--verde); padding-block: 90px 110px; isolation: isolate; }
.manifesto__roots { position: absolute; inset: 0; z-index: -1; color: var(--trigo); opacity: .22; }
.manifesto__roots svg { width: 100%; height: 100%; }
.manifesto__text { font-size: clamp(32px, 4.45vw, 64px); line-height: 1.19; font-weight: 500; letter-spacing: -.012em; color: var(--crema); }
.manifesto__line { display: block; transition: color .35s, opacity .35s; }
.js .manifesto__line { color: rgba(245, 240, 230, .45); }
.js .manifesto__line.is-lit { color: var(--crema); }
.js .manifesto__line.is-current { color: var(--trigo); }

/* ───────── 14 Pulso ───────── */
.pulse { position: relative; overflow: hidden; background: var(--carbon); color: var(--crema); isolation: isolate; }
.pulse__topo { z-index: -1; inset: -6% 0; }
.pulse__topo { opacity: .22; filter: grayscale(.7); }
/* Dos manchas de curvas de nivel con los bordes fundidos, para que no se note el recorte de la textura */
.pulse__topo::before, .pulse__topo::after { content: ''; position: absolute; aspect-ratio: 1066 / 800; background-position: center; background-size: cover; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.pulse__topo::before { width: 1200px; right: -300px; top: -60px; }
.pulse__topo::after { width: 1320px; left: -440px; top: 480px; }
.is-near .pulse__topo::before, .is-near .pulse__topo::after, html:not(.js) .pulse__topo::before, html:not(.js) .pulse__topo::after { background-image: url('../img/textura-topografia.webp'); }
.pulse h2 { color: var(--crema); }
.pulse__lead { margin-top: 20px; font-size: 18px; color: #DEDBD2; max-width: 580px; }
.pulse__monitor { max-width: 1000px; margin: 56px auto 0; }
.pulse__monitor img { width: 100%; }
.pulse__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; margin-top: 48px; }
.pulse__kpis p { font-size: 34px; line-height: 1.12; font-weight: 500; margin-bottom: 8px; font-variant-numeric: lining-nums tabular-nums; }
.pulse__kpis p .nowrap { display: inline; }
.pulse__kpis > li > span { display: block; font-size: 14px; line-height: 1.4; color: #B9B8B0; }

/* ───────── 15 Calculadora ───────── */
.calc__card { display: grid; border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--sh-up); }
.calc__form { background: var(--hueso); padding: 34px 24px; }
.calc__title { font-size: 30px; line-height: 1.12; font-weight: 600; letter-spacing: -.012em; color: var(--verde); margin-bottom: 8px; }
.field { margin-top: 20px; min-width: 0; }
.field > label, .seg legend { display: block; padding: 0; margin-bottom: 7px; font-size: 14px; font-weight: 700; color: var(--corteza); }
.field input[type="text"], .field select { width: 100%; min-height: 52px; padding: 12px 18px; background: var(--blanco); border: 1px solid #D8CFBB; border-radius: var(--r-btn); font-size: 17px; font-weight: 600; }
.field input[aria-invalid="true"] { border-color: var(--terracota); box-shadow: 0 0 0 1px var(--terracota); }
.field__error { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--terracota); }
.field input[type="range"] { --p: 70%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
.field input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--musgo) var(--p), #E6DFD0 var(--p)); }
.field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--verde); border: 0; box-shadow: 0 0 0 5px rgba(31, 59, 45, .16); }
.field input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: #E6DFD0; }
.field input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--musgo); }
.field input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 5px rgba(31, 59, 45, .16); }
.field output { display: block; margin-top: 8px; font-weight: 800; color: var(--verde); }
.calc__result { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--verde); color: var(--crema); padding: 40px 24px; }
.calc__label { font-size: 16px; color: #D5D6C9; }
.calc__big { font-size: clamp(40px, 11.5vw, 48px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; margin: 6px 0 34px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.calc__big--trigo { color: var(--trigo); }
.calc__cta { margin-top: 4px; }
.calc__note { margin-top: 28px; font-size: 13px; color: #E1DFD2; }

/* ───────── 16 Cómo funciona ───────── */
.how { padding-top: 24px; }
.flow { position: relative; display: grid; margin-top: 48px; }
.flow__step { background: var(--hueso); border: 1px solid var(--borde); border-radius: var(--r-card); padding: 24px; }
.flow__step .card__n { margin-bottom: 4px; font-size: 16px; }
.flow h3 { font-size: 22px; line-height: 1.22; font-weight: 600; color: var(--verde); }
.flow p { margin-top: 8px; font-size: 15px; color: var(--corteza); }
.flow__arrow { position: relative; height: 52px; }
.flow__arrow span { position: absolute; left: 50%; top: 12px; width: 2px; height: 28px; margin-left: -1px; background: var(--trigo); transform-origin: top; }
.flow__arrow span::after { content: ''; position: absolute; left: -3px; bottom: 0; width: 6px; height: 6px; border: solid var(--trigo); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.flow__dot { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--trigo); box-shadow: 0 0 0 5px rgba(217, 178, 106, .3); opacity: 0; z-index: 2; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .flow__step { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .flow__step:nth-of-type(3) { transition-delay: .35s; }
  .js .flow__step:nth-of-type(5) { transition-delay: .7s; }
  .js .flow__step:nth-of-type(7) { transition-delay: 1.05s; }
  .js .flow.is-in .flow__step { opacity: 1; transform: none; }
  .js .flow__arrow span { transform: scaleY(0); transition: transform .45s var(--ease) var(--d); }
  .js .flow.is-in .flow__arrow span { transform: none; }
  .js .flow.is-in .flow__dot { animation: travel-y 5.5s linear 1.6s infinite; }
  .js .flow.is-paused .flow__dot { animation-play-state: paused; }
}
@keyframes travel-y { 0% { top: 0; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes travel-x { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.how__text { margin-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips li { border: 1px solid #C9C1AD; border-radius: 12px; padding: 9px 16px; font-size: 15px; font-weight: 700; color: var(--verde); }

/* ───────── 17 IA confiable ───────── */
.trustia { background: var(--salvia); }
.trustia__title { max-width: 800px; }
.trustia .card h3 { font-size: 22px; }

/* ───────── 18 Implementación ───────── */
.steps { display: grid; margin-top: 48px; }
.steps li { display: grid; grid-template-columns: 50px 1fr; column-gap: 18px; }
.steps__n { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--verde); color: var(--crema); font-weight: 800; font-size: 17px; transition: background-color .35s, color .35s, box-shadow .35s; }
.steps h3 { grid-column: 2; grid-row: 1; align-self: center; font-size: 20px; line-height: 1.25; font-weight: 600; color: var(--verde); padding-block: 6px; transition: color .35s; }
.steps__bar { grid-column: 1; grid-row: 2; justify-self: center; position: relative; width: 4px; height: 38px; margin-block: 6px; border-radius: 4px; background: #E6DFD0; overflow: hidden; }
.steps__bar i { position: absolute; inset: 0; background: var(--trigo); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.steps li:last-child .steps__bar { height: 20px; }
.js .steps li:not(.is-on) .steps__n { background: var(--crema); color: var(--verde); box-shadow: inset 0 0 0 2px #B9B3A0; }
.js .steps li:not(.is-on) h3 { color: #63685D; }

/* ───────── 19 Planes ───────── */
.plans { background: var(--hueso); }
.plans__note { margin-top: 20px; font-size: 13.500px; color: var(--corteza); }
.plans__grid { display: grid; gap: 28px; margin-top: 48px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--r-panel); padding: 36px; }
.plan__name { font-size: 14px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: var(--ocre); }
.plan__price { margin-top: 8px; font-size: 52px; line-height: 1.07; font-weight: 600; letter-spacing: -.015em; color: var(--verde); }
.plan__unit { margin-top: 8px; font-size: 14px; color: var(--corteza); }
.plan__desc { margin: 22px 0 32px; font-size: 16px; line-height: 1.55; }
.plan .btn { margin-top: auto; }
.plan--top { background: var(--verde); border-color: var(--verde); color: var(--crema); box-shadow: var(--sh-up); }
.plan--top .plan__name { color: var(--trigo); }
.plan--top .plan__price { color: var(--crema); }
.plan--top .plan__unit { color: #CDD0C3; }
.plan__badge { position: absolute; left: 36px; top: -16px; background: var(--trigo); color: var(--carbon); border-radius: 10px; padding: 6px 14px; font-size: 13px; font-weight: 800; }
@media (hover: hover) and (min-width: 1024px) {
  .js .plan.is-done, html:not(.js) .plan { transition: transform .25s var(--ease), box-shadow .25s; transition-delay: 0s; }
  .plan:hover { box-shadow: var(--sh-up); }
  .js .plan.is-done:hover, html:not(.js) .plan:hover { transform: translateY(-4px); }
}

/* ───────── 20 Rubros ───────── */
.packs__stage { position: relative; margin-top: 44px; isolation: isolate; }
.packs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pack { border: 1px dashed #B4AD99; border-radius: var(--r-card); padding: 26px 22px; background: var(--crema); }
.pack h3 { font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--verde); }
.pack p { margin-top: 4px; font-size: 14px; color: var(--corteza); }
.pack--on { background: var(--verde); border: 1px solid var(--verde); }
.pack--on h3 { color: var(--crema); }
.pack--on p { color: var(--trigo); font-weight: 800; }
.packs__rings { position: absolute; inset: -50px -22px; z-index: -1; overflow: hidden; pointer-events: none; }
.packs__rings i { position: absolute; left: 10%; top: 50%; width: 200%; aspect-ratio: 1; border: 1.5px solid var(--trigo); border-radius: 50%; transform: translate(-50%, -50%) scale(0); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .packs__stage.is-in .packs__rings i { animation: expand 2.2s ease-out forwards; }
  .js .packs__stage.is-in .packs__rings i:nth-child(2) { animation-delay: .35s; }
  .js .packs__stage.is-in .packs__rings i:nth-child(3) { animation-delay: .7s; }
  .js .packs__stage.is-in .pack { animation: reach .8s ease calc(var(--d) + .15s) 1; }
}
@keyframes expand { 0% { transform: translate(-50%, -50%) scale(.05); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0; } }
@keyframes reach { 40% { border-color: var(--trigo); box-shadow: 0 0 0 4px rgba(217, 178, 106, .35); } }

/* ───────── 21 Testimonios ───────── */
.voices { background: var(--arena); }
.voices__title { margin-bottom: 32px; }
.voice { background: var(--hueso); border-radius: var(--r-card); }
.voice figure { display: flex; flex-direction: column; height: 100%; padding: 24px; }
.voice__ph { width: 100%; height: 100%; object-fit: cover; }
.voice blockquote { margin-top: 16px; flex: 1; }
.voice blockquote p { font-size: 20px; line-height: 1.42; font-weight: 600; color: var(--verde); }
.voice figcaption { margin-top: 20px; line-height: 1.4; }
.voice figcaption strong { display: block; font-size: 15px; }
.voice figcaption span { display: block; margin-top: 10px; font-size: 13px; color: var(--corteza); }
.carousel__bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.carousel__bar .dots { margin-top: 0; }
.carousel__play { min-height: 34px; padding: 4px 14px; border: 1px solid #B4AD99; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 700; color: var(--verde); }
/* Zoom hacia la cara sin cambiar el recorte del archivo */
.voice__wrap { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; }
.voice__wrap .voice__ph { transform: scale(var(--z, 1)); transform-origin: var(--face); }

/* ───────── 22 FAQ ───────── */
.acc { margin-top: 34px; border-top: 1px solid #D8D0BA; }
.acc__item { border-bottom: 1px solid #D8D0BA; }
.acc h3 { font-size: 18px; }
.acc button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 22px 4px; background: none; border: 0; text-align: left; font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--verde); }
.acc__sign { position: relative; flex: none; width: 16px; height: 16px; }
.acc__sign::before, .acc__sign::after { content: ''; position: absolute; left: 1px; top: 7px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease; }
.acc__sign::after { transform: rotate(90deg); }
.acc__item.is-open .acc__sign::after { transform: rotate(0deg); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 4px 24px; max-width: 700px; font-size: 16.500px; color: #34382F; }
.js .acc__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .25s ease, visibility 0s .25s; }
.js .acc__item.is-open .acc__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .25s ease; }
.js .acc__panel > div { min-height: 0; }

/* ───────── 23 Reservá tu reunión ───────── */
.book { background: var(--hueso); }
.book__grid { display: grid; gap: 28px; grid-template-areas: 'intro' 'cal' 'fields'; }
.book__grid > * { min-width: 0; }
.book__intro { grid-area: intro; }
.book__fields { grid-area: fields; max-width: 520px; width: 100%; }
.book__fields .field:first-child { margin-top: 0; }
.cal { grid-area: cal; background: var(--blanco); border-radius: var(--r-panel); padding: 22px 16px; box-shadow: var(--sh-up); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cal__month { font-size: 18px; font-weight: 800; padding-left: 4px; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--borde); border-radius: 10px; background: var(--blanco); color: var(--verde); }
.cal__nav button:disabled { opacity: .35; }
.cal__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; }
.cal__week { margin-bottom: 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--corteza); }
.cal__grid { min-height: 268px; align-content: start; }
.cal__day { display: grid; place-items: center; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; font-size: 15px; font-weight: 700; color: #9C9A91; }
.cal__day:not(:disabled) { background: var(--verde); color: var(--crema); }
.cal__day:not(:disabled):hover { background: #335846; }
.cal__day[aria-pressed="true"], .cal__day[aria-pressed="true"]:hover { background: var(--trigo); color: var(--carbon); }
.cal__day:focus-visible, .cal__slots button:focus-visible { outline: 3px solid var(--trigo); outline-offset: 2px; box-shadow: 0 0 0 6px var(--verde); }
.cal__slots-t { margin: 18px 0 10px; font-size: 15px; font-weight: 800; }
.cal__slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cal__slots button { min-height: 48px; border: 1px solid var(--verde); border-radius: var(--r-btn); background: var(--verde); color: var(--crema); font-size: 15px; font-weight: 800; }
.cal__slots button:disabled { background: var(--blanco); border-color: var(--borde); color: #9C9A91; }
.cal__slots button[aria-pressed="true"] { background: var(--trigo); border-color: var(--trigo); color: var(--carbon); }
.seg { border: 0; padding: 0; margin-inline: 0; margin-bottom: 0; }
.seg__in { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #EAE3D3; border-radius: var(--r-btn); }
.seg label { position: relative; display: grid; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-height: 46px; padding: 6px 10px; border-radius: 11px; font-size: 15px; font-weight: 700; line-height: 1.35; text-align: center; color: var(--corteza); }
.seg input:checked + span { background: var(--blanco); color: var(--verde); box-shadow: 0 1px 4px rgba(22, 24, 26, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--trigo); box-shadow: 0 0 0 6px var(--verde); }
.book__send { width: 100%; margin-top: 26px; cursor: pointer; }
.book__send[aria-disabled="true"] { background: #D9D6CC; color: #55594F; cursor: not-allowed; }
.book__hint { margin-top: 10px; font-size: 13.500px; text-align: center; color: var(--corteza); }

/* ───────── 24 Footer ───────── */
.footer { background: var(--verde); color: #E4E2D6; padding-block: 64px 40px; }
.footer__grid { display: grid; gap: 34px; }
.footer__logo { width: 200px; }
.footer li { font-size: 16px; line-height: 1.5; }
.footer li + li { margin-top: 9px; }
.footer a { text-decoration: none; display: inline-block; padding-block: 1px; overflow-wrap: anywhere; }
.footer a:hover { color: var(--trigo); text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { margin-top: 36px; padding-top: 34px; border-top: 1px solid rgba(245, 240, 230, .16); font-size: 13.500px; }
.creditos { background: #000; padding: 16px 20px; display: flex; justify-content: center; line-height: 1; }
.creditos__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 11px; letter-spacing: .02em; color: #B9B6AD; text-decoration: none; transition: color .2s; }
.creditos__link:hover, .creditos__link:focus-visible { color: #F5F0E6; }
.creditos__logo { height: 16px; width: auto; }

/* ───────── WhatsApp flotante ───────── */
.wa { position: fixed; z-index: 90; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.wa > * { pointer-events: auto; }
.wa__btn { display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--wa); color: var(--hueso); box-shadow: 0 10px 26px rgba(10, 30, 18, .35), 0 0 0 1px rgba(245, 240, 230, .25); transition: transform .2s var(--ease), background-color .2s; }
.wa__btn:hover { background: #246840; transform: translateY(-2px); }
.wa__btn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wa__panel { position: relative; width: min(330px, calc(100vw - 32px)); background: var(--blanco); color: var(--carbon); border-radius: var(--r-card); padding: 22px; box-shadow: 0 24px 60px rgba(10, 30, 18, .3); opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .25s var(--ease); }
.wa__panel[hidden] { display: none; }
.wa__panel.is-open { opacity: 1; transform: none; }
.wa__title { padding-right: 34px; margin-bottom: 14px; font-size: 18px; line-height: 1.35; font-weight: 800; }
.wa__close { position: absolute; right: 10px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; }
.wa__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wa__book { width: 100%; }
.wa__alt { display: block; margin-top: 12px; padding: 4px; text-align: center; font-size: 14px; font-weight: 700; color: var(--corteza); text-underline-offset: 4px; }
.wa__panel :focus-visible { box-shadow: 0 0 0 6px var(--verde); }

/* ═════════ Mobile: carruseles de galería y testimonios ═════════ */
@media (max-width: 767.98px) {
  .gallery__track, .voices__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); scroll-padding-inline: var(--gutter); }
  .gallery__track::-webkit-scrollbar, .voices__track::-webkit-scrollbar { display: none; }
  .gallery__track li { flex: 0 0 86%; scroll-snap-align: start; aspect-ratio: 4 / 3; }
  .voices__track li { flex: 0 0 86%; scroll-snap-align: start; }
  .gallery__track li[data-reveal], .voices__track li[data-reveal] { transition-delay: 0s; }
  .map__label { font-size: 19px; }
  .map__minor { font-size: 19px; }
  .map text { stroke-width: 6px; }
}
@media (min-width: 768px) {
  .carousel__bar, .gallery .dots { display: none; }
}

/* ═════════ Tablet ═════════ */
@media (min-width: 600px) {
  .hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
  .founders__photos { grid-template-columns: 1.6fr 1fr; align-items: end; }
  .case__stats { grid-template-columns: repeat(4, auto); justify-content: start; gap: 14px 46px; }
}
@media (min-width: 768px) {
  :root { --gutter: 40px; --pad-sec: 104px; }
  .h2 { font-size: 46px; }
  .lead, .founders__lead, .pulse__lead { font-size: 19.500px; }
  .hero h1 { font-size: clamp(60px, 7.2vw, 76px); }
  .hero__lead { font-size: 20px; }
  .hero__roots { right: -22%; width: 96%; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .trust__grid li { padding-inline: 14px; }
  .trust__grid li + li { border-left: 1px solid var(--borde); }
  .trust__grid .trust__num { font-size: 38px; }
  .problem__cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .problem__cards .card { padding: 24px 22px; }
  .agents, .grid4 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cobrand { flex-direction: row; align-items: center; gap: 30px; }
  .phones { display: none; }
  .stage { display: block; }
  .mapcard { max-width: 620px; width: 100%; margin-inline: auto; }
  .martina__grid { grid-template-columns: 5fr 7fr; gap: 36px; }
  .chat__body { min-height: 440px; }
  .martina__photo { position: sticky; top: calc(var(--nav-h) + 20px); }
  .quote p { font-size: 36px; }
  .aula__photos { max-width: 640px; width: 100%; }
  .gallery__track { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 20px; }
  .gallery__track li { aspect-ratio: auto; }
  .gallery__w { aspect-ratio: 3 / 2 !important; }
  .voices__track { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .pulse__kpis { grid-template-columns: repeat(3, 1fr); }
  .calc__form { padding: 48px; }
  .calc__result { padding: 48px; }
  .calc__title { font-size: 40px; }
  .calc__big { font-size: 68px; }
  .packs__grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .pack { min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 16px; }
  .pack h3 { font-size: 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1.3fr; }
  .wa { right: 28px; bottom: 28px; }
  .wa__btn { width: 64px; height: 64px; }
  /* Línea de implementación horizontal */
  .steps { grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
  .steps li { grid-template-columns: 50px 1fr; column-gap: 8px; align-content: start; padding-right: 10px; }
  .steps__bar { grid-column: 2; grid-row: 1; align-self: center; width: 100%; height: 4px; margin: 0; }
  .steps li:last-child .steps__bar { height: 4px; }
  .steps__bar i { transform-origin: left; transform: scaleX(var(--fill, 1)); }
  .steps h3 { grid-column: 1 / -1; grid-row: 2; align-self: start; margin-top: 18px; font-size: 20px; }
}

/* ═════════ Desktop ═════════ */
@media (min-width: 1024px) {
  :root { --pad-sec: 128px; --nav-h: 92px; }
  .h2 { font-size: 56px; letter-spacing: -.018em; }
  .trust__grid .trust__num { font-size: 56px; }
  .split { grid-template-columns: 1fr 564px; gap: 72px; }
  .problem .split, .pulse__split { grid-template-columns: minmax(0, 1fr) minmax(0, 47%); }
  .agents, .grid4 { grid-template-columns: repeat(4, 1fr); }
  .problem__cards { gap: 24px; }
  .problem__cards .card { padding: 30px; }
  .demo__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 60px; }
  .chat__body { min-height: 420px; }
  .grid4 .card { padding: 30px; }
  .case__split { grid-template-columns: minmax(0, 1fr) minmax(0, 47%); }
  .case__stats { gap: 14px 52px; }
  .case__photo { margin-top: 72px; }
  .plx-layer--bleed { inset: -9% 0; }
  .martina__grid { grid-template-columns: 448px minmax(0, 1fr); gap: 80px; }
  .martina__photo { position: relative; top: auto; }
  .quote { margin-top: 90px; }
  .quote p { font-size: 40px; }
  .aula__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 47%); gap: 72px; }
  .aula__photos { padding-bottom: 112px; }
  .aula__photo-b { right: -22px; width: 42%; }
  .founders__grid { grid-template-columns: minmax(0, 572px) minmax(0, 1fr); grid-template-areas: 'text map' 'photos map'; grid-template-rows: auto auto; column-gap: 40px; row-gap: 44px; align-content: center; }
  .founders__text { grid-area: text; align-self: end; }
  .founders__photos { grid-area: photos; align-self: start; grid-template-columns: 342px 214px; }
  .founders__map { grid-area: map; align-self: center; }
  .founders { padding-block: 100px; }
  .manifesto { padding-block: 200px 230px; }
  .pulse__kpis { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .pulse__kpis p { font-size: 36px; }
  .calc__card { grid-template-columns: 660px minmax(0, 1fr); border-radius: 32px; }
  .calc__form { padding: 56px; }
  .calc__result { padding: 56px; }
  .calc__big { font-size: clamp(56px, 5vw, 72px); }
  .flow { grid-template-columns: 1fr 52px 1fr 52px 1fr 52px 1fr; }
  .flow__arrow { height: auto; }
  .flow__arrow span { left: 12px; top: 50%; width: 28px; height: 2px; margin: -1px 0 0; transform-origin: left; }
  .flow__arrow span::after { left: auto; right: 0; bottom: -2px; transform: rotate(-45deg); }
  .flow__dot { top: 50%; left: 0; }
  .plans__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .plan { min-height: 394px; }
  .js .plan--top[data-reveal].is-in, html:not(.js) .plan--top { transform: translateY(-14px); }
  .js .plan--top.is-done:hover { transform: translateY(-18px); }
  .voices__track { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 424px 356px minmax(0, 1fr); gap: 40px; }
  .packs__rings i { left: 9%; width: 190%; }
  .book__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 564px); grid-template-areas: 'intro cal' 'fields cal'; grid-template-rows: auto 1fr; column-gap: 72px; row-gap: 38px; }
  .cal { align-self: start; padding: 32px; }
  .cal__day { height: 46px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .flow { margin-inline: auto; max-width: 560px; }
}
@media (min-width: 1180px) {
  .nav__in { padding-inline: 70px; }
  .nav__logo img { width: 124px; }
  .nav__burger { display: none; }
  .js .nav__menu, .nav__menu, html:not(.js) .nav__menu { position: static; display: flex; align-items: center; gap: 40px; height: auto; overflow: visible; background: none; padding: 0; visibility: visible; animation: none; }
  .nav__menu ul { display: flex; gap: 30px; }
  .js .nav__menu li { border: 0; }
  .js .nav__menu li a, .nav__menu li a { display: block; padding: 8px 0; font-size: 16px; text-underline-offset: 8px; }
  .nav__menu li a:hover { color: var(--trigo); }
  .js .nav__cta, .nav__cta { width: auto; margin: 0; }
}
@media (min-width: 1180px) and (max-width: 1279.98px) {
  .nav__in { padding-inline: 40px; }
  .nav__menu ul { gap: 20px; }
  .js .nav__menu { gap: 24px; }
}
/* Hero en pantallas anchas */
@media (min-width: 1024px) {
  .hero { min-height: clamp(680px, 100vh, 960px); align-items: center; }
  .hero__content { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 60px; }
  .hero h1 { font-size: 88px; line-height: 1.02; max-width: 900px; }
  .hero__lead { font-size: 21px; }
  .hero__veil { background: linear-gradient(90deg, rgba(14, 27, 19, .55) 0%, rgba(14, 27, 19, .28) 45%, rgba(14, 27, 19, 0) 72%), linear-gradient(180deg, rgba(20, 34, 25, .25) 0%, rgba(20, 34, 25, 0) 30%, rgba(18, 31, 23, .45) 100%), rgba(20, 34, 26, .55); }
  .hero__roots { top: 0; right: auto; left: 46.5%; width: 780px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .typing i { opacity: .8; }
}
@media print { .nav, .wa, .hero__pause { display: none; } .js [data-reveal] { opacity: 1; transform: none; } }
