/* ============================================================================
   SinergIA Intelligence — "Inteligencia Luminosa"
   Canvas porcelana cálida · tinta casi-negra · cobalto eléctrico · spark lima
   Display: Bricolage Grotesque · Cuerpo: Hanken Grotesk · Mono: Spline Sans Mono
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────────*/
:root {
  /* Paleta */
  --canvas:       #f3f1ea;   /* porcelana cálida */
  --canvas-2:     #ece9df;   /* fondo seccional alterno */
  --paper:        #fbfaf6;   /* tarjetas */
  --paper-soft:   #f7f5ef;
  --ink:          #14161c;   /* casi-negro cálido */
  --ink-soft:     #3a3e49;
  --muted:        #6b6f7b;   /* texto secundario */
  --hairline:     #ddd9cd;   /* líneas cálidas */
  --hairline-2:   #e7e3d7;

  --cobalt:       #1f43ff;   /* primario eléctrico */
  --cobalt-deep:  #122ec9;
  --cobalt-ink:   #0b1c8a;
  --cobalt-wash:  #e7ebff;
  --spark:        #c9f24a;   /* chispa de sinergia */
  --spark-deep:   #aee014;

  /* Paleta academia (ref e-learning): lavanda + pastel multicolor */
  --lilac:       #c5b6e3;
  --lilac-2:     #d9cdef;
  --lilac-soft:  #efeaf9;
  --lilac-line:  #e2d9f2;
  --p-blue-bg:   #d6e4fa; --p-blue:   #3d77c9;
  --p-mint-bg:   #d8f1e8; --p-mint:   #2f9b71;
  --p-violet-bg: #e7defa; --p-violet: #6f57cf;
  --p-pink-bg:   #fadde7; --p-pink:   #d2618d;
  --p-purple-bg: #f1ddf4; --p-purple: #a44fb6;
  --p-peach-bg:  #fde6d3; --p-peach:  #cf7d34;

  /* Tipografía */
  --display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, monospace;

  /* Espacio / radios */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 38px;
  --maxw: 1240px;
  --gutter: clamp(22px, 5vw, 60px);

  /* Gradientes de marca */
  --grad-brand: linear-gradient(110deg, var(--cobalt), #3f6bff 55%, #6f8cff);
  --grad-vivid: linear-gradient(115deg, #1631d6, #1f43ff 45%, #2e9bff 100%);
  --grad-spark: linear-gradient(110deg, var(--cobalt), var(--spark-deep));
  --cyan: #18c8ff;

  /* Sombras (suaves, premium) */
  --shadow-s: 0 1px 2px rgba(20,22,28,.04), 0 8px 24px -12px rgba(20,22,28,.10);
  --shadow-m: 0 2px 8px rgba(20,22,28,.05), 0 36px 60px -32px rgba(20,22,28,.26);
  --shadow-l: 0 4px 12px rgba(20,22,28,.06), 0 56px 90px -40px rgba(20,22,28,.32);
  --shadow-cobalt: 0 20px 50px -20px rgba(31,67,255,.55);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ── Reset ────────────────────────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--spark); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 5px; }
.btn:focus-visible, .nav-links a:focus-visible, .cf:focus-visible { outline-offset: 4px; }

/* Grano de papel global */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Tipografía base ──────────────────────────────────────────────────────*/
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.display {
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -.036em;
  line-height: .96;
  text-wrap: balance;
}
.h2 { font-size: clamp(2rem, 4.3vw, 3.5rem); letter-spacing: -.032em; line-height: 1.06; }
.h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); letter-spacing: -.02em; line-height: 1.18; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.28rem); color: var(--ink-soft); line-height: 1.62; letter-spacing: -.01em; text-wrap: pretty; }
p { color: var(--ink-soft); text-wrap: pretty; }
strong { color: var(--ink); font-weight: 700; }

/* eyebrow / etiqueta mono */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--cobalt);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

/* IA destacada en SinergIA */
.ia { color: var(--cobalt); }
.mark { background: linear-gradient(180deg, transparent 46%, var(--spark) 46%, var(--spark) 92%, transparent 92%); padding: 0 .04em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ── Layout ───────────────────────────────────────────────────────────────*/
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(76px, 12vw, 162px); }
.alt { background: var(--canvas-2); }
.alt-lilac { background: linear-gradient(180deg, var(--lilac-soft), #faf8ff); }

/* ── Botones ──────────────────────────────────────────────────────────────*/
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  padding: 1em 1.6em; border-radius: 100px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-cobalt); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -22px rgba(31,67,255,.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--canvas); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-spark { background: var(--spark); color: var(--ink); }
.btn-spark:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -16px var(--spark-deep); }

.textlink {
  font-weight: 600; color: var(--cobalt);
  display: inline-flex; align-items: center; gap: .4em;
  border-bottom: 1px solid transparent; transition: gap .25s var(--ease);
}
.textlink:hover { gap: .7em; }
.textlink svg { width: 15px; height: 15px; }

/* ── Header ───────────────────────────────────────────────────────────────*/
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--hairline); }
.nav {
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  font-size: .96rem; font-weight: 500; color: var(--ink-soft);
  padding: .5em .9em; border-radius: 100px; transition: color .2s, background .2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--cobalt); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--spark);
}
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--paper); align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: .3s var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────────*/
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 100px); overflow: hidden; }
.hero-head { max-width: 880px; margin-inline: auto; text-align: center; }
.hero-head .eyebrow { justify-content: center; }
.hero-head .eyebrow::before { display: none; }
.hero-dash .hero-head .display { font-size: clamp(2.35rem, 5.4vw, 4.6rem); margin-top: 1rem; }
.hero-head .lead { margin: 1.2rem auto 0; max-width: 52ch; }
.hero-head .hero-actions { justify-content: center; margin-top: 1.8rem; }
.hero-dash .dash-stage { margin-top: clamp(34px, 5vw, 60px); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 70px); align-items: center;
}
.hero h1 { margin-top: 1.1rem; }
.hero .lead { margin-top: 1.4rem; max-width: 30ch; }
.hero-actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-note { margin-top: 1.6rem; font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; display: flex; align-items: center; gap: .5em; }
.hero-note b { color: var(--ink); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--spark-deep); box-shadow: 0 0 0 3px rgba(174,224,20,.22); }

/* malla de puntos + glow de fondo */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 52% at 80% 16%, rgba(31,67,255,.18), transparent 62%),
    radial-gradient(38% 46% at 98% 58%, rgba(111,140,255,.16), transparent 60%),
    radial-gradient(34% 42% at 58% 4%, rgba(201,242,74,.12), transparent 60%),
    radial-gradient(50% 60% at 12% 90%, rgba(31,67,255,.06), transparent 60%);
  filter: blur(4px);
}
.dotgrid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--hairline) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 72%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 72%);
  opacity: .7;
}
.hero .wrap, .hero-grid { position: relative; z-index: 1; }

