/* ==========================================================
   TrivexAI — estilos
   Paleta verdigris (Paleta_de_colores_TrivexAI.png) + tinta y fondo del logo.
   Animaciones: solo transform / opacity / filter / clip-path.
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Paleta */
  --verdigris-mist: #B3D6C7;
  --frosted-verdigris: #AED9C9;
  --pale-verdigris: #A7D3C1;
  --seaglass: #9AC8B8;
  --true-verdigris: #43B3AE;
  --vintage-verdigris: #4FA69B;
  --oxidized-copper: #5CABA9;
  --patina: #489E91;
  --dark-verdigris: #317873;
  --marine-verdigris: #2F6C67;
  --oxide-blue-green: #2E5C5A;
  --stormy-patina: #3A5E5C;

  /* Logo */
  --logo-blue: #3D6BEA;
  --logo-green: #19A067;
  --logo-red: #E5533D;

  /* Tema claro */
  --bg: #F7F6F3;
  --bg-tint: #ECF2EF;
  --surface: #FFFFFF;
  --surface-2: #F1F3F1;
  --fill: rgba(17, 18, 24, .06);
  --ink: #111218;
  --ink-2: #3A3F44;
  --ink-3: #5B6366;
  --line: rgba(17, 18, 24, .08);
  --line-strong: rgba(17, 18, 24, .14);
  --brand: #317873;
  --brand-strong: #2F6C67;
  --brand-text: #2E6A65;
  --accent: #43B3AE;
  --on-brand: #FFFFFF;
  --logo-dot: #16161D;
  --material: rgba(247, 246, 243, .72);
  --shadow-sm: 0 1px 2px rgba(17, 18, 24, .05), 0 2px 8px -2px rgba(17, 18, 24, .06);
  --shadow-md: 0 2px 6px rgba(17, 18, 24, .04), 0 12px 32px -12px rgba(23, 62, 58, .18);
  --shadow-lg: 0 4px 12px rgba(17, 18, 24, .05), 0 28px 60px -24px rgba(23, 62, 58, .30);

  /* Movimiento (skills: animate / apple-design) */
  --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);
  /* Muelle crítico (amortiguación 1, respuesta 0.4 s) y con rebote (0.7, 0.5 s) */
  --spring: linear(0, 0.0228, 0.0786, 0.1529, 0.2356, 0.3202, 0.4023, 0.4795, 0.5502, 0.6138, 0.6703, 0.7199, 0.7631, 0.8004, 0.8323, 0.8596, 0.8827, 0.9023, 0.9188, 0.9326, 0.9442, 0.9539, 0.9619, 0.9686, 0.9742, 0.9788, 0.9825, 0.9857, 0.9883, 0.9904, 0.9921, 0.9936, 0.9948, 0.9957, 0.9965, 0.9972, 0.9977, 0.9981, 0.9985, 0.9988, 1);
  --spring-bounce: linear(0, 0.0292, 0.1032, 0.2043, 0.3187, 0.4361, 0.5492, 0.6529, 0.7445, 0.8225, 0.8867, 0.9377, 0.9768, 1.0053, 1.025, 1.0373, 1.0438, 1.046, 1.0449, 1.0417, 1.0372, 1.032, 1.0266, 1.0213, 1.0165, 1.0122, 1.0086, 1.0055, 1.0031, 1.0013, 0.9999, 0.9989, 0.9983, 0.998, 0.9979, 0.9979, 0.9981, 0.9983, 0.9985, 0.9987, 1);

  /* Tipografía del sistema (SF Pro en Apple, Segoe UI en Windows) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --radius: 24px;
  --radius-lg: 32px;

  /* WhatsApp (tema claro de la app) */
  --wa-header: #008069;
  --wa-header-ink: #FFFFFF;
  --wa-bg: #EFEAE2;
  --wa-doodle: rgba(84, 101, 111, .075);
  --wa-in: #FFFFFF;
  --wa-out: #D9FDD3;
  --wa-ink: #111B21;
  --wa-meta: #667781;
  --wa-tick: #53BDEB;
  --wa-bar: #F0F2F5;
  --wa-field: #FFFFFF;
  --wa-icon: #54656F;
  --wa-mic: #00A884;
  --wa-day: #FFFFFF;
  --wa-day-ink: #54656F;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111218;
    --bg-tint: #141A1B;
    --surface: #1A1C22;
    --surface-2: #20232A;
    --fill: rgba(243, 242, 238, .08);
    --ink: #F3F2EE;
    --ink-2: #C9CDCC;
    --ink-3: #9AA3A2;
    --line: rgba(243, 242, 238, .09);
    --line-strong: rgba(243, 242, 238, .16);
    --brand: #43B3AE;
    --brand-strong: #5CABA9;
    --brand-text: #7CC6C1;
    --accent: #6CB3AF;
    --on-brand: #0A1615;
    --logo-dot: #F3F2EE;
    --material: rgba(17, 18, 24, .70);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .25), 0 12px 32px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .6);

    --wa-header: #202C33;
    --wa-header-ink: #E9EDEF;
    --wa-bg: #0B141A;
    --wa-doodle: rgba(233, 237, 239, .04);
    --wa-in: #202C33;
    --wa-out: #005C4B;
    --wa-ink: #E9EDEF;
    --wa-meta: #8696A0;
    --wa-bar: #1F2C34;
    --wa-field: #2A3942;
    --wa-icon: #8696A0;
    --wa-day: #182229;
    --wa-day-ink: #8696A0;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
