/* =========================================================
   Ramón González — estilos globales
   Paleta: negro + amarillo neón (la de tu marca)
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4ef;
  --muted: #8d8d87;
  --accent: #f3ff00;
  --accent-2: #c2cc00;
  --ink: #0a0a0a;

  --font-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
  --radius-sm: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 9999;
  background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Tipografía ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block;
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  max-width: 640px;
  margin: 26px 0 0;
}

.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* Palabras partidas para animar (JS añade .w > span) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.26em 0.02em 0.08em; margin: -0.26em -0.02em -0.08em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Botones ---------- */

.btn {
  --h: 58px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h);
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent::before { background: #fff; }

.btn--ghost { border: 1.5px solid var(--line-2); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--ink); border-color: var(--text); }

.btn--dark { background: var(--ink); color: var(--accent); }
.btn--dark::before { background: #222; }

.btn--sm { --h: 46px; padding: 0 22px; font-size: 14px; }

.magnetic { will-change: transform; }

/* ---------- Cargador + transición ---------- */

.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: all;
}
html:not(.js) .loader, html.no-loader .loader { display: none; }
.loader__inner { width: min(560px, 82vw); }
.loader__name {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(30px, 6vw, 64px); line-height: 1;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.loader__count { color: var(--accent); font-variant-numeric: tabular-nums; }
.loader__bar { margin-top: 22px; height: 3px; background: var(--line); overflow: hidden; border-radius: 3px; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.transition {
  position: fixed; inset: 0; z-index: 999;
  background: var(--accent);
  pointer-events: none;
  transform: translateY(100%);
}
html.js.no-loader .transition { transform: translateY(0); }

/* ---------- Cursor ---------- */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 998; }
  .cursor__dot, .cursor__ring {
    position: fixed; left: 0; top: 0; border-radius: 50%;
  }
  .has-cursor, .has-cursor * { cursor: none !important; }
  .cursor__dot { width: 8px; height: 8px; background: var(--accent); }
  .cursor__ring {
    width: 42px; height: 42px; border: 1.5px solid rgba(243, 255, 0, 0.55);
    display: grid; place-items: center;
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  }
  .cursor__label {
    font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
    opacity: 0; transition: opacity 0.3s;
  }
  .cursor.is-hover .cursor__ring { width: 70px; height: 70px; border-color: var(--accent); background: rgba(243, 255, 0, 0.08); }
  .cursor.is-label .cursor__ring { width: 96px; height: 96px; background: var(--accent); border-color: var(--accent); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot, .cursor.is-hover .cursor__dot { opacity: 0; }
  .cursor.is-hidden { opacity: 0; }
  /* Sobre fondo amarillo: cursor negro */
  .cursor__dot { transition: opacity 0.3s, background 0.25s; }
  .cursor.on-accent .cursor__dot { background: var(--ink); }
  .cursor.on-accent .cursor__ring { border-color: rgba(10, 10, 10, 0.6); }
  .cursor.on-accent.is-hover .cursor__ring { border-color: var(--ink); background: rgba(10, 10, 10, 0.08); }
  .cursor.on-accent.is-label .cursor__ring { background: var(--ink); border-color: var(--ink); }
  .cursor.on-accent.is-label .cursor__label { color: var(--accent); }
}

/* ---------- Barra de progreso + grano ---------- */

.progress {
  position: fixed; left: 0; top: 0; z-index: 120;
  width: 100%; height: 3px;
  background: var(--accent);
  transform-origin: left; transform: scaleX(0);
}

.grain {
  position: fixed; inset: -50%; z-index: 997; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Navegación ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  transition: transform 0.6s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.logo__mark {
  width: 44px; height: 44px; padding: 1px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  transition: transform 0.9s var(--ease-out), background 0.4s, padding 0.4s;
}
.logo__mark img { width: 100%; height: 100%; display: block; }
.logo:hover .logo__mark { transform: rotate(90deg) scale(1.06); }

.nav__links { display: flex; gap: 6px; }
.nav__link {
  position: relative; display: block; overflow: hidden;
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: #cfcfca;
  transition: color 0.3s, background 0.3s;
}
.nav__link span { display: block; transition: transform 0.5s var(--ease-out); }
.nav__link span::after {
  content: attr(data-text); position: absolute; left: 0; right: 0; top: 100%;
  text-align: center; color: var(--accent);
}
.nav__link:hover span { transform: translateY(-100%); }
.nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav__right { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
  position: relative;
}
.burger span {
  position: absolute; left: 50%; width: 18px; height: 2px; background: var(--text);
  transform: translateX(-50%); transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 105;
  background: var(--accent); color: var(--ink);
  clip-path: circle(0% at calc(100% - 46px) 39px);
  transition: clip-path 0.8s var(--ease-in-out);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 46px) 39px); visibility: visible; }
.menu-open .nav { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .nav .logo, .menu-open .burger { color: var(--ink); }
.menu-open .burger { border-color: rgba(0,0,0,.25); }
.menu-open .burger span { background: var(--ink); }
.menu-open .logo__mark { background: var(--ink); padding: 5px; }
.menu__link {
  display: block; overflow: hidden;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(48px, 13vw, 96px); line-height: 0.92; padding-top: 0.3em;
}
.menu__link span { display: block; transform: translateY(105%); transition: transform 0.7s var(--ease-out); }
.menu-open .menu__link span { transform: translateY(0); }
.menu-open .menu__link:nth-child(2) span { transition-delay: 0.05s; }
.menu-open .menu__link:nth-child(3) span { transition-delay: 0.1s; }
.menu-open .menu__link:nth-child(4) span { transition-delay: 0.15s; }
.menu-open .menu__link:nth-child(5) span { transition-delay: 0.2s; }
.menu__foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; }

@media (max-width: 960px) {
  .nav__links, .nav__right .btn { display: none; }
  .burger { display: block; }
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; width: 60vmax; height: 60vmax; left: 50%; top: 50%;
  background: radial-gradient(circle, rgba(243, 255, 0, 0.13) 0%, rgba(243, 255, 0, 0) 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 180px;
  background: linear-gradient(to bottom, rgba(10,10,10,0), var(--bg));
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(32px, 5vw, 80px);
}
.hero__title {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
}
.hero__highlight {
  position: relative; display: inline-block; overflow: hidden;
  margin-top: 14px;
  padding: 0.04em 0.18em 0;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(56px, 9.2vw, 148px); line-height: 1.02;
  color: var(--ink);
}
.hero__highlight-bg {
  position: absolute; inset: 0; background: var(--accent);
  transform-origin: left; overflow: hidden;
}
.hero__highlight-bg::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: translateX(-150%) skewX(-20deg);
  animation: shine 4.5s 3s infinite var(--ease-in-out);
}
@keyframes shine { 0%, 70% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(350%) skewX(-20deg); } }
.hero__highlight-text { position: relative; display: block; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero__media { position: relative; justify-self: center; width: min(100%, 440px); }
.hero__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: var(--bg-3);
}
.hero__photo img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 30%; }
.hero__frame {
  position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 28px;
  transform: translate(16px, 16px); z-index: -1;
}
.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
  background: rgba(20, 20, 20, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}
