/* ==========================================================================
   HYLOX — styles.css
   Editorial dark · negro profundo, blanco/gris como base, turquesa como acento.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #050607;
  --bg-2: #080a0b;
  --surface: #0d1012;
  --surface-2: #121619;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f2f2f0;
  --text-2: #a8adb1;
  --muted: #6c7277;
  --accent: #2ba3b8;          /* turquesa Hylox, ajustado para fondo negro */
  --accent-deep: #1c7f94;     /* turquesa original del isotipo */
  --accent-soft: rgba(43, 163, 184, 0.14);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4.2vw, 56px);
  --maxw: 1360px;
  --section: clamp(96px, 14vw, 200px);
  --nav-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }
strong { font-weight: 500; color: var(--text); }

::selection { background: var(--accent); color: var(--bg); }

a, button, [role="button"], summary, label { touch-action: manipulation; }
button, .btn, summary, .nav__toggle, .choice label { -webkit-user-select: none; user-select: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg);
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Grano de película: textura editorial muy sutil */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 3. Tipografía ---------- */
.eyebrow, .kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker span { color: var(--accent); }
.kicker span::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 14px; vertical-align: middle; background: var(--line-2); }
.kicker--plain { margin-bottom: 20px; color: var(--muted); }

.display {
  font-size: clamp(2.1rem, 5.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 18ch;
  text-wrap: balance;
}
.display--md { font-size: clamp(2rem, 4.4vw, 4.1rem); max-width: 16ch; }
.display--sm { font-size: clamp(1.8rem, 3.3vw, 3rem); }

.display em, .statement em, .mega em, .hero__title em, .service__ask em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.display em { color: var(--text-2); }

.mega {
  font-size: clamp(3.2rem, 11vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.mega em { color: var(--accent); letter-spacing: -0.03em; }
.mega--md { font-size: clamp(2.6rem, 6.4vw, 6.2rem); line-height: 0.95; }

.statement {
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 28ch;
  text-wrap: balance;
}
.statement em { color: var(--accent); }

.body { color: var(--text-2); font-size: clamp(1rem, 1.1vw, 1.0625rem); line-height: 1.7; max-width: 52ch; }
.body p + p { margin-top: 1.1em; }

/* ---------- 4. Botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 300ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #031013; box-shadow: 0 0 0 0 rgba(43, 163, 184, 0); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }

@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: #3cb6ca; box-shadow: 0 10px 40px -10px rgba(43, 163, 184, 0.6); }
  .btn--accent:hover svg { transform: translateX(3px); }
  .btn--light:hover { background: #fff; }
  .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
}

/* ---------- 5. Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 600ms var(--ease-out), visibility 0s linear 600ms;
  animation: splashSafety 0.01s 4.5s forwards; /* red de seguridad si JS falla */
}
.splash img { width: 34px; height: auto; animation: splashMark 900ms var(--ease-out) both; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashMark {
  from { opacity: 0; transform: translateY(10px) scale(0.96); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- 6. Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 300ms ease, border-color 300ms ease, transform 400ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 6, 7, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.82rem; }
.brand img { width: 15px; height: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 0.875rem; color: var(--text-2); }
.nav__links a { position: relative; padding: 6px 0; transition: color 200ms ease; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out);
}
.nav__links a[aria-current] { color: var(--text); }
.nav__links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--text); }
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__toggle { display: none; }

.mobile-menu { display: none; }

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
    transition: transform 160ms var(--ease-out);
  }
  .nav__toggle:active { transform: scale(0.94); }
  .nav__toggle i { display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 300ms var(--ease-out); }
  .nav__toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 99;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 6, 7, 0.97);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden;
    transition: opacity 300ms var(--ease-out), visibility 0s linear 300ms;
    overscroll-behavior: contain;
  }
  .mobile-menu[hidden] { display: flex; }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease-out); }
  .mobile-menu nav { display: flex; flex-direction: column; overflow-y: auto; }
  .mobile-menu__sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 14px 34px; border-bottom: 1px solid var(--line); }
  .mobile-menu nav .mobile-menu__sub a.sub {
    padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
    font-size: 0.875rem; letter-spacing: 0; font-weight: 400; color: var(--text-2);
  }
  .mobile-menu nav a[aria-current], .mobile-menu nav a.is-current { color: var(--accent); }
  .mobile-menu nav a {
    display: flex; align-items: baseline; gap: 16px; padding: 11px 0;
    font-size: clamp(1.6rem, 7.4vw, 2.3rem); letter-spacing: -0.03em; font-weight: 500;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(14px);
    transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
  }
  .mobile-menu nav a small { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.06em; }
  .mobile-menu nav a:active { color: var(--accent); }
  .mobile-menu.is-open nav a { opacity: 1; transform: none; }
  .mobile-menu.is-open nav a:nth-child(2) { transition-delay: 40ms; }
  .mobile-menu.is-open nav a:nth-child(3) { transition-delay: 80ms; }
  .mobile-menu.is-open nav a:nth-child(4) { transition-delay: 120ms; }
  .mobile-menu.is-open nav a:nth-child(5) { transition-delay: 160ms; }
  .mobile-menu.is-open nav a:nth-child(6) { transition-delay: 200ms; }
  body.menu-open { overflow: hidden; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 48px);
  overflow: hidden; isolation: isolate;
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; animation: fadeIn 1.6s var(--ease-out) 0.3s forwards; }
.hero__glow {
  position: absolute; z-index: -2; width: 70vmax; height: 70vmax; right: -24vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(28, 127, 148, 0.28), rgba(28, 127, 148, 0.06) 55%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after { /* desvanecido inferior hacia la siguiente sección */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__inner { padding-bottom: clamp(40px, 6vw, 72px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(24px, 3vw, 36px); }
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(43, 163, 184, 0.5); animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 163, 184, 0.45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(43, 163, 184, 0); } }

.hero__title {
  font-size: clamp(2.9rem, 9.2vw, 9.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin-left: -0.04em;
}
.hero__title em { color: var(--accent); letter-spacing: -0.035em; padding-right: 0.04em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.15s var(--ease-out) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: 0.55s; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.68s; }
@keyframes lineUp { to { transform: none; } }

[data-hero-item] { opacity: 0; transform: translateY(14px); animation: fadeUp 1s var(--ease-out) forwards; }
.hero__eyebrow[data-hero-item] { animation-delay: 0.45s; }
.hero__lead[data-hero-item] { animation-delay: 0.95s; }
.hero__actions[data-hero-item] { animation-delay: 1.05s; }
.hero__foot[data-hero-item] { animation-delay: 1.2s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

.hero__bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
  margin-top: clamp(32px, 4.5vw, 64px);
}
.hero__lead { color: var(--text-2); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.65; max-width: 54ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 22px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.hero__foot span { color: var(--text-2); }
.scroll-cue { width: 22px; height: 36px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; justify-items: center; padding-top: 7px; flex: none; }
.scroll-cue span { width: 2px; height: 7px; border-radius: 2px; background: var(--accent); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translateY(12px); opacity: 0; } }

@media (max-width: 860px) {
  .hero { justify-content: center; }
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__foot p { max-width: 30ch; line-height: 1.5; }
}

/* ---------- 8. Reveal genérico ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensa: nunca ocultar texto dividido */
.no-js .reveal { opacity: 1; transform: none; }

.reveal-img { clip-path: inset(12% 0 12% 0 round 4px); opacity: 0.2; transition: clip-path 1.3s var(--ease-in-out), opacity 1s var(--ease-out); }
.reveal-img.is-visible { clip-path: inset(0 0 0 0 round 4px); opacity: 1; }
.no-js .reveal-img { clip-path: none; opacity: 1; }

/* ---------- 9. Secciones ---------- */
.section { position: relative; padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(48px, 7vw, 96px); }
.section__head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 860px) { .section__head--split { grid-template-columns: 1fr; } }

/* 01 · Fricción */
.friction .display { max-width: 20ch; }
.friction__list { margin-top: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); counter-reset: f; }
.friction__list li {
  display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 16px;
  padding: clamp(20px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--line);
}
.friction__list .n { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); text-transform: uppercase; }
.friction__list .t {
  font-size: clamp(1.25rem, 2.6vw, 2.3rem); letter-spacing: -0.025em; line-height: 1.25;
  color: var(--text); transition: color 900ms var(--ease-out);
}
/* Tachado por renglón: cada línea del texto recibe su propio trazo */
.friction__list .strike {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0% 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1s var(--ease-in-out);
}
.friction__list li.is-struck .t { color: var(--muted); }
.friction__list li.is-struck .strike { background-size: 100% 2px; }
.friction__list li.is-struck .n { color: var(--accent); }

