/* ==========================================================
   FUNISAC — Sistema de diseño
   Capas: primitivos → semánticos → componentes
   Tipografía: Wix Madefor (Display + Text)
   ========================================================== */
:root {
  /* Primitivos (extraídos del logo) */
  --p-mint: #72e096;
  --p-sky: #75c5de;
  --p-emerald-900: #052e25;
  --p-emerald-800: #08473a;
  --p-emerald-700: #0b6b50;
  --p-emerald-500: #1fa97a;
  --p-sky-100: #e4f4f9;
  --p-sky-300: #b4e0ee;
  --p-grey-50: #f4f8f7;
  --p-grey-200: #dbe5e3;
  --p-grey-600: #52626a;
  --p-white: #ffffff;

  /* Semánticos */
  --c-bg: var(--p-white);
  --c-surface: var(--p-grey-50);
  --c-ink: #0a2a24;
  --c-muted: var(--p-grey-600);
  --c-primary: var(--p-emerald-700);
  --c-primary-dark: var(--p-emerald-900);
  --c-accent: var(--p-mint);
  --c-sky: var(--p-sky);
  --c-border: var(--p-grey-200);

  --f-display: "Wix Madefor Display", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 72px; --s-8: 120px;
  --r-sm: 12px; --r-md: 22px; --r-lg: 36px;
  --shadow-sm: 0 4px 18px rgba(5, 46, 37, .08);
  --shadow-md: 0 18px 50px rgba(5, 46, 37, .14);
  --shadow-lg: 0 30px 90px rgba(5, 46, 37, .25);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --header-h: 84px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.7;
  color: var(--c-ink); background: var(--c-bg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading, body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0 0 var(--s-3); letter-spacing: -.01em; }
p { margin: 0 0 var(--s-3); }
:focus-visible { outline: 3px solid var(--p-sky); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-primary-dark); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10000; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; background: radial-gradient(900px 520px at 4% 0%, rgba(114, 224, 150, .16), transparent 62%), radial-gradient(900px 560px at 100% 100%, rgba(117, 197, 222, .2), transparent 62%), #fff; overflow: hidden; }
.section::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: 12%; background: radial-gradient(circle, rgba(117, 197, 222, .28), transparent 68%); animation: drift 18s ease-in-out infinite; pointer-events: none; z-index: 0; }
.section > .container { position: relative; z-index: 1; }
.section::before, .strip::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(1200px, 86%); height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--p-mint), var(--p-sky), var(--p-mint), transparent); background-size: 200% 100%; animation: lineFlow 7s linear infinite; opacity: .75; z-index: 2; }
.page-hero + .section::before, .marquee + .section::before { display: none; }
@keyframes lineFlow { to { background-position: -200% 0; } }
.section--soft { background: radial-gradient(800px 480px at 90% 0%, rgba(114, 224, 150, .25), transparent 62%), radial-gradient(900px 560px at 0% 100%, rgba(117, 197, 222, .35), transparent 62%), linear-gradient(180deg, var(--p-grey-50), var(--p-sky-100)); }
.section--tint::after { left: -140px; right: auto; top: auto; bottom: 8%; background: radial-gradient(circle, rgba(114, 224, 150, .35), transparent 68%); }
.section--dark { color: #fff; background: radial-gradient(1200px 600px at 80% -10%, #0e7a5a 0%, transparent 60%), var(--p-emerald-900); color: #fff; }
.eyebrow { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; font-weight: 700; color: var(--c-primary); display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--s-3); }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: linear-gradient(90deg, var(--p-mint), var(--p-sky)); border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--p-mint); }
.h-xl { font-size: clamp(2.5rem, 6.2vw, 5.4rem); font-weight: 400; }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 400; }
.h-md { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--c-muted); max-width: 60ch; }
.section--dark .lead, .hero .lead, .page-hero .lead { color: rgba(255, 255, 255, .82); }
.grad-text { background: linear-gradient(95deg, var(--p-mint), var(--p-sky) 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text-dark { background: linear-gradient(95deg, var(--p-emerald-700), var(--p-sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn { --bg: var(--p-mint); --fg: var(--p-emerald-900); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1rem; background: var(--bg); color: var(--fg); position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease); touch-action: manipulation; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%); transform: translateX(-120%); transition: transform .8s var(--ease); z-index: -1; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(114, 224, 150, .45); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.97); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff, 0 14px 34px rgba(0, 0, 0, .25); background: rgba(255, 255, 255, .12); }
.btn--dark { --bg: var(--c-primary-dark); --fg: #fff; }
.btn--dark:hover { box-shadow: 0 14px 34px rgba(5, 46, 37, .35); }
.btn--outline { --bg: transparent; --fg: var(--c-primary-dark); box-shadow: inset 0 0 0 1.5px var(--c-primary); }
.btn--outline:hover { background: var(--p-sky-100); box-shadow: inset 0 0 0 1.5px var(--c-primary); }

/* ---------- Preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; pointer-events: all; }
.pl-panel { position: absolute; top: 0; bottom: 0; width: 50.2%; background: radial-gradient(900px 500px at 50% 40%, #0d6a52, var(--p-emerald-900) 70%); transition: transform 1.1s var(--ease-io); }
.pl-left { left: 0; } .pl-right { right: 0; }
.pl-center { position: relative; z-index: 2; text-align: center; padding: 24px; display: grid; justify-items: center; gap: 22px; transition: opacity .6s ease, transform .8s var(--ease), filter .6s ease; }
.pl-logo-wrap { position: relative; width: clamp(150px, 26vw, 250px); aspect-ratio: 1.4; display: grid; place-items: center; }
.pl-logo-wrap img { width: 100%; position: relative; z-index: 2; filter: none; animation: plLogo 1.2s var(--ease) both, float 4.5s ease-in-out 1.2s infinite; }
.pl-ring { position: absolute; z-index: 0; inset: -14%; border-radius: 50%; border: 1.5px solid rgba(114, 224, 150, .55); animation: ring 2.4s ease-out infinite; }
.pl-ring.r2 { animation-delay: .8s; border-color: rgba(117, 197, 222, .55); }
.pl-ring.r3 { animation-delay: 1.6s; }
.pl-name { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.6rem, 9vw, 5.6rem); letter-spacing: .14em; color: #fff; display: flex; padding-left: .14em; }
.pl-name span { display: inline-block; opacity: 0; transform: translateY(60%) rotateX(-70deg); filter: blur(10px); animation: plLetter .9s var(--ease) forwards; animation-delay: calc(.7s + var(--i) * .09s); }
.pl-name span:nth-child(odd) { color: var(--p-mint); }
.pl-full { margin: 0; max-width: 34ch; color: rgba(255, 255, 255, .8); font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .06em; text-transform: uppercase; opacity: 0; animation: fadeUp .9s var(--ease) 1.6s forwards; line-height: 1.5; }
.pl-bar { width: min(260px, 60vw); height: 3px; background: rgba(255, 255, 255, .18); border-radius: 3px; overflow: hidden; opacity: 0; animation: fadeUp .6s ease 1.8s forwards; }
.pl-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--p-mint), var(--p-sky)); animation: plBar 2.2s var(--ease-io) 1.6s forwards; }
#preloader.done .pl-center { opacity: 0; transform: scale(1.08); }
#preloader.done .pl-left { transform: translateX(-101%); transition-delay: .35s; }
#preloader.done .pl-right { transform: translateX(101%); transition-delay: .35s; }
#preloader.gone { display: none; }
@keyframes plLogo { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes plLetter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes plBar { to { transform: scaleX(1); } }
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Transición entre páginas ---------- */
.pt { position: fixed; inset: 0; z-index: 9000; pointer-events: none; display: grid; }
.pt i { position: absolute; inset: 0; transform: translateX(-101%); }
.pt i:nth-child(1) { background: var(--p-sky); }
.pt i:nth-child(2) { background: var(--p-mint); }
.pt i:nth-child(3) { background: var(--p-emerald-900); }
.pt.enter i { transform: translateX(0); animation: ptOut .9s var(--ease-io) forwards; }
.pt.enter i:nth-child(1) { animation-delay: .16s; } .pt.enter i:nth-child(2) { animation-delay: .08s; }
.pt.enter i:nth-child(3) { animation-delay: 0s; }
.pt.leave { pointer-events: all; }
.pt.leave i { animation: ptIn .6s var(--ease-io) forwards; }
.pt.leave i:nth-child(1) { animation-delay: 0s; } .pt.leave i:nth-child(2) { animation-delay: .07s; } .pt.leave i:nth-child(3) { animation-delay: .14s; }
@keyframes ptOut { to { transform: translateX(101%); } }
@keyframes ptIn { from { transform: translateX(-101%); } to { transform: translateX(0); } }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; inset-inline: 0; z-index: 500; height: var(--header-h); display: flex; align-items: center; transition: background .45s ease, box-shadow .45s ease, height .45s var(--ease), backdrop-filter .45s; color: #fff; }
.header.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 6px 30px rgba(5, 46, 37, .1); color: var(--c-ink); height: 70px; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 600; letter-spacing: .1em; font-size: 1.25rem; }
.brand img { width: 54px; height: auto; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.08); }
.brand small { display: block; font-size: .56rem; letter-spacing: .12em; font-weight: 500; opacity: .8; text-transform: uppercase; margin-top: 3px; max-width: 22ch; line-height: 1.25; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav a:not(.btn) { position: relative; font-family: var(--f-display); font-weight: 500; font-size: .98rem; padding: 10px 2px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--p-mint), var(--p-sky)); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: .92rem; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: inherit; cursor: pointer; position: relative; z-index: 600; }
.header.scrolled .burger { background: var(--p-grey-50); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 140px; }
.hero-slides, .hero-slides li { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; z-index: -3; }
.hero-slides li { opacity: 0; transition: opacity 1.8s ease; background-size: cover; background-position: center; }
.hero-slides li.on { opacity: 1; animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.2%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(5, 46, 37, .92) 0%, rgba(5, 46, 37, .68) 45%, rgba(5, 46, 37, .2) 100%), linear-gradient(0deg, rgba(5, 46, 37, .75), transparent 45%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .55; animation: drift 16s ease-in-out infinite; pointer-events: none; }
.blob.b1 { width: 460px; height: 460px; background: var(--p-mint); top: -80px; right: -60px; }
.blob.b2 { width: 380px; height: 380px; background: var(--p-sky); bottom: 10%; left: 28%; animation-delay: -6s; opacity: .35; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-60px, 40px) scale(1.15); } 66% { transform: translate(40px, -30px) scale(.9); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 860px); align-items: center; }
.hero h1 { margin-bottom: var(--s-4); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; animation-delay: calc(var(--hd, 0s) + var(--l) * .14s); }
@keyframes lineUp { to { transform: none; } }
.hero .lead { opacity: 0; animation: fadeUp 1s var(--ease) forwards; animation-delay: calc(var(--hd, 0s) + .55s); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--s-5); opacity: 0; animation: fadeUp 1s var(--ease) forwards; animation-delay: calc(var(--hd, 0s) + .75s); }
.hero .eyebrow { opacity: 0; animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--hd, 0s); }
.hero-badge { justify-self: center; position: relative; width: min(340px, 70vw); aspect-ratio: 1.4; opacity: 0; animation: fadeUp 1.2s var(--ease) forwards; animation-delay: calc(var(--hd, 0s) + .4s); }
.hero-badge img { position: relative; z-index: 2; animation: float 6s ease-in-out infinite; }
.hero-badge .pl-ring { inset: -10%; }
.scroll-hint { position: absolute; bottom: 104px; left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.scroll-hint i { width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--p-mint); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 1; line-height: 0; overflow: hidden; }
.wave svg { width: 200%; height: 100%; display: block; animation: waveMove 18s linear infinite; }
.wave svg:nth-child(2) { position: absolute; left: 0; bottom: 0; animation-duration: 26s; animation-direction: reverse; }
@keyframes waveMove { to { transform: translateX(-50%); } }