strong { font-weight: 650; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; 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: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; transform: translateY(-160%); transition: transform .2s var(--ease-out); }
.skip:focus { transform: none; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); }
h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 700;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 650; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
p { text-wrap: pretty; }
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-text) 15%, var(--accent) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  margin-bottom: 14px;
  font-size: .9375rem; font-weight: 650; letter-spacing: 0;
  color: var(--brand-text);
}
.section-lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.subhead { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.022em; font-weight: 700; margin-bottom: 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: scale .16s var(--ease-out), background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { scale: .97; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
.btn--primary {
  background: var(--brand); color: var(--on-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 24px -10px color-mix(in srgb, var(--brand) 75%, transparent);
}
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); }
.arrow { display: inline-block; transition: translate .3s var(--ease-out); }
.ext { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand-strong); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent), var(--shadow-md); }
  a:hover > .arrow, .btn:hover .arrow { translate: 3px 0; }
  a:hover > .ext, .btn:hover .ext { translate: 2px -2px; }
}

/* ---------- Logo ---------- */
.logo {
  --h: 30px;
  display: inline-flex; align-items: flex-start;
  height: var(--h);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.mark { width: var(--h); height: var(--h); flex: none; overflow: visible; }
.mark-arrow--y { fill: var(--logo-blue); }
.mark-arrow--x { fill: var(--logo-green); }
.mark-arrow--z { fill: var(--logo-red); }
.mark-dot { fill: var(--logo-dot); }
.mark-arrow, .mark-dot { transition: translate .45s var(--spring-bounce); }
.wordmark {
  flex: none;
  width: calc(var(--h) * 2.426);
  height: calc(var(--h) * .6655);
  margin-top: calc(var(--h) * .1459);
  margin-left: calc(var(--h) * .2659);
  background: currentColor;
  -webkit-mask: url("/assets/img/logo-wordmark.png") no-repeat 0 0 / 100% 100%;
  mask: url("/assets/img/logo-wordmark.png") no-repeat 0 0 / 100% 100%;
}
@media (hover: hover) and (pointer: fine) {
  .logo:hover .mark-arrow--y { translate: 0 -34px; }
  .logo:hover .mark-arrow--x { translate: 34px 0; }
  .logo:hover .mark-arrow--z { translate: -24px 24px; }
}
/* Entrada: las flechas salen del punto central (origen 0,0 del viewBox) */
.js .site-header .mark-arrow, .js .site-header .mark-dot { opacity: 0; }
.js-ready .site-header .mark-dot { animation: markDot .5s var(--ease-out) both; }
.js-ready .site-header .mark-arrow { animation: markArrow .82s var(--spring-bounce) both; }
.js-ready .site-header .mark-arrow--y { animation-delay: 80ms; }
.js-ready .site-header .mark-arrow--x { animation-delay: 150ms; }
.js-ready .site-header .mark-arrow--z { animation-delay: 200ms; }
@keyframes markDot { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes markArrow { from { opacity: 0; transform: scale(.25); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  opacity: 0; transition: opacity .3s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.nav { position: relative; margin-inline: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a[aria-current="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); background: var(--fill); } }
.nav-indicator {
  position: absolute; left: 0; bottom: -2px;
  width: 100px; height: 2px; border-radius: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  scale: 0 1; opacity: 0;
  transition: translate .5s var(--spring), scale .5s var(--spring), opacity .25s ease;
}
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Selector ES | EN */
.lang-toggle { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); }
.lang-btn {
  position: relative; z-index: 1;
  width: 40px; height: 30px; border-radius: 999px;
  font-size: .8125rem; font-weight: 650; letter-spacing: .02em;
  color: var(--ink-3);
  transition: color .25s ease, scale .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:active { scale: .94; }
.lang-btn[aria-pressed="true"] { color: var(--ink); }
.lang-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 40px; height: 30px; border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(17, 18, 24, .14), 0 0 0 .5px rgba(17, 18, 24, .06);
  transition: translate .62s var(--spring-bounce);
}
[data-lang="en"] .lang-thumb { translate: 40px 0; }

/* Menú móvil */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.menu-icon { position: relative; width: 18px; height: 12px; }
.menu-icon i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.menu-icon i:first-child { top: 1px; }
.menu-icon i:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }
.menu-sheet {
  display: none;
  position: fixed; top: calc(var(--header-h) + 6px); left: 12px; right: 12px;
  padding: 10px; border-radius: 24px;
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--shadow-lg), inset 0 0 0 .5px var(--line-strong);
  transform-origin: top right;
  opacity: 0; transform: translateY(-8px) scale(.97); visibility: hidden;
  transition: opacity .2s ease-out, transform .35s var(--ease-drawer), visibility 0s .35s;
}
.menu-sheet[data-open] { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.menu-sheet a { display: block; padding: 14px 16px; border-radius: 14px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.menu-sheet a:active { background: var(--fill); }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(64px, 9vw, 120px); overflow: clip; }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob--a { width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; top: -26%; right: -18%; background: radial-gradient(circle at center, color-mix(in srgb, var(--true-verdigris) 40%, transparent) 0%, transparent 62%); }
.blob--b { width: 48vw; height: 48vw; max-width: 700px; max-height: 700px; top: 18%; left: -16%; background: radial-gradient(circle at center, color-mix(in srgb, var(--pale-verdigris) 55%, transparent) 0%, transparent 64%); }
.blob--c { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; bottom: -22%; right: 18%; background: radial-gradient(circle at center, color-mix(in srgb, var(--oxidized-copper) 30%, transparent) 0%, transparent 62%); }
@media (prefers-color-scheme: dark) {
  .blob--a { background: radial-gradient(circle at center, rgba(67, 179, 174, .26) 0%, transparent 62%); }
  .blob--b { background: radial-gradient(circle at center, rgba(49, 120, 115, .32) 0%, transparent 64%); }
  .blob--c { background: radial-gradient(circle at center, rgba(92, 171, 169, .18) 0%, transparent 62%); }
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 750;
  text-wrap: balance;
}
.hero-lead { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.hero-lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm);
  font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  max-width: 100%;
  transition: box-shadow .25s ease, scale .16s var(--ease-out);
}
.hero-chip:active { scale: .98; }
.chip-tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: .8125rem; font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .hero-chip:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent), var(--shadow-md); } }
.hero-trust { margin-top: 18px; font-size: .875rem; color: var(--ink-3); }