.friction__close { margin-top: clamp(64px, 9vw, 128px); margin-left: auto; max-width: 760px; }

/* 02 · Tres capas */
.layers__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); }
.layers__aside { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
.layers__aside .display { margin-bottom: 28px; }
.layers__rail { position: relative; width: 1px; height: 120px; margin-top: 48px; background: var(--line-2); overflow: hidden; }
.layers__rail span { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; }

.layers__list { display: flex; flex-direction: column; }
.layer {
  min-height: clamp(260px, 52vh, 520px);
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
  opacity: 0.28; transition: opacity 600ms var(--ease-out);
}
.layer:first-child { border-top: 1px solid var(--line); }
.layer.is-active { opacity: 1; }
.layer__head { display: flex; align-items: baseline; gap: 24px; }
.layer__idx { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--accent); min-width: 2.2ch; }
.layer h3 { font-size: clamp(2.6rem, 6vw, 5.6rem); letter-spacing: -0.05em; line-height: 0.95; font-weight: 500; }
.layer p { color: var(--text-2); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 40ch; }
.layer .layer__tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.no-js .layer { opacity: 1; }

@media (max-width: 960px) {
  .layers__grid { grid-template-columns: 1fr; }
  .layers__aside { position: static; }
  .layers__rail { display: none; }
  .layer { min-height: 0; opacity: 1; padding: 36px 0; }
}

/* 03 · Capacidades */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(28px, 2.6vw, 40px); border-radius: 20px;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(43, 163, 184, 0.10), transparent 40%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: border-color 300ms ease, transform 600ms var(--ease-out), opacity 900ms var(--ease-out);
}
.card::before { /* borde iluminado que sigue al cursor */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(43, 163, 184, 0.7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 400ms ease;
}
.card__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 500; }
.card p { color: var(--text-2); font-size: 0.975rem; line-height: 1.65; }
.card .card__quote { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.3; color: var(--text); }
.cards .card:nth-child(2) { --d: 90ms; }
.cards .card:nth-child(3) { --d: 180ms; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line-2); }
  .card:hover::before { opacity: 1; }
}
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }

/* 04 · Servicios */
.services__list { border-top: 1px solid var(--line-2); }
.service {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 5vw, 72px) 0; border-bottom: 1px solid var(--line-2);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(43, 163, 184, 0.05), transparent);
  opacity: 0; transition: opacity 500ms ease;
}
.service__meta { display: flex; flex-direction: column; gap: 18px; }
.service__no { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.service__ask { font-size: clamp(1.4rem, 2.3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--text-2); }
.service__ask em { color: var(--text); }
.service h3 { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -0.05em; line-height: 0.95; font-weight: 500; margin-bottom: 20px; }
.service__lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--text); margin-bottom: 12px; max-width: 34ch; }
.service__body > p:not(.service__lead) { color: var(--text-2); max-width: 54ch; }
.service__link {
  align-self: start; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2);
  transition: background-color 300ms ease, border-color 300ms ease, transform 160ms var(--ease-out), color 300ms ease;
}
.service__link:active { transform: scale(0.94); }
.service__link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .service:hover::before { opacity: 1; }
  .service:hover .service__link { background: var(--accent); border-color: var(--accent); color: #031013; }
  .service:hover .service__link svg { transform: rotate(0deg); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.82rem; color: var(--text-2); }

.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; }
.pipeline::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: var(--line-2); }
.pipeline::after { /* pulso que recorre el embudo */
  content: ""; position: absolute; top: 3px; left: 0; width: 60px; height: 7px; border-radius: 6px;
  background: linear-gradient(90deg, transparent, var(--accent));
  filter: drop-shadow(0 0 6px rgba(43, 163, 184, 0.8));
  animation: travel 5.5s var(--ease-in-out) infinite;
}
@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(calc(var(--pw, 520px) - 60px)); opacity: 0; } }
.pipeline li { position: relative; padding-top: 26px; font-size: 0.85rem; color: var(--text-2); }
.pipeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.pipeline li:last-child { color: var(--text); }
.pipeline li:last-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }

@media (max-width: 860px) {
  .service { grid-template-columns: 1fr auto; }
  .service__meta { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; }
  .service__ask { font-size: 1.15rem; text-align: right; }
  .service__body { grid-column: 1 / 2; }
  .service__link { grid-column: 2; grid-row: 2; width: 48px; height: 48px; }
  .pipeline { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .pipeline::before, .pipeline::after { display: none; }
}

/* 05 · Método */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.step { position: relative; padding: 0 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__no { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--accent); margin-bottom: clamp(40px, 6vw, 96px); }
.step h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); letter-spacing: -0.03em; font-weight: 500; margin-bottom: 14px; }
.step p { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }
.steps .step:nth-child(2) { --d: 70ms; } .steps .step:nth-child(3) { --d: 140ms; }
.steps .step:nth-child(4) { --d: 210ms; } .steps .step:nth-child(5) { --d: 280ms; }
.steps__line { position: relative; height: 1px; margin-top: 56px; background: var(--line); overflow: hidden; }
.steps__line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transform: scaleX(0); transform-origin: left; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 26px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step__no { margin: 6px 0 0; grid-row: span 2; }
  .steps__line { display: none; }
}