.chip__icon {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--ink);
  display: grid; place-items: center; flex: none;
}
.chip__icon svg { width: 16px; height: 16px; }
.chip strong { color: var(--accent); font-weight: 800; }
.chip--1 { left: -14%; top: 12%; }
.chip--2 { right: -12%; top: 46%; }
.chip--3 { left: -6%; bottom: 8%; }
.float { animation: float 6s ease-in-out infinite; }
.chip--2.float { animation-delay: -2s; }
.chip--3.float { animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1.5px; height: 46px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent);
  animation: drip 1.8s var(--ease-in-out) infinite;
}
@keyframes drip { to { top: 100%; } }

@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; width: min(78%, 340px); }
  .chip { font-size: 12px; padding: 7px 12px 7px 7px; }
  .chip__icon { width: 24px; height: 24px; }
  .chip--1 { left: -12%; }
  .chip--2 { right: -14%; }
  .hero__scroll { display: none; }
}

/* ---------- Cintas (marquee) ---------- */

.bands { position: relative; padding: 70px 0; overflow: hidden; }
.band {
  position: relative; display: flex; white-space: nowrap;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 60px); line-height: 1;
  padding: 18px 0;
  width: 110%; margin-left: -5%;
}
.band--yellow { background: var(--accent); color: var(--ink); transform: rotate(-2.5deg); z-index: 2; }
.band--dark { background: var(--bg-3); color: var(--text); border-block: 1px solid var(--line); transform: rotate(2deg); margin-top: -22px; }
.band__track { display: flex; flex: none; will-change: transform; }
.band__item { display: inline-flex; align-items: center; gap: 0.5em; padding-right: 0.5em; }
.band__item svg { width: 0.62em; height: 0.62em; flex: none; }
.band--dark .band__item em { font-style: normal; color: var(--accent); }

/* ---------- Secciones ---------- */

.section { position: relative; padding: clamp(90px, 13vw, 170px) 0; }
.section__head { max-width: 980px; }

.scrub-text {
  margin: 36px 0 0;
  font-size: clamp(26px, 3.4vw, 48px); line-height: 1.18; font-weight: 600; letter-spacing: -0.025em;
  max-width: 1050px;
}
.scrub-text .sw { opacity: 0.16; transition: none; }

/* Tarjetas apiladas */
.stack { margin-top: clamp(60px, 8vw, 110px); display: grid; gap: 28px; }
.stack__card {
  position: sticky; top: calc(110px + var(--i) * 26px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  min-height: min(520px, 70vh);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 30px;
  background: linear-gradient(160deg, #191919, #0f0f0f);
  border: 1px solid var(--line);
  transform-origin: 50% 0;
  overflow: hidden;
}
.stack__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at 90% 0%, rgba(243,255,0,.09), transparent 60%);
}
.stack__num {
  font-family: var(--font-display); font-size: clamp(70px, 9vw, 130px); line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1.5px rgba(243, 255, 0, 0.75);
}
.stack__title {
  margin: 22px 0 14px;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 72px); line-height: 0.95;
}
.stack__text { margin: 0; color: #b9b9b3; font-size: clamp(17px, 1.35vw, 20px); max-width: 480px; }
.stack__viz { position: relative; height: 100%; min-height: 280px; display: grid; place-items: center; }
.stack__viz svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }

@media (max-width: 800px) {
  .stack__card { grid-template-columns: 1fr; top: calc(90px + var(--i) * 18px); min-height: 0; }
  .stack__viz { min-height: 200px; order: -1; }
  .stack__viz svg { max-width: 300px; }
}