/* Entrada del hero */
.js .hero-in { opacity: 0; transform: translate3d(0, 16px, 0); filter: blur(6px); }
.js .hero-in--phone { transform: translate3d(0, 28px, 0) scale(.96); }
.js-ready .hero-in { animation: heroIn .9s var(--ease-out) var(--d, 0ms) both; }
.js-ready .hero-in--phone { animation-duration: 1.1s; }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }
.hero-title .w { display: inline-block; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title.is-split em { background: none; color: inherit; }
.hero-title.is-split em .w {
  background: linear-gradient(100deg, var(--brand-text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .hero-title:not(.is-split) { opacity: 0; }
.reveal-all .hero-title { opacity: 1 !important; }
.js .hero-title.is-split .w { opacity: 0; transform: translate3d(0, .32em, 0); filter: blur(10px); }
.js-ready .hero-title.is-split .w { animation: wordIn 1s var(--ease-out) var(--wd, 0ms) both; }
.hero-title.is-split .w.w--static { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Teléfono + WhatsApp ---------- */
.hero-visual { display: flex; justify-content: center; perspective: 1400px; }
.phone-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  font-size: .8125rem; font-weight: 650; color: var(--ink-2);
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--logo-red); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--logo-red); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .55; } to { transform: scale(3); opacity: 0; } }

.phone {
  --pw: min(310px, 84vw);
  position: relative;
  width: var(--pw);
  aspect-ratio: 310 / 640;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(150deg, #34373F 0%, #15161B 45%, #24262D 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .08),
    0 0 0 1px rgba(0, 0, 0, .35),
    0 50px 90px -30px rgba(18, 55, 52, .50),
    0 22px 44px -22px rgba(0, 0, 0, .45);
  transform-style: preserve-3d;
  will-change: transform;
}
.phone-screen {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  border-radius: 38px; overflow: hidden;
  background: var(--wa-bg);
  font-family: var(--font);
  color: var(--wa-ink);
  -webkit-font-smoothing: antialiased;
}
.phone-screen::before { /* cámara */
  content: ""; position: absolute; top: 9px; left: 50%; z-index: 3;
  width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2A3340 0%, #07080A 60%);
}
.wa-status {
  display: flex; align-items: center; justify-content: space-between;
  height: 30px; padding: 2px 22px 0 26px;
  background: var(--wa-header); color: var(--wa-header-ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.wa-status-icons { display: flex; align-items: center; gap: 6px; }
.wa-status-icons svg { height: 10px; width: auto; fill: currentColor; }
.wa-header {
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 12px 0 6px;
  background: var(--wa-header); color: var(--wa-header-ink);
  position: relative; z-index: 2;
}
.wa-header svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wa-back { width: 20px !important; }
.wa-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(140deg, var(--true-verdigris), var(--dark-verdigris)); }
.wa-avatar svg { width: 19px; height: 19px; stroke: #fff; }
.wa-contact { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.wa-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-presence { position: relative; height: 15px; font-size: 12px; opacity: .85; }
.wa-online, .wa-typing-label { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .25s ease, transform .3s var(--ease-out); }
.wa-typing-label { opacity: 0; transform: translateY(4px); }
.is-typing .wa-online { opacity: 0; transform: translateY(-4px); }
.is-typing .wa-typing-label { opacity: 1; transform: none; }
.wa-actions { display: flex; gap: 16px; align-items: center; }
.wa-actions svg { width: 20px; height: 20px; }
.wa-actions .wa-more { fill: currentColor; stroke: none; width: 18px; }

.wa-body { position: relative; flex: 1; min-height: 0; overflow: hidden; background-color: var(--wa-bg); }
.wa-body::before { /* fondo de garabatos propio (no es el de WhatsApp) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--wa-doodle);
  --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='20' r='7'/%3E%3Cpath d='M52 14l4 8 8 1-6 6 2 8-8-4-7 4 1-8-6-6 8-1z'/%3E%3Cpath d='M92 18c4-6 14-2 10 6l-10 9-10-9c-4-8 6-12 10-6z'/%3E%3Crect x='12' y='58' width='16' height='12' rx='3'/%3E%3Cpath d='M48 66c6-8 12 8 18 0s12 8 18 0'/%3E%3Ccircle cx='102' cy='64' r='4'/%3E%3Cpath d='M20 98l8 8M28 98l-8 8'/%3E%3Cpath d='M58 92a10 10 0 1 0 0 14'/%3E%3Cpath d='M92 96h14v12H92zM96 96v-4h6v4'/%3E%3C/svg%3E");
  -webkit-mask: var(--doodle) 0 0 / 120px 120px repeat;
  mask: var(--doodle) 0 0 / 120px 120px repeat;
}
.wa-thread { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; transition: opacity .35s ease; }
.wa-thread.is-resetting { opacity: 0; }
.wa-day {
  align-self: center; margin: 2px 0 8px;
  padding: 5px 12px; border-radius: 8px;
  background: var(--wa-day); color: var(--wa-day-ink);
  font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.wa-msg {
  position: relative;
  max-width: 84%;
  padding: 6px 9px 7px;
  border-radius: 9px;
  font-size: 13.4px; line-height: 1.36;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  overflow-wrap: anywhere;
}
.wa-msg + .wa-msg--out, .wa-msg--out + .wa-msg--in, .wa-msg--in + .wa-msg--out { margin-top: 7px; }
.wa-msg p { display: inline; }
.wa-msg--out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 0; transform-origin: 100% 0; }
.wa-msg--in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 0; transform-origin: 0 0; }
.wa-msg::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; background: inherit; }
.wa-msg--out::before { right: -7px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-msg--in::before { left: -7px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.wa-meta {
  float: right; position: relative; top: 6px;
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 10px;
  font-size: 10.5px; color: var(--wa-meta); line-height: 1;
}
.wa-ticks { width: 16px; height: 11px; fill: none; stroke: var(--wa-meta); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.wa-msg.is-read .wa-ticks { stroke: var(--wa-tick); }
.wa-typing {
  align-self: flex-start; display: none;
  gap: 4px; padding: 11px 13px; margin-top: 7px;
  border-radius: 9px; border-top-left-radius: 0;
  background: var(--wa-in); box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  position: relative;
}
.wa-typing::before { content: ""; position: absolute; top: 0; left: -7px; width: 8px; height: 13px; background: inherit; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-meta); opacity: .5; animation: typing 1.2s ease-in-out infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-3px); } }
.wa-typing.is-on { display: inline-flex; animation: bubbleIn .35s var(--ease-out) both; }
/* Mensajes: aparecen desde la colita */
.js .wa-msg.is-pending { display: none; }
.wa-msg.is-new { animation: bubbleIn .42s var(--ease-out) both; }
@keyframes bubbleIn { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }

.wa-input { display: flex; align-items: center; gap: 6px; padding: 7px 7px 12px; background: var(--wa-bg); }
.wa-field {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: 999px;
  background: var(--wa-field); color: var(--wa-meta); font-size: 14px;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.wa-field span { flex: 1; }
.wa-field svg { width: 21px; height: 21px; fill: none; stroke: var(--wa-icon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wa-clip { transform: rotate(-35deg); }
.wa-mic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wa-mic); }
.wa-mic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; }

.phone-caption { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 320px; text-align: center; font-size: .875rem; color: var(--ink-3); }
.caption-label { font-weight: 650; color: var(--ink-2); }

/* ---------- Frase ---------- */
.statement { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.statement-text {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 700;
  text-wrap: balance;
}
.statement-text span { color: var(--ink-3); }
.statement-text .sw { transition: opacity .5s ease; }
.js .statement-text.is-scrub .sw { opacity: .18; }
.js .statement-text.is-scrub .sw.is-lit { opacity: 1; }
.js .statement-text.is-scrub { opacity: 1; transform: none; filter: none; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.section--tint { background: var(--bg-tint); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Departamento fraccional */
.fraccional { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.fraccional-q { margin-top: 32px; margin-bottom: 10px; font-size: 1.25rem; }
.fraccional-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.125rem; }
.orbit { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-lines line, .orbit-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.orbit-ring { stroke-dasharray: 3 5; transform-box: fill-box; transform-origin: center; animation: spin 80s linear infinite; }
.orbit-lines .pulse { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .14 1.2; stroke-dashoffset: .14; opacity: 0; }
.orbit.is-visible .pulse { animation: pulse 3.4s var(--ease-in-out) calc(1.2s + var(--p) * .55s) infinite; }
@keyframes pulse { 0% { stroke-dashoffset: .14; opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core {
  position: absolute; left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 25%, var(--true-verdigris), var(--dark-verdigris) 70%);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(.9rem, 4.6cqw, 1.2rem); letter-spacing: -0.01em; text-align: center; line-height: 1.15;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--true-verdigris) 14%, transparent), 0 0 0 22px color-mix(in srgb, var(--true-verdigris) 7%, transparent), 0 24px 48px -16px rgba(23, 62, 58, .55);
}
.orbit-core span { padding: 0 12%; }
.orbit-node {
  position: absolute; left: 50%; top: 50%;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md);
  font-size: clamp(.75rem, 3.3cqw, .9375rem); font-weight: 650; white-space: nowrap;
  transform: translate(-50%, -50%) translate(var(--dx), var(--dy));
}
.orbit-node--wa { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-md); }
.js .orbit .orbit-node { opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .5s ease, transform .9s var(--spring-bounce); transition-delay: calc(250ms + var(--i) * 70ms); }
.js .orbit.is-visible .orbit-node { opacity: 1; transform: translate(-50%, -50%) translate(var(--dx), var(--dy)); }
.js .orbit.reveal { filter: none; }

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%);
  opacity: 0; transition: opacity .35s ease;
}
.card p { color: var(--ink-2); font-size: 1rem; }
.card-icon { width: 30px; height: 30px; margin-bottom: 10px; fill: none; stroke: var(--brand-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.js .card-icon > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-in-out) calc(var(--d, 0ms) + 250ms); }
.js .card.is-visible .card-icon > * { stroke-dashoffset: 0; }
.card--feature { background: linear-gradient(160deg, color-mix(in srgb, var(--true-verdigris) 16%, var(--surface)) 0%, var(--surface) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), var(--shadow-md); }
.card-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand-text); }
@media (hover: hover) and (pointer: fine) {
  .card:hover::before { opacity: 1; }
  .card.is-settled { transition: translate .35s var(--ease-out), box-shadow .35s ease; }
  .card.is-settled:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
}

/* WhatsApp: qué hace */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(56px, 8vw, 88px); }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.feature h4 { margin: 16px 0 8px; }
.feature p { color: var(--ink-2); font-size: .975rem; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--true-verdigris) 16%, transparent); }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .feature-icon { transition: scale .4s var(--spring-bounce), rotate .4s var(--spring-bounce); }
  .feature:hover .feature-icon { scale: 1.08; rotate: -6deg; }
}