/* 06 · Creencias */
.beliefs { background: radial-gradient(1200px 600px at 10% 0%, rgba(28, 127, 148, 0.08), transparent 60%), var(--bg); }
.beliefs__list { counter-reset: b; }
.beliefs__list li { counter-increment: b; position: relative; padding: clamp(28px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.beliefs__list li:first-child { padding-top: 0; }
.belief {
  font-size: clamp(2rem, 5.4vw, 5.2rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500;
  max-width: 20ch; text-wrap: balance;
}
.belief .w { opacity: 0.14; transition: opacity 200ms linear; }
.belief .w.is-on { opacity: 1; }
.purpose { margin-top: clamp(80px, 11vw, 160px); }
.purpose__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .purpose__grid { grid-template-columns: 1fr; } }

/* 07 · Fundadores */
.founders__top { margin-bottom: clamp(56px, 8vw, 112px); }
.founders__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.portrait { margin: 0; }
.portrait--offset { margin-top: clamp(80px, 14vw, 220px); }
.portrait__img { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; background: var(--surface); }
.portrait__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  transform: scale(1.04);
  transition: filter 900ms var(--ease-out), transform 1.4s var(--ease-out);
}
.portrait figcaption { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; }
.portrait figcaption strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.portrait figcaption span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .portrait:hover .portrait__img img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1); }
}
.founders__story { padding-top: clamp(0px, 4vw, 48px); display: flex; flex-direction: column; gap: 32px; }
.chain { display: flex; flex-wrap: wrap; gap: 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.chain li { display: flex; align-items: center; }
.chain li + li::before { content: ""; width: 22px; height: 1px; margin: 0 10px; background: var(--accent); }
.chain li:last-child { color: var(--accent); }
@media (max-width: 960px) {
  .founders__grid { grid-template-columns: 1fr 1fr; }
  .founders__story { grid-column: 1 / -1; grid-row: 1; padding-top: 0; margin-bottom: 24px; }
  .portrait--offset { margin-top: 48px; }
}

/* Presencia */
.presence { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 90svh; border-top: 1px solid var(--line); }
.presence__media { position: relative; overflow: hidden; border-radius: 0; }
.presence__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: center 30%; filter: grayscale(0.35) contrast(1.05) brightness(0.85); }
.presence__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg)); }
.presence__text { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: var(--section) var(--gutter); max-width: 620px; }
@media (max-width: 860px) {
  .presence { grid-template-columns: 1fr; }
  .presence__media { aspect-ratio: 4 / 4.6; }
  .presence__media::after { background: linear-gradient(180deg, transparent 55%, var(--bg)); }
  .presence__text { padding-top: 24px; }
}

/* 08 · FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.faq__grid > div:first-child { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
.faq__list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); letter-spacing: -0.02em; font-weight: 500; line-height: 1.3; transition: color 200ms ease; }
.qa summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 400ms var(--ease-out), background-color 300ms ease, border-color 300ms ease; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -0.75px 0 0 -5.5px; background: currentColor; border-radius: 2px; }
.qa summary i::after { transform: rotate(90deg); transition: transform 400ms var(--ease-out); }
.qa[open] summary i { background: var(--accent); border-color: var(--accent); color: #031013; transform: rotate(180deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa__a { padding: 0 56px 30px 0; color: var(--text-2); max-width: 64ch; }
.qa[open] .qa__a { animation: qaIn 500ms var(--ease-out); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) { .qa summary:hover h3 { color: var(--accent); } }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid > div:first-child { position: static; }
  .qa__a { padding-right: 0; }
}

/* 09 · Contacto */
.contact { overflow: hidden; isolation: isolate; }
.contact__glow { position: absolute; z-index: -1; left: -20vmax; bottom: -40vmax; width: 80vmax; height: 80vmax; background: radial-gradient(closest-side, rgba(28, 127, 148, 0.22), transparent 70%); pointer-events: none; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__intro .mega { margin-bottom: 32px; }
.contact__points { margin-top: 36px; display: grid; gap: 12px; }
.contact__points li { display: flex; gap: 14px; align-items: center; color: var(--text-2); font-size: 0.95rem; }
.contact__points li::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: clamp(22px, 3vw, 40px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.field { position: relative; }
.field--area, .choice, .form .btn, .form__status { grid-column: 1 / -1; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 26px 16px 10px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: 16px; /* evita zoom en iOS */
  transition: border-color 200ms ease, background-color 200ms ease;
  resize: vertical;
}
.field textarea { min-height: 112px; }
.field label {
  position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 0.95rem; pointer-events: none;
  transform-origin: left top; transition: transform 200ms var(--ease-out), color 200ms ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(0, 0, 0, 0.5); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.78); color: var(--text-2); }
.field.is-invalid input { border-color: #d0716b; }

.choice { border: 0; margin: 6px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { width: 100%; margin-bottom: 12px; font-size: 0.85rem; color: var(--text-2); }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.875rem; color: var(--text-2); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.choice label:active span { transform: scale(0.96); }
.choice input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { margin-top: 8px; }
.form__status { min-height: 1.4em; font-size: 0.9rem; color: var(--text-2); }
.form__status.is-ok { color: var(--accent); }
.form__status.is-err { color: #e08a84; }
@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}

/* ---------- 10. Footer ---------- */
.footer { position: relative; padding: clamp(64px, 8vw, 120px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); overflow: hidden; }
.footer__word {
  font-size: clamp(5rem, 26vw, 25rem); line-height: 0.8; letter-spacing: -0.07em; font-weight: 600;
  margin: 0 0 clamp(48px, 6vw, 88px) -0.05em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-user-select: none; user-select: none;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer__grid nav, .footer__grid > div { display: flex; flex-direction: column; gap: 10px; font-size: 0.925rem; color: var(--text-2); }
.footer__about p { max-width: 36ch; margin-top: 18px; line-height: 1.6; }
.footer__h { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer__grid a { transition: color 200ms ease; align-self: start; }
@media (hover: hover) and (pointer: fine) { .footer__grid a:hover { color: var(--text); } }
.footer__base { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.footer__base p:last-child { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--text-2); }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; }
}

/* ---------- 11. Movimiento reducido: solo lo intrusivo ---------- */
@media (prefers-reduced-motion: reduce) {
  .pipeline::after, .scroll-cue span, .dot { animation: none; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled, .mobile-menu, .form { background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ==========================================================================
   12. Sitio multipágina
   ========================================================================== */

/* Transiciones entre páginas (View Transitions entre documentos) */
@view-transition { navigation: auto; }
.nav { view-transition-name: hx-nav; }
::view-transition-old(root) { animation: vtOut 280ms var(--ease-out) both; }
::view-transition-new(root) { animation: vtIn 620ms var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; transform: none; filter: none; }
}

/* El splash solo aparece en la primera visita de la sesión */
.seen .splash { display: none; }

/* --- Menú desplegable de servicios --- */
.nav__item { position: relative; }
.nav__item > a { display: inline-flex; align-items: center; gap: 6px; }
.chev { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease-out); }
.nav__panel {
  position: absolute; top: calc(100% + 14px); left: -24px; width: 340px;
  display: grid; gap: 2px; padding: 10px;
  background: rgba(12, 15, 17, 0.92);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: 40px top;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* puente para no perder el hover */
.nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nav__item:hover .nav__panel { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out); }
  .nav__item:hover .chev { transform: rotate(180deg); }
}
.nav__panel a {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 4px; align-items: baseline;
  padding: 12px 14px; border-radius: 12px; color: var(--text); transition: background-color 180ms ease;
}
.nav__panel a::after { display: none; }
.nav__panel small { grid-row: span 2; font-family: var(--mono); font-size: 0.7rem; color: var(--accent); }
.nav__panel strong { font-weight: 500; font-size: 0.95rem; }
.nav__panel span { font-size: 0.8rem; color: var(--muted); }
.nav__panel .nav__all { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; font-size: 0.82rem; color: var(--text-2); }
.nav__panel .nav__all svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .nav__panel a:hover { background: rgba(255, 255, 255, 0.05); } }

/* --- Utilidades --- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  padding-bottom: 6px; border-bottom: 1px solid var(--line-2);
  transition: border-color 250ms ease, gap 300ms var(--ease-out);
}
.link-arrow svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.section__head--split .link-arrow { margin-top: 0; justify-self: end; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { border-color: var(--accent); gap: 14px; } }
.statement--lg { font-size: clamp(1.7rem, 3.4vw, 3.1rem); max-width: 24ch; }

/* --- Cabecera de páginas internas --- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 78svh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 72px) 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.page-hero--compact { min-height: 56svh; }
.page-hero .hero__glow { right: -30vmax; top: -40vmax; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.page-hero__inner { width: 100%; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.page-hero__title {
  font-size: clamp(2.8rem, 8.4vw, 8.4rem); line-height: 0.94; letter-spacing: -0.055em; font-weight: 500;
  margin-left: -0.04em; max-width: 14ch;
}
.page-hero__title--xl { font-size: clamp(3.2rem, 11vw, 11rem); line-height: 0.9; }
.page-hero__title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.03em; padding-right: 0.04em; }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.page-hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.05s var(--ease-out) forwards; animation-delay: 0.12s; }
.page-hero__title .line:nth-child(2) > span { animation-delay: 0.24s; }
.page-hero__lead { margin-top: clamp(24px, 3vw, 40px); max-width: 56ch; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.65; }
.page-hero [data-hero-item] { animation-delay: 0.35s; }
.page-hero .eyebrow[data-hero-item] { animation-delay: 0.05s; }
.page-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.page-hero__row .page-hero__lead { margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 860px) {
  .page-hero { min-height: 72svh; }
  .page-hero--compact { min-height: 48svh; }
  .page-hero__row { flex-direction: column; align-items: stretch; gap: 28px; }
}

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--text-2); transition: color 200ms ease; }
.crumbs i { font-style: normal; color: var(--line-2); }
.crumbs [aria-current] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--text); } }

/* --- Inicio: premisa --- */
.premise__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px; }
.premise .display { max-width: 20ch; margin-bottom: 32px; }
@media (max-width: 860px) { .premise__grid { grid-template-columns: 1fr; gap: 0; } }

/* --- Inicio: tres capas en resumen --- */
.trio__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.trio__list li { padding: 36px 32px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.trio__list li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.trio__idx { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--accent); }
.trio__list h3 { font-size: clamp(1.9rem, 3.4vw, 3.2rem); letter-spacing: -0.045em; font-weight: 500; line-height: 1; }
.trio__list p { color: var(--text-2); max-width: 32ch; }
@media (max-width: 860px) {
  .trio__list { grid-template-columns: 1fr; }
  .trio__list li, .trio__list li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* --- Puertas a servicios --- */
.doors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doors__grid--2 { grid-template-columns: repeat(2, 1fr); }
.door {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: clamp(340px, 34vw, 460px); padding: clamp(26px, 2.6vw, 38px); border-radius: 22px;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(43, 163, 184, 0.12), transparent 40%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: border-color 300ms ease, transform 160ms var(--ease-out), opacity 900ms var(--ease-out);
}
.door--sm { min-height: 240px; gap: 32px; }
.door:active { transform: scale(0.985); }
.door::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(43, 163, 184, 0.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 400ms ease;
}
.door__no { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }
.door__ask { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--text-2); max-width: 12ch; }
.door__ask em { font-family: var(--serif); font-style: italic; color: var(--text); }
.door__foot { position: relative; padding-top: 22px; border-top: 1px solid var(--line); padding-right: 56px; }
.door__foot h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); letter-spacing: -0.035em; font-weight: 500; margin-bottom: 6px; }
.door__foot p { color: var(--text-2); font-size: 0.93rem; line-height: 1.5; }
.door__go {
  position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-2);
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}
.door__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .door:hover { border-color: var(--line-2); }
  .door:hover::before { opacity: 1; }
  .door:hover .door__go { background: var(--accent); border-color: var(--accent); color: #031013; }
  .door:hover .door__go svg { transform: rotate(0); }
}
@media (max-width: 960px) { .doors__grid, .doors__grid--2 { grid-template-columns: 1fr; } .door { min-height: 0; } }