/* Page hero (páginas internas) */
.page-hero { position: relative; color: #fff; min-height: 66svh; display: grid; align-items: end; padding: calc(var(--header-h) + 80px) 0 130px; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: -6% 0; z-index: -3; background-size: cover; background-position: center; will-change: transform; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, rgba(5, 46, 37, .92), rgba(5, 46, 37, .45) 60%, rgba(5, 46, 37, .65)); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead, .page-hero .eyebrow, .page-hero h1 { opacity: 0; animation: fadeUp 1s var(--ease) .75s forwards; }
.page-hero h1 { animation-delay: .9s; } .page-hero .lead { animation-delay: 1.05s; }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Marquee ---------- */
.marquee { background: #fff; color: var(--c-primary); overflow: hidden; padding: 11px 0; position: relative; z-index: 2; border-bottom: 1px solid var(--c-border); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--f-display); font-size: .78rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; opacity: .8; }
.marquee span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--p-mint), var(--p-sky)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Split (izquierda/derecha) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.photo-shape { position: relative; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; overflow: hidden; aspect-ratio: 1 / 1.05; box-shadow: var(--shadow-lg); animation: morph 14s ease-in-out infinite; }
.photo-shape img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
@keyframes morph { 0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; } 50% { border-radius: 58% 42% 40% 60% / 55% 55% 45% 45%; } }
.split-media::before { content: ""; position: absolute; inset: -6% -8% auto auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, var(--p-sky), transparent 68%); filter: blur(30px); opacity: .6; z-index: -1; }
.split-media .chip { position: absolute; left: -4%; bottom: 8%; background: #fff; color: var(--c-ink); border-radius: var(--r-md); padding: 16px 22px; box-shadow: var(--shadow-md); display: flex; gap: 14px; align-items: center; animation: float 6s ease-in-out infinite; z-index: 3; }
.chip b { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; color: var(--c-primary); }
.chip small { display: block; line-height: 1.25; color: var(--c-muted); font-size: .82rem; }
.ticks { list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-5); display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; background: var(--p-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052e25' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: var(--s-6); }
.pillar { position: relative; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; isolation: isolate; box-shadow: 0 24px 60px rgba(5, 46, 37, .28), 0 4px 14px rgba(5, 46, 37, .12); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.pillar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.pillar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 46, 37, .92) 0%, rgba(5, 46, 37, .55) 45%, rgba(5, 46, 37, .12) 100%); transition: opacity .6s; }
.pillar:hover { transform: translateY(-10px); box-shadow: 0 36px 80px rgba(5, 46, 37, .38); }
.pillar:hover > img { transform: scale(1.1); }
.pillar-in { padding: 32px 30px; }
.pillar .num { font-family: var(--f-display); font-size: 3.6rem; font-weight: 300; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--p-mint); display: block; margin-bottom: 8px; }
.pillar h3 { color: #fff; }
.pillar p { margin: 0; color: rgba(255, 255, 255, .88); }
.caps { text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.ico { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--p-mint), var(--p-sky)); color: var(--p-emerald-900); margin-bottom: 18px; }
.ico svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Stats ---------- */
.strip { background: var(--p-emerald-900); color: #fff; padding: 22px 0; position: relative; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 4px 12px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .14); }
.stat b { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1; color: var(--p-mint); }
.stat span { color: rgba(255, 255, 255, .7); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: var(--s-6); }
.scard { position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 0; border-radius: var(--r-lg); background: #fff; padding: 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(5, 46, 37, .14), 0 2px 8px rgba(5, 46, 37, .06); transition: transform .5s var(--ease), box-shadow .6s var(--ease); touch-action: manipulation; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transform-style: preserve-3d; will-change: transform; }
.scard:hover { --ty: -10px; box-shadow: 0 34px 80px rgba(5, 46, 37, .26); }
.scard-img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.scard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.scard:hover .scard-img img { transform: scale(1.1); }
.scard-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 46, 37, .35), transparent 55%); }
.scard-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.scard h3 { font-size: 1.45rem; margin: 0; }
.scard p { color: var(--c-muted); font-size: 1rem; margin: 0; line-height: 1.6; }
.more { margin-top: auto; padding-top: 14px; font-family: var(--f-display); font-weight: 600; font-size: .92rem; color: var(--c-primary); display: inline-flex; align-items: center; gap: 8px; }
.more::after { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--p-sky-100); transition: transform .5s var(--ease), background .3s; font-size: 1.1rem; line-height: 1; }
.scard:hover .more::after { transform: rotate(180deg); background: var(--p-mint); }