/* visual de nodos (synergy) */
.hero-visual { position: relative; aspect-ratio: 1; }
.node-card {
  position: relative; width: 100%; height: 100%;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 120% at 0% 0%, var(--cobalt-wash), transparent 55%),
    linear-gradient(160deg, #ffffff, var(--paper-soft));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-l), inset 0 1px 0 rgba(255,255,255,.8);
  overflow: hidden;
}
.node-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(31,67,255,.35), transparent 40%, transparent 70%, rgba(201,242,74,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.node-card svg { width: 100%; height: 100%; }
.float-chip {
  position: absolute; background: rgba(255,255,255,.82); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.9);
  border-radius: 100px; padding: .58em 1em; font-family: var(--mono); font-size: .72rem;
  font-weight: 500; box-shadow: var(--shadow-m); display: flex; align-items: center; gap: .55em;
  color: var(--ink);
}
.float-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); display: inline-block; }
.float-chip.spark i { background: var(--spark-deep); }
.chip-a { top: 8%; left: -6%; }
.chip-b { bottom: 7%; left: -8%; box-shadow: var(--shadow-l); }
.chip-c { bottom: -3%; left: 16%; }

/* ── Panel de producto de IA (hero) ──────────────────────────────────────*/
.ai-panel {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(165deg, #ffffff, var(--paper-soft));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-l), inset 0 1px 0 rgba(255,255,255,.85);
}
.ai-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 3;
  background: linear-gradient(150deg, rgba(31,67,255,.55), transparent 38%, transparent 68%, rgba(24,200,255,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.ai-bar {
  display: flex; align-items: center; gap: .7rem; padding: .72rem 1rem;
  border-bottom: 1px solid var(--hairline-2); background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px); font-family: var(--mono); font-size: .7rem; position: relative; z-index: 2;
}
.ai-dots { display: flex; gap: 5px; }
.ai-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline); }
.ai-dots i:nth-child(1) { background: #e7b13d; }
.ai-dots i:nth-child(2) { background: #cfd3c0; }
.ai-dots i:nth-child(3) { background: var(--spark-deep); }
.ai-file { color: var(--muted); letter-spacing: .03em; }
.ai-live { margin-left: auto; color: var(--cobalt); display: flex; align-items: center; gap: .45em; letter-spacing: .14em; font-weight: 500; }
.ai-live b { width: 7px; height: 7px; border-radius: 50%; background: var(--spark-deep); box-shadow: 0 0 0 3px rgba(174,224,20,.25); }
.ai-body {
  position: relative; z-index: 1; padding: clamp(12px, 1.8vw, 20px);
  display: grid; gap: clamp(10px, 1.4vw, 16px);
  background-image:
    linear-gradient(var(--hairline-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-2) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center;
}
.ai-graph {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(120% 120% at 30% 10%, var(--cobalt-wash), transparent 60%);
  border: 1px solid var(--hairline-2);
}
.ai-graph svg { width: 100%; height: 100%; display: block; }
.ai-graph .gtag {
  position: absolute; top: 10px; left: 12px; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .12em; color: var(--cobalt); background: rgba(255,255,255,.7);
  padding: .25em .6em; border-radius: 6px; border: 1px solid var(--hairline-2);
}
.ai-modules { display: grid; gap: .55rem; }
.ai-mod { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem .8rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--muted); }
.ai-mod .mv { color: var(--ink); font-weight: 500; }
.ai-track { grid-column: 1 / -1; height: 6px; border-radius: 100px; background: var(--cobalt-wash); overflow: hidden; }
.ai-track i { display: block; height: 100%; border-radius: 100px; background: var(--grad-vivid); }

/* marquee de confianza */
.trust { border-block: 1px solid var(--hairline); background: var(--canvas-2); }
.trust .wrap { display: flex; align-items: center; gap: 2rem; padding-block: 22px; flex-wrap: wrap; }
.trust .label { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.trust .words { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; font-family: var(--display); font-weight: 700; font-size: clamp(1rem,1.6vw,1.25rem); color: var(--ink); letter-spacing: -.02em; }
.trust .words span { display: inline-flex; align-items: center; gap: .5em; }
.trust .words .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }

/* ── Sección encabezado ──────────────────────────────────────────────────*/
.sec-head { max-width: 720px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-top: .9rem; }
.sec-head p { margin-top: 1rem; }

/* ── Stats ────────────────────────────────────────────────────────────────*/
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--paper); padding: clamp(20px,3vw,34px); }
.stat .v { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem,4.4vw,3.4rem); letter-spacing: -.035em; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; }
.stat .v .ia { color: var(--cobalt); }
.stat .l { margin-top: .6rem; font-size: .9rem; color: var(--muted); }

/* ── Servicios (cards) ───────────────────────────────────────────────────*/
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.8vw, 22px); margin-top: clamp(34px, 5vw, 56px); }
.svc {
  position: relative; background: var(--paper); border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg); padding: clamp(30px, 3.2vw, 46px); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.svc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(130% 100% at 100% 0%, rgba(31,67,255,.08), transparent 52%);
  opacity: 0; transition: opacity .4s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: transparent; }
.svc:hover::after { opacity: 1; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.svc-ix { font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--cobalt-wash); display: grid; place-items: center; color: var(--cobalt); flex: none; transition: background .3s, color .3s; }
.svc:hover .svc-ico { background: var(--cobalt); color: #fff; }
.svc-ico svg { width: 26px; height: 26px; }
.svc h3 { margin-top: 1.5rem; }
.svc .tag { font-family: var(--mono); font-size: .76rem; color: var(--cobalt); margin-top: .35rem; }
.svc p { margin-top: .9rem; font-size: .98rem; }
.svc ul { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: .5rem; }
.svc li { display: flex; gap: .6em; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.svc li::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: .22em; border-radius: 50%; background:
  var(--spark); box-shadow: inset 0 0 0 1px rgba(20,22,28,.08); position: relative; }
.svc li svg { display: none; }

/* ── Split / about ───────────────────────────────────────────────────────*/
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.feature-list { display: grid; gap: 1px; margin-top: 2rem; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.feature { background: var(--paper); padding: clamp(20px,2.6vw,30px); display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; transition: background .3s; }
.feature:hover { background: var(--paper-soft); }
.feature .n { font-family: var(--mono); font-size: .8rem; color: var(--cobalt); padding-top: .2em; }
.feature h4 { font-size: 1.12rem; }
.feature p { margin-top: .4rem; font-size: .96rem; }

/* panel visual reutilizable */
.panel {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, var(--cobalt-wash), transparent 50%), linear-gradient(160deg, #ffffff, var(--paper-soft));
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-l), inset 0 1px 0 rgba(255,255,255,.8);
  aspect-ratio: 5/6; display: grid; place-items: center;
}
.panel svg.art { width: 88%; height: 88%; }
/* Paneles de servicios: altura uniforme, se estiran para alinear con el texto */
.svc-panel { aspect-ratio: auto !important; min-height: clamp(300px, 30vw, 400px); }
.panel.panel-img { background: var(--ink); }
.panel.panel-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-ix { position: absolute; top: 18px; left: 22px; z-index: 1; font-family: var(--display); font-weight: 800;
  font-size: 2rem; color: #fff; letter-spacing: -.03em; text-shadow: 0 2px 18px rgba(0,0,0,.55); }

/* ── Metodología (timeline) ──────────────────────────────────────────────*/
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,26px); margin-top: clamp(34px,5vw,56px); counter-reset: step; }
.step {
  position: relative; background: var(--paper); border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg); padding: clamp(26px,3vw,38px); transition: transform .35s var(--ease), box-shadow .35s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.step .num { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--cobalt); letter-spacing: -.03em; }