/* --- Inicio: fundadores en resumen --- */
.teaser-founders__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.teaser-founders__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portrait--low { margin-top: 72px; }
.teaser-founders__text .mega { margin-bottom: 28px; }
@media (max-width: 860px) { .teaser-founders__grid { grid-template-columns: 1fr; } .teaser-founders__text { order: -1; } }

/* --- Banda de llamado a la acción --- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 12vw, 180px); border-top: 1px solid var(--line); }
.cta-band__glow { position: absolute; z-index: -1; left: 50%; bottom: -60vmax; width: 110vmax; height: 90vmax; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(28, 127, 148, 0.24), transparent 70%); pointer-events: none; }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end; }
.cta-band__side { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__side .btn { width: 100%; } }

/* --- Siguiente página --- */
.next-page { display: block; position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 128px); isolation: isolate; }
.next-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28, 127, 148, 0.16), transparent 70%); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-in-out); }
.next-page__inner { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label go" "title go" "sub go"; align-items: center; }
.next-page__label { grid-area: label; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.next-page__title { grid-area: title; font-size: clamp(3rem, 9vw, 8.5rem); line-height: 0.92; letter-spacing: -0.055em; font-weight: 500; }
.next-page__sub { grid-area: sub; margin-top: 14px; color: var(--text-2); }
.next-page__go { grid-area: go; width: clamp(64px, 8vw, 112px); height: clamp(64px, 8vw, 112px); border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 400ms ease, border-color 400ms ease, color 400ms ease, transform 160ms var(--ease-out); }
.next-page__go svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 500ms var(--ease-out); }
.next-page:active .next-page__go { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .next-page:hover::before { transform: scaleX(1); }
  .next-page:hover .next-page__go { background: var(--accent); border-color: var(--accent); color: #031013; }
  .next-page:hover .next-page__go svg { transform: translateX(4px); }
}

/* --- Enfoque: Growth Partner --- */
.partner__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px; }
.compare { margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.compare div { padding: 28px 28px 0 0; }
.compare div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.compare dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.compare dd { margin: 0; color: var(--text-2); line-height: 1.6; }
.compare .is-us dt { color: var(--accent); }
.compare .is-us dd { color: var(--text); }
@media (max-width: 860px) {
  .partner__grid { grid-template-columns: 1fr; gap: 0; }
  .compare { grid-template-columns: 1fr; }
  .compare div, .compare div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* --- Llamada destacada --- */
.callout { background: radial-gradient(1000px 500px at 85% 100%, rgba(28, 127, 148, 0.1), transparent 60%), var(--bg); }
.callout__inner .mega { max-width: 16ch; margin-bottom: 36px; }
.callout__inner .body { margin-left: auto; }

/* --- Servicio: señales --- */
.signals__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.signals__grid > div:first-child { position: sticky; top: calc(var(--nav-h) + 48px); }
.signals__list { border-top: 1px solid var(--line-2); counter-reset: s; }
.signals__list li {
  counter-increment: s; position: relative;
  padding: 26px 0 26px 56px; border-bottom: 1px solid var(--line);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.4; letter-spacing: -0.015em;
}
.signals__list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 31px; font-family: var(--mono); font-size: 0.72rem; color: var(--accent); }
@media (max-width: 860px) { .signals__grid { grid-template-columns: 1fr; } .signals__grid > div:first-child { position: static; } }

/* --- Servicio: qué incluye --- */
.includes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.includes__grid--4 { grid-template-columns: repeat(2, 1fr); }
.include {
  --mx: 50%; --my: 0%;
  display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 2.6vw, 36px); border-radius: 20px;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(43, 163, 184, 0.09), transparent 40%), var(--surface);
  border: 1px solid var(--line); transition: border-color 300ms ease, opacity 900ms var(--ease-out), transform 1100ms var(--ease-out);
}
.include__no { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--accent); }
.include h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); letter-spacing: -0.025em; font-weight: 500; }
.include p { color: var(--text-2); font-size: 0.97rem; line-height: 1.65; }
.include--quote { background: transparent; border-style: dashed; justify-content: center; }
@media (hover: hover) and (pointer: fine) { .include[data-spotlight]:hover { border-color: var(--line-2); } }
@media (max-width: 960px) { .includes__grid, .includes__grid--4 { grid-template-columns: 1fr; } }