/* ---------- Acordeón (Misión / Visión / Objetivo) ---------- */
.acc { display: grid; gap: 16px; margin-top: var(--s-5); }
.acc-item { --t1: rgba(114, 224, 150, .38); --t2: rgba(255, 255, 255, .9); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--t1), var(--t2) 70%); border: 1px solid rgba(255, 255, 255, .8); overflow: hidden; box-shadow: 0 14px 40px rgba(5, 46, 37, .12), inset 0 1px 0 #fff; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.acc-item:nth-child(2) { --t1: rgba(117, 197, 222, .45); }
.acc-item:nth-child(3) { --t1: rgba(31, 169, 122, .3); }
.acc-item:hover { transform: translateY(-3px); }
.acc-item.open { box-shadow: 0 28px 70px rgba(5, 46, 37, .22), inset 0 1px 0 #fff; }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px 28px; background: none; border: 0; cursor: pointer; font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); text-align: left; color: var(--c-ink); }
.acc-btn .ico { margin: 0; width: 52px; height: 52px; flex: none; }
.acc-btn .chev { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--p-grey-50); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; flex: none; }
.acc-btn .chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.acc-item.open .chev { transform: rotate(180deg); background: var(--p-mint); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 28px 28px 98px; margin: 0; color: var(--c-muted); font-size: 1.08rem; opacity: 0; transform: translateY(14px); filter: blur(6px); transition: all .8s var(--ease) .1s; }
.acc-item.open .acc-panel p { opacity: 1; transform: none; filter: none; }

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: var(--s-5); }
.value { padding: 26px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); transition: transform .5s var(--ease), background .5s; }
.value:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .13); }
.value h3 { font-size: 1.3rem; color: var(--p-mint); margin-bottom: 6px; }
.value p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .98rem; line-height: 1.55; }

