/* ═══════════════════════════════════════════
   Juan José Porras — Trafficker Digital
   Corporate light · Teal brand · 2026
   Paleta cliente: #CFE1E3 · #9AB7B9 · #3CA2A2
   ═══════════════════════════════════════════ */

:root {
  --teal: #3ca2a2;
  --teal-deep: #257d7d;
  --teal-ink: #163d3f;
  --mist: #9ab7b9;
  --ice: #cfe1e3;
  --bg: #f6fafa;
  --surface: #ffffff;
  --ink: #12292b;
  --ink-dim: #52696b;
  --line: rgba(18, 41, 43, 0.1);
  --grad: linear-gradient(100deg, var(--teal-deep), var(--teal));
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(18, 41, 43, 0.08);
  --shadow: 0 20px 50px rgba(22, 61, 63, 0.1);
  --radius: 20px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 124px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 860px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Fondo ────────────────────────────────── */
.backdrop {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(55% 45% at 85% -5%, rgba(60, 162, 162, 0.14), transparent 60%),
    radial-gradient(45% 40% at 0% 15%, rgba(207, 225, 227, 0.55), transparent 65%),
    var(--bg);
}
.backdrop__blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4;
  animation: drift 30s ease-in-out infinite alternate;
}
.backdrop__blob--1 { width: 560px; height: 560px; background: rgba(60, 162, 162, 0.3); top: -14%; right: -10%; }
.backdrop__blob--2 { width: 460px; height: 460px; background: rgba(154, 183, 185, 0.35); bottom: -18%; left: -10%; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-50px, 40px, 0) scale(1.1); }
}
.backdrop__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(18, 41, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 41, 43, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(75% 55% at 50% 25%, #000 15%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .backdrop__blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Glass base (claro) ───────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow);
}

/* ── Chips ────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(60, 162, 162, 0.1);
  border: 1px solid rgba(60, 162, 162, 0.28);
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--teal-deep); text-transform: uppercase;
}
.chip--badge { text-transform: none; letter-spacing: 0.02em; background: #fff; box-shadow: 0 8px 24px rgba(22, 61, 63, 0.08); }
.chip__icon { width: 15px; height: 15px; }

/* ── Botones ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 28px rgba(37, 125, 125, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37, 125, 125, 0.45); }
.btn--ghost {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.btn--light {
  background: var(--ice); color: var(--teal-ink);
}
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--whatsapp {
  background: #1fab55; color: #fff;
  box-shadow: 0 12px 28px rgba(31, 171, 85, 0.35);
}
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(31, 171, 85, 0.45); }
.btn--whatsapp img { width: 20px; height: 20px; }

/* ── Ticker de servicios (topbar) ─────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 34px; overflow: hidden;
  background: linear-gradient(90deg, #0b1d1e, #123435 55%, #0b1d1e);
  border-bottom: 1px solid rgba(94, 198, 198, 0.18);
  display: flex; align-items: center;
}
.topbar__track {
  display: flex; align-items: center; width: max-content;
  animation: ticker 38s linear infinite;
}
.topbar:hover .topbar__track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.topbar__item {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  color: #cfe1e3; padding: 0 22px;
}
.topbar__sep { color: var(--teal); font-size: 10px; }
@media (prefers-reduced-motion: reduce) {
  .topbar__track { animation: none; }
}

/* ── Nav ──────────────────────────────────── */
.nav {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 100;
  padding: 12px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 8px 30px rgba(22, 61, 63, 0.08);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 30px; }
.nav__brand { margin-right: auto; display: flex; align-items: flex-start; }
/* El logo "cuelga" por debajo de la barra sin aumentar su altura;
   al hacer scroll se encoge y vuelve a caber dentro del nav. */
.nav__logo {
  height: 118px; width: auto; object-fit: contain;
  margin: -6px 0 -74px;
  filter: drop-shadow(0 8px 18px rgba(22, 61, 63, 0.18));
  transition: height 0.35s ease, margin 0.35s ease;
}
.nav.is-scrolled .nav__logo { height: 50px; margin: 0; filter: none; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--ink-dim); text-decoration: none; font-size: 14.5px; font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav__cta { white-space: nowrap; }
.nav__links a:hover { color: var(--teal-deep); }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 0;
  background: var(--grad); border-radius: 0 999px 999px 0;
  transition: width 0.1s linear;
}