/* --- Escala: etapas --- */
.stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stages::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--accent)); }
.stage { position: relative; padding-top: 64px; }
.stage::before { content: ""; position: absolute; top: 16px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.stage--end::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), 0 0 24px rgba(43, 163, 184, 0.6); }
.stage__no { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); }
.stage h3 { margin: 12px 0; font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.035em; font-weight: 500; }
.stage p { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; padding-right: 12px; }
.stages .stage:nth-child(2) { --d: 90ms; } .stages .stage:nth-child(3) { --d: 180ms; } .stages .stage:nth-child(4) { --d: 270ms; }
@media (max-width: 860px) {
  .stages { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .stages::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-2), var(--accent)); }
  .stage { padding: 0 0 36px; }
  .stage::before { left: -36px; top: 2px; }
}

/* --- Pasos en 4 columnas --- */
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps--4 { grid-template-columns: 1fr; } }

/* --- Servicios: guía para elegir --- */
.chooser__table { border-top: 1px solid var(--line-2); }
.chooser__row { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background-color 250ms ease; }
.chooser__row span:first-child { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--text-2); }
.chooser__row span:last-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chooser__row strong { font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -0.02em; font-weight: 500; }
.chooser__row svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 350ms var(--ease-out); }
.chooser__row--head { padding: 14px 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.chooser__row--head span:first-child { font-size: 0.72rem; color: var(--muted); }
.chooser__row--head span:last-child { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  a.chooser__row:hover span:first-child { color: var(--text); }
  a.chooser__row:hover svg { transform: translateX(5px); }
}
@media (max-width: 700px) {
  .chooser__row { grid-template-columns: 1fr; gap: 12px; }
  .chooser__row--head { display: none; }
}

/* --- Servicios como enlaces --- */
a.service { color: inherit; }

/* --- Nosotros: origen --- */
.origin__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.chain--xl { margin-top: clamp(56px, 8vw, 112px); font-size: clamp(0.9rem, 1.6vw, 1.25rem); gap: 10px 0; }
.chain--xl li + li::before { width: clamp(24px, 6vw, 96px); margin: 0 clamp(10px, 1.6vw, 22px); }
@media (max-width: 860px) { .origin__grid { grid-template-columns: 1fr; } }

/* --- Preguntas: página completa --- */
.faq--page .faq__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.faq__index { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; display: flex; flex-direction: column; gap: 12px; color: var(--text-2); }
.faq__index a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .faq__index a:hover { color: var(--accent); } }
.faq__groups { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.faq__group { scroll-margin-top: calc(var(--nav-h) + 32px); }
.faq__h { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.04em; font-weight: 500; margin-bottom: 24px; }
@media (max-width: 860px) {
  .faq--page .faq__grid { grid-template-columns: 1fr; }
  .faq__index { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .faq__index .kicker { width: 100%; margin-bottom: 4px; }
  .faq__index a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.875rem; }
}

/* --- Contacto: página --- */
.contact--page { padding-top: calc(var(--nav-h) + 56px); min-height: 100svh; }
.contact--page .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.contact--page .mega { margin-bottom: 28px; }
.contact--page [data-hero-item] { animation-delay: 0.1s; }
.contact--page .form[data-hero-item] { animation-delay: 0.25s; }
.next-steps { margin-top: 48px; border-top: 1px solid var(--line); }
.next-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.next-steps li > span { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); padding-top: 5px; }
.next-steps strong { display: block; font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.next-steps p { color: var(--text-2); font-size: 0.95rem; }
.next-steps a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.contact--page .form { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 960px) { .contact--page .form { position: static; } }

.others .section__head { margin-bottom: 40px; }
.others .section__head--split { align-items: center; }

/* ==========================================================================
   13. Capa de agencia
   ========================================================================== */

/* --- Pantalla de carga (solo primera visita) --- */
.splash {
  display: block; transition: none; opacity: 1;
  animation: splashOut 0.95s var(--ease-in-out) 1.55s forwards;
}
.splash.is-out { opacity: 1; visibility: visible; }
@keyframes splashOut { to { transform: translateY(-100%); visibility: hidden; pointer-events: none; } }
.splash__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.splash__center img { width: 30px; }
.splash__word { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; animation: splashMark 900ms var(--ease-out) 0.15s both; }
.splash__bottom { position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); max-width: none; display: flex; align-items: flex-end; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.splash__count { font-family: var(--sans); font-size: clamp(3.4rem, 11vw, 9rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.8; color: var(--text); font-variant-numeric: tabular-nums; }
.splash__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: barFill 1.45s var(--ease-in-out) forwards; }
@keyframes barFill { to { transform: scaleX(1); } }

/* --- Cursor (solo puntero fino; el cursor nativo se conserva) --- */
.cursor { position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.cursor.is-ready { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(242, 242, 240, 0.28);
  display: grid; place-items: center;
  transition: width 400ms var(--ease-out), height 400ms var(--ease-out), margin 400ms var(--ease-out), background-color 300ms ease, border-color 300ms ease;
}
.cursor__ring b { font-family: var(--mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #031013; opacity: 0; transition: opacity 200ms ease; }
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: transparent; background: rgba(43, 163, 184, 0.16); }
.cursor.is-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; border-color: transparent; background: var(--accent); }
.cursor.is-label .cursor__ring b { opacity: 1; }
.cursor.is-label .cursor__dot, .cursor.is-hover .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --- Imágenes provisionales --- */
.ph {
  position: relative; width: 100%; aspect-ratio: var(--ar, 16 / 9); overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #10161a 0%, #0a0d0f 55%, #0d1417 100%);
  border-radius: inherit;
}
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 16px); }
.ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 35%, rgba(43, 163, 184, 0.09) 50%, transparent 65%); background-size: 260% 100%; animation: phSheen 7s linear infinite; }
@keyframes phSheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.ph__tag { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--accent); }
.ph__tag::before { content: ""; width: 6px; height: 6px; background: var(--accent); }
.ph__label { position: absolute; left: 18px; right: 72px; bottom: 18px; font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; color: var(--text-2); max-width: 46ch; }
.ph__ratio { position: absolute; right: 18px; bottom: 18px; font-family: var(--mono); font-size: 0.66rem; color: var(--muted); }
.ph__corner { position: absolute; width: 14px; height: 14px; border-color: var(--line-2); border-style: solid; }
.ph__corner--tl { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.ph__corner--br { bottom: 44px; right: 10px; border-width: 0 1px 1px 0; display: none; }
.ph > img, .ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.ph--fill { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.ph--pill .ph__label, .ph--pill .ph__ratio, .ph--pill .ph__corner { display: none; }
.ph--pill { position: absolute; inset: 0; aspect-ratio: auto; }
.ph--pill .ph__tag { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(7px, 0.7vw, 10px); white-space: nowrap; }
.ph--band { transform: scale(1.12); }

.media-band { padding-top: clamp(40px, 6vw, 88px); }
.media-band + .section { border-top: 0; }
.media-band__frame { border-radius: 24px; overflow: hidden; }
@media (max-width: 860px) { .media-band .ph { aspect-ratio: 4 / 3; } }

/* --- Titulares divididos en palabras --- */
.js [data-split] .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js [data-split] .sw > span { display: inline-block; transform: translateY(112%); transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--i, 0) * 32ms); }
.js [data-split].is-in .sw > span { transform: none; }