/* WhatsApp: cómo funciona */
.wa-how { margin-bottom: clamp(56px, 8vw, 88px); }
.mini-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mini-steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 15%, transparent)); }
.mini-step { position: relative; display: flex; flex-direction: column; gap: 16px; }
.mini-num {
  flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  box-shadow: 0 0 0 6px var(--bg-tint);
}
.mini-step h4 { margin-bottom: 6px; font-size: 1.125rem; }
.mini-step p { color: var(--ink-2); font-size: .975rem; }

/* Reglas */
.rules-block { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.rules-head p { color: var(--ink-2); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rule { display: flex; gap: 14px; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rule strong { display: block; margin-bottom: 4px; font-family: var(--font-display); letter-spacing: -0.01em; }
.rule p { color: var(--ink-2); font-size: .95rem; }
.rule-check { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); }
.rule-check svg { width: 16px; height: 16px; fill: none; stroke: var(--on-brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.js .rule-check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease-out) calc(var(--d, 0ms) + 350ms); }
.js .rule.is-visible .rule-check path { stroke-dashoffset: 0; }
.wa-note {
  margin-top: clamp(40px, 6vw, 64px);
  padding: 18px 22px; border-radius: 18px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .9375rem; color: var(--ink-2);
}

/* Cómo trabajamos */
.process-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.process-sticky { position: sticky; top: calc(var(--header-h) + 48px); }
.process-sticky > p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); font-size: 1.125rem; max-width: 30em; }
.steps-wrap { position: relative; }
.steps-rail { position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.steps-rail span { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), var(--brand)); transform-origin: 50% 0; transform: scaleY(0); }
.steps { display: flex; flex-direction: column; gap: clamp(24px, 9vh, 96px); padding-block: 4px; }
.step { position: relative; display: flex; gap: 24px; align-items: flex-start; }
.step-dot {
  position: relative; z-index: 1; flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); color: var(--ink-3);
  box-shadow: inset 0 0 0 2px var(--line-strong);
  font-family: var(--font-display); font-weight: 700;
  transition: background-color .4s ease, color .4s ease, box-shadow .4s ease, scale .5s var(--spring-bounce);
}
.step-body { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: opacity .45s ease, box-shadow .45s ease, translate .6s var(--spring); }
.step-body h3 { font-size: 1.375rem; margin-bottom: 8px; }
.step-body p { color: var(--ink-2); }
.js .step:not(.is-active) .step-body { opacity: .5; }
.js .step.is-active .step-body { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow-md); translate: 4px 0; }
.step.is-active .step-dot, .step.is-past .step-dot { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.step.is-active .step-dot { scale: 1.06; }

/* Colaboraciones */
.collab {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
}
.collab-main { padding: clamp(28px, 4.5vw, 52px); }
.collab-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.collab-name { font-size: clamp(2.2rem, 4.5vw, 3.25rem); letter-spacing: -0.04em; font-weight: 750; line-height: 1; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--logo-green) 14%, transparent); color: color-mix(in srgb, var(--logo-green) 80%, var(--ink)); font-size: .875rem; font-weight: 650; }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--logo-green); }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--logo-green); animation: ping 2s var(--ease-out) infinite; }
.collab-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.collab-tags li { padding: 5px 12px; border-radius: 999px; background: var(--fill); font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.collab-summary { margin-top: 24px; font-size: 1.1875rem; line-height: 1.5; color: var(--ink); }
.collab-points { margin-top: 18px; display: grid; gap: 10px; }
.collab-points li { position: relative; padding-left: 26px; color: var(--ink-2); }
.collab-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.collab-media { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.collab-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.collab-side {
  position: relative;
  display: flex; align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--true-verdigris) 34%, transparent), transparent 60%),
    linear-gradient(160deg, var(--dark-verdigris), var(--oxide-blue-green));
  color: #F3F7F6;
}
.collab-track { position: relative; display: grid; gap: 22px; }
.collab-track::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 2px; background: rgba(255, 255, 255, .25); }
.collab-track li { position: relative; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1rem; }
.track-dot { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.collab-track .is-done .track-dot::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--dark-verdigris); border-bottom: 2px solid var(--dark-verdigris); transform: rotate(-45deg); }
.collab-track .is-live .track-dot { background: var(--frosted-verdigris); }
.collab-track .is-live .track-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--frosted-verdigris); animation: ping 2s var(--ease-out) infinite; }
.js .collab-track li { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .6s var(--ease-out); }
.js .collab.is-visible .collab-track li { opacity: 1; transform: none; }
.js .collab.is-visible .collab-track li:nth-child(1) { transition-delay: 350ms; }
.js .collab.is-visible .collab-track li:nth-child(2) { transition-delay: 450ms; }
.js .collab.is-visible .collab-track li:nth-child(3) { transition-delay: 530ms; }
.js .collab.is-visible .collab-track li:nth-child(4) { transition-delay: 600ms; }
.collab-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 24px; padding: 22px 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.collab-cta p { font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }

/* Conócenos */
.about-head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 64px); }
.about-title { font-size: clamp(2.3rem, 5.2vw, 4.25rem); letter-spacing: -0.04em; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.member { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.member h3 { margin-top: 18px; font-size: 1.5rem; letter-spacing: -0.025em; }
.member p { color: var(--ink-3); font-size: .9375rem; }
.avatar { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; isolation: isolate; }
.avatar::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 50%; background: conic-gradient(from 0deg, var(--true-verdigris), var(--pale-verdigris), var(--dark-verdigris), var(--oxidized-copper), var(--true-verdigris)); transition: rotate 1.2s var(--ease-out); }
.avatar::after { content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: 50%; background: linear-gradient(150deg, var(--dark-verdigris), var(--oxide-blue-green)); }
.avatar--b::after { background: linear-gradient(150deg, var(--patina), var(--marine-verdigris)); }
.avatar--c::after { background: linear-gradient(150deg, var(--vintage-verdigris), var(--stormy-patina)); }
.avatar span { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -0.02em; }
@media (hover: hover) and (pointer: fine) {
  .member:hover .avatar::before { rotate: 300deg; }
  .member { transition: translate .35s var(--ease-out), box-shadow .35s ease; }
  .member.is-settled:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
}
.provider { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; margin-top: 16px; padding: 28px; border-radius: var(--radius); background: var(--bg-tint); box-shadow: inset 0 0 0 1px var(--line); }
.provider > div { max-width: 640px; }
.provider h3 { margin-bottom: 6px; font-size: 1.125rem; }
.provider p { color: var(--ink-2); font-size: .975rem; }

/* Cinta de sectores */
.sectors { margin-top: clamp(56px, 8vw, 96px); }
.sectors-title { margin-bottom: 18px; font-size: .9375rem; font-weight: 600; color: var(--ink-3); }
.marquee {
  display: flex; width: max-content; gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  animation: marquee 42s linear infinite;
}
.sectors:hover .marquee { animation-play-state: paused; }
.marquee-track { display: flex; gap: 12px; }
.marquee-track li { padding: 12px 22px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-display); font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; white-space: nowrap; }
.marquee-track li:nth-child(3n + 2) { background: color-mix(in srgb, var(--true-verdigris) 14%, var(--surface)); }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.sectors { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sectors .marquee { -webkit-mask-image: none; mask-image: none; }

/* Privacidad */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.privacy-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); font-size: 1.0625rem; max-width: 60ch; }
.privacy-copy h2 { margin-bottom: 8px; }
.text-link .ext { display: inline-block; vertical-align: -0.12em; margin-left: 4px; }
.text-link { display: inline-block; margin-top: 24px; font-weight: 650; color: var(--brand-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-text) 35%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s ease; }
.text-link:hover { text-decoration-color: currentColor; }
.delete-card { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.delete-card h3 { margin: 18px 0 8px; font-size: 1.375rem; }
.delete-card p { color: var(--ink-2); margin-bottom: 22px; }
.delete-card p a { color: var(--brand-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.delete-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--true-verdigris) 16%, transparent); }
.delete-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--brand-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Contacto */
.contact { position: relative; isolation: isolate; overflow: clip; padding: clamp(96px, 13vw, 180px) 0; text-align: center; }
.contact-glow { position: absolute; left: 50%; top: 50%; z-index: -1; width: min(1100px, 140vw); aspect-ratio: 1.6; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--true-verdigris) 26%, transparent), transparent); pointer-events: none; }
.contact .eyebrow { justify-content: center; }
.contact-title { font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -0.05em; line-height: 1; }
.contact-lead { margin: 22px auto 0; max-width: 34em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); }
.contact-mail {
  display: inline-block; margin-top: 36px;
  font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em;
  color: var(--ink); overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px;
  padding-bottom: 4px;
  transition: background-size .5s var(--ease-out), color .25s ease;
}
@media (hover: hover) and (pointer: fine) { .contact-mail:hover { background-size: 100% 2px; color: var(--brand-text); } }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-meta { margin-top: 28px; font-size: .9375rem; color: var(--ink-3); }