.step h4 { margin-top: 1rem; font-size: 1.22rem; }
.step p { margin-top: .6rem; font-size: .96rem; }
.step .conn { position: absolute; top: 50%; right: -16px; width: 32px; height: 2px; background: var(--hairline); z-index: 2; }
.step:last-child .conn { display: none; }
.step .conn::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); }

/* ── Pilares ─────────────────────────────────────────────────────────────*/
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,26px); margin-top: clamp(34px,5vw,56px); }
.pillar { background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-lg); padding: clamp(26px,3vw,38px); transition: transform .35s var(--ease), box-shadow .35s; }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.pillar .badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--spark); }
.pillar .badge svg { width: 24px; height: 24px; }
.pillar h4 { margin-top: 1.3rem; font-size: 1.22rem; }
.pillar p { margin-top: .7rem; font-size: .96rem; }

/* ── Founders ────────────────────────────────────────────────────────────*/
.founders { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(16px,2vw,24px); margin-top: clamp(34px,5vw,56px); }
.founder {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center;
  background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-lg);
  padding: clamp(22px,2.6vw,32px); transition: transform .35s var(--ease), box-shadow .35s;
}
.founder:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.avatar {
  width: 92px; height: 92px; border-radius: 22px; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: #fff; letter-spacing: -.02em;
  background: linear-gradient(150deg, var(--cobalt), var(--cobalt-ink));
  box-shadow: var(--shadow-cobalt); position: relative;
}
.avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 120% at 80% 10%, rgba(201,242,74,.5), transparent 45%); }
.founder:nth-child(2) .avatar { background: linear-gradient(150deg, var(--ink), #2b2f3a); color: var(--spark); }
.founder h4 { font-size: 1.2rem; }
.founder .role { color: var(--cobalt); font-weight: 600; font-size: .95rem; margin-top: .2rem; }
.founder .kind { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }

/* ── CTA band ────────────────────────────────────────────────────────────*/
.cta-band { position: relative; }
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--ink), #1b1f2b 60%, var(--cobalt-ink));
  color: var(--canvas); padding: clamp(40px, 6vw, 80px);
  text-align: center; box-shadow: var(--shadow-m);
}
.cta-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 70%); }
.cta-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -60px; bottom: -120px; background: radial-gradient(circle, rgba(201,242,74,.22), transparent 60%); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; }
.cta-card .lead { color: rgba(255,255,255,.74); margin-inline: auto; margin-top: 1rem; max-width: 46ch; }
.cta-card .hero-actions { justify-content: center; margin-top: 2rem; }

/* ── Blog ────────────────────────────────────────────────────────────────*/
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,26px); margin-top: clamp(34px,5vw,52px); }
.post {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: transparent; }
.post-cover { aspect-ratio: 16/10; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--cobalt-wash), var(--paper-soft)); }
.post-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-cover .cover-img, .article-cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .post-cover .cover-img { transform: scale(1.05); }
.post-cat { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: var(--paper); color: var(--cobalt); padding: .4em .8em; border-radius: 100px; box-shadow: var(--shadow-s); }
.post-body { padding: clamp(20px,2.4vw,28px); display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: var(--mono); font-size: .74rem; color: var(--muted); display: flex; gap: .8em; align-items: center; }
.post-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--hairline); }
.post h3 { margin-top: .8rem; font-size: 1.26rem; line-height: 1.16; letter-spacing: -.02em; }
.post p { margin-top: .7rem; font-size: .95rem; flex: 1; }
.post .textlink { margin-top: 1.2rem; }
.featured { grid-column: span 3; display: grid; grid-template-columns: 1.1fr .9fr; }
.featured .post-cover { aspect-ratio: auto; }
.featured .post-body { padding: clamp(28px,4vw,52px); justify-content: center; }
.featured h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }

/* artículo individual */
.article { max-width: 760px; margin-inline: auto; }
.article-head { text-align: center; margin-bottom: clamp(30px,5vw,52px); }
.article-head h1 { font-size: clamp(2rem,4.6vw,3.4rem); margin-top: 1rem; }
.article-head .post-meta { justify-content: center; margin-top: 1.3rem; }
.article-cover { aspect-ratio: 21/9; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(150deg, var(--cobalt-wash), var(--paper-soft)); margin-bottom: clamp(30px,5vw,52px); position: relative; border: 1px solid var(--hairline-2); }
.article-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose { font-size: 1.12rem; line-height: 1.75; }
.prose p { margin-top: 1.4rem; color: var(--ink-soft); }
.prose h2 { font-size: clamp(1.5rem,2.7vw,2rem); margin-top: 2.6rem; letter-spacing: -.025em; }
.prose h2 + p { margin-top: .8rem; }
.prose ul { margin-top: 1.3rem; padding-left: 0; list-style: none; display: grid; gap: .85rem; }
.prose li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.prose li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 12px; border-radius: 50%; background: var(--spark); box-shadow: inset 0 0 0 1px rgba(20,22,28,.08), 0 0 0 4px var(--cobalt-wash); }
.prose strong { color: var(--ink); font-weight: 700; }

/* ── Contacto ────────────────────────────────────────────────────────────*/
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,5vw,64px); align-items: start; }
.contact-info .info-item { display: flex; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--hairline); }
.contact-info .info-item:first-of-type { border-top: 1px solid var(--hairline); }
.contact-info .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--cobalt-wash); color: var(--cobalt); display: grid; place-items: center; flex: none; }
.contact-info .ico svg { width: 21px; height: 21px; }
.contact-info .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-info .val { font-weight: 600; font-size: 1.05rem; margin-top: .2rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.8rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--ink-soft); transition: .25s var(--ease); }
.socials a:hover { background: var(--ink); color: var(--spark); transform: translateY(-3px); border-color: var(--ink); }
.socials svg { width: 19px; height: 19px; }