/* --- HERO --- */
.xhero {
  --hd: 0s;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--nav-h) + 24px) 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
html.js:not(.seen) .xhero { --hd: 1.55s; }
.xhero .hero__field {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.25) 70%, #000 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.25) 70%, #000 100%);
  animation-delay: calc(var(--hd) + 0.2s);
}
.xhero [data-hero-item] { animation-delay: calc(var(--hd) + 0.9s); }
.xhero .xhero__meta[data-hero-item] { animation-delay: calc(var(--hd) + 0.2s); }
.xhero__meta { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.xhero__idx { color: var(--accent); margin-right: 10px; }
.xhero__loc { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.xhero__clock { color: var(--text); font-variant-numeric: tabular-nums; }

.xhero__title {
  display: block; margin: 0 auto;
  font-size: clamp(2.7rem, 10.4vw, 12.5rem); line-height: 0.88; letter-spacing: -0.06em; font-weight: 500;
}
.xl { display: flex; align-items: center; gap: 0 0.24em; }
.xl:nth-child(2) { padding-left: 0.9em; }
.xw { display: inline-block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.xw > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.2s var(--ease-out) forwards; animation-delay: calc(var(--hd) + 0.35s); }
.xl:nth-child(2) .xw:nth-child(1) > span { animation-delay: calc(var(--hd) + 0.45s); }
.xl:nth-child(2) .xw:nth-child(2) > span { animation-delay: calc(var(--hd) + 0.5s); }
.xl:nth-child(2) .xw:nth-child(3) > span { animation-delay: calc(var(--hd) + 0.55s); }
.xl:nth-child(3) .xw:nth-child(1) > span { animation-delay: calc(var(--hd) + 0.62s); }
.xl:nth-child(3) .xw:nth-child(2) > span { animation-delay: calc(var(--hd) + 0.68s); }
.xw--accent em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.035em; padding-right: 0.05em; }

.xhero__pill {
  position: relative; display: inline-block; flex: none;
  width: 2.15em; height: 0.78em; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line-2);
  transform: scaleX(0.15); opacity: 0; transform-origin: left center;
  animation: pillIn 1.3s var(--ease-in-out) forwards; animation-delay: calc(var(--hd) + 0.6s);
}
@keyframes pillIn { to { transform: none; opacity: 1; } }

.badge {
  position: relative; flex: none; margin-left: auto; align-self: center;
  width: clamp(84px, 9.5vw, 156px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0; animation: fadeIn 1s var(--ease-out) forwards; animation-delay: calc(var(--hd) + 1s);
}
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__ring text { font-family: var(--mono); font-size: 13.5px; letter-spacing: 3.2px; fill: var(--text-2); }
.badge__core { width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #031013; display: grid; place-items: center; transition: transform 400ms var(--ease-out); }
.badge__core svg { width: 34%; height: 34%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); transition: transform 400ms var(--ease-out); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .badge:hover .badge__core { transform: scale(1.12); }
  .badge:hover .badge__core svg { transform: rotate(0); }
}

.xhero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.xhero__lead { max-width: 52ch; color: var(--text-2); font-size: clamp(0.98rem, 1.15vw, 1.08rem); line-height: 1.6; }
.xhero__lead span { color: var(--text); }
.xhero__actions { display: flex; gap: 10px; }
.xhero__scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.xhero__scroll span { position: relative; width: 1px; height: 44px; background: var(--line-2); overflow: hidden; }
.xhero__scroll span::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--accent); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

@media (max-width: 960px) {
  .xhero__foot { grid-template-columns: 1fr; gap: 24px; }
  .xhero__scroll { display: none; }
}
@media (max-width: 700px) {
  .xhero__meta p:first-child { max-width: 24ch; }
  .xhero__title { font-size: clamp(2.6rem, 13.4vw, 5rem); line-height: 0.92; }
  .xl { flex-wrap: wrap; }
  .xl:nth-child(2) { padding-left: 0; }
  .xhero__pill { width: 1.9em; }
  .badge { width: 78px; }
  .xhero__actions { flex-direction: column; }
  .xhero__actions .btn { width: 100%; }
}

/* --- Medio que se expande --- */
.expand { position: relative; height: 240vh; }
.expand__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.expand__media {
  --it: 16%; --il: 27%; --ir: 28px; --is: 1.25;
  position: absolute; inset: 0;
  clip-path: inset(var(--it) var(--il) var(--it) var(--il) round var(--ir));
  will-change: clip-path;
}
.expand__media .ph { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; transform: scale(var(--is)); transform-origin: center; }
.expand__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 6, 7, 0.85)); pointer-events: none; opacity: var(--co, 0); z-index: 3; }
.expand__caption {
  --co: 0;
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 6vw, 80px); z-index: 4;
  opacity: var(--co); transform: translateY(calc((1 - var(--co)) * 40px));
}
.expand__k { font-size: clamp(2.2rem, 6.4vw, 6.6rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 500; }
.expand__s { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 5.6vw, 5.8rem); line-height: 1; color: var(--accent); }
@media (max-width: 860px) {
  .expand { height: 180vh; }
  .expand__media { --it: 22%; --il: 8%; --ir: 20px; }
}

/* --- Empresas que confían --- */
.trust__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 40px; margin-bottom: clamp(40px, 6vw, 80px); }
.trust__head .kicker { grid-column: 1 / -1; }
.trust__count { font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 9vw, 8.5rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(242, 242, 240, 0.25); }
.trust__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(160px, 15vw, 230px); gap: 12px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; place-items: center; padding: 24px;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(43, 163, 184, 0.12), transparent 45%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color 300ms ease, opacity 900ms var(--ease-out), transform 1100ms var(--ease-out);
}
.tile img { width: auto; height: auto; max-width: 56%; max-height: 52%; object-fit: contain; opacity: 0.82; transition: opacity 400ms ease, transform 700ms var(--ease-out); }
.tile--hero { grid-column: 1 / 8; grid-row: span 2; }
.tile--hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); opacity: 0.6; }
.tile--hero img { max-width: 62%; max-height: 50%; opacity: 0.95; }
.tile--wide { grid-column: 8 / 13; }
.tile--wide img { max-width: 50%; max-height: 54%; }
.tile .tile__gm { max-height: 64%; opacity: 1; }
.tile--sm { grid-column: span 4; }
.tile--sm img { max-width: 52%; max-height: 46%; opacity: 0.55; }
.tile__tag { position: absolute; top: 18px; left: 20px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.tile__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tile__name { position: absolute; left: 20px; bottom: 16px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: var(--line-2); }
  .tile:hover img { opacity: 1; transform: scale(1.05); }
}
@media (max-width: 860px) {
  .trust__grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 132px; gap: 10px; }
  .tile--hero { grid-column: 1 / -1; grid-row: span 2; }
  .tile--wide { grid-column: span 3; }
  .tile--sm { grid-column: span 2; padding: 12px; }
  .tile--sm img { max-width: 76%; }
  .tile__name { display: none; }
  .tile--wide .tile__tag { font-size: 0.58rem; top: 12px; left: 12px; }
}