/* Copiar dirección */
.copy-btn { position: relative; }
.copy-icon { position: relative; width: 18px; height: 18px; }
.copy-icon svg { position: absolute; inset: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s ease, transform .3s var(--ease-out); }
.i-check { opacity: 0; transform: scale(.6); }
.i-check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .4s var(--ease-out) .08s; }
.copy-done { display: none; }
.copy-btn[data-copied] { color: var(--brand-text); }
.copy-btn[data-copied] .i-copy { opacity: 0; transform: scale(.6); }
.copy-btn[data-copied] .i-check { opacity: 1; transform: none; }
.copy-btn[data-copied] .i-check path { stroke-dashoffset: 0; }
.copy-btn[data-copied] .copy-label { display: none; }
.copy-btn[data-copied] .copy-done { display: inline; animation: heroIn .3s var(--ease-out) both; }

/* ---------- Pie ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; color: var(--ink-3); font-size: .9375rem; }
.logo--footer { --h: 34px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-nav h2 { font-family: var(--font); font-size: .8125rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-nav li + li { margin-top: 10px; }
.footer-nav a { font-size: .9375rem; color: var(--ink-2); overflow-wrap: anywhere; transition: color .2s ease; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .8125rem; color: var(--ink-3); }
.provider-line strong { color: var(--ink-2); font-weight: 600; }

/* ---------- Subpáginas: aviso legal y 404 ---------- */
.legal-page { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 9vw, 112px); }
.legal-wrap { max-width: calc(780px + var(--gutter) * 2); }
.legal-title { font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 750; }
.legal-updated { margin-top: 14px; color: var(--ink-3); font-size: .9375rem; }
.legal-body { margin-top: 40px; }
.legal-body h2 { margin: 44px 0 12px; font-size: 1.5rem; letter-spacing: -0.02em; }
.legal-body p { color: var(--ink-2); }
.legal-body p + p { margin-top: 12px; }
.legal-body a:not(.btn) { color: var(--brand-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-data { margin: 0; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); overflow: hidden; }
.legal-data div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px 22px; }
.legal-data div + div { border-top: 1px solid var(--line); }
.legal-data dt { color: var(--ink-3); font-weight: 600; font-size: .9375rem; }
.legal-data dd { margin: 0; font-weight: 600; }
.legal-back { margin-top: 48px; }
.footer-bottom--sub { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--ink-2); font-weight: 500; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--ink); }
.notfound { position: relative; isolation: isolate; overflow: clip; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 64px; }
.notfound-title { font-size: clamp(2.8rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.045em; font-weight: 750; }
.notfound-text { margin: 20px 0 32px; font-size: 1.25rem; color: var(--ink-2); max-width: 32em; }
@media (max-width: 680px) {
  .legal-data div { grid-template-columns: 1fr; gap: 2px; }
  .back-home span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .back-home { padding: 0 14px; }
}

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  filter: blur(6px);
  transition:
    opacity .8s var(--ease-out) var(--d, 0ms),
    transform .95s var(--ease-out) var(--d, 0ms),
    filter .8s var(--ease-out) var(--d, 0ms);
}
.js .reveal--scale { transform: translate3d(0, 16px, 0) scale(.965); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
/* Titulares: suben un poco más y con más desenfoque (sin clip-path: el observador no vería un elemento recortado del todo) */
.js h2.reveal { transform: translate3d(0, .45em, 0); filter: blur(10px); transition: opacity .9s var(--ease-out) var(--d, 0ms), transform 1.05s var(--ease-out) var(--d, 0ms), filter .9s var(--ease-out) var(--d, 0ms); }
.js h2.reveal.is-visible { transform: none; filter: none; }
/* Red de seguridad: si el JS no arranca, todo visible */
.reveal-all .reveal, .reveal-all .hero-in, .reveal-all .hero-title .w, .reveal-all .site-header .mark-arrow, .reveal-all .site-header .mark-dot, .reveal-all .orbit-node, .reveal-all .collab-track li {
  opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; animation: none !important;
}
.reveal-all .orbit-node { transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) !important; }
.lang-pending main, .lang-pending .site-header, .lang-pending .site-footer { opacity: 0; }
/* Cambio de idioma: fundido corto con desenfoque */
main, .site-footer, .nav-links, .header-cta, .menu-sheet ul { transition: opacity .18s ease, filter .18s ease; }
.lang-out main, .lang-out .site-footer, .lang-out .nav-links, .lang-out .header-cta, .lang-out .menu-sheet ul { opacity: 0; filter: blur(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .menu-sheet { display: block; }
  .header-cta { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-block { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 16px; }
  .fraccional { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: 1fr; }
  .process-sticky { position: static; }
  .collab { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --header-h: 58px; }
  .cards, .features, .team, .rules { grid-template-columns: 1fr; }
  .mini-steps { grid-template-columns: 1fr; gap: 20px; }
  .mini-steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 15%, transparent)); }
  .mini-step { flex-direction: row; }
  .card, .feature, .member { padding: 22px; }
  .step { gap: 16px; }
  .step-body { padding: 20px; }
  .steps { gap: 20px; }
  .js .step.is-active .step-body { translate: 0 0; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero-chip { align-items: flex-start; border-radius: 20px; padding: 8px 14px 8px 8px; }
  .collab-cta { padding: 20px; }
  .lang-btn { width: 36px; }
  .lang-thumb { width: 36px; }
  [data-lang="en"] .lang-thumb { translate: 36px 0; }
  .logo { --h: 28px; }
}
@media (max-width: 380px) {
  .footer-nav { grid-template-columns: 1fr; }
  .orbit-node { padding: 6px 10px; }
  .btn { white-space: normal; text-align: center; padding-block: 10px; }
  .provider, .delete-card { padding: 22px; }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-in, .js .hero-in--phone, .js .hero-title.is-split .w, .js h2.reveal { transform: none !important; filter: none !important; clip-path: none !important; }
  .js-ready .hero-in, .js-ready .hero-title.is-split .w { animation-name: fadeIn; animation-duration: .4s; }
  .js-ready .site-header .mark-arrow, .js-ready .site-header .mark-dot { animation: fadeIn .4s ease both; }
  .wa-msg.is-new, .wa-typing.is-on { animation-name: fadeIn; }
  .wa-typing i, .live-dot::after, .status-dot::after, .collab-track .is-live .track-dot::before, .orbit-ring { animation: none; }
  .orbit.is-visible .pulse { animation: none; }
  .js .orbit .orbit-node { transform: translate(-50%, -50%) translate(var(--dx), var(--dy)); transition: opacity .4s ease; }
  .marquee { animation: none; width: auto; flex-wrap: wrap; }
  .marquee-track { flex-wrap: wrap; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .sectors { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .blob { transform: none !important; }
  .lang-out main, .lang-out .site-footer, .lang-out .nav-links, .lang-out .header-cta { filter: none; }
  .js .collab-track li { transform: none; }
  .js .step.is-active .step-body { translate: 0 0; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-transparency: reduce) {
  .site-header::before, .menu-sheet { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(17, 18, 24, .35); --line-strong: rgba(17, 18, 24, .55); --ink-3: var(--ink-2); }
  .site-header::before { background: var(--bg); }
}
@media (forced-colors: active) {
  h1 em, h2 em, .hero-title.is-split em .w { background: none; color: CanvasText; -webkit-background-clip: border-box; background-clip: border-box; }
  .btn { border: 1px solid ButtonText; }
}