.form-card { background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-xl); padding: clamp(26px,3.4vw,44px); box-shadow: var(--shadow-s); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.field label .opt { font-weight: 400; color: var(--muted); font-family: var(--mono); font-size: .74rem; }
.input, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: .85em 1em; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--cobalt); background: var(--paper); box-shadow: 0 0 0 4px var(--cobalt-wash); }
.textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form-fine { margin-top: 1rem; font-size: .82rem; color: var(--muted); text-align: center; }

.notice { display: flex; gap: .8rem; align-items: flex-start; background: var(--cobalt-wash); border: 1px solid color-mix(in srgb, var(--cobalt) 25%, transparent); border-radius: var(--r); padding: 1.1rem 1.3rem; margin-bottom: 1.6rem; }
.notice .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--cobalt); color: #fff; display: grid; place-items: center; flex: none; }
.notice .ico svg { width: 19px; height: 19px; }
.notice h4 { font-size: 1.02rem; } .notice p { font-size: .92rem; margin-top: .2rem; }

/* ── Footer ──────────────────────────────────────────────────────────────*/
.site-footer { background: var(--ink); color: var(--canvas); padding-top: clamp(56px,8vw,96px); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cobalt), var(--spark), transparent); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(24px,4vw,48px); padding-bottom: clamp(40px,6vw,64px); }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); margin-top: 1.1rem; max-width: 34ch; font-size: .96rem; }
.footer-col h5 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--spark); font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: .7rem; }
.footer-col a { color: rgba(255,255,255,.66); font-size: .96rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-cta .btn { margin-top: 1.1rem; }
.footer-cta a.btn-spark, .footer-cta a.btn-spark:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; color: rgba(255,255,255,.5); }
.footer-bottom .mono { font-family: var(--mono); letter-spacing: .04em; }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: rgba(255,255,255,.5); font-size: .86rem; transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* aviso de cookies */
.cookie-banner { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%);
  width: min(680px, calc(100vw - 32px)); z-index: 150;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: space-between;
  background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 20px;
  box-shadow: var(--shadow-l); transition: transform .45s var(--ease); }
.cookie-banner.show { transform: translate(-50%, 0); }
.cookie-banner p { color: rgba(255,255,255,.8); font-size: .88rem; margin: 0; flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--spark); }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-banner .btn { padding: .6em 1.2em; font-size: .88rem; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.cookie-banner .btn-ghost:hover { border-color: #fff; }
@media (max-width: 520px) { .cookie-actions { width: 100%; } .cookie-banner .btn { flex: 1; justify-content: center; } }

/* ── Sin animaciones de entrada — contenido siempre visible ──────────────*/
.reveal, .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } }

/* ── Dashboard mock (hero estilo producto) ───────────────────────────────*/
.dash-stage {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  padding: clamp(14px, 1.8vw, 26px);
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(160,130,220,.35), transparent 60%),
    radial-gradient(55% 65% at 5% 100%, rgba(120,150,230,.22), transparent 60%),
    linear-gradient(155deg, var(--lilac), var(--lilac-2));
  box-shadow: var(--shadow-l);
}
.dash {
  display: grid; grid-template-columns: minmax(0, 340px) 1fr;
  gap: clamp(10px, 1.2vw, 14px);
}
.dcard { background: #fff; border-radius: 20px; box-shadow: var(--shadow-s); border: 1px solid rgba(255,255,255,.8); }
.dash .mono { font-family: var(--mono); }

/* sidebar */
.dash-side { display: flex; gap: 12px; padding: 14px; }
.dash-rail { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.dr-logo { width: 32px; height: 32px; color: var(--ink); }
.dr-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--muted); cursor: default; }
.dr-ic svg { width: 18px; height: 18px; }
.dr-ic.active { background: var(--ink); color: #fff; }
.dr-ic.av { margin-top: auto; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(150deg, var(--cobalt), var(--cobalt-ink)); color: #fff; font-family: var(--display); font-weight: 800; font-size: .72rem; }
.dash-side-main { flex: 1; min-width: 0; }
.ds-greet { font-size: .76rem; color: var(--muted); }
.ds-title { font-size: 1.18rem; margin-top: 3px; letter-spacing: -.02em; }
.ds-search { margin-top: 13px; display: flex; align-items: center; gap: .5em; background: var(--canvas); border: 1px solid var(--hairline); border-radius: 100px; padding: .62em .9em; font-size: .8rem; color: var(--muted); }
.ds-search svg { width: 15px; height: 15px; }
.ds-chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.dchip { display: inline-flex; align-items: center; gap: .5em; font-size: .68rem; padding: .42em .45em .42em .8em;
  border-radius: 100px; background: var(--lilac-soft); color: var(--p-violet); border: 1px solid var(--lilac-line); }
.dchip i { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(111,87,207,.16); font-style: normal; font-size: .82em; line-height: 1; }
.ds-feature { margin-top: 13px; border-radius: 16px; padding: 15px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--lilac-soft), #fff); border: 1px solid var(--lilac-line); }
.ds-feature::after { content: ""; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px; background: radial-gradient(circle, rgba(160,130,220,.4), transparent 62%); }
.dsf-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .92rem; position: relative; z-index: 1; }
.dsf-top .dots { letter-spacing: 1px; color: var(--muted); }
.ds-feature p { color: var(--muted); font-size: .76rem; margin-top: 4px; position: relative; z-index: 1; }
.dsf-stats { display: flex; gap: 18px; margin-top: 14px; position: relative; z-index: 1; }
.dsf-stats div { display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-size: .56rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dsf-stats b { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.ds-list { margin-top: 14px; display: grid; gap: 6px; }
.ds-item { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: 13px; transition: background .2s; cursor: pointer; }
.ds-item:hover { background: var(--lilac-soft); }
.di-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.di-ic svg { width: 19px; height: 19px; }
.di-ic.c1, .di-ic.p-blue   { background: var(--p-blue-bg);   color: var(--p-blue); }
.di-ic.c2, .di-ic.p-mint   { background: var(--p-mint-bg);   color: var(--p-mint); }
.di-ic.c3, .di-ic.p-violet { background: var(--p-violet-bg); color: var(--p-violet); }
.di-ic.c4, .di-ic.p-pink   { background: var(--p-pink-bg);   color: var(--p-pink); }
.di-ic.p-purple { background: var(--p-purple-bg); color: var(--p-purple); }
.di-tx { min-width: 0; }
.di-tx b { display: block; font-size: .86rem; letter-spacing: -.01em; }
.di-tx span { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* main */
.dash-main { display: grid; grid-template-rows: auto 1fr; gap: clamp(10px, 1.2vw, 14px); min-width: 0; }

/* reproductor de video */
.dash-player { position: relative; overflow: hidden; border-radius: 20px; min-height: 232px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
  background: linear-gradient(150deg, #2a2440, #16161f 60%, #1a2b52); }
.dp-glow { position: absolute; inset: 0; background:
    radial-gradient(50% 60% at 78% 18%, rgba(150,115,215,.5), transparent 60%),
    radial-gradient(42% 52% at 18% 92%, rgba(45,95,205,.42), transparent 60%); }
.dash-player > * { position: relative; z-index: 1; }
.dp-top { display: flex; justify-content: space-between; align-items: flex-start; }
.dp-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.dp-sub { font-family: var(--mono); font-size: .64rem; color: rgba(255,255,255,.6); margin-top: 4px; letter-spacing: .04em; }
.dp-x { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 1rem; flex: none; }
.dp-bigplay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.94); color: #16161f;
  display: grid; place-items: center; box-shadow: 0 12px 32px rgba(0,0,0,.32); transition: transform .25s var(--ease); }
.dash-player:hover .dp-bigplay { transform: translate(-50%, -50%) scale(1.08); }
.dp-bigplay svg { width: 22px; height: 22px; margin-left: 3px; }
.dp-bar { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.3); backdrop-filter: blur(6px); border-radius: 100px; padding: 7px 13px; }
.dp-cic { color: rgba(255,255,255,.85); display: grid; place-items: center; flex: none; }
.dp-cic svg { width: 15px; height: 15px; }
.dp-time { font-family: var(--mono); font-size: .62rem; color: rgba(255,255,255,.75); flex: none; }
.dp-track { flex: 1; height: 4px; border-radius: 100px; background: rgba(255,255,255,.25); position: relative; }
.dp-track i { position: absolute; left: 0; top: 0; height: 100%; width: 23%; border-radius: 100px; background: #fff; }
.dp-track::after { content: ""; position: absolute; left: 23%; top: 50%; transform: translate(-50%, -50%); width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }

/* chat */
.dash-row { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(10px, 1.2vw, 14px); min-height: 0; }
.dchat { padding: 15px; display: flex; flex-direction: column; gap: 8px; }
.dchat-head { display: flex; justify-content: space-between; align-items: flex-start; font-weight: 700; font-size: .92rem; }
.dchat-sub { display: block; font-family: var(--mono); font-size: .62rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.dchat-exp { color: var(--muted); } .dchat-exp svg { width: 15px; height: 15px; }
.dmsg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.dmsg.out { align-self: flex-end; flex-direction: row-reverse; }
.dmsg p { font-size: .76rem; padding: .6em .85em; border-radius: 14px; line-height: 1.35; margin: 0; }
.dmsg.in p { background: var(--paper-soft); border: 1px solid var(--hairline-2); color: var(--ink-soft); border-bottom-left-radius: 5px; }
.dmsg.out p { background: var(--p-violet); color: #fff; border-bottom-right-radius: 5px; }
.dm-av { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .64rem; font-weight: 700; color: #fff; font-family: var(--display); }
.dm-av.av-a { background: linear-gradient(150deg, var(--p-pink), #b23f6b); }
.dm-react { display: inline-block; margin-top: 5px; font-size: .68rem; background: rgba(255,255,255,.22); padding: .1em .5em; border-radius: 100px; }
.dchat-input { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: 100px; padding: .5em .5em .5em 1em; font-size: .76rem; color: var(--muted); }
.dchat-send { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.dchat-send svg { width: 14px; height: 14px; }
.dchat-tools { display: flex; gap: 6px; }
.dchat-tools span { flex: 1; display: flex; align-items: center; justify-content: center; gap: .4em; font-size: .66rem; color: var(--ink-soft); background: var(--canvas); border: 1px solid var(--hairline); border-radius: 100px; padding: .55em; transition: .2s; }
.dchat-tools span:hover { background: var(--lilac-soft); border-color: var(--lilac-line); color: var(--p-violet); }
.dchat-tools svg { width: 14px; height: 14px; }

/* lecciones */
.dles { padding: 15px; display: flex; flex-direction: column; }
.dles-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .92rem; }
.dles-tabs { display: flex; gap: 4px; margin: 12px 0; background: var(--canvas); border-radius: 100px; padding: 4px; }
.dles-tabs span { flex: 1; text-align: center; font-size: .68rem; padding: .5em; border-radius: 100px; color: var(--muted); cursor: pointer; transition: .2s; }
.dles-tabs .on { background: var(--ink); color: #fff; }
.dles-item { display: flex; align-items: center; gap: 11px; padding: 9px 6px; border-radius: 12px; transition: background .2s; cursor: pointer; }
.dles-item:hover, .dles-item.on { background: var(--lilac-soft); }
.dli-play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.dli-play svg { width: 14px; height: 14px; }
.dli-play.p-blue   { background: var(--p-blue-bg);   color: var(--p-blue); }
.dli-play.p-pink   { background: var(--p-pink-bg);   color: var(--p-pink); }
.dli-play.p-violet { background: var(--p-violet-bg); color: var(--p-violet); }
.dli-play.p-mint   { background: var(--p-mint-bg);   color: var(--p-mint); }
.dli-tx { flex: 1; min-width: 0; }
.dli-tx b { display: block; font-size: .8rem; letter-spacing: -.01em; }
.dli-tx span { font-size: .68rem; color: var(--muted); }
.dli-t { font-family: var(--mono); font-size: .64rem; color: var(--muted); flex: none; }

/* ── Cursos ──────────────────────────────────────────────────────────────*/
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; flex-wrap: wrap; }
.sec-head-row .sec-head { margin: 0; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); margin-top: clamp(28px, 4vw, 44px); }

.course { --cc: var(--p-blue); --cw: var(--p-blue-bg);
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.course.c2 { --cc: var(--p-mint);   --cw: var(--p-mint-bg); }
.course.c3 { --cc: var(--p-violet); --cw: var(--p-violet-bg); }
.course.c4 { --cc: var(--p-pink);   --cw: var(--p-pink-bg); }
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: transparent; }
.course-thumb { position: relative; aspect-ratio: 16/9; display: grid; place-items: center;
  background: radial-gradient(120% 130% at 28% 18%, var(--cw), #ffffff 75%); }
.course-ico { width: 62px; height: 62px; border-radius: 18px; background: #fff; color: var(--cc);
  display: grid; place-items: center; box-shadow: var(--shadow-s); }
.course-ico svg { width: 30px; height: 30px; }
.course-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course:hover .course-img { transform: scale(1.06); }
.course-thumb.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,28,.28), transparent 45%); }
.course-cat { position: absolute; top: 12px; left: 12px; z-index: 1; font-family: var(--mono); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cc); background: rgba(255,255,255,.9);
  padding: .35em .7em; border-radius: 100px; box-shadow: var(--shadow-s); }
.course-play { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cc); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-m);
  opacity: 0; transform: scale(.85); transition: .3s var(--ease); }
.course-play svg { width: 15px; height: 15px; margin-left: 2px; }
.course:hover .course-play { opacity: 1; transform: none; }
.course-body { padding: clamp(18px, 2vw, 22px); display: flex; flex-direction: column; flex: 1; }
.course-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .85rem; }
.lvl { font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .42em .75em; border-radius: 100px; font-weight: 500; }
.lvl-básico { background: #eaf7d9; color: #5c8a16; }
.lvl-intermedio { background: var(--cobalt-wash); color: var(--cobalt); }
.lvl-avanzado { background: #ffe1e1; color: #c2410c; }
.rate { display: inline-flex; align-items: center; gap: .35em; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.rate svg { width: 14px; height: 14px; color: #f4a92b; }
.course-body h3 { font-size: 1.16rem; line-height: 1.2; letter-spacing: -.02em; }
.course-body > p { font-size: .9rem; margin-top: .55rem; color: var(--ink-soft); flex: 1; }
.course-meta { display: flex; gap: 1.1rem; margin-top: 1rem; font-size: .77rem; color: var(--muted); }
.course-meta span { display: inline-flex; align-items: center; gap: .4em; }
.course-meta svg { width: 15px; height: 15px; }
.course-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--hairline-2); }
.course-author { display: flex; align-items: center; gap: .5em; font-size: .82rem; color: var(--ink-soft); }
.ca-av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(150deg, var(--cc), var(--cobalt-ink));
  color: #fff; display: inline-grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .7rem; flex: none; }
.ca-av.lg { width: 46px; height: 46px; font-size: 1.15rem; border-radius: 14px; }
.course-price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }

/* franja academia */
.academy-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 18px); margin-top: clamp(24px, 3vw, 40px); }
.as-item { display: flex; gap: 13px; align-items: center; background: var(--paper); border: 1px solid var(--lilac-line); border-radius: var(--r); padding: 18px; }
.as-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--p-violet-bg); color: var(--p-violet); display: grid; place-items: center; flex: none; }
.as-ic svg { width: 22px; height: 22px; }
.as-item b { display: block; font-size: .96rem; }
.as-item span { font-size: .82rem; color: var(--muted); }