/* ---------- Ficha legal ---------- */
.legal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.legal div { position: relative; padding: 18px 20px 18px 40px; background: #fff; border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(5, 46, 37, .1); border: 1px solid var(--c-border); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.legal div::before { content: ""; position: absolute; left: 18px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--p-mint), var(--p-sky)); box-shadow: 0 0 0 4px rgba(114, 224, 150, .25); }
.legal div:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(5, 46, 37, .18); }
.legal dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-primary); font-weight: 700; font-family: var(--f-display); }
.legal dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 1.05rem; font-weight: 500; line-height: 1.3; }
.legal .full { grid-column: 1 / -1; }

/* ---------- Timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: var(--s-6); position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--p-mint), var(--p-sky)); z-index: 0; transform-origin: left; transform: scaleX(var(--prog, 0)); transition: transform 1.8s var(--ease-io); }
.steps.in { --prog: 1; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step .dot { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: #fff; border: 2px solid var(--p-mint); font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--c-primary); box-shadow: 0 0 0 8px var(--p-grey-50); transition: transform .5s var(--ease), background .5s; }
.step:hover .dot { background: var(--p-mint); transform: scale(1.12); }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--c-muted); font-size: .96rem; line-height: 1.55; }

/* ---------- Galería ---------- */
.gallery { columns: 3 280px; column-gap: 18px; margin-top: var(--s-6); }
.gitem { break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; display: block; width: 100%; border: 0; padding: 0; background: var(--p-sky-100); }
.gitem img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.gitem:hover img { transform: scale(1.08); filter: saturate(1.15); }
.gitem::after { content: attr(data-cap); position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff; font-family: var(--f-display); font-size: 1rem; text-align: left; background: linear-gradient(0deg, rgba(5, 46, 37, .85), transparent); opacity: 0; transform: translateY(14px); transition: all .5s var(--ease); }
.gitem:hover::after, .gitem:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Banda CTA con parallax ---------- */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; isolation: isolate; padding: clamp(90px, 12vw, 170px) 0; }
.cta-band .bg { position: absolute; inset: -12% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 50% 50%, rgba(5, 46, 37, .6), rgba(5, 46, 37, .88)); }
.cta-band .lead { margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; opacity: 1; animation: none; }