/* --- Marquesina --- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 3vw, 40px); }
.marquee__track { display: flex; align-items: center; width: max-content; white-space: nowrap; will-change: transform; font-size: clamp(3rem, 9vw, 9.5rem); line-height: 1; letter-spacing: -0.055em; font-weight: 500; }
.marquee__track span.o { color: transparent; -webkit-text-stroke: 1px rgba(242, 242, 240, 0.4); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.marquee__track i { font-style: normal; color: var(--accent); font-size: 0.42em; margin: 0 0.55em; }

/* --- Manifiesto --- */
.manifesto__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 40px; }
.manifesto__title { grid-column: 2; font-size: clamp(2.2rem, 5.2vw, 5.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; text-wrap: balance; }
.manifesto__title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--text-2); letter-spacing: -0.02em; }
.manifesto__side { grid-column: 2; margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.manifesto__side .link-arrow { margin-top: 0; }
@media (max-width: 860px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__title, .manifesto__side { grid-column: 1; }
  .manifesto__side { grid-template-columns: 1fr; }
}

/* --- Ventajas: scroll horizontal --- */
.hs { position: relative; border-top: 1px solid var(--line); }
.hs__bar { display: flex; align-items: center; gap: 24px; }
.hs__bar .kicker { margin: 0; flex: none; }
.hs__progress { position: relative; flex: 1; height: 1px; background: var(--line-2); overflow: hidden; }
.hs__progress span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hs__count { flex: none; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hs__count b { color: var(--text); font-weight: 500; }
.hs__track { display: flex; align-items: stretch; gap: 16px; padding-inline: var(--gutter); }
.hs__intro { flex: none; width: min(560px, 38vw); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-right: clamp(24px, 4vw, 72px); }
.hs__title { font-size: clamp(2.4rem, 4.6vw, 4.8rem); line-height: 0.98; letter-spacing: -0.05em; font-weight: 500; }
.hs__title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.02em; }
.hs__hint { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hs__hint span { display: inline-block; color: var(--accent); animation: nudge 1.8s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

.adv {
  position: relative; flex: none; width: clamp(320px, 29vw, 440px); min-height: min(64vh, 580px);
  display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color 400ms ease;
}
.adv::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(43, 163, 184, 0.22), transparent); opacity: 0.35; transition: opacity 600ms ease, transform 900ms var(--ease-out); }
.adv__top { display: flex; justify-content: space-between; align-items: center; }
.adv__no { font-family: var(--serif); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--accent); }
.adv__tag { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.adv__word { margin-top: auto; font-size: clamp(2.6rem, 4.2vw, 4.4rem); line-height: 0.95; letter-spacing: -0.055em; font-weight: 500; }
.adv__desc { margin-top: 16px; color: var(--text-2); line-height: 1.55; max-width: 32ch; }
.adv__ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.adv__ba dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.adv__ba div:last-child dt { color: var(--accent); }
.adv__ba dd { margin: 6px 0 0; font-size: 0.88rem; line-height: 1.4; }
.adv__ba div:first-child dd { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(43, 163, 184, 0.6); }
@media (hover: hover) and (pointer: fine) {
  .adv:hover { border-color: var(--line-2); }
  .adv:hover::after { opacity: 1; transform: scale(1.2); }
}
.hs__end {
  flex: none; width: clamp(260px, 24vw, 360px); min-height: min(64vh, 580px);
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 2.4vw, 34px);
  border-radius: 24px; background: var(--accent); color: #031013;
  transition: transform 160ms var(--ease-out), background-color 300ms ease;
}
.hs__end:active { transform: scale(0.98); }
.hs__end-k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hs__end-t { font-size: clamp(2.4rem, 3.6vw, 3.6rem); letter-spacing: -0.05em; font-weight: 500; line-height: 0.95; margin-top: auto; }
.hs__end-go { width: 56px; height: 56px; margin-top: 28px; border-radius: 50%; border: 1px solid rgba(3, 16, 19, 0.35); display: grid; place-items: center; }
.hs__end-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hs__end:hover { background: #3cb6ca; } .hs__end:hover .hs__end-go svg { transform: rotate(0); } }

@media (min-width: 961px) {
  .hs__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); padding-top: var(--nav-h); }
  .hs__track { will-change: transform; }
  .hs__hint { display: none; }
}
@media (max-width: 960px) {
  .hs { padding-block: var(--section); }
  .hs__bar { margin-bottom: 32px; }
  .hs__bar .kicker { display: none; }
  .hs__track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hs__track::-webkit-scrollbar { display: none; }
  .hs__intro, .adv, .hs__end { width: 84vw; scroll-snap-align: start; }
  .adv, .hs__end { min-height: 440px; }
  .hs__intro { padding-right: 0; }
}

/* --- Servicios con vista previa --- */
.svc { overflow: clip; }
.svc__list { border-top: 1px solid var(--line-2); }
.svc__row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 64px; align-items: center; gap: 24px;
  padding: clamp(22px, 3.2vw, 44px) 0; border-bottom: 1px solid var(--line-2);
  transition: opacity 400ms ease;
}
.svc__row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: linear-gradient(90deg, rgba(43, 163, 184, 0.10), rgba(43, 163, 184, 0.02)); transform: scaleY(0); transform-origin: bottom; transition: transform 600ms var(--ease-out); }
.svc__no { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }
.svc__name { font-size: clamp(2.6rem, 7.4vw, 7.6rem); line-height: 0.92; letter-spacing: -0.06em; font-weight: 500; transition: transform 700ms var(--ease-out); }
.svc__ask { color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.2rem); white-space: nowrap; }
.svc__ask em { font-family: var(--serif); font-style: italic; color: var(--text); font-size: 1.15em; }
.svc__go { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease; }
.svc__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc__list:hover .svc__row:not(:hover) { opacity: 0.32; }
  .svc__row:hover::before { transform: scaleY(1); }
  .svc__row:hover .svc__name { transform: translateX(18px); }
  .svc__row:hover .svc__go { background: var(--accent); border-color: var(--accent); color: #031013; }
  .svc__row:hover .svc__go svg { transform: rotate(0); }
}
@media (max-width: 860px) {
  .svc__row { grid-template-columns: 1fr auto; grid-template-areas: "no go" "name go" "ask go"; gap: 6px 16px; }
  .svc__no { grid-area: no; } .svc__name { grid-area: name; } .svc__ask { grid-area: ask; white-space: normal; } .svc__go { grid-area: go; width: 48px; height: 48px; }
}
.preview {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: clamp(220px, 20vw, 320px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  opacity: 0; transition: opacity 300ms ease; will-change: transform;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}
.preview.is-on { opacity: 1; }
.preview__item { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 600ms var(--ease-in-out); }
.preview__item.is-on { clip-path: inset(0 0 0 0); }
@media (hover: none), (pointer: coarse) { .preview { display: none; } }

/* --- Testimonios --- */
.quotes__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(32px, 5vw, 64px); }
.quotes__head .kicker { margin: 0; }
.quotes__nav { display: flex; gap: 10px; }
.qbtn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease, transform 160ms var(--ease-out); }
.qbtn:active { transform: scale(0.94); }
.qbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .qbtn:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.quotes__stage { position: relative; display: grid; min-height: clamp(340px, 34vw, 460px); touch-action: pan-y; }
.quotes__mark { position: absolute; left: -0.04em; top: -0.32em; font-family: var(--serif); font-size: clamp(10rem, 24vw, 24rem); line-height: 1; color: var(--accent); opacity: 0.16; pointer-events: none; }
.quote {
  grid-area: 1 / 1; margin: 0; padding-left: clamp(0px, 8vw, 140px);
  opacity: 0; visibility: hidden; filter: blur(10px); transform: translateY(24px);
  transition: opacity 500ms ease, filter 600ms ease, transform 800ms var(--ease-out), visibility 0s linear 600ms;
}
.quote.is-active { opacity: 1; visibility: visible; filter: none; transform: none; transition: opacity 700ms ease 150ms, filter 700ms ease 150ms, transform 900ms var(--ease-out) 150ms; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.5rem, 3.3vw, 3.2rem); line-height: 1.14; letter-spacing: -0.035em; max-width: 30ch; text-wrap: balance; }
.quote figcaption { display: flex; align-items: center; gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.quote figcaption strong { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.quote figcaption small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 0.75rem; color: var(--accent); border: 1px dashed rgba(43, 163, 184, 0.5); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px), var(--surface); }
.quotes__dots { display: flex; gap: 8px; margin-top: clamp(32px, 4vw, 56px); padding-left: clamp(0px, 8vw, 140px); }
.quotes__dots span { position: relative; width: 56px; height: 2px; background: var(--line-2); overflow: hidden; }
.quotes__dots i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.quotes__dots span.is-done i { transform: scaleX(1); }
.quotes__dots span.is-active i { animation: qprog var(--qdur, 8s) linear forwards; }
.quotes.is-paused .quotes__dots span.is-active i { animation-play-state: paused; }
@keyframes qprog { to { transform: scaleX(1); } }