/* filtros catálogo */
.course-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.cf { font-size: .92rem; font-weight: 500; padding: .6em 1.15em; border-radius: 100px; border: 1px solid var(--hairline); color: var(--ink-soft); transition: .2s var(--ease); }
.cf:hover { border-color: var(--ink); color: var(--ink); }
.cf.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* hero de curso */
.course-hero { --cc: var(--p-blue); --cw: var(--p-blue-bg);
  position: relative; overflow: hidden; padding-top: clamp(34px, 5vw, 64px); padding-bottom: clamp(36px, 6vw, 64px);
  background: radial-gradient(60% 80% at 86% 8%, var(--cw), transparent 60%), var(--lilac-soft); }
.course-hero.c2 { --cc: var(--p-mint);   --cw: var(--p-mint-bg); }
.course-hero.c3 { --cc: var(--p-violet); --cw: var(--p-violet-bg); }
.course-hero.c4 { --cc: var(--p-pink);   --cw: var(--p-pink-bg); }
.course-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 52px); align-items: center; }
.ch-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.course-cat-pill { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--cc); color: #fff; padding: .45em .9em; border-radius: 100px; }
.ch-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.6rem; font-size: .92rem; color: var(--ink-soft); }
.ch-meta span { display: inline-flex; align-items: center; gap: .5em; }
.ch-meta svg { width: 18px; height: 18px; color: var(--cc); }
.ch-art { width: clamp(120px, 16vw, 180px); aspect-ratio: 1; border-radius: 30px; background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-l); border: 1px solid var(--hairline-2); }
.ch-art-ico { color: var(--cc); } .ch-art-ico svg { width: clamp(56px, 8vw, 80px); height: auto; }
.ch-art.ch-art-img { padding: 0; overflow: hidden; }
.ch-art.ch-art-img img { width: 100%; height: 100%; object-fit: cover; }

/* layout detalle */
.course-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: clamp(30px, 5vw, 60px); align-items: start; }
.course-block { margin-bottom: clamp(34px, 5vw, 52px); }
.course-block > h2 { margin-bottom: 1.1rem; }
.outcomes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.4rem; }
.outcomes li { display: flex; gap: .6em; align-items: flex-start; color: var(--ink-soft); font-size: .98rem; }
.outcomes svg { width: 20px; height: 20px; color: var(--cobalt); flex: none; margin-top: .12em; }
.curriculum { display: grid; gap: 10px; }
.cur-mod { border: 1px solid var(--hairline-2); border-radius: 14px; background: var(--paper); transition: border-color .2s; }
.cur-mod:hover { border-color: var(--hairline); }
.cur-mod-head { display: flex; align-items: center; gap: 1rem; padding: 16px 18px; }
.cur-n { font-family: var(--mono); color: var(--cobalt); font-weight: 500; font-size: .85rem; }
.cur-mod-head b { flex: 1; font-size: 1rem; }
.cur-count { font-family: var(--mono); font-size: .72rem; color: var(--muted); }

/* tarjeta de inscripción */
.course-aside { position: sticky; top: 96px; }
.enroll-card { background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-xl); padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow-m); }
.enroll-price { font-family: var(--display); font-weight: 800; font-size: 2.4rem; letter-spacing: -.03em; line-height: 1; margin-bottom: 1.3rem; }
.ep-unit { display: block; font-family: var(--body); font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: .4rem; letter-spacing: 0; }
.enroll-list { list-style: none; padding: 1.4rem 0 0; margin: 1.4rem 0; display: grid; gap: .7rem; border-top: 1px solid var(--hairline); }
.enroll-list li { display: flex; gap: .6em; align-items: center; font-size: .92rem; color: var(--ink-soft); }
.enroll-list svg { width: 18px; height: 18px; color: var(--spark-deep); flex: none; }
.enroll-author { display: flex; gap: .8rem; align-items: center; border-top: 1px solid var(--hairline); padding-top: 1.3rem; }
.ea-k { font-size: .68rem; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: .15rem; }

/* ── Temario con lecciones ───────────────────────────────────────────────*/
.cur-lessons { border-top: 1px solid var(--hairline-2); padding: 6px; display: grid; }
.cur-ls { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; font-size: .92rem; color: var(--ink-soft); }
.cur-ls.free:hover { background: var(--lilac-soft); color: var(--ink); }
.cur-ls-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--canvas-2); color: var(--muted); display: grid; place-items: center; flex: none; }
.cur-ls.free .cur-ls-ic { background: var(--p-violet-bg); color: var(--p-violet); }
.cur-ls-ic svg { width: 12px; height: 12px; }
.cur-ls-t { flex: 1; min-width: 0; }
.pill-free { font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; background: var(--p-mint-bg); color: var(--p-mint); padding: .35em .7em; border-radius: 100px; flex: none; }
.cur-ls-d { font-family: var(--mono); font-size: .68rem; color: var(--muted); flex: none; }