/* ── Hero ─────────────────────────────────── */
.hero { position: relative; padding: 200px 0 90px; }
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(36px, 4.8vw, 58px); font-weight: 700; margin: 24px 0 18px; }
.hero__sub { color: var(--ink-dim); font-size: 17.5px; max-width: 560px; }
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0 44px; }
.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  color: var(--teal-deep);
}
.stat__label { font-size: 13px; color: var(--ink-dim); }

.hero__visual { position: relative; }
.hero__photo-card { position: relative; padding: 12px; transform: rotate(1.2deg); }
.hero__photo {
  border-radius: calc(var(--radius) - 6px);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 15px; font-size: 13px;
  animation: floaty 5.5s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.9);
}
.float-chip b { display: block; font-family: var(--font-display); font-size: 14px; color: var(--ink); }
.float-chip small { color: var(--ink-dim); font-size: 11.5px; }
.float-chip--roas { top: 7%; left: -13%; animation-delay: -1s; }
.float-chip--ai { bottom: 17%; right: -9%; animation-delay: -2.5s; }
.float-chip--platforms { bottom: -5%; left: 9%; gap: 15px; animation-delay: -4s; }
.float-chip--platforms img { width: 21px; height: 21px; }
.float-chip__dot {
  width: 10px; height: 10px; border-radius: 50%; background: #1fab55;
  box-shadow: 0 0 10px rgba(31, 171, 85, 0.7); flex-shrink: 0;
}
.float-chip__spark { color: var(--teal); font-size: 18px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ── Clientes ─────────────────────────────── */
.clients { background: #fff; border-block: 1px solid var(--line); padding: 46px 0 52px; }
.clients__title {
  text-align: center; color: var(--ink-dim); font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 34px;
}
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee__track {
  display: flex; align-items: center; gap: 96px; width: max-content;
  animation: marquee 55s linear infinite;
  padding-inline: 48px;
}
.marquee__track img {
  height: 96px; width: auto; max-width: 240px; object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1) opacity(0.72);
  transition: filter 0.3s ease;
}
.marquee__track img:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ── KPI band ─────────────────────────────── */
.kpis {
  background: linear-gradient(115deg, var(--teal-ink), var(--teal-deep) 55%, var(--teal));
  padding: 58px 0;
}
.kpis__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.kpis__item { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.kpis__num { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: #fff; }
.kpis__label { color: var(--ice); font-size: 14px; }

/* ── Especialidades (franja) ──────────────── */
.experts { background: #fff; border-bottom: 1px solid var(--line); padding: 30px 0; }
.experts__row {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
}
.expert { display: flex; align-items: center; gap: 14px; padding: 4px 26px; }
.expert + .expert { border-left: 1px solid var(--line); }
@media (max-width: 920px) {
  .experts__row { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .expert { width: 300px; padding: 0; }
  .expert + .expert { border-left: none; }
}
.expert__icon {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(60, 162, 162, 0.1);
  border: 1px solid rgba(60, 162, 162, 0.25);
}
.expert__icon img { width: 26px; height: 26px; }
.expert b { font-family: var(--font-display); font-size: 16.5px; display: block; }
.expert span:not(.expert__icon) { color: var(--ink-dim); font-size: 13px; }

/* ── Secciones ────────────────────────────── */
.section { padding: 104px 0; }
.section--tint { background: linear-gradient(180deg, rgba(207, 225, 227, 0.28), rgba(207, 225, 227, 0.12)); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 18px 0 14px; }
.section__head p { color: var(--ink-dim); font-size: 17px; }

/* ── Feature (servicios núcleo) ───────────── */
.feature {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
  padding: 44px 0;
}
.feature + .feature { margin-top: 44px; }

/* 02 · Producción de Anuncios — panel oscuro "estudio", acentos ámbar */
.feature--prod {
  background:
    radial-gradient(55% 60% at 90% 0%, rgba(232, 163, 61, 0.12), transparent 60%),
    radial-gradient(45% 55% at 0% 100%, rgba(60, 162, 162, 0.2), transparent 60%),
    linear-gradient(155deg, #0c2021, #113638 70%, #144345);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  padding: 56px;
  box-shadow: 0 34px 70px rgba(10, 30, 31, 0.35);
}
.feature--prod .feature__kicker { color: #ecb35d; }
.feature--prod h3 { color: #fff; }
.feature--prod .feature__content > p { color: #b9d2d2; }
.feature--prod .feature__content > p b { color: #fff; }
.feature--prod .feature__list li { color: #dcebeb; }
.feature--prod .feature__list li::before {
  background: linear-gradient(100deg, #e8a33d, #f0c476); color: #241703;
}
.feature--prod .btn--primary {
  background: #fff; color: var(--teal-ink); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.feature--prod .prod {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.feature--prod .prod__title { color: #fff; }
.feature--prod .prod__step {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1);
}
.feature--prod .prod__step b { color: #fff; }
.feature--prod .prod__step small { color: #a9c4c4; }
.feature--prod .prod__check {
  background: linear-gradient(100deg, #e8a33d, #f0c476); color: #241703;
}
.feature--prod .prod__approve {
  background: rgba(232, 163, 61, 0.1); border-color: rgba(232, 163, 61, 0.45);
  color: #f0ddbb;
}
.feature--prod .prod__approve b { color: #ecb35d; }

/* 03 · Cursos Online — panel hielo "aula" */
.feature--cursos {
  background: linear-gradient(160deg, rgba(207, 225, 227, 0.6), rgba(207, 225, 227, 0.18));
  border: 1px solid rgba(60, 162, 162, 0.24);
  border-radius: 30px;
  padding: 56px;
}
.feature--cursos .curso { background: #fff; }
.feature--cursos .feature__kicker { color: var(--teal-deep); }
.feature--reverse .feature__content { order: 2; }
.feature--reverse .feature__visual { order: 1; }
.feature__kicker {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
}
.feature__content h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 12px 0 16px; }
.feature__content > p { color: var(--ink-dim); margin-bottom: 22px; }
.feature__content > p b { color: var(--ink); }
.feature__list { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.feature__list li { padding-left: 30px; position: relative; font-size: 15.5px; }
.feature__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 7px; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; color: #fff; background: var(--grad); margin-top: 3px;
}
.feature__platforms {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
  color: var(--ink-dim); font-size: 13.5px; font-weight: 600;
}
.feature__platforms img { width: 24px; height: 24px; opacity: 0.85; }

/* Dashboard mockup */
.dash { padding: 26px; background: rgba(255, 255, 255, 0.85); }
.dash__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.dash__title { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.dash__live {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  color: var(--teal-deep); background: rgba(60, 162, 162, 0.1); border: 1px solid rgba(60, 162, 162, 0.25);
  padding: 5px 12px; border-radius: 999px;
}
.dash__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.dash__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.dash__metric {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px;
  display: flex; flex-direction: column; gap: 1px;
}
.dash__metric small { color: var(--ink-dim); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.dash__metric b { font-family: var(--font-display); font-size: 21px; }
.dash__metric .up { color: #17915c; font-size: 12px; font-weight: 600; }
.dash__chart {
  display: flex; align-items: flex-end; gap: 7px; height: 120px; margin-bottom: 18px;
  padding: 0 4px;
}
.dash__chart i {
  flex: 1; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--teal), rgba(60, 162, 162, 0.35));
  height: var(--h); min-height: 8px;
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible .dash__chart i,
.is-visible .dash__chart i { transform: scaleY(1); }
.dash__chart i:nth-child(2) { transition-delay: 0.05s; }
.dash__chart i:nth-child(3) { transition-delay: 0.1s; }
.dash__chart i:nth-child(4) { transition-delay: 0.15s; }
.dash__chart i:nth-child(5) { transition-delay: 0.2s; }
.dash__chart i:nth-child(6) { transition-delay: 0.25s; }
.dash__chart i:nth-child(7) { transition-delay: 0.3s; }
.dash__chart i:nth-child(8) { transition-delay: 0.35s; }
.dash__chart i:nth-child(9) { transition-delay: 0.4s; }
.dash__chart i:nth-child(10) { transition-delay: 0.45s; }
.dash__chart i:nth-child(11) { transition-delay: 0.5s; }
.dash__chart i:nth-child(12) { transition-delay: 0.55s; }
.dash__foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line); padding-top: 15px;
  color: var(--ink-dim); font-size: 13.5px;
}
.dash__foot b { font-family: var(--font-display); font-size: 17px; color: var(--ink); }

/* Funnel mockup */
.funnel { padding: 30px 28px; background: rgba(255, 255, 255, 0.85); display: grid; gap: 13px; }
.funnel__title { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.funnel__bar {
  width: var(--w); min-width: 46%;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: linear-gradient(100deg, rgba(37, 125, 125, 0.92), rgba(60, 162, 162, 0.82));
  color: #fff; border-radius: 12px; padding: 13px 18px;
  font-size: 13.5px; font-weight: 600;
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.funnel__bar:nth-child(3) { transition-delay: 0.1s; opacity: 0.94; }
.funnel__bar:nth-child(4) { transition-delay: 0.2s; opacity: 0.88; }
.funnel__bar:nth-child(5) { transition-delay: 0.3s; opacity: 0.82; }
.is-visible .funnel__bar { transform: scaleX(1); }
.funnel__bar b { font-family: var(--font-display); }
.funnel__note { color: var(--ink-dim); font-size: 12.5px; margin-top: 4px; }

/* ── Producción de anuncios (mockup) ──────── */
.prod { padding: 28px 26px; background: rgba(255, 255, 255, 0.85); display: grid; gap: 14px; }
.prod__title { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.prod__step {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.prod__step i { font-style: normal; font-size: 22px; }
.prod__step b { font-family: var(--font-display); font-size: 14.5px; display: block; }
.prod__step small { color: var(--ink-dim); font-size: 12.5px; }
.prod__step > div { flex: 1; }
.prod__check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--grad);
}
.prod__approve {
  text-align: center; font-size: 14px; color: var(--ink);
  background: rgba(60, 162, 162, 0.1); border: 1px dashed rgba(60, 162, 162, 0.4);
  border-radius: 12px; padding: 13px 16px;
}
.prod__approve b { font-family: var(--font-display); color: var(--teal-deep); }

/* ── Curso online (mockup) ────────────────── */
.curso { padding: 28px 26px; background: rgba(255, 255, 255, 0.85); display: grid; gap: 12px; }
.curso__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.curso__head > span:first-child { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.curso__badge {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--teal-deep); background: rgba(60, 162, 162, 0.1);
  border: 1px solid rgba(60, 162, 162, 0.25);
  padding: 5px 12px; border-radius: 999px;
}
.curso__lesson {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px 16px;
  font-size: 14px;
}
.curso__lesson i {
  font-style: normal; font-size: 10px; color: #fff;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--mist);
}
.curso__lesson.is-done i, .curso__lesson.is-current i { background: var(--grad); }
.curso__lesson span { flex: 1; }
.curso__lesson b { color: var(--teal-deep); font-size: 13px; font-family: var(--font-display); }
.curso__lesson.is-current { border-color: rgba(60, 162, 162, 0.5); box-shadow: 0 0 0 3px rgba(60, 162, 162, 0.12); }
.curso__progress { height: 7px; border-radius: 999px; background: rgba(18, 41, 43, 0.08); overflow: hidden; }
.curso__progress span {
  display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.is-visible .curso__progress span { width: 68%; }
.curso__note { color: var(--ink-dim); font-size: 12.5px; }

/* ── Metodología (scrollytelling) ─────────── */
.method { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.method__intro { position: sticky; top: 120px; }
.method__intro h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 18px 0 14px; }
.method__intro > p { color: var(--ink-dim); margin-bottom: 28px; }
.method__meter { padding: 22px 24px; background: #fff; max-width: 340px; }
.method__counter { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.method__counter b {
  font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1;
  color: var(--teal-deep);
}
.method__counter span { color: var(--ink-dim); font-weight: 600; }
.method__track { height: 6px; background: rgba(18, 41, 43, 0.08); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.method__track span {
  display: block; height: 100%; width: 20%; background: var(--grad); border-radius: inherit;
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.method__current { font-size: 13.5px; font-weight: 600; color: var(--ink); font-family: var(--font-display); }

.method__list { list-style: none; position: relative; }
.method__list::before {
  content: ""; position: absolute; left: 30px; top: 30px; bottom: 40px;
  width: 2px; background: linear-gradient(180deg, rgba(60, 162, 162, 0.35), rgba(60, 162, 162, 0.08));
}
.method__step {
  position: relative; padding: 26px 0 26px 92px;
  opacity: 0.42; transition: opacity 0.4s ease;
}
.method__step.is-active { opacity: 1; }
.method__num {
  position: absolute; left: 0; top: 26px;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  background: #fff; color: var(--teal-deep);
  border: 2px solid rgba(60, 162, 162, 0.35);
  box-shadow: 0 10px 24px rgba(22, 61, 63, 0.1);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.method__step.is-active .method__num {
  background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.08);
}
.method__step h3 { font-size: 20px; margin-bottom: 8px; }
.method__step p { color: var(--ink-dim); font-size: 15px; margin-bottom: 12px; }
.method__tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--teal-deep); background: rgba(60, 162, 162, 0.1);
  border: 1px solid rgba(60, 162, 162, 0.25);
  padding: 5px 13px; border-radius: 999px;
}

/* ── Sobre mí ─────────────────────────────── */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__photo-wrap { padding: 11px; transform: rotate(-1.3deg); background: #fff; }
.about__photo { border-radius: calc(var(--radius) - 6px); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about__badge {
  position: absolute; width: 118px; bottom: -26px; right: -12px;
  filter: drop-shadow(0 14px 28px rgba(22, 61, 63, 0.3));
  animation: floaty 6s ease-in-out infinite;
}
.about__content h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 16px 0 18px; }
.about__content p { color: var(--ink-dim); margin-bottom: 16px; }
.about__content p b { color: var(--ink); }
.about__quote {
  padding: 20px 24px; font-style: italic; color: var(--ink);
  border-left: 3px solid var(--teal); margin: 24px 0;
  font-family: var(--font-display); font-size: 16.5px;
  background: #fff;
}
.about__creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.cred { padding: 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.cred b { font-family: var(--font-display); font-size: 15px; color: var(--teal-deep); }
.cred span { font-size: 12.5px; color: var(--ink-dim); }

/* ── Galería ──────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item { overflow: hidden; padding: 0; position: relative; background: #fff; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 3/4; border-radius: var(--radius);
  transition: transform 0.5s ease;
}
/* Encuadres por foto: centrar lo que importa */
.gallery__item:nth-child(1) img { object-position: 66% 35%; } /* conferencia: JJ señalando la pantalla */
.gallery__item:nth-child(2) img { object-position: center 28%; } /* taller: proyección */
.gallery__item:nth-child(3) img { object-position: center 24%; } /* contenido: rostro */
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 9px 17px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, 0.88); color: var(--ink);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(18, 41, 43, 0.06);
}

/* ── FAQ ──────────────────────────────────── */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq__item { background: #fff; padding: 0; overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; min-height: 86px;
  padding: 14px 56px 14px 24px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px;
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; font-size: 18px; font-weight: 500;
  color: var(--teal-deep); background: rgba(60, 162, 162, 0.1);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq__item[open] summary { color: var(--teal-deep); }
.faq__item[open] summary::after { content: "–"; background: var(--grad); color: #fff; }
.faq__item p { padding: 0 24px 22px; color: var(--ink-dim); font-size: 15px; }

/* ── Sección oscura (conversión) ──────────── */
.section--dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(55% 60% at 88% 0%, rgba(60, 162, 162, 0.28), transparent 62%),
    radial-gradient(45% 50% at 5% 100%, rgba(60, 162, 162, 0.18), transparent 60%),
    linear-gradient(160deg, #0b1d1e, #113031 62%, #14484a);
}
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 10%, transparent 100%);
}
.section--dark > .container { position: relative; }

/* ── CTA banner ───────────────────────────── */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 34px;
  padding: 40px 48px; margin: 0 auto 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.cta-banner h2 { color: #fff; font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 8px; }
.cta-banner p { color: var(--ice); max-width: 560px; }
.cta-banner p b { color: #fff; }
.cta-banner__badge img { width: 108px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); }

/* ── Garantías de confianza ───────────────── */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 0 auto 34px;
}
.trust {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 13px 15px;
  color: #d8e9e9; font-size: 12.5px; font-weight: 600; line-height: 1.4;
}
.trust svg { width: 20px; height: 20px; color: #5ec6c6; flex-shrink: 0; }

/* ── Wizard ───────────────────────────────── */
.wizard-section { padding-top: 96px; padding-bottom: 110px; }
.section--dark .wizard {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.3);
}
.wizard { margin: 0 auto; padding: 52px 56px; border-radius: 30px; background: rgba(255, 255, 255, 0.9); }
.wizard__progress { margin-bottom: 34px; }
.wizard__bar {
  height: 6px; border-radius: 999px; background: rgba(18, 41, 43, 0.08);
  overflow: hidden; margin-bottom: 14px;
}
.wizard__bar span {
  display: block; height: 100%; width: 25%; border-radius: inherit;
  background: var(--grad); transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.wizard__steps-labels { display: flex; justify-content: space-between; }
.wizard__steps-labels span {
  font-size: 12.5px; font-weight: 600; color: var(--ink-dim);
  letter-spacing: 0.03em; transition: color 0.3s ease;
}
.wizard__steps-labels span.is-active { color: var(--teal-deep); }

.wizard__step { display: none; animation: stepIn 0.4s ease; }
.wizard__step.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
.wizard__q { font-size: 22px; margin-bottom: 6px; }
.wizard__hint { color: var(--ink-dim); font-size: 14px; margin-bottom: 20px; }

.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__card {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  padding: 18px 20px; border-radius: 15px; cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--line);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.option__card b { font-family: var(--font-display); font-size: 15.5px; }
.option__card small { color: var(--ink-dim); font-size: 13px; }
.option__card:hover { border-color: rgba(60, 162, 162, 0.55); transform: translateY(-2px); }
.option input:checked + .option__card {
  border-color: var(--teal);
  background: rgba(60, 162, 162, 0.08);
  box-shadow: 0 0 0 3px rgba(60, 162, 162, 0.16);
}
.option input:focus-visible + .option__card { outline: 2px solid var(--teal-deep); outline-offset: 2px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--ink-dim); }
.field input, .field textarea {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 13px; padding: 13px 16px;
  color: var(--ink); font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(60, 162, 162, 0.16);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(82, 105, 107, 0.5); }

.summary {
  padding: 22px 26px; font-size: 15px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.summary__row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.summary__row:last-child { border-bottom: none; }
.summary__row b {
  min-width: 132px; color: var(--ink-dim); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px;
}

.wizard__error { color: #d64550; font-size: 13.5px; margin-top: 14px; font-weight: 600; }
.wizard__note { color: var(--ink-dim); font-size: 13.5px; margin-top: 16px; text-align: center; }
.wizard__nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; }
.wizard__nav .btn--primary, .wizard__nav .btn--whatsapp { margin-left: auto; }

/* ── Footer corporativo ───────────────────── */
.footer {
  background: #0e2223;
  color: #c7d8d9;
}
.footer a { text-decoration: none; }
.footer__top {
  display: grid; grid-template-columns: 1.5fr 0.9fr 0.9fr 0.9fr; gap: 48px;
  padding-block: 72px 56px;
}
.footer__logo { height: 84px; width: auto; filter: invert(1) brightness(1.6); margin-bottom: 14px; }
.footer__tagline {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.footer__brand h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.footer__brand p { font-size: 14.5px; max-width: 360px; color: #9fb6b7; margin-bottom: 22px; }
.footer__col h4 {
  color: var(--teal); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer__col a {
  display: block; color: #c7d8d9; font-size: 14.5px; margin-bottom: 13px;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: #fff; }

.footer__legal {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 52px;
}
.footer__legal-item { display: flex; gap: 18px; scroll-margin-top: 110px; }
.footer__legal-num {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--teal);
  padding-top: 3px;
}
.footer__legal-item h5 {
  color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.footer__legal-item p { font-size: 13.5px; color: #9fb6b7; line-height: 1.7; }

.footer__refs {
  display: flex; flex-wrap: wrap; gap: 14px 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 22px;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #7e9899;
}
.footer__refs a { color: #7e9899; transition: color 0.2s ease; }
.footer__refs a:hover { color: #fff; }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 24px;
  font-size: 13px; color: #7e9899;
}
.footer__mini { display: flex; gap: 22px; }
.footer__mini a {
  color: #9fb6b7; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em;
  transition: color 0.2s ease;
}
.footer__mini a:hover { color: #fff; }

/* ── Testimonios ──────────────────────────── */
.testimonials { padding: 104px 0 120px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi {
  background: #fff; padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testi:hover { transform: translateY(-5px); box-shadow: 0 26px 54px rgba(22, 61, 63, 0.14); }
.testi__stars { color: #e8a33d; font-size: 15px; letter-spacing: 3px; }
.testi__quote { color: var(--ink-dim); font-size: 15px; flex: 1; }
.testi__quote::before { content: "“"; color: var(--teal); font-family: var(--font-display); font-weight: 700; margin-right: 2px; }
.testi__quote::after { content: "”"; color: var(--teal); font-family: var(--font-display); font-weight: 700; margin-left: 2px; }
.testi__person { display: flex; align-items: center; gap: 14px; border-top: 1px dashed var(--line); padding-top: 18px; }
.testi__avatar {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(60, 162, 162, 0.35);
}
.testi__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.testi__role { font-size: 12.5px; color: var(--ink-dim); }

/* ── Selector de idioma ───────────────────── */
.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.lang-toggle button {
  border: none; background: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.06em; color: var(--ink-dim);
  padding: 8px 13px; transition: background 0.25s ease, color 0.25s ease;
}
.lang-toggle svg {
  width: 17px; height: 12px; border-radius: 2.5px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(18, 41, 43, 0.12);
}
.lang-toggle button.is-active svg { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.lang-toggle button.is-active { background: var(--grad); color: #fff; }

/* ── Reveal on scroll ─────────────────────── */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease var(--delay, 0s), transform 0.7s ease var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dash__chart i, .funnel__bar { transform: none; transition: none; }
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1020px) {
  .nav__inner { gap: 16px; }
  .nav__links { gap: 16px; }
  .nav__logo { height: 92px; margin: -4px 0 -52px; }
  .hero__grid { grid-template-columns: 1fr; gap: 74px; }
  .hero__visual { max-width: 440px; margin-inline: auto; }
  .float-chip--roas { left: -4%; }
  .float-chip--ai { right: -4%; }
  .kpis__grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .feature { grid-template-columns: 1fr; gap: 44px; }
  .feature--prod, .feature--cursos { padding: 40px 32px; }
  .feature--reverse .feature__content { order: 1; }
  .feature--reverse .feature__visual { order: 2; }
  .method { grid-template-columns: 1fr; gap: 40px; }
  .method__intro { position: static; }
  .method__meter { display: none; }
  .about__grid { grid-template-columns: 1fr; gap: 64px; }
  .about__media { max-width: 420px; margin-inline: auto; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 170px; }
  .nav__logo { height: 84px; margin: -4px 0 -46px; }
  .nav.is-scrolled .nav__logo { height: 44px; margin: 0; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(24px);
    flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; z-index: 99; }
  .nav__links a { font-size: 20px; color: var(--ink); }
  .nav__cta { display: none; }
  .nav__burger { display: block; position: relative; z-index: 100; }
  .hero__stats { gap: 22px; }
  .stat__num { font-size: 25px; }
  .kpis__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .kpis__num { font-size: 32px; }
  .expert { width: auto; }
  .feature--prod, .feature--cursos { padding: 28px 20px; border-radius: 22px; }
  .method__list::before { left: 22px; }
  .method__step { padding-left: 66px; }
  .method__num { width: 44px; height: 44px; font-size: 14px; top: 30px; }
  .option-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .wizard { padding: 26px 20px; border-radius: 22px; }
  .wizard__steps-labels span { font-size: 10.5px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item img { aspect-ratio: 4/3; }
  .faq { grid-template-columns: 1fr; }
  .about__creds { grid-template-columns: 1fr; }
  .about__badge { width: 94px; right: 0; }
  .cta-banner { flex-direction: column; text-align: center; padding: 34px 26px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 38px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .marquee__track { gap: 56px; }
  .marquee__track img { height: 64px; max-width: 180px; }
  .testi-grid { grid-template-columns: 1fr; }
  .nav .lang-toggle { position: relative; z-index: 100; }
  .float-chip--platforms { left: 4%; }
  .dash__metrics { grid-template-columns: 1fr 1fr; }
}