/* --- Fundadores (dúo) --- */
.duo__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.duo__photos { position: relative; height: clamp(520px, 52vw, 760px); }
.duo__photos figure { position: absolute; margin: 0; will-change: transform; }
.duo__a { left: 0; top: 0; width: 56%; }
.duo__b { right: 0; bottom: 0; width: 50%; z-index: 2; }
.duo__photos .portrait__img { border-radius: 6px; }
.duo__photos figcaption { margin-top: 12px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .duo__photos figure:hover .portrait__img img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1); }
}
.duo__text .mega { margin-bottom: 28px; }
@media (max-width: 860px) {
  .duo__grid { grid-template-columns: 1fr; }
  .duo__photos { height: 128vw; }
  .duo__text { order: -1; }
}

/* --- CTA final --- */
.finale { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(120px, 16vw, 240px); border-top: 1px solid var(--line); }
.finale__glow { position: absolute; z-index: -1; right: -20vmax; bottom: -50vmax; width: 100vmax; height: 100vmax; background: radial-gradient(closest-side, rgba(28, 127, 148, 0.26), transparent 70%); pointer-events: none; }
.finale__title { font-size: clamp(3rem, 10vw, 11rem); line-height: 0.9; letter-spacing: -0.06em; font-weight: 500; max-width: 11ch; }
.finale__title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.03em; }
.finale__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: clamp(40px, 5vw, 72px); }
.orb {
  position: relative; isolation: isolate; flex: none;
  width: clamp(156px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  font-weight: 500; line-height: 1.2; transition: color 400ms ease, border-color 400ms ease;
}
.orb__fill { position: absolute; inset: -1px; z-index: -1; border-radius: 50%; background: var(--accent); transform: translateY(101%); transition: transform 600ms var(--ease-out); }
.orb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.orb:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .orb:hover { color: #031013; border-color: var(--accent); } .orb:hover .orb__fill { transform: none; } }
@media (hover: none) { .orb { background: var(--accent); color: #031013; border-color: var(--accent); } }
@media (max-width: 860px) { .finale__row { flex-direction: column; align-items: flex-start; } }

/* --- Pie de página --- */
.xfooter { padding-top: clamp(80px, 10vw, 140px); }
.xfooter__top { display: grid; gap: 20px; padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.xfooter__lead { font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: -0.02em; color: var(--text-2); }
.xfooter__lead em { font-family: var(--serif); font-style: italic; color: var(--accent); }
.xfooter__big { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.xfooter__big a {
  font-size: clamp(1.9rem, 6.2vw, 6.4rem); line-height: 1.02; letter-spacing: -0.055em; font-weight: 500;
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 92%; background-size: 0% 2px;
  transition: background-size 600ms var(--ease-out), color 300ms ease;
  overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) { .xfooter__big a:hover { background-size: 100% 2px; } }
.xfooter__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.xfooter__grid > div, .xfooter__grid nav { display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; color: var(--text-2); }
.xfooter__grid a { align-self: start; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .xfooter__grid a:hover { color: var(--text); } }
.xfooter address { font-style: normal; color: var(--text); line-height: 1.7; }
.xfooter__office .link-arrow { margin-top: 10px; font-size: 0.875rem; }
.xfooter__word { margin: 0 0 20px -0.05em; overflow: hidden; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
.xfooter__word span {
  display: inline-block; transform: translateY(var(--fw, 30%));
  background: linear-gradient(180deg, rgba(242, 242, 240, 0.18), rgba(242, 242, 240, 0) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__base { align-items: center; }
.xfooter__time span { color: var(--text); font-variant-numeric: tabular-nums; }
.xfooter__up { font-size: 0.8rem; color: var(--text-2); }
@media (max-width: 860px) {
  .xfooter__grid { grid-template-columns: 1fr 1fr; }
  .xfooter__office { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

/* --- Oficina en contacto --- */
.office { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.office__map { position: relative; min-height: 220px; }
.office__info { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.office__info .footer__h { margin: 0; }
.office address { font-style: normal; color: var(--text-2); line-height: 1.6; font-size: 0.93rem; }
.office__tel { font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 500; }
.office .link-arrow { margin-top: 6px; font-size: 0.875rem; }
@media (max-width: 560px) { .office { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .badge__ring, .ph::after, .hs__hint span, .xhero__scroll span::after { animation: none; }
}
.expand .ph__tag { top: 50%; left: 50%; transform: translate(-50%, -260%); }
.expand .ph__label { top: 50%; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); text-align: center; width: min(46ch, 60vw); }
.expand .ph__ratio, .expand .ph__corner { display: none; }
.manifesto__grid { align-items: start; } .manifesto__grid .kicker { padding-top: 0.9em; }
@media (max-width: 700px) {
  .xhero__meta { align-items: center; }
  .xhero__meta p:first-child { font-size: 0; }
  .xhero__meta p:first-child .xhero__idx { font-size: 0.7rem; margin: 0; }
}
/* Sin etiquetas de sección en el Inicio */
.quotes__head { justify-content: flex-end; }
.xhero { justify-content: center; }
.xhero__title { margin: auto 0 0; }

/* --- Imágenes reales dentro de los contenedores --- */
.ph--img::after { display: none; }
.ph--img img { transition: transform 1.2s var(--ease-out); }
.preview .ph--img img, .xhero__pill .ph--img img { transform: none; }

/* --- Mapa en tono oscuro --- */
.office__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.9) contrast(0.9) brightness(0.95); }
.office__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(28, 127, 148, 0.12); mix-blend-mode: color; }

/* --- Galería en Nosotros --- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.gallery__item { margin: 0; }
.gallery__item .ph { border-radius: 6px; overflow: hidden; }
.gallery__item--low { margin-top: clamp(40px, 7vw, 120px); }
.gallery__item figcaption { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .gallery__item:hover .ph img { transform: scale(1.04); } }
@media (max-width: 860px) { .gallery__grid { grid-template-columns: 1fr 1fr; } .gallery__item:last-child { display: none; } .gallery__item--low { margin-top: 48px; } }

/* --- Créditos --- */
.credits { padding-top: calc(var(--nav-h) + 72px); }
.credits .display { margin-bottom: 24px; }
.credits__list { margin-top: 48px; border-top: 1px solid var(--line-2); }
.credits__list li { display: grid; grid-template-columns: 2fr 1.4fr 0.8fr 0.6fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; color: var(--text-2); }
.credits__list strong { color: var(--text); font-weight: 500; }
.credits__list a { color: var(--accent); }
@media (max-width: 700px) { .credits__list li { grid-template-columns: 1fr 1fr; } }