/* ── Aula (classroom) ────────────────────────────────────────────────────*/
.aula-wrap { background: linear-gradient(180deg, var(--lilac-soft), var(--canvas) 420px); padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 8vw, 96px); }
.aula-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(14px, 2vw, 22px); }
.aula-count { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.aula { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(14px, 1.8vw, 22px); align-items: start; }
.aula-main { min-width: 0; }
.aula-player { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: #16161f; box-shadow: var(--shadow-l); }
.aula-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aula-lock { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .6rem; padding: 24px;
  color: #fff; background:
    radial-gradient(50% 60% at 78% 18%, rgba(150,115,215,.4), transparent 60%),
    radial-gradient(42% 52% at 18% 92%, rgba(45,95,205,.35), transparent 60%), #16161f; }
.aula-lock .al-ic { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; margin: 0 auto .4rem; }
.aula-lock .al-ic svg { width: 26px; height: 26px; }
.aula-lock h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); color: #fff; }
.aula-lock p { color: rgba(255,255,255,.7); font-size: .95rem; max-width: 44ch; margin-inline: auto; }
.aula-lock .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.aula-lock .btn-ghost:hover { border-color: #fff; }
.aula-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; margin-top: clamp(16px, 2.4vw, 26px); }
.aula-mod { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--p-violet); }
.aula-info h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-top: .4rem; letter-spacing: -.02em; }
.aula-info p { margin-top: .5rem; max-width: 60ch; }
.aula-instructor { display: flex; gap: .8rem; align-items: center; flex: none; }
.aula-list { position: sticky; top: 96px; display: flex; flex-direction: column; max-height: calc(100vh - 120px); }
.aula-scroll { overflow-y: auto; padding: 8px 10px; }
.aula-modhead { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 8px 6px; }
.aula-cta { padding: 12px 14px 14px; border-top: 1px solid var(--hairline-2); }

/* ── Admin ───────────────────────────────────────────────────────────────*/
.adm-body { background: var(--canvas); }
.adm-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.adm-side { background: var(--ink); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.adm-nav { display: grid; gap: 4px; }
.adm-nav a { display: flex; align-items: center; gap: .7em; padding: .7em .9em; border-radius: 11px; color: rgba(255,255,255,.65); font-size: .94rem; font-weight: 500; transition: .2s; }
.adm-nav a svg { width: 18px; height: 18px; }
.adm-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.adm-nav a.on { background: var(--cobalt); color: #fff; }
.adm-side-foot { margin-top: auto; display: grid; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.adm-side-foot a { color: rgba(255,255,255,.55); font-size: .86rem; }
.adm-side-foot a:hover { color: #fff; }
.adm-main { padding: clamp(20px, 3vw, 36px); min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(16px, 2.4vw, 26px); }
.adm-head h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.02em; }
.adm-head p { color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: clamp(16px, 2.4vw, 26px); }
.adm-stat { background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r); padding: 18px; }
.adm-stat b { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; line-height: 1; display: block; }
.adm-stat span { font-size: .8rem; color: var(--muted); margin-top: .3rem; display: block; }
.adm-stat.hot b { color: var(--cobalt); }
.adm-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.adm-card { background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-lg); padding: clamp(16px, 2vw, 24px); margin-bottom: 14px; }
.adm-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 12px; flex-wrap: wrap; }
.adm-card-head h2 { font-size: 1.15rem; letter-spacing: -.01em; }
.adm-card-head .mut { flex-basis: 100%; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.adm-table th { text-align: left; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
.adm-table td { padding: 12px 10px; border-bottom: 1px solid var(--hairline-2); vertical-align: top; }
.adm-table tr:last-child td { border-bottom: 0; }
.row-done { opacity: .55; }
.mut { color: var(--muted); font-size: .84rem; }
.pill { display: inline-block; font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; padding: .35em .7em; border-radius: 100px; background: var(--canvas-2); color: var(--muted); }
.pill.ok { background: var(--p-mint-bg); color: var(--p-mint); }
.pill.hot { background: var(--p-pink-bg); color: var(--p-pink); }
.pill.feat { background: var(--p-violet-bg); color: var(--p-violet); }
.btn-mini { display: inline-block; font-size: .8rem; font-weight: 600; padding: .45em .95em; border-radius: 100px; background: var(--ink); color: #fff; border: 1px solid var(--ink); cursor: pointer; white-space: nowrap; }
.btn-mini:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn-mini.ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-mini.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-mini.danger { background: transparent; color: #c2410c; border-color: #f3cdb8; }
.btn-mini.danger:hover { background: #fff1ea; border-color: #c2410c; }
.tr-actions { display: flex; gap: 6px; }
.adm-msglist { list-style: none; padding: 0; display: grid; gap: 12px; }
.adm-msglist li { border-bottom: 1px solid var(--hairline-2); padding-bottom: 10px; font-size: .9rem; }
.adm-msglist li:last-child { border-bottom: 0; }
.adm-msglist p { color: var(--muted); font-size: .84rem; margin-top: .2rem; }
.adm-ok { background: var(--p-mint-bg); color: var(--p-mint); border: 1px solid color-mix(in srgb, var(--p-mint) 30%, transparent); border-radius: var(--r-sm); padding: .8em 1.1em; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.adm-error { background: var(--p-pink-bg); color: #b23b60; border-radius: var(--r-sm); padding: .8em 1.1em; font-size: .88rem; margin-bottom: 1.1rem; }
.adm-form .fr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.adm-form .field { margin-bottom: .9rem; }
.adm-form label, .adm-lesson label { font-size: .78rem; font-weight: 600; display: block; margin-bottom: .35rem; }
.adm-checks { display: flex; gap: 1.4rem; margin: .4rem 0 1.1rem; font-size: .9rem; }
.adm-checks input, .al-check input { accent-color: var(--cobalt); margin-right: .35em; }
.adm-lesson { border: 1px solid var(--hairline-2); border-radius: var(--r); padding: 14px; margin-bottom: 10px; background: var(--paper-soft); }
.adm-lesson.new { border-style: dashed; background: transparent; }
.al-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.al-grid .field { margin: 0; }
.al-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 10px; flex-wrap: wrap; }
.al-check { font-size: .85rem; font-weight: 600; }
.al-actions { display: flex; gap: 6px; }
.prov { font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; background: var(--p-blue-bg); color: var(--p-blue); padding: .25em .6em; border-radius: 100px; margin-left: .5em; }
.adm-lesson code { background: var(--canvas-2); padding: .1em .4em; border-radius: 5px; font-size: .9em; }
.adm-login-body { min-height: 100vh; display: grid; place-items: center; background:
  radial-gradient(50% 60% at 80% 10%, rgba(160,130,220,.25), transparent 60%),
  radial-gradient(45% 55% at 10% 95%, rgba(120,150,230,.18), transparent 60%), var(--canvas); padding: 20px; }
.adm-login-card { width: 100%; max-width: 400px; background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-xl); box-shadow: var(--shadow-l); padding: clamp(26px, 4vw, 40px); text-align: center; }
.adm-login-card h1 { font-size: 1.35rem; margin-top: 1.2rem; letter-spacing: -.02em; }
.adm-login-card > p { color: var(--muted); font-size: .9rem; margin: .4rem 0 1.4rem; }
.adm-login-card form { text-align: left; }
.adm-inline { display: flex; gap: 8px; align-items: center; }
.adm-inline .input { width: 240px; }
.adm-form .fr.fr-3 { grid-template-columns: repeat(3, 1fr); }
.adm-form-actions { display: flex; gap: 10px; align-items: center; margin-top: .4rem; }
.adm-delete { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--hairline); }
.img-field { display: flex; gap: 16px; align-items: flex-start; }
.img-preview { width: 140px; height: 90px; border-radius: 12px; overflow: hidden; flex: none; background: var(--canvas-2); border: 1px solid var(--hairline); display: grid; place-items: center; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview span { font-size: .72rem; color: var(--muted); }
.img-controls { flex: 1; display: grid; gap: 8px; }
.img-controls input[type=file] { padding: .5em; }
.img-remove { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .4em; }
.img-remove input { accent-color: var(--cobalt); }

/* ── FLOW · micro-interacciones y vida ───────────────────────────────────*/

/* barra de progreso de lectura */
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--cobalt), var(--spark)); z-index: 200;
  border-radius: 0 100px 100px 0; transition: width .1s linear; }

/* scrollbar fino */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 100px; border: 3px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: var(--cobalt); }

/* deriva ambiental muy sutil en el hero */
.hero::before { animation: heroDrift 16s ease-in-out infinite alternate; }
@keyframes heroDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-2.5%, 2%, 0) scale(1.06); }
}