/* ---------- Modal ---------- */
dialog.modal { border: 0; padding: 0; background: transparent; max-width: min(920px, 94vw); width: 100%; max-height: 92svh; overflow: visible; color: var(--c-ink); }
dialog.modal::backdrop { background: rgba(5, 46, 37, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s ease; }
dialog.modal[open]::backdrop { opacity: 1; }
.modal-card { display: grid; grid-template-columns: .85fr 1.15fr; background: #fff; border-radius: var(--r-lg); overflow: hidden; max-height: 92svh; box-shadow: var(--shadow-lg); transform: scale(.6) translateY(40px); opacity: 0; filter: blur(12px); transition: transform .65s var(--ease), opacity .45s ease, filter .5s ease; transform-origin: var(--ox, 50%) var(--oy, 50%); }
dialog.modal[open] .modal-card { transform: none; opacity: 1; filter: none; }
dialog.modal.closing .modal-card { transform: scale(.85) translateY(20px); opacity: 0; filter: blur(8px); transition-duration: .35s; }
.modal-img { position: relative; min-height: 220px; }
.modal-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 46, 37, .6), transparent 60%); }
.modal-body { padding: clamp(24px, 4vw, 44px); overflow: auto; max-height: 92svh; }
.modal-body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.modal-body ul { padding: 0; margin: 18px 0 24px; list-style: none; display: grid; gap: 10px; }
.modal-body li { display: flex; gap: 12px; font-size: 1rem; line-height: 1.5; color: var(--c-muted); }
.modal-body li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: linear-gradient(135deg, var(--p-mint), var(--p-sky)); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .92); color: var(--c-ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), background .3s; }
.modal-close:hover { transform: rotate(90deg) scale(1.08); background: var(--p-mint); }
.modal-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
dialog.lightbox { max-width: 96vw; width: auto; }
.lb { position: relative; display: grid; justify-items: center; gap: 14px; transform: scale(.7); opacity: 0; filter: blur(14px); transition: all .6s var(--ease); transform-origin: var(--ox, 50%) var(--oy, 50%); }
dialog.lightbox[open] .lb { transform: none; opacity: 1; filter: none; }
dialog.lightbox.closing .lb { transform: scale(.88); opacity: 0; transition-duration: .3s; }
.lb img { max-width: 92vw; max-height: 78svh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); object-fit: contain; background: #0003; }
.lb img.swap { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: scale(.94); filter: blur(10px); } }
.lb p { color: #fff; font-family: var(--f-display); font-size: 1.1rem; margin: 0; text-align: center; }
.lb-nav { position: fixed; top: 50%; translate: 0 -50%; z-index: 5; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .92); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.lb-nav:hover { background: var(--p-mint); transform: scale(1.1); }
.lb-nav svg { width: 22px; height: 22px; stroke: var(--c-ink); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
dialog.lightbox .modal-close { position: fixed; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.info-list { display: grid; gap: 16px; margin-top: var(--s-5); }
.info { display: flex; gap: 18px; align-items: center; padding: 20px 22px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--c-border); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
a.info:hover { transform: translateX(10px); box-shadow: var(--shadow-md); }
.info .ico { margin: 0; flex: none; width: 52px; height: 52px; }
.info small { display: block; color: var(--c-muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.info strong { font-family: var(--f-display); font-weight: 500; font-size: 1.08rem; overflow-wrap: anywhere; }
.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-lg); border: 1px solid var(--c-border); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--p-mint), var(--p-sky)); }
.field { margin-bottom: 20px; position: relative; }
.field label { display: block; font-family: var(--f-display); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field label span { color: var(--c-primary); }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: 15px 18px; min-height: 52px; border-radius: 16px; border: 1.5px solid var(--c-border); background: var(--p-grey-50); color: var(--c-ink); transition: border-color .3s, box-shadow .3s, background .3s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--p-emerald-500); background: #fff; box-shadow: 0 0 0 5px rgba(114, 224, 150, .3); }
.field .err { display: none; color: #b42318; font-size: .86rem; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: #b42318; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-msg { display: none; margin-top: 18px; padding: 16px 20px; border-radius: 16px; font-weight: 500; }
.form-msg.ok { display: block; background: #e6f9ee; color: #0b6b50; }
.form-msg.bad { display: block; background: #fdecea; color: #912018; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.footer { background: var(--p-emerald-900); color: rgba(255, 255, 255, .78); position: relative; padding: 90px 0 36px; overflow: hidden; }
.footer::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(117, 197, 222, .3), transparent 65%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; }
.footer h4 { color: #fff; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--p-mint); }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer p { font-size: .95rem; line-height: 1.6; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); transition: transform .5s var(--ease), background .3s; }
.socials a:hover { background: var(--p-mint); color: var(--p-emerald-900); transform: translateY(-5px) rotate(-8deg); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; position: relative; }

/* WhatsApp flotante */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 600; width: 62px; height: 62px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, .5); transition: transform .4s var(--ease); }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: ring 2.2s ease-out infinite; }
.wa:hover { transform: scale(1.1) rotate(-6deg); }
.wa svg { width: 32px; height: 32px; fill: currentColor; }
.wa span { position: absolute; right: 74px; background: #fff; color: var(--c-ink); font-family: var(--f-display); font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 12px; white-space: nowrap; box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(10px); pointer-events: none; transition: all .4s var(--ease); }
.wa:hover span { opacity: 1; transform: none; }
.to-top { position: fixed; right: 28px; bottom: 96px; z-index: 590; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-md); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .5s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: all; }
.to-top svg { width: 18px; height: 18px; stroke: var(--c-primary-dark); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 700; background: linear-gradient(90deg, var(--p-mint), var(--p-sky)); transform-origin: left; transform: scaleX(0); }

/* ---------- Revelado al hacer scroll ---------- */
[data-rv] { opacity: 0; filter: blur(14px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0s); will-change: transform, opacity; }
[data-rv="left"] { transform: translateX(-90px); }
[data-rv="right"] { transform: translateX(90px); }
[data-rv="up"] { transform: translateY(60px); }
[data-rv="zoom"] { transform: scale(.88); }
[data-rv="mask"] { transform: translateX(-40px); }
[data-rv="mask-r"] { transform: translateX(40px); }
[data-rv="mask"] > .photo-shape { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s var(--ease-io) calc(var(--d, 0s) + .15s); }
[data-rv="mask-r"] > .photo-shape { clip-path: inset(0 0 0 100%); transition: clip-path 1.5s var(--ease-io) calc(var(--d, 0s) + .15s); }
[data-rv].in { opacity: 1; transform: none; filter: none; }
[data-rv].in > .photo-shape { clip-path: inset(0 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0; z-index: 550; flex-direction: column; justify-content: center; gap: 8px; background: radial-gradient(700px 400px at 80% 0, #0e7a5a, transparent 60%), var(--p-emerald-900); color: #fff; clip-path: circle(0 at calc(100% - 44px) 42px); transition: clip-path .8s var(--ease-io); visibility: hidden; }
  .nav-open .nav { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
  .nav a:not(.btn) { font-size: 2rem; font-weight: 400; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
  .nav-open .nav a { opacity: 1; transform: none; }
  .nav-open .nav a:nth-child(1) { transition-delay: .25s; } .nav-open .nav a:nth-child(2) { transition-delay: .32s; }
  .nav-open .nav a:nth-child(3) { transition-delay: .39s; } .nav-open .nav a:nth-child(4) { transition-delay: .46s; }
  .nav-open .nav a:nth-child(5) { transition-delay: .53s; } .nav-open .nav a:nth-child(6) { transition-delay: .6s; }
  .nav .btn { margin-top: 16px; }
  .nav-open .header, .nav-open .header.scrolled { color: #fff; }
  .nav-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav-open .burger { background: rgba(255, 255, 255, .16); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .pillars, .values { grid-template-columns: 1fr; }
  .modal-card { grid-template-columns: 1fr; overflow: auto; }
  .modal-img { min-height: 170px; }
  .modal-body { overflow: visible; max-height: none; }
  .legal { grid-template-columns: 1fr; }
  .acc-panel p { padding: 0 24px 24px; }
  .photo-shape { max-width: 480px; margin-inline: auto; }
  .split-media .chip { left: 2%; }
  .scroll-hint { display: none; }
  .brand small { display: none; }
  [data-rv="left"], [data-rv="right"] { transform: translateX(0) translateY(46px); }
}
@media (max-width: 560px) {
  .steps, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .stats { gap: 12px; }
  .lb-nav { width: 46px; height: 46px; } .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .wa span { display: none; }
  .hero { padding-bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-rv], [data-rv] > .photo-shape { opacity: 1; transform: none; filter: none; clip-path: none; }
  .hero h1 .line > span, .hero .lead, .hero-cta, .hero .eyebrow, .hero-badge, .page-hero h1, .page-hero .lead, .page-hero .eyebrow { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

/* Pausa las animaciones de entrada hasta que termine el preloader / la cortina */
body:not(.ready) :is(.hero, .page-hero) * { animation-play-state: paused !important; }
html.pt-in .pt i { transform: translateX(0); }

/* Sección con foto de fondo que se difumina entre secciones */
.fadebg { color: #fff; text-align: center; background: transparent; isolation: isolate; padding: clamp(110px, 14vw, 200px) 0; }
.fadebg::after { display: none; }
.fadebg .bg { position: absolute; inset: 0 -3%; z-index: -1; overflow: hidden; translate: var(--mx, 0px) var(--my, 0px); transition: translate .8s var(--ease); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); will-change: transform; }
.fadebg .bg i { position: absolute; inset: -4%; background-size: cover; background-position: center; animation: kb2 22s ease-in-out infinite alternate; }
.fadebg .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 50% 50%, rgba(5, 46, 37, .84), rgba(5, 46, 37, .68)); }
@keyframes kb2 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.center { text-align: center; max-width: 860px; }
.center .lead { margin-inline: auto; }
.fadebg .eyebrow { color: var(--p-mint); }
.fadebg .lead { color: rgba(255, 255, 255, .86); }
.fadebg .eyebrow::before { display: none; }
.fadebg .eyebrow::after { content: ""; width: 38px; height: 2px; background: linear-gradient(90deg, var(--p-sky), var(--p-mint)); border-radius: 2px; }
.fadebg .btn { margin-top: 12px; }
.grad-text, .grad-text-dark { background-size: 200% 100%; animation: gradShift 7s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% 0; } }
.cta-band .bg, .page-hero .bg { translate: var(--mx, 0px) var(--my, 0px); transition: translate .8s var(--ease); }
.cta-band .bg { inset: -12% -5%; }
.page-hero .bg { inset: -6% -4%; }
.hero-slides { translate: var(--mx, 0px) var(--my, 0px); transition: translate .8s var(--ease); inset: -3%; }
@media (max-width: 820px) { .pillars, .cards { grid-template-columns: repeat(2, 1fr); } .stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; } .stat:nth-child(3) { border-left: 0; } }
@media (max-width: 640px) { .pillars, .cards { grid-template-columns: 1fr; } .pillar { min-height: 340px; } .stat { flex-direction: column; align-items: center; gap: 4px; } }

/* Ajustes responsivos finales */
html { overflow-x: clip; }
.strip { overflow: hidden; }
.stats > * { min-width: 0; }
@media (max-width: 640px) {
  .stat span { font-size: .66rem; letter-spacing: .05em; text-align: center; }
  .stat + .stat { border-left: 0; }
  .stat { padding: 6px 4px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .page-hero { padding-top: calc(var(--header-h) + 50px); min-height: 56svh; }
  .section { padding: 64px 0; }
  .fadebg { padding: 96px 0; }
}

/* Misión · Visión · Objetivo en inicio */
.mvo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: var(--s-6); }
.mvo-card { position: relative; padding: 36px 30px; border-radius: var(--r-lg); background: linear-gradient(140deg, rgba(114, 224, 150, .35), rgba(255, 255, 255, .95) 70%); box-shadow: 0 18px 50px rgba(5, 46, 37, .14), inset 0 1px 0 #fff; border: 1px solid rgba(255, 255, 255, .8); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.mvo-card:nth-child(2) { background: linear-gradient(140deg, rgba(117, 197, 222, .45), rgba(255, 255, 255, .95) 70%); }
.mvo-card:nth-child(3) { background: linear-gradient(140deg, rgba(31, 169, 122, .3), rgba(255, 255, 255, .95) 70%); }
.mvo-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(5, 46, 37, .22); }
.mvo-n { display: block; font-family: var(--f-display); font-size: 1.7rem; margin-bottom: 10px; color: var(--c-primary-dark); }
.mvo-card p { margin: 0; color: var(--c-muted); }
@media (max-width: 820px) { .mvo { grid-template-columns: 1fr; } }
.mvo--mini { margin-top: 56px; gap: 18px; }
.mvo--mini .mvo-card { padding: 24px 24px 26px; border-radius: var(--r-md); }
.mvo--mini .mvo-n { font-size: 1.25rem; margin-bottom: 6px; }
.mvo--mini .mvo-card p { font-size: .95rem; line-height: 1.55; }

/* ---------- Legal, cookies ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: .86rem; position: relative; }
.footer-legal a { opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { opacity: 1; }
.prose-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.prose-toc { position: sticky; top: 110px; padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: 0 10px 34px rgba(5, 46, 37, .08); font-size: .92rem; }
.prose-toc ol { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.prose-toc a:hover { color: var(--c-primary-dark, #0b6b50); text-decoration: underline; }
.prose { max-width: 780px; }
.prose section { scroll-margin-top: 110px; margin-top: 34px; }
.prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 10px; }
.prose p, .prose li { line-height: 1.75; color: #33453f; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: #0b6b50; text-decoration: underline; text-underline-offset: 3px; }
.prose .muted { opacity: .7; margin: 0; }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 90; max-width: 460px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: rgba(5, 46, 37, .96); color: #eafff4; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); font-size: .9rem; line-height: 1.5; transform: translateY(30px); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s; }
.cookie.show { transform: none; opacity: 1; }
.cookie p { margin: 0; } .cookie a { text-decoration: underline; color: #9af0c0; }
.cookie .btn { flex: none; padding: 10px 18px; background: #72e096; color: #052e25; }
@media (max-width: 900px) { .prose-wrap { grid-template-columns: 1fr; gap: 24px; } .prose-toc { position: static; } }
@media (max-width: 640px) { .cookie { left: 10px; right: 10px; bottom: 86px; max-width: none; flex-direction: column; align-items: stretch; text-align: left; } }
.cookie[hidden] { display: none; }