/* Visual 01 — curva viral */
.viz-curve { stroke-dasharray: 700; stroke-dashoffset: 700; }
.is-in .viz-curve { animation: draw 2.2s 0.2s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.viz-area { opacity: 0; }
.is-in .viz-area { animation: fadeIn 1.4s 1s forwards; }
.viz-dot { opacity: 0; }
.is-in .viz-dot { animation: pop 0.5s var(--ease-out) forwards, pulse 2s 2.4s infinite; }
.viz-tag { opacity: 0; }
.is-in .viz-tag { animation: fadeUp 0.8s 2s var(--ease-out) forwards; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { r: 7; } 50% { r: 10; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Visual 02 — audiencia (órbitas) */
.orbit { transform-origin: 210px 160px; animation: spin linear infinite; }
.orbit--1 { animation-duration: 18s; }
.orbit--2 { animation-duration: 26s; animation-direction: reverse; }
.orbit--3 { animation-duration: 36s; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-pulse { transform-origin: 210px 160px; animation: ring 3s var(--ease-out) infinite; }
.ring-pulse--2 { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }

/* Visual 03 — embudo */
.drop { animation: fall 2.6s linear infinite; opacity: 0; }
@keyframes fall {
  0% { transform: translate(0, -20px); opacity: 0; }
  10% { opacity: 1; }
  55% { transform: translate(var(--tx), 150px); opacity: 1; }
  100% { transform: translate(var(--tx), 260px); opacity: 0; }
}
.coin { animation: coin 2.6s var(--ease-out) infinite; opacity: 0; }
@keyframes coin {
  0%, 50% { transform: translate(210px, 250px) scale(0.4); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translate(var(--cx), 310px) scale(1); opacity: 0; }
}

/* ---------- Métricas ---------- */

.metrics__grid {
  margin-top: clamp(50px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.metric {
  --mx: 50%; --my: 50%;
  position: relative; padding: 34px 30px 32px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.metric::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(243,255,0,.14), transparent 60%);
}
.metric::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(243,255,0,.85), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.metric:hover::before, .metric:hover::after { opacity: 1; }
.metric__value {
  font-family: var(--font-display); font-size: clamp(54px, 6vw, 88px); line-height: 0.9; color: var(--accent);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.metric__label { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.metric__text { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.metric--wide { grid-column: span 1; }
.metrics__cta { margin-top: 46px; display: flex; justify-content: center; }

@media (max-width: 900px) { .metrics__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .metrics__grid { grid-template-columns: 1fr; } .metric { min-height: 0; } }

/* ---------- Historia (antes / después) ---------- */

.story { position: relative; }
.story__pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 60px; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.story__title { font-size: clamp(40px, 5.2vw, 80px); }
.story__meter { display: flex; align-items: flex-end; gap: 26px; margin: 40px 0 34px; flex-wrap: wrap; }
.story__kg {
  font-family: var(--font-display); line-height: 0.8; font-size: clamp(96px, 13vw, 190px);
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.story__kg small { font-size: 0.32em; color: var(--text); margin-left: 6px; }
.story__facts { display: grid; gap: 10px; padding-bottom: 8px; }
.story__fact { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #d9d9d3; font-size: 15px; }
.story__fact::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); flex: none; }
.story__media { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--bg-3); max-height: 72vh; justify-self: center; width: 100%; max-width: 480px; }
.story__img { position: absolute; inset: 0; margin: 0; z-index: 1; }
.story__img--after { z-index: 2; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__img--after { clip-path: inset(100% 0 0 0); }
.story__tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(10,10,10,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-2);
}
.story__img--after .story__tag { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.story__line { position: absolute; left: 0; right: 0; height: 3px; background: var(--accent); top: 100%; box-shadow: 0 0 24px var(--accent); z-index: 3; }

@media (max-width: 900px) {
  .story__pin { min-height: 0; padding: 40px 0 90px; }
  .story__grid { grid-template-columns: 1fr; }
  .story__media { aspect-ratio: 1 / 1; max-height: none; order: -1; }
  .story__meter { margin: 30px 0 30px; }
}

/* ---------- Testimonios ---------- */

.testi { overflow: hidden; }
.testi__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.testi__viewport { margin-top: clamp(46px, 6vw, 70px); }
.testi__track { display: flex; gap: 22px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.tcard {
  width: clamp(290px, 30vw, 420px); flex: none;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color 0.4s, translate 0.5s var(--ease-out);
  text-align: left;
}
.tcard:hover { border-color: rgba(243,255,0,.5); translate: 0 -6px; }
.tcard__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.tcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), filter 0.6s; filter: grayscale(0.35) brightness(0.8); }
.tcard:hover .tcard__thumb img { transform: scale(1.06); filter: none; }
.tcard__play {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; border-radius: 50%;
  background: var(--accent); color: var(--ink); display: grid; place-items: center;
  transform: translate(-50%, -50%); transition: transform 0.5s var(--ease-out);
  box-shadow: 0 0 0 0 rgba(243,255,0,.6); animation: halo 2.4s infinite;
}
.tcard:hover .tcard__play { transform: translate(-50%, -50%) scale(1.12); }
.tcard__play svg { width: 22px; height: 22px; margin-left: 3px; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(243,255,0,.55); } 100% { box-shadow: 0 0 0 22px rgba(243,255,0,0); } }
.tcard__body { padding: 22px 24px 26px; }
.tcard__niche { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.tcard__big { font-family: var(--font-display); font-size: clamp(46px, 4.4vw, 62px); line-height: 0.95; color: var(--accent); margin: 12px 0 6px; }
.tcard__name { font-weight: 800; font-size: 19px; }
.tcard__res { color: #bdbdb7; font-size: 15px; margin-top: 2px; }

@media (max-width: 900px), (max-height: 649px) {
  .testi__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .testi__viewport::-webkit-scrollbar { display: none; }
  .tcard { scroll-snap-align: center; width: 82vw; }
}

/* ---------- Modal de vídeo ---------- */

.modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,5,5,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.5s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box {
  position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  transform: scale(0.9) translateY(30px); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.4s;
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px var(--line-2);
}
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__frame { position: absolute; inset: 0; }
.modal__box iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close {
  position: absolute; right: 20px; top: 20px; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 26px; font-weight: 700;
}

/* ---------- CTA final ---------- */

.cta { position: relative; padding: 0; }
.cta__bg {
  position: absolute; inset: 0; background: var(--accent);
  clip-path: circle(8% at 50% 50%);
}
.cta__inner {
  position: relative; z-index: 2; color: var(--ink); text-align: center;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px var(--gutter);
}
.cta .eyebrow { color: var(--ink); }
.cta__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 14vw, 230px); line-height: 0.86; letter-spacing: -0.01em;
}
.cta__text { max-width: 640px; margin: 30px auto 40px; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; }
.cta__text strong { background: var(--ink); color: var(--accent); padding: 0 6px; border-radius: 4px; }

/* ---------- Footer ---------- */

.footer { position: relative; padding: clamp(80px, 10vw, 130px) 0 30px; overflow: hidden; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__tagline { margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; max-width: 460px; }
.footer__tagline em { font-style: normal; color: var(--accent); }
.footer__title { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 6px 0 16px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__list a { position: relative; font-weight: 500; }
.footer__list a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.footer__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__giant {
  margin: clamp(60px, 8vw, 110px) 0 0;
  font-family: var(--font-display); text-transform: uppercase; line-height: 0.86;
  font-size: clamp(48px, 12vw, 200px); white-space: nowrap; letter-spacing: -0.005em;
  text-align: center; overflow: hidden; padding-top: 0.32em;
}
.footer__giant-inner { display: inline-block; }
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform; }
.footer__bottom { margin-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* =========================================================
   PÁGINAS INTERIORES
   ========================================================= */

/* ---------- Cabecera de página ---------- */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 92vh; min-height: 92svh;
  display: flex; align-items: center;
  padding: 140px 0 100px;
}
.page-hero__bg {
  --mx: 50%; --my: 40%;
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(460px circle at var(--mx) var(--my), #000 0%, transparent 72%);
          mask-image: radial-gradient(460px circle at var(--mx) var(--my), #000 0%, transparent 72%);
}
.page-hero__glow {
  position: absolute; width: 56vmax; height: 56vmax; left: 78%; top: 28%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(243, 255, 0, 0.12) 0%, rgba(243, 255, 0, 0) 60%);
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0), var(--bg));
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 10vw, 160px); line-height: 0.9; letter-spacing: -0.005em;
  max-width: 13ch;
}
.page-hero__sub {
  margin: 22px 0 0; font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -0.02em;
}
.page-hero__lead { margin: 26px 0 0; max-width: 640px; font-size: clamp(18px, 1.5vw, 21px); color: #c4c4be; }
.page-hero__lead strong { color: var(--text); }
.page-hero__lead + .page-hero__lead { margin-top: 14px; }
.page-hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero--center { text-align: center; }
.page-hero--center .page-hero__title,
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--center .page-hero__title { max-width: 16ch; }
.page-hero--center .page-hero__ctas,
.page-hero--center .eyebrow { justify-content: center; }
.page-hero--center .page-hero__glow { left: 50%; top: 45%; }

.page-hero--split .page-hero__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 80px); align-items: center;
}
.page-hero__media { position: relative; justify-self: center; width: min(100%, 420px); }
.page-hero__photo { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--bg-3); }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* Sello giratorio */
.badge { position: absolute; right: -46px; bottom: -46px; z-index: 3; width: 156px; height: 156px; }
.badge__ring { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge__ring text { font-family: var(--font-body); font-weight: 800; font-size: 11.5px; letter-spacing: 3.2px; text-transform: uppercase; fill: var(--text); }
.badge__core {
  position: absolute; inset: 31%; border-radius: 50%;
  background: var(--accent); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 0 40px rgba(243, 255, 0, 0.35);
}
.badge__core svg { width: 42%; height: 42%; }
.badge::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); z-index: -1;
}

@media (max-width: 900px) {
  .page-hero { min-height: 0; padding: 130px 0 80px; }
  .page-hero--split .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media { order: -1; width: min(72%, 300px); justify-self: start; }
  .badge { width: 112px; height: 112px; right: -34px; bottom: -30px; }
  .badge__ring text { font-size: 11px; }
}

/* ---------- Texto grande con resaltados (scrub) ---------- */
.statement {
  margin: 0; max-width: 1100px;
  font-size: clamp(28px, 3.6vw, 54px); line-height: 1.14; font-weight: 700; letter-spacing: -0.03em;
}
.statement .sw { opacity: 0.16; }
.statement .accent { color: var(--accent); }

/* ---------- Lista de beneficios ---------- */
.benefits { list-style: none; margin: clamp(46px, 6vw, 80px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.benefit {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 84px 1fr 56px; gap: 24px; align-items: center;
  padding: 34px 20px; border-bottom: 1px solid var(--line);
  transition: color 0.45s var(--ease-out);
}
.benefit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease-out);
}
.benefit:hover { color: var(--ink); }
.benefit:hover::before { transform: scaleY(1); }
.benefit__num { font-family: var(--font-display); font-size: 46px; line-height: 1; color: var(--accent); transition: color 0.45s; }
.benefit:hover .benefit__num { color: var(--ink); }
.benefit__text { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.benefit__text strong { font-weight: 800; }
.benefit__icon {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center;
  transition: transform 0.6s var(--ease-out), border-color 0.4s, background 0.4s, color 0.4s;
}
.benefit__icon svg { width: 20px; height: 20px; }
.benefit:hover .benefit__icon { transform: rotate(-45deg); background: var(--ink); color: var(--accent); border-color: var(--ink); }
@media (max-width: 700px) {
  .benefit { grid-template-columns: 52px 1fr; padding: 26px 8px; gap: 14px; }
  .benefit__num { font-size: 34px; }
  .benefit__icon { display: none; }
}

/* ---------- Línea de tiempo (Sobre mí) ---------- */
.timeline { position: relative; margin-top: clamp(50px, 7vw, 100px); }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 250px; width: 2px; background: var(--line); }
.timeline__fill {
  position: absolute; inset: 0; background: var(--accent);
  transform-origin: top; transform: scaleY(0);
  box-shadow: 0 0 18px rgba(243, 255, 0, 0.6);
}
.chapter {
  position: relative;
  display: grid; grid-template-columns: 210px 1fr; gap: 80px;
  padding: clamp(40px, 6vw, 80px) 0;
}
.chapter__age { position: sticky; top: 120px; align-self: start; text-align: right; }
.chapter__age-num {
  display: block; font-family: var(--font-display); line-height: 0.82;
  font-size: clamp(90px, 11vw, 170px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
  transition: color 0.6s, -webkit-text-stroke-color 0.6s;
}
.chapter.is-active .chapter__age-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.chapter__age small {
  display: block; margin-top: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.chapter__dot {
  position: absolute; left: 251px; top: calc(clamp(40px, 6vw, 80px) + 34px);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
  transform: translateX(-50%); transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.chapter.is-active .chapter__dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 7px rgba(243, 255, 0, 0.15), 0 0 26px var(--accent);
}
.chapter__content { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; align-items: start; }
.chapter__img { margin: 0; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--bg-3); }
.chapter__img img { width: 100%; height: 118%; object-fit: cover; }
.chapter__title { margin: 0 0 18px; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; }
.chapter__body p { margin: 0 0 14px; color: #bdbdb7; }
.chapter__body strong { color: var(--text); }
.chapter__quote {
  margin: 22px 0 !important; padding: 18px 22px;
  border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0;
  background: rgba(243, 255, 0, 0.06);
  font-size: 19px; font-weight: 600; font-style: italic; color: var(--text) !important;
}

@media (max-width: 1000px) {
  .chapter__content { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  .timeline__line { left: 8px; }
  .chapter { grid-template-columns: 1fr; gap: 18px; padding-left: 38px; }
  .chapter__age { position: relative; top: 0; text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .chapter__age-num { font-size: 84px; }
  .chapter__age small { margin: 0; }
  .chapter__dot { left: 9px; top: calc(clamp(40px, 6vw, 80px) + 24px); }
}

/* ---------- Tarjetas con relieve (tilt) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(46px, 6vw, 80px); }
.feature {
  position: relative; overflow: hidden;
  min-height: 340px; padding: 34px 30px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, #1a1a1a, #0f0f0f);
  transform-style: preserve-3d; will-change: transform;
}
.feature__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(243, 255, 0, 0.14), transparent 60%);
}
.feature:hover .feature__glare { opacity: 1; }
.feature__idx {
  position: absolute; right: 22px; top: 14px;
  font-family: var(--font-display); font-size: 84px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
}
.feature__icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--accent); color: var(--ink); display: grid; place-items: center;
  transform: translateZ(40px);
  box-shadow: 0 14px 40px rgba(243, 255, 0, 0.18);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature__title {
  margin: 0 0 12px; transform: translateZ(30px);
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 3.1vw, 46px); line-height: 0.95;
}
.feature__text { margin: 0; color: #a9a9a3; transform: translateZ(20px); }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
}

/* ---------- Vídeo principal (Consultoría) ---------- */
.vsl { padding: 0 0 clamp(90px, 12vw, 160px); }
.vsl__card {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 28px; overflow: hidden; background: #000;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 90px rgba(243, 255, 0, 0.08);
  will-change: transform;
}
.vsl__card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); transition: transform 1s var(--ease-out), filter 0.6s; }
.vsl__card:hover img { transform: scale(1.04); filter: brightness(0.75); }
.vsl__play {
  position: absolute; left: 50%; top: 50%;
  width: clamp(76px, 9vw, 124px); height: clamp(76px, 9vw, 124px); border-radius: 50%;
  background: var(--accent); color: var(--ink); display: grid; place-items: center;
  transform: translate(-50%, -50%); animation: halo 2.4s infinite;
  transition: transform 0.5s var(--ease-out);
}
.vsl__card:hover .vsl__play { transform: translate(-50%, -50%) scale(1.1); }
.vsl__play svg { width: 34%; height: 34%; margin-left: 6%; }
.vsl__label {
  position: absolute; left: clamp(18px, 3vw, 34px); right: clamp(18px, 3vw, 34px); bottom: clamp(16px, 3vw, 30px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; text-align: left;
}
.vsl__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(22px, 3.2vw, 44px); line-height: 1.04; max-width: 15ch; }
.nowrap { white-space: nowrap; }
.vsl__meta { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
@media (max-width: 600px) { .vsl__meta { display: none; } }

/* ---------- Barras de crecimiento (Resultados) ---------- */
.bars { margin-top: clamp(46px, 6vw, 80px); display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: center; }
.bar__who { font-weight: 800; font-size: 17px; line-height: 1.25; }
.bar__who small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; font-size: 13px; }
.bar__track { display: flex; align-items: center; gap: 14px; height: 52px; }
.bar__fill {
  height: 100%; min-width: 10px; flex: none;
  width: calc((100% - 190px) * var(--p));
  border-radius: 10px; transform-origin: left;
  background: linear-gradient(90deg, rgba(243, 255, 0, 0.25), var(--accent));
  box-shadow: 0 0 30px rgba(243, 255, 0, 0.12);
}
.bar__val { font-family: var(--font-display); font-size: clamp(24px, 2.3vw, 32px); line-height: 1; color: var(--accent); white-space: nowrap; }
.bar__val small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr; gap: 8px; }
  .bar__track { height: 40px; }
  .bar__fill { width: calc((100% - 150px) * var(--p)); }
}

/* ---------- Filtros + rejilla de casos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line-2); color: #cfcfca; font-weight: 600; font-size: 14px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.filter span { font-size: 12px; opacity: 0.6; }
.filter:hover { border-color: var(--accent); color: var(--text); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cases { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cases .tcard { width: auto; scroll-snap-align: none; }
.cases .tcard.is-hidden { display: none; }
@media (max-width: 1000px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cases { grid-template-columns: 1fr; } }

/* ---------- Filas de redes (Comunidad) ---------- */
.socials { margin-top: clamp(40px, 5vw, 70px); border-top: 1px solid var(--line); }
.social {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 20px; border-bottom: 1px solid var(--line);
  transition: color 0.5s var(--ease-out);
}
.social::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease-out);
}
.social:hover { color: var(--ink); }
.social:hover::before { transform: scaleY(1); }
.social__left { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.social__icon { width: clamp(34px, 4vw, 54px); height: clamp(34px, 4vw, 54px); flex: none; color: var(--accent); transition: color 0.4s; }
.social:hover .social__icon { color: var(--ink); }
.social__name {
  font-family: var(--font-display); text-transform: uppercase; line-height: 0.9;
  font-size: clamp(42px, 7vw, 104px); transition: transform 0.6s var(--ease-out);
}
.social:hover .social__name { transform: translateX(14px); }
.social__meta { display: flex; align-items: center; gap: 18px; font-weight: 600; color: var(--muted); transition: color 0.4s; }
.social:hover .social__meta { color: var(--ink); }
.social__arrow {
  width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; flex: none;
  transition: transform 0.6s var(--ease-out), background 0.4s, border-color 0.4s, color 0.4s;
}
.social__arrow svg { width: 22px; height: 22px; }
.social:hover .social__arrow { transform: rotate(-45deg); background: var(--ink); border-color: var(--ink); color: var(--accent); }
@media (max-width: 640px) {
  .social { padding: 20px 8px; }
  .social__handle { display: none; }
  .social__arrow { width: 46px; height: 46px; }
}

/* ---------- Formulario del club ---------- */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.join__card {
  position: relative; overflow: hidden;
  padding: clamp(26px, 4vw, 46px); border-radius: 28px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.join__card::before {
  content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; pointer-events: none;
  background: radial-gradient(circle, rgba(243, 255, 0, 0.16), transparent 65%);
}
.field { position: relative; margin-bottom: 16px; }
.field input {
  width: 100%; height: 64px; padding: 24px 20px 8px;
  border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg);
  color: var(--text); font: inherit; font-size: 17px; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(243, 255, 0, 0.12); }
.field label {
  position: absolute; left: 21px; top: 21px; pointer-events: none; color: var(--muted);
  transform-origin: left top; transition: transform 0.3s var(--ease-out), color 0.3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label { transform: translateY(-12px) scale(0.74); color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__btn { width: 100%; margin-top: 6px; --h: 62px; }
.form__btn[disabled] { opacity: 0.7; pointer-events: none; }
.form__status { margin: 16px 0 0; min-height: 24px; font-weight: 600; font-size: 15px; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-err { color: #ff9a9a; }
.form__legal { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.has-cursor input { cursor: text !important; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }

/* ---------- Varios ---------- */
.section--tight { padding-top: clamp(40px, 6vw, 80px); }
.strike { --strike: 0; color: var(--muted); }
.strike .w > span {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 54% / calc(var(--strike) * 100%) 0.09em;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.two-col .lead { margin: 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Consultoría: VSL ---------- */
.page-hero--vsl { min-height: 0; padding: 130px 0 90px; text-align: center; }
.page-hero--vsl .page-hero__inner { display: flex; flex-direction: column; align-items: center; }
.vsl-page__title {
  margin: 0 auto; max-width: 22ch;
  font-size: clamp(30px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700;
}
.vsl-player {
  position: relative; overflow: hidden;
  width: min(100%, 960px, max(560px, calc((100svh - 340px) * 1.7778)));
  aspect-ratio: 16 / 9; margin-top: clamp(26px, 4vw, 46px);
  border-radius: 22px; background: #000; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 90px rgba(243, 255, 0, 0.1);
}
.vsl-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl-player__unmute {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05));
}
.vsl-player__pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-weight: 800; font-size: clamp(14px, 1.4vw, 17px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  animation: halo 2.4s infinite;
  transition: transform 0.4s var(--ease-out);
}
.vsl-player__unmute:hover .vsl-player__pill { transform: scale(1.06); }
.vsl-player__pill svg { width: 22px; height: 22px; }
.vsl-page__cta { margin-top: clamp(26px, 4vw, 44px); }
@media (max-width: 700px) {
  .page-hero--vsl { padding: 110px 0 70px; }
  .vsl-player { width: 100%; border-radius: 16px; }
  .vsl-player__pill { padding: 12px 18px; }
}

/* ---------- Sin pantalla de carga ni cortina entre páginas ---------- */
.loader, .transition { display: none !important; }
/* La cabecera espera oculta a que el JS la anime (así no parpadea); si el JS no carga, aparece igual */
html.js .hero__grid, html.js .page-hero__inner { opacity: 0; animation: reveal-failsafe 0s 2.5s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; } }
.no-anim .hero__grid, .no-anim .page-hero__inner { opacity: 1 !important; animation: none !important; }

/* =========================================================
   BIBLIOTECA (página oculta /biblioteca/)
   ========================================================= */

/* Hero centrado (como las referencias) con el fondo animado de Inicio */
.hero--center .hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 1040px; }
.hero--center .hero__copy { display: flex; flex-direction: column; align-items: center; }
.hero--center .hero__glow { top: 42%; }
.lib-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #d0d0ca;
}
.lib-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero--center .hero__highlight { margin: 0 0 26px; font-size: clamp(40px, 6.4vw, 96px); }
.hero--center .hero__title { font-size: clamp(30px, 4.2vw, 58px); max-width: 20ch; margin: 0 auto; }
.lib-sub { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 1.45vw, 20px); color: #c4c4be; }
.lib-sub strong { color: var(--text); }
.hero--center .hero__ctas { justify-content: center; margin-top: 34px; }
.lib-proof {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 30px;
  padding: 9px 20px 9px 9px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(18, 18, 18, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-align: left;
}
.lib-proof__logo { width: 40px; height: 40px; flex: none; }
.lib-proof__text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.lib-proof__text strong { font-size: 14px; color: var(--text); }
@media (max-width: 600px) {
  .lib-pill { font-size: 10.5px; letter-spacing: 0.12em; }
  .lib-proof { border-radius: 20px; }
}

/* Dolores */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.pain {
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px 24px 28px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
}
.pain__icon {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--line-2); color: var(--muted);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.pain__text { margin: 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
#dolores .scrub-text { margin-top: clamp(50px, 6vw, 80px); }
@media (max-width: 900px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pains { grid-template-columns: 1fr; } }

/* Recursos: lista numerada, bloqueada hasta dejar el correo */
.vols { display: flex; flex-direction: column; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.vol {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 84px 1fr auto 54px; gap: 22px; align-items: center;
  width: 100%; padding: 24px 18px; border-bottom: 1px solid var(--line);
  color: inherit; text-align: left;
}
.vol::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(243, 255, 0, 0.08), rgba(243, 255, 0, 0));
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.vol:not(.is-soon):hover::before { transform: scaleX(1); }
.vol__num { font-family: var(--font-display); font-size: clamp(36px, 3.4vw, 50px); line-height: 1; color: var(--accent); }
.vol__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vol__title { font-size: clamp(18px, 1.7vw, 24px); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; transition: transform 0.6s var(--ease-out); }
.vol:not(.is-soon):hover .vol__title { transform: translateX(6px); }
.vol__pain { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.vol__pain em { font-style: normal; color: #cfcfca; }
.vol__tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
}
.vol__state { position: relative; width: 54px; height: 54px; }
.vol__lock, .vol__open {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.vol__lock { border: 1.5px solid var(--accent); color: var(--accent); background: rgba(243, 255, 0, 0.05); }
.vol__open { background: var(--accent); color: var(--ink); opacity: 0; transform: scale(0.6); }
.vol__lock svg, .vol__open svg { width: 20px; height: 20px; }
html.lib-unlocked .vol__lock { opacity: 0; transform: scale(1.4); }
html.lib-unlocked .vol:not(.is-soon) .vol__open { opacity: 1; transform: none; }
html.lib-unlocked .vol:not(.is-soon):hover .vol__open { transform: scale(1.1); }
.vol.is-soon { cursor: default; }
.vol.is-soon .vol__num { color: rgba(243, 255, 0, 0.4); }
.vol.is-soon .vol__title { color: #a9a9a3; }
.vol.is-soon .vol__open { opacity: 1; transform: none; background: transparent; border: 1.5px solid var(--line-2); color: var(--muted); }
.vols__more { padding: 22px 18px; color: var(--muted); font-weight: 600; text-align: center; border-bottom: 1px dashed var(--line-2); }
@media (max-width: 760px) {
  .vol { grid-template-columns: 46px 1fr 44px; gap: 14px; padding: 20px 6px; }
  .vol__num { font-size: 30px; }
  .vol__tag { display: none; }
  .vol__state { width: 44px; height: 44px; }
  .vol__pain { font-size: 13.5px; }
}

/* Formulario: cuando ya está desbloqueada */
.join__done { display: none; }
html.lib-unlocked [data-library] .join__card form { display: none; }
html.lib-unlocked [data-library] .join__done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.join__done-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.join__done-title { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(34px, 3.4vw, 48px); line-height: 0.95; }

/* ¿Es para ti? */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.fit__col { padding: clamp(26px, 3vw, 38px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.fit__col--yes { border-color: rgba(243, 255, 0, 0.35); }
.fit__title { margin: 0 0 22px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3vw, 42px); line-height: 0.95; }
.fit__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fit__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; color: #d6d6d0; }
.fit__list li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 900;
  background: var(--accent); color: var(--ink);
}
.fit__col--no .fit__list li::before { content: "✕"; background: transparent; border: 1.5px solid var(--line-2); color: var(--muted); }
@media (max-width: 800px) { .fit { grid-template-columns: 1fr; } }

/* ---------- Biblioteca: estantería, sala y formulario de cualificación ---------- */

/* Mostrar/ocultar según si ya se ha registrado */
html.lib-unlocked .only-locked { display: none !important; }
html:not(.lib-unlocked) .only-unlocked { display: none !important; }
html:not(.lib-unlocked) [data-sala] { display: none; }

/* Hero más bajo para que el vídeo asome debajo (como las referencias) */
.hero--compact { min-height: 0; padding: 140px 0 60px; }
.hero--compact::after { height: 90px; }

/* Vídeo bajo el hero */
.lib-video { position: relative; padding: 0 0 clamp(40px, 5vw, 70px); }
.lib-video .vsl-player { margin: 0 auto; }
.lib-down {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content;
  margin: 30px auto 0; padding-bottom: 4px; border-bottom: 2px solid var(--accent);
  font-weight: 700; color: var(--text);
}
.lib-down span { display: inline-block; color: var(--accent); animation: lib-bob 1.6s var(--ease-in-out) infinite; }
@keyframes lib-bob { 50% { transform: translateY(5px); } }

/* Registro centrado */
.join--center { display: flex; flex-direction: column; align-items: center; gap: 34px; max-width: 640px; margin: 0 auto; text-align: center; }
.join--center .eyebrow { justify-content: center; }
.join--center .lead { margin-inline: auto; }
.join--center .join__card { width: 100%; text-align: left; }

/* Carrusel 3D de lo que hay dentro */
.c3d-section { overflow: hidden; }
.c3d__head { text-align: center; margin-inline: auto; }
.c3d__head .eyebrow { justify-content: center; }
.c3d {
  --card-w: 250px; --card-h: 330px; --radius3d: 340px;
  position: relative; height: 600px; margin-top: 0;
  perspective: 1500px; perspective-origin: 50% 50%;
  touch-action: pan-y; user-select: none; cursor: grab;
}
.c3d:active { cursor: grabbing; }
.c3d__stage { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; }
.c3d__ring { position: relative; width: var(--card-w); height: var(--card-h); transform-style: preserve-3d; will-change: transform; }
.c3d__card {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 22px;
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(42, 42, 42, 0.95), rgba(12, 12, 12, 0.97));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--radius3d));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: border-color 0.5s, box-shadow 0.5s;
}
.c3d__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(280px circle at 20% 0%, rgba(243, 255, 0, 0.14), transparent 60%);
}
.c3d__card.is-front { border-color: var(--accent); box-shadow: 0 0 70px rgba(243, 255, 0, 0.28), 0 30px 70px rgba(0, 0, 0, 0.55); }
.c3d__shine {
  position: absolute; inset: -20% -60%; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  transform: translateX(-45%); transition: transform 1.4s var(--ease-out);
}
.c3d__card.is-front .c3d__shine { transform: translateX(45%); }
.c3d__top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.c3d__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); box-shadow: 0 10px 30px rgba(243, 255, 0, 0.25);
}
.c3d__icon svg { width: 22px; height: 22px; }
.c3d__num { font-family: var(--font-display); font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(243, 255, 0, 0.75); }
.c3d__type { position: relative; margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.c3d__title { position: relative; font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
.c3d__brand {
  position: relative; margin-top: auto; display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.c3d__brand::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.c3d__card.is-soon .c3d__icon { background: transparent; border: 1.5px solid var(--line-2); color: var(--muted); box-shadow: none; }
.c3d__card.is-soon .c3d__type { color: var(--muted); }
.c3d__card.is-soon .c3d__num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.25); }
.c3d__floor {
  position: absolute; left: 50%; bottom: 36px; width: min(1000px, 120%); height: 170px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(243, 255, 0, 0.2), rgba(243, 255, 0, 0) 65%);
  filter: blur(10px);
}
.c3d-section .lib-down { margin-top: 18px; }
.c3d-section .section__head { margin-bottom: 0; }
@media (max-width: 700px) {
  .c3d { --card-w: 205px; --card-h: 280px; --radius3d: 280px; height: 500px; }
  .c3d__title { font-size: 17px; }
  .c3d__num { font-size: 44px; }
  .c3d__card { padding: 20px 18px; }
}

/* La sala (después de entrar) */
.sala .vols { margin-top: 30px; }
.vol.is-recommended { background: rgba(243, 255, 0, 0.06); }
.vol.is-recommended .vol__title::after {
  content: "Tu punto de partida"; display: inline-block; margin-left: 10px; vertical-align: middle;
  padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.rec {
  margin-top: clamp(30px, 4vw, 46px); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(243, 255, 0, 0.12), rgba(243, 255, 0, 0.02));
  border: 1px solid rgba(243, 255, 0, 0.45);
}
.rec[hidden] { display: none; }
.rec__kicker { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.rec__title { margin: 0; display: flex; align-items: baseline; gap: 14px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.rec__num { font-family: var(--font-display); font-weight: 400; font-size: 1.5em; color: var(--accent); line-height: 1; }
.rec__why { margin: 12px 0 0; color: #cfcfca; max-width: 640px; }
.rec__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Formulario: desplegables y casilla */
.field--select label { position: static; display: block; margin: 0 0 8px 4px; font-size: 14px; color: #cfcfca; transform: none; pointer-events: auto; }
.field select {
  width: 100%; height: 58px; padding: 0 46px 0 18px;
  border-radius: 14px; border: 1.5px solid var(--line-2);
  background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f3ff00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 18px center;
  color: var(--text); font: inherit; font-size: 16px; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(243, 255, 0, 0.12); }
.field select:invalid { color: var(--muted); }
.field select option { background: #141414; color: var(--text); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--accent); }
.has-cursor select, .has-cursor .check, .has-cursor .check input { cursor: pointer !important; }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain { display: none; }
  .scrub-text .sw, .statement .sw { opacity: 1; }
  .strike { --strike: 1; }
  .badge__ring { animation: none; }
  .story__img--after { clip-path: inset(0 0 0 50%); }
  .cta__bg { clip-path: none; }
  .viz-curve { stroke-dashoffset: 0; }
  .viz-area, .viz-dot, .viz-tag { opacity: 1; }
}

/* ---------- Extras ---------- */

.stack__shade { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; border-radius: inherit; }
.metric__value--text { font-size: clamp(46px, 4.6vw, 70px); white-space: normal; line-height: 0.92; }
.h2--md { font-size: clamp(40px, 5.6vw, 88px); }

.testi { padding: clamp(90px, 12vw, 150px) 0; }
.testi__hint { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.testi__hint span { display: inline-block; color: var(--accent); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
@media (min-width: 901px) and (min-height: 650px) {
  .testi { padding: 0; }
  .testi__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 40px; }
  .tcard { width: clamp(280px, min(28vw, 46vh), 400px); }
}
.tcard--end { display: flex; background: var(--accent); color: var(--ink); border-color: var(--accent); }
.tcard--end:hover { translate: none; }
.tcard__end { width: 100%; padding: 34px 30px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px; }
.tcard__end-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.tcard__end-title { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(48px, 4.6vw, 72px); line-height: 0.9; }

/* Seguro por si el JS no carga: nada se queda tapado */
html.js .loader { animation: failsafe-hide 0s 7s forwards; }
html.js.no-loader .transition { animation: failsafe-up 0s 4s forwards; }
@keyframes failsafe-hide { to { visibility: hidden; opacity: 0; } }
@keyframes failsafe-up { to { transform: translateY(-100%); } }
.no-anim .loader, .no-anim .transition { display: none !important; }
.no-anim .story__img--after { clip-path: inset(0 0 0 50%); }
.no-anim .cta__bg { clip-path: none; }

/* =========================================================
   Biblioteca · página de recursos (/biblioteca/recursos/)
   ========================================================= */
.res-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(243, 255, 0, 0.45); background: rgba(243, 255, 0, 0.08);
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.res-badge::before { content: "✓"; font-size: 13px; }
.res-top { padding-bottom: 0; }
.res-top .rec { margin-top: 0; }
.res-tabs-wrap { position: sticky; top: 90px; z-index: 20; margin-top: clamp(30px, 4vw, 48px); pointer-events: none; }
.res-tabs {
  pointer-events: auto;
  display: flex; gap: 8px; padding: 6px; width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10, 10, 10, 0.75);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.res-tabs::-webkit-scrollbar { display: none; }
.res-tabs a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: #cfcfca; transition: background 0.3s, color 0.3s;
}
.res-tabs a span { font-family: var(--font-display); color: var(--accent); font-size: 15px; transition: color 0.3s; }
.res-tabs a:hover, .res-tabs a.is-active { background: var(--accent); color: var(--ink); }
.res-tabs a:hover span, .res-tabs a.is-active span { color: var(--ink); }

.res-sec { scroll-margin-top: 150px; }
.res-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 48px); }
.res-head .lead { margin-top: 16px; }

.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.res-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.res-card {
  position: relative; display: flex; flex-direction: column; text-align: left; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
}
.res-card:not(.is-soon):hover {
  transform: translateY(-6px); border-color: rgba(243, 255, 0, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(243, 255, 0, 0.08);
}
.res-card__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #050505;
}
.res-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.8);
  transform: scale(1.02); transition: transform 0.8s var(--ease-out), filter 0.5s;
}
.res-card:hover .res-card__thumb img { transform: scale(1.08); filter: saturate(1) brightness(0.95); }
.res-card__play {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(243, 255, 0, 0.5); transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.res-card__play svg { width: 26px; height: 26px; margin-left: 3px; }
.res-card:hover .res-card__play { transform: scale(1.12); box-shadow: 0 0 0 12px rgba(243, 255, 0, 0.15); }
.res-card__num {
  position: absolute; left: 16px; top: 12px; font-family: var(--font-display); font-size: 40px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
.res-card__thumb--stat, .res-card__thumb--soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 60%, rgba(243, 255, 0, 0.16), rgba(243, 255, 0, 0) 60%), #0c0c0c;
}
.res-card__thumb--soon { background: repeating-linear-gradient(135deg, #0e0e0e 0 14px, #121212 14px 28px); }
.res-card__thumb--soon .res-card__num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.25); }
.res-card__big { font-family: var(--font-display); font-size: clamp(70px, 8vw, 110px); line-height: 0.9; color: var(--accent); text-shadow: 0 0 40px rgba(243, 255, 0, 0.3); }
.res-card__bigsub { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); }
.res-card__soon {
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2);
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.res-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 22px 24px; }
.res-card__tag { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.res-card__title { font-size: clamp(18px, 1.5vw, 21px); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
.res-card__pain { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.res-card__pain em { font-style: normal; color: #cfcfca; }
.res-card__cta {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15px; color: var(--text);
}
.res-card__cta span { color: var(--accent); transition: transform 0.4s var(--ease-out); }
.res-card:hover .res-card__cta span { transform: translateX(5px); }
.res-card.is-soon { cursor: default; }
.res-card.is-soon .res-card__tag { color: var(--muted); }
.res-card.is-soon .res-card__title { color: #a9a9a3; }
.res-card.is-recommended { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 50px rgba(243, 255, 0, 0.12); }
.res-card.is-recommended .res-card__thumb::after {
  content: "Tu punto de partida"; position: absolute; right: 12px; top: 12px;
  padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.res-more { margin-top: 26px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
[data-recursos] .cta { margin-top: clamp(60px, 8vw, 110px); }

@media (max-width: 960px) {
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .res-grid, .res-grid--two { grid-template-columns: 1fr; }
  .res-tabs-wrap { top: 84px; }
  .res-tabs a { padding: 10px 14px; font-size: 13px; }
  .res-badge { font-size: 10px; padding: 7px 11px; }
}

.btn[hidden] { display: none; }

/* Recursos · guías en PDF (portada como un documento) y clases */
.res-card__thumb--cover {
  aspect-ratio: 16 / 11;
  background: radial-gradient(circle at 50% 100%, rgba(243, 255, 0, 0.22), rgba(243, 255, 0, 0) 65%), #0c0c0c;
}
.res-card .res-card__thumb--cover img {
  position: absolute; left: 50%; bottom: 0; width: auto; height: 88%; aspect-ratio: 600 / 850;
  object-fit: cover; object-position: top; border-radius: 8px 8px 0 0; filter: none;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) translateY(12%) rotate(-3deg); transform-origin: bottom center;
  transition: transform 0.7s var(--ease-out);
}
.res-card:hover .res-card__thumb--cover img { transform: translateX(-50%) translateY(3%) rotate(0deg) scale(1.03); filter: none; }
.res-card__pdf, .res-card__dur {
  position: absolute; right: 14px; top: 14px; padding: 5px 9px; border-radius: 6px;
  background: rgba(10, 10, 10, 0.85); border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--text);
}
.res-card__dur { top: auto; bottom: 12px; }
.res-card.is-recommended .res-card__pdf { display: none; }
a.res-more {
  display: flex; justify-content: center; align-items: center; gap: 8px; padding: 22px 18px; margin-top: 26px;
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm); font-weight: 700; color: var(--text);
  transition: border-color 0.3s, color 0.3s;
}
a.res-more:hover { border-color: var(--accent); color: var(--accent); }
.res-proof { margin-top: 22px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Biblioteca: WhatsApp con selector de prefijo */
.field-tel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 10px; }
.field-tel .field { margin-bottom: 16px; }
.field--select input {
  width: 100%; height: 58px; padding: 0 18px;
  border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg);
  color: var(--text); font: inherit; font-size: 16px; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field--select input::placeholder { color: var(--muted); opacity: 0.7; }
.field--select input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(243, 255, 0, 0.12); }
.field--prefijo select { padding-right: 38px; background-position: right 14px center; text-overflow: ellipsis; }
.field-tel__hint { margin: -8px 4px 16px; font-size: 13px; color: var(--accent); }