/* brillo que barre los botones primarios */
.btn-primary, .btn-spark, .btn-dark { position: relative; overflow: hidden; }
.btn-primary::before, .btn-spark::before, .btn-dark::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .55s var(--ease); pointer-events: none;
}
.btn-primary:hover::before, .btn-spark:hover::before, .btn-dark:hover::before { left: 130%; }

/* nav activa como pill */
.nav-links a.active { background: var(--cobalt-wash); }
.brand .logo { transition: transform .5s var(--ease); }
.brand:hover .logo { transform: rotate(-12deg) scale(1.06); }

/* marquee infinito (franja de confianza) */
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 3.2rem; width: max-content; padding-block: 20px;
  animation: marq 28s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: .6em; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--ink); letter-spacing: -.02em; }
.marquee .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); flex: none; }
.marquee span:nth-child(4n) .dot { background: var(--spark-deep); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--canvas-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--canvas-2), transparent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* tarjetas de curso: zoom del thumb + borde gradiente al hover */
.course { position: relative; }
.course::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2;
  background: linear-gradient(140deg, var(--cc), transparent 45%, transparent 60%, var(--cc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s; pointer-events: none; }
.course:hover::before { opacity: .55; }
.course-thumb { overflow: hidden; }
.course-thumb .course-ico { transition: transform .45s var(--ease), box-shadow .45s; }
.course:hover .course-thumb .course-ico { transform: scale(1.12) rotate(-4deg); box-shadow: var(--shadow-m); }
.course .textlink svg, .post .textlink svg { transition: transform .3s var(--ease); }
.course:hover .textlink svg, .post:hover .textlink svg { transform: translateX(4px); }

/* servicios: el ícono gira suave al hover */
.svc-ico svg, .pillar .badge svg, .as-ic svg { transition: transform .4s var(--ease); }
.svc:hover .svc-ico svg { transform: rotate(-8deg) scale(1.1); }
.pillar:hover .badge svg, .as-item:hover .as-ic svg { transform: scale(1.15); }

/* ecualizador en la lección que se reproduce (aula) */
.eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; flex: none; }
.eq i { width: 3px; border-radius: 100px; background: var(--p-violet); animation: eqb 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 100%; animation-delay: .25s; }
.eq i:nth-child(3) { height: 45%; animation-delay: .5s; }
@keyframes eqb { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

/* wordmark gigante del footer */
.footer-word { font-family: var(--display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(4rem, 15vw, 15rem); line-height: .8; text-align: center; user-select: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.14);
  margin-top: clamp(20px, 4vw, 40px); transition: -webkit-text-stroke-color .4s; }
.footer-word .ia { color: transparent; -webkit-text-stroke-color: rgba(201,242,74,.35); }
.site-footer:hover .footer-word { -webkit-text-stroke-color: rgba(255,255,255,.28); }

/* dashboard: play flotante respira al pasar el mouse en el stage */
.dash-stage:hover .dp-bigplay { box-shadow: 0 12px 32px rgba(0,0,0,.32), 0 0 0 10px rgba(255,255,255,.08); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .eq i, .hero::before { animation: none !important; }
}

/* ── Responsive ──────────────────────────────────────────────────────────*/
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-top: 1rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .method, .pillars, .post-grid { grid-template-columns: 1fr 1fr; }
  .featured { grid-column: span 2; grid-template-columns: 1fr; }
  .step .conn { display: none; }
  .dash { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .course-layout { grid-template-columns: 1fr; }
  .course-aside { position: static; max-width: 460px; }
  .course-hero-grid { grid-template-columns: 1fr; }
  .academy-strip { grid-template-columns: 1fr; }
  .aula { grid-template-columns: 1fr; }
  .aula-list { position: static; max-height: none; }
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
  .adm-nav { display: flex; gap: 4px; }
  .adm-nav a span { display: none; }
  .adm-side-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; gap: 12px; }
  .adm-stats, .adm-cols { grid-template-columns: 1fr 1fr; }
  .adm-form .fr, .al-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 1rem var(--gutter) 2rem;
    transform: translateY(-120%); transition: transform .4s var(--ease); z-index: 90;
  }
  body.menu-open .nav-links { display: flex; transform: none; }
  .nav-links a { padding: .9em 0; font-size: 1.1rem; border-bottom: 1px solid var(--hairline-2); }
  .nav-links a.active::after { display: none; }
  .svc-grid, .method, .pillars, .post-grid, .founders, .form-row { grid-template-columns: 1fr; }
  .dash-row { grid-template-columns: 1fr; }
  .dash-side { flex-direction: column; }
  .dash-rail { flex-direction: row; }
  .dr-ic.av { margin-top: 0; margin-left: auto; }
  .course-grid { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  .adm-stats, .adm-cols, .adm-form .fr, .al-grid { grid-template-columns: 1fr; }
  .featured { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 440px) {
  .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .founder { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
