/* ============================================================================
   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; }
/* Logo original de la marca (cabecera) */
.brand-logo { height: 38px; width: auto; display: block; flex: none;
  transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
/* Solo la marca isométrica, para fondos oscuros (pie) */
.brand-mark { height: 32px; width: auto; display: block; flex: none;
  transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a { white-space: nowrap;
  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; }

/* ── Programas sectoriales ───────────────────────────────────────────────*/
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 28px); margin-top: clamp(34px, 5vw, 56px); }
.sector {
  --sc: var(--p-violet); --sw: var(--p-violet-bg);
  position: relative; background: var(--paper); border: 1px solid var(--hairline-2);
  border-radius: var(--r-xl); padding: clamp(24px, 2.6vw, 38px); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.sector-salud { --sc: var(--p-mint); --sw: var(--p-mint-bg); }
.sector::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(130% 100% at 100% 0%, var(--sw), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: transparent; }
.sector:hover::after { opacity: .5; }
.sector-head { display: flex; align-items: center; gap: 1rem; position: relative; z-index: 1; }
.sector-ico { width: 54px; height: 54px; border-radius: 16px; background: var(--sw); color: var(--sc); display: grid; place-items: center; flex: none; }
.sector-ico svg { width: 27px; height: 27px; }
.sector-name { font-size: clamp(1.35rem, 2.4vw, 1.55rem); letter-spacing: -.02em; line-height: 1; }
.sector-aud { display: block; margin-top: .4rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sector-intro { margin-top: 1.1rem; color: var(--ink-soft); font-size: .98rem; position: relative; z-index: 1; }
.sector-courses { margin-top: 1.4rem; display: grid; gap: 14px; position: relative; z-index: 1; }
.sprog {
  position: relative; background: var(--paper-soft); border: 1px solid var(--hairline-2);
  border-radius: var(--r); padding: clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px) clamp(22px, 2.4vw, 28px);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.sprog::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--sc); }
.sprog:hover { background: #fff; border-color: var(--sw); }
.sprog-aud { display: inline-flex; align-items: center; gap: .45em; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--sc); }
.sprog-aud svg { width: 13px; height: 13px; }
.sprog-title { margin-top: .55rem; font-size: 1.1rem; line-height: 1.28; }
.sprog-desc { margin-top: .55rem; font-size: .92rem; color: var(--muted); }
.sprog-foot { margin-top: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; flex-wrap: wrap; }
.sprog-fmt { font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); background: var(--sw); padding: .42em .75em; border-radius: 100px; }
.sprog-cta { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; font-size: .84rem; color: var(--sc); white-space: nowrap; }
.sprog-cta svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.sprog:hover .sprog-cta svg { transform: translateX(4px); }
.sectors-note { text-align: center; margin-top: clamp(28px, 3.5vw, 42px); color: var(--muted); font-size: 1rem; }

/* ── Paquetes corporativos ───────────────────────────────────────────────*/
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2.2vw,26px);
  margin-top: clamp(34px,5vw,56px); align-items: stretch; }
.pack { position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--hairline-2); border-radius: var(--r-lg); padding: clamp(24px,2.8vw,36px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.pack:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: transparent; }
.pack.is-featured { background: var(--ink); color: var(--canvas); border-color: transparent; box-shadow: var(--shadow-m); }
.pack-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--spark); color: var(--ink); padding: .5em 1em; border-radius: 100px; white-space: nowrap; }
.pack-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pack-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--cobalt-wash); color: var(--cobalt);
  display: grid; place-items: center; flex: none; }
.pack-ic svg { width: 23px; height: 23px; }
.pack.is-featured .pack-ic { background: rgba(255,255,255,.12); color: var(--spark); }
.pack-period { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pack.is-featured .pack-period { color: rgba(255,255,255,.6); }
.pack-name { margin-top: 1.4rem; font-size: clamp(1.5rem,2.6vw,1.85rem); letter-spacing: -.025em; line-height: 1; }
.pack-tag { margin-top: .45rem; font-family: var(--mono); font-size: .72rem; color: var(--cobalt); }
.pack-text { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.pack.is-featured .pack-text { color: rgba(255,255,255,.7); }
.pack-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .65rem; }
.pack-list li { display: flex; gap: .6em; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.pack-list svg { width: 15px; height: 15px; flex: none; margin-top: .18em; color: var(--p-mint); }
.pack.is-featured .pack-list li { color: rgba(255,255,255,.86); }
.pack.is-featured .pack-list svg { color: var(--spark); }
.pack-cta { margin-top: auto; padding-top: 0; width: 100%; justify-content: center;
  margin-block-start: clamp(22px,2.6vw,30px); }
.pack.is-featured .pack-cta.btn-primary { background: var(--spark); color: var(--ink); }

/* ── Equipo (tarjetas) ───────────────────────────────────────────────────*/
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); justify-content: center; gap: clamp(12px,1.8vw,20px); margin-top: clamp(26px,4vw,44px); }
.tcard { background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(20px,2.4vw,28px) clamp(14px,1.8vw,20px);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent; }
.tcard-photo { position: relative; display: block; width: clamp(92px,9vw,116px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; background: var(--canvas-2); flex: none;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--hairline); }
.tcard-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  transition: transform .5s var(--ease); }
.tcard:hover .tcard-photo img { transform: scale(1.06); }
.tcard-kind { display: inline-block; margin-top: .8rem; font-family: var(--mono); font-size: .56rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--p-violet);
  background: var(--p-violet-bg); padding: .45em .9em; border-radius: 100px; }
.tcard-body { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; margin-top: .75rem; }
.tcard-body h3 { font-size: 1.04rem; line-height: 1.25; letter-spacing: -.015em; }
.tcard-body h3 a { color: inherit; }
.tcard-body h3 a:hover { color: var(--cobalt); }
.tcard-role { margin-top: .35rem; color: var(--cobalt); font-weight: 600; font-size: .9rem; }
.tcard-courses { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .45rem; width: 100%; text-align: left; }
.tcard-courses a { display: flex; gap: .55em; align-items: flex-start; font-size: .84rem; color: var(--ink-soft); line-height: 1.35; }
.tcard-courses a:hover { color: var(--cobalt); }
.tcard-courses svg { width: 14px; height: 14px; flex: none; margin-top: .12em; color: var(--p-violet); }
.tcard-link { margin-top: auto; padding-top: 1rem; font-size: .85rem; }

/* ── Perfil de una persona ───────────────────────────────────────────────*/
.tm-hero { padding-bottom: clamp(24px,4vw,44px); }
.tm-back { font-size: .88rem; }
.tm-top { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: clamp(26px,4vw,58px);
  align-items: center; margin-top: clamp(20px,3vw,32px); }
.tm-photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow-l); background: var(--canvas-2); }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.tm-name { font-size: clamp(2.1rem,4.6vw,3.5rem); margin-top: .7rem; }
.tm-role { margin-top: .5rem; font-size: 1.08rem; font-weight: 600; color: var(--cobalt); }
.tm-intro .lead { margin-top: 1rem; }
.tm-chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chips li { font-size: .82rem; color: var(--ink-soft); background: var(--paper);
  border: 1px solid var(--hairline-2); border-radius: 100px; padding: .45em .95em; }

.tm-body { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: clamp(26px,4vw,58px); align-items: start; }
.tm-bio .lead { margin-top: 1rem; }
.tm-bio .eyebrow { margin-bottom: .4rem; display: inline-flex; }
.tm-creds { background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-lg);
  padding: clamp(22px,2.4vw,30px); box-shadow: var(--shadow-s); }
.tm-creds ul { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .85rem; }
.tm-creds li { display: flex; gap: .7em; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.tm-cred-ic { width: 20px; height: 20px; flex: none; margin-top: .1em; border-radius: 6px;
  background: var(--p-mint-bg); color: var(--p-mint); display: grid; place-items: center; }
.tm-cred-ic svg { width: 12px; height: 12px; }

.tm-others { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px,2vw,24px);
  margin-top: clamp(30px,4vw,48px); max-width: 720px; margin-inline: auto; }
.tm-other { display: flex; align-items: center; gap: 1.1rem; background: var(--paper);
  border: 1px solid var(--hairline-2); border-radius: var(--r-lg); padding: 14px 20px 14px 14px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.tm-other:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent; }
.tm-other img { width: 66px; height: 82px; flex: none; border-radius: 14px; object-fit: cover; object-position: center 20%; }
.tm-other-txt h3 { font-size: 1.02rem; line-height: 1.25; }
.tm-other-txt span { display: block; margin-top: .25rem; font-size: .84rem; color: var(--muted); }
.tm-other-kind { display: block; margin-top: .2rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }

/* ── Cotizador ───────────────────────────────────────────────────────────*/
.qt-hero { padding-bottom: clamp(18px, 3vw, 30px); }
.qt-title { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
.qt-badges { list-style: none; padding: 0; margin: clamp(22px,3vw,32px) 0 0; display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.qt-badges li { display: inline-flex; align-items: center; gap: .5em; font-size: .86rem; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--hairline-2); border-radius: 100px; padding: .5em 1em; }
.qt-badges svg { width: 14px; height: 14px; color: var(--p-mint); }

.qt { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.qt-main { min-width: 0; }

/* Migas de pasos */
.qt-steps { list-style: none; padding: 0; margin: 0 0 clamp(22px,3vw,32px); display: flex; gap: 8px; }
.qt-steps li { flex: 1; display: flex; align-items: center; gap: .6em; padding: .75em 1em; cursor: pointer;
  background: var(--paper); border: 1px solid var(--hairline-2); border-radius: 100px; transition: background .3s, border-color .3s, color .3s; }
.qt-steps .n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--hairline-2); color: var(--muted); font-family: var(--mono); font-size: .74rem; transition: background .3s, color .3s; }
.qt-steps .t { font-size: .88rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.qt-steps li.on { border-color: var(--cobalt); background: var(--cobalt-wash); }
.qt-steps li.on .n { background: var(--cobalt); color: #fff; }
.qt-steps li.on .t { color: var(--cobalt-ink); }
.qt-steps li.done .n { background: var(--p-mint); color: #fff; }
.qt-steps li.done .t { color: var(--ink-soft); }

/* Pasos */
.qt-step { display: none; border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.qt-step.on { display: block; }
.qt-legend { display: block; padding: 0; margin-bottom: clamp(18px,2.4vw,26px); }
.qt-legend p { margin-top: .5rem; color: var(--muted); font-size: .96rem; }

.qt-alert { background: #fff1f1; border: 1px solid #f3c9c9; color: #9c2b2b; border-radius: var(--r);
  padding: .9em 1.1em; font-size: .92rem; margin-bottom: 1.4rem; }

/* La lista de programas tiene scroll propio: así los tres pasos miden parecido
   y la página no se encoge al cambiar de paso (evita saltos de scroll). */
.qt-scroll { max-height: min(58vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  padding-right: 6px; margin-right: -6px; }
.qt-scroll::-webkit-scrollbar { width: 8px; }
.qt-scroll::-webkit-scrollbar-track { background: transparent; }
.qt-scroll::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 100px; }
.qt-scroll::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.qt-group { margin-bottom: clamp(20px,2.6vw,30px); }
.qt-group:last-child { margin-bottom: 4px; }
.qt-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.qt-group-head h3 { font-size: 1.02rem; letter-spacing: -.01em; }
.qt-group-head span { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qt-opts { display: grid; gap: 10px; }

/* Casilla de programa */
.qt-opt { display: block; cursor: pointer; }
.qt-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.qt-opt-box { display: flex; align-items: flex-start; gap: .85rem; padding: clamp(14px,1.6vw,18px);
  background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r);
  transition: border-color .25s, background .25s, box-shadow .25s; }
.qt-opt:hover .qt-opt-box { border-color: var(--cobalt); background: #fff; }
.qt-opt-check { width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px;
  border: 1.5px solid var(--hairline); background: #fff; display: grid; place-items: center;
  color: transparent; transition: background .2s, border-color .2s, color .2s; }
.qt-opt-check svg { width: 13px; height: 13px; }
.qt-opt input:checked + .qt-opt-box { border-color: var(--cobalt); background: var(--cobalt-wash); box-shadow: inset 0 0 0 1px var(--cobalt); }
.qt-opt input:checked + .qt-opt-box .qt-opt-check { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.qt-opt input:focus-visible + .qt-opt-box { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.qt-opt-txt { display: grid; gap: .18rem; min-width: 0; }
.qt-opt-txt b { font-size: .96rem; font-weight: 600; line-height: 1.35; }
.qt-opt-txt em { font-style: normal; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Campos */
.qt-field { margin-bottom: clamp(18px,2.2vw,24px); }
.qt-field > label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: .55rem; }
.qt-field > label i { color: var(--cobalt); font-style: normal; }
.qt-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px,1.6vw,18px); }
.qt-err { margin-top: .45rem; font-size: .84rem; color: #c2410c; }
.input.err, .textarea.err { border-color: #e0a0a0; background: #fffafa; }
.qt-legal { font-size: .84rem; color: var(--muted); margin-top: -.4rem; }

/* Stepper numérico */
.qt-stepper { display: inline-flex; align-items: center; background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 100px; overflow: hidden; transition: border-color .25s; }
.qt-stepper.err { border-color: #e0a0a0; }
.qt-stepper button { width: 46px; height: 48px; border: 0; background: transparent; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--ink-soft); transition: background .2s, color .2s; }
.qt-stepper button:hover { background: var(--cobalt-wash); color: var(--cobalt); }
.qt-stepper input { width: 82px; height: 48px; border: 0; background: transparent; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); -moz-appearance: textfield; }
.qt-stepper input::-webkit-outer-spin-button, .qt-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qt-stepper input:focus { outline: none; }

/* Modalidad */
.qt-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qt-mode { display: block; cursor: pointer; }
.qt-mode input { position: absolute; opacity: 0; width: 0; height: 0; }
.qt-mode-box { display: grid; gap: .3rem; height: 100%; padding: clamp(15px,1.7vw,19px);
  background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r);
  transition: border-color .25s, background .25s, box-shadow .25s; }
.qt-mode:hover .qt-mode-box { border-color: var(--cobalt); background: #fff; }
.qt-mode-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--cobalt-wash); color: var(--cobalt);
  display: grid; place-items: center; margin-bottom: .35rem; transition: background .25s, color .25s; }
.qt-mode-ic svg { width: 19px; height: 19px; }
.qt-mode-box b { font-size: .98rem; }
.qt-mode-box em { font-style: normal; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.qt-mode input:checked + .qt-mode-box { border-color: var(--cobalt); background: var(--cobalt-wash); box-shadow: inset 0 0 0 1px var(--cobalt); }
.qt-mode input:checked + .qt-mode-box .qt-mode-ic { background: var(--cobalt); color: #fff; }
.qt-mode input:focus-visible + .qt-mode-box { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* Paquete corporativo (opcional) */
.qt-field > label .opt { font-weight: 400; color: var(--muted); font-size: .86rem; }
.qt-packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qt-pack { display: block; cursor: pointer; }
.qt-pack input { position: absolute; opacity: 0; width: 0; height: 0; }
.qt-pack-box { display: grid; gap: .15rem; text-align: center; padding: .8em .6em;
  background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-sm);
  transition: border-color .25s, background .25s, box-shadow .25s; }
.qt-pack:hover .qt-pack-box { border-color: var(--cobalt); background: #fff; }
.qt-pack-box b { font-size: .9rem; }
.qt-pack-box em { font-style: normal; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.qt-pack input:checked + .qt-pack-box { border-color: var(--cobalt); background: var(--cobalt-wash);
  box-shadow: inset 0 0 0 1px var(--cobalt); }
.qt-pack input:focus-visible + .qt-pack-box { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* Navegación de pasos */
.qt-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(22px,3vw,32px); padding-top: clamp(18px,2.4vw,26px); border-top: 1px solid var(--hairline-2); }

/* Resumen lateral */
.qt-aside { position: sticky; top: 96px; }
.qt-card { background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-lg);
  padding: clamp(22px,2.4vw,30px); box-shadow: var(--shadow-s); }
.qt-card-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.qt-card h3 { margin-top: .4rem; font-size: 1.3rem; }
.qt-sum { margin-top: 1.3rem; display: grid; gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline-2); border-radius: var(--r); overflow: hidden; }
.qt-sum-row { background: var(--paper-soft); padding: .85em 1em; display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.qt-sum-row span { font-size: .84rem; color: var(--muted); }
.qt-sum-row b { font-size: .92rem; text-align: right; }
.qt-sum-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.qt-sum-list li { position: relative; padding-left: 1.1em; font-size: .86rem; color: var(--ink-soft); line-height: 1.4; }
.qt-sum-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--cobalt); }
.qt-sum-list li.more { color: var(--muted); font-style: italic; }
.qt-sum-list li.more::before { background: var(--muted); }
.qt-card-foot { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline-2); }
.qt-card-foot p { font-size: .84rem; color: var(--muted); }
.qt-card-foot .textlink { margin-top: .8rem; font-size: .86rem; }

/* Estado enviado */
.qt-done { max-width: 640px; margin-inline: auto; text-align: center; background: var(--paper);
  border: 1px solid var(--hairline-2); border-radius: var(--r-xl); padding: clamp(34px,5vw,60px); box-shadow: var(--shadow-m); }
.qt-done-ic { width: 62px; height: 62px; margin: 0 auto 1.4rem; border-radius: 50%; background: var(--p-mint-bg);
  color: var(--p-mint); display: grid; place-items: center; }
.qt-done-ic svg { width: 30px; height: 30px; }
.qt-done .lead { margin-top: 1rem; }
.qt-done .hero-actions { justify-content: center; margin-top: 1.8rem; }

/* ── 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; }
/* Foto real de la instructora dentro del avatar.
   El contenedor es un grid con place-items:center (para la inicial), así que la
   imagen debe ocupar explícitamente la celda o no se estira. */
.ca-av { overflow: hidden; }
.ca-av img { grid-area: 1 / 1; align-self: stretch; justify-self: stretch;
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
/* Autor enlazado a su perfil */
.course-author.is-link, a.is-link { color: var(--ink-soft); transition: color .25s; }
.course-author.is-link:hover, a.is-link:hover { color: var(--cobalt); }
.is-link .ca-av { box-shadow: 0 0 0 0 rgba(31,67,255,0); transition: box-shadow .25s, transform .25s var(--ease); }
.is-link:hover .ca-av { box-shadow: 0 0 0 2px var(--cobalt); transform: scale(1.06); }
.ch-meta a.is-link { display: inline-flex; align-items: center; gap: .5em; }
.course-go { display: inline-flex; align-items: center; gap: .35em; font-size: .84rem; font-weight: 600;
  color: var(--cc); white-space: nowrap; transition: color .25s; }
.course-go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.course:hover .course-go svg { transform: translateX(3px); }

/* 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-head { margin-bottom: 1.3rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--hairline-2); }
.enroll-head p { margin-top: .7rem; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.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; }
.enroll-author.is-link b, .aula-instructor.is-link b { color: var(--ink); transition: color .25s; }
.enroll-author.is-link:hover b, .aula-instructor.is-link:hover b { color: var(--cobalt); }
.enroll-author.is-link b, .aula-instructor.is-link b { display: block; }
.ea-more { display: inline-flex; align-items: center; gap: .3em; margin-top: .25rem; font-size: .78rem;
  font-weight: 600; color: var(--cobalt); }
.ea-more svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.enroll-author.is-link:hover .ea-more svg { transform: translateX(3px); }

/* ── 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 · dirección A «Soft Studio» con menú claro ────────────────────*/
:root {
  --adm-sh-canvas: 0 2px 0 rgba(255,255,255,.55) inset,
                   0 46px 90px -34px rgba(40,24,78,.55),
                   0 12px 30px -14px rgba(40,24,78,.24);
  --adm-sh-card:   0 1px 2px rgba(30,20,58,.04), 0 14px 30px -18px rgba(30,20,58,.28);
  --adm-sh-card-2: 0 1px 2px rgba(30,20,58,.05), 0 22px 46px -22px rgba(30,20,58,.34);
}

.adm-body {
  background:
    radial-gradient(1100px 620px at 16% -8%, #d9cdef 0%, rgba(217,205,239,0) 62%),
    radial-gradient(900px 560px at 96% 4%, #d3c6ea 0%, rgba(211,198,234,0) 58%),
    radial-gradient(1200px 800px at 50% 118%, #b5a4da 0%, rgba(181,164,218,0) 60%),
    var(--lilac);
  background-attachment: fixed;
  padding: clamp(16px, 3vw, 48px) clamp(12px, 2.4vw, 34px) clamp(28px, 5vw, 76px);
  min-height: 100vh;
}

/* El lienzo flotante */
.adm-shell {
  display: flex; align-items: stretch;
  max-width: 1352px; margin: 0 auto; min-height: calc(100vh - 96px);
  background: var(--paper-soft);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: clamp(20px, 2.6vw, 36px);
  box-shadow: var(--adm-sh-canvas);
  overflow: hidden;
}

/* ── Barra lateral clara ── */
.adm-side {
  width: 248px; flex: 0 0 248px;
  background: var(--paper); color: var(--ink);
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 0;
  padding: 24px 16px 18px;
}
.adm-side .brand { display: block; padding: 2px 4px; }
.adm-side .brand img { display: block; width: 152px; height: auto; }
.adm-side-rule { height: 1px; background: var(--hairline-2); margin: 19px 4px 15px; }

.adm-nav-group {
  font-family: var(--mono); font-size: .56rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
  padding: 0 13px; margin: 0 0 7px;
}
.adm-nav + .adm-nav-group { margin-top: 20px; }
.adm-nav { display: flex; flex-direction: column; gap: 3px; }
.adm-nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  min-height: 46px; padding: 0 12px 0 7px; border-radius: 15px;
  color: var(--ink-soft); font-size: .94rem; font-weight: 500; letter-spacing: -.014em;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.adm-nav a .tile {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 11px;
  display: grid; place-items: center; color: #565b69;
  border: 1px solid transparent;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.adm-nav a svg { width: 18px; height: 18px; }
.adm-nav a:hover { background: #f4f1fa; color: var(--ink); }
.adm-nav a:hover .tile { background: #fff; border-color: var(--lilac-line); color: var(--ink); }
.adm-nav a.on { background: var(--lilac-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--lilac-line); font-weight: 600; }
.adm-nav a.on .tile { background: #fff; border-color: #e6e0f5; color: var(--cobalt); box-shadow: 0 5px 12px -7px rgba(47,30,110,.55); }
.adm-nav a.on::after {
  content: ""; position: absolute; left: -16px; top: 13px; bottom: 13px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--cobalt);
}
.adm-nav .count {
  margin-left: auto; min-width: 24px; height: 21px; padding: 0 7px; border-radius: 100px;
  display: grid; place-items: center; font-family: var(--mono); font-size: .62rem;
  background: var(--cobalt); color: #fff; box-shadow: 0 5px 12px -6px rgba(31,67,255,.85);
}
.adm-nav .count.spark { background: var(--spark); color: #3f4a12; box-shadow: 0 5px 12px -7px rgba(146,190,10,.9); }

.adm-side-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.adm-side-foot a {
  display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 12px 0 9px;
  border-radius: 13px; color: var(--ink-soft); font-size: .85rem; font-weight: 500;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.adm-side-foot a svg { width: 17px; height: 17px; flex: none; margin-left: 5px; color: var(--muted); }
.adm-side-foot a:hover { background: #f4f1fa; color: var(--ink); }
.adm-side-foot a:hover svg { color: var(--cobalt); }
.adm-side-foot a.out:hover { background: #fdf2f5; color: #b8456a; }
.adm-side-foot a.out:hover svg { color: #c0456a; }
.adm-me {
  margin-top: 11px; display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--hairline-2); border-radius: 18px;
  padding: 9px 12px 9px 9px; box-shadow: 0 1px 2px rgba(30,20,58,.04), 0 12px 24px -20px rgba(30,20,58,.5);
}
.adm-me .av {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(150deg,#4a68ff,var(--cobalt)); border: 2px solid #fff;
  font-family: var(--display); font-weight: 800; font-size: .78rem;
  box-shadow: 0 7px 15px -9px rgba(31,67,255,.95);
}
.adm-me .nm { font-size: .84rem; font-weight: 600; letter-spacing: -.016em; line-height: 1.2; }
.adm-me .rl { font-size: .7rem; color: var(--muted); margin-top: 2px; }

/* ── Contenido ── */
.adm-main { flex: 1; min-width: 0; padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.4vw, 30px) 34px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.4rem; flex-wrap: wrap; margin-bottom: clamp(18px, 2.4vw, 26px); }
.adm-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.02; letter-spacing: -.038em; }
.adm-head p { color: var(--muted); font-size: .93rem; margin-top: .5rem; max-width: 56ch; }

.adm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; margin-bottom: clamp(18px, 2.4vw, 26px); }
.adm-stat {
  background: #fff; border: 1px solid rgba(255,255,255,.9); border-radius: var(--r-lg);
  padding: 20px 20px 18px; box-shadow: var(--adm-sh-card);
  display: flex; flex-direction: column; gap: 12px; min-height: 152px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.adm-stat:hover { transform: translateY(-2px); box-shadow: var(--adm-sh-card-2); }
.adm-stat .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--lilac-soft); color: var(--p-violet); }
.adm-stat .ic svg { width: 19px; height: 19px; }
.adm-stat b { font-family: var(--display); font-weight: 800; font-size: 2.9rem; line-height: .9; letter-spacing: -.045em; display: block; }
.adm-stat span { font-family: var(--mono); font-size: .58rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); display: block; margin-top: .35rem; }
.adm-stat small { margin-top: auto; font-size: .76rem; color: var(--muted); }
.adm-stat.hot { background: linear-gradient(160deg, var(--cobalt) 0%, #1735d6 100%); border-color: transparent; }
.adm-stat.hot b { color: #fff; }
.adm-stat.hot span, .adm-stat.hot small { color: rgba(255,255,255,.74); }
.adm-stat.hot .ic { background: rgba(255,255,255,.16); color: #fff; }
.adm-stat.warm { background: linear-gradient(160deg,#d7f96f 0%, var(--spark) 100%); border-color: #c2ea45; }
.adm-stat.warm .ic { background: rgba(20,22,28,.1); color: var(--ink); }
.adm-stat.warm span, .adm-stat.warm small { color: #4d5a1f; }

.adm-cols { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 20px; align-items: start; }
.adm-card {
  background: #fff; border: 1px solid rgba(255,255,255,.9); border-radius: var(--r-lg);
  padding: clamp(18px, 2vw, 24px); margin-bottom: 16px; box-shadow: var(--adm-sh-card);
}
.adm-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 14px; flex-wrap: wrap; }
.adm-card-head h2 { font-family: var(--display); font-weight: 800; font-size: 1.24rem; letter-spacing: -.028em; }
.adm-card-head .mut { flex-basis: 100%; }

.adm-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.adm-table th { text-align: left; font-family: var(--mono); font-size: .58rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 10px 12px; border-bottom: 1px solid var(--hairline-2); }
.adm-table td { padding: 14px 10px; border-bottom: 1px solid var(--hairline-2); vertical-align: top; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr { transition: background .16s var(--ease); }
.adm-table tbody tr:hover { background: var(--paper-soft); }
.row-done { opacity: .55; }
.mut { color: var(--muted); font-size: .84rem; }
.pill { display: inline-block; font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; padding: .4em .75em; 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); }
.adm-eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.adm-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--spark-deep); flex: none; }
.adm-head p b { font-weight: 700; color: var(--ink); }
.adm-count { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; color: var(--muted); background: var(--canvas); border: 1px solid var(--hairline-2); border-radius: 100px; padding: .35em .7em; }
.adm-card-head .textlink { margin-left: auto; }
.adm-side-col { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.adm-rowmeta { display: flex; align-items: center; gap: 8px; margin-top: .45rem; flex-wrap: wrap; }
.cat { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 100px; font-size: .72rem; font-weight: 600; background: var(--p-violet-bg); color: var(--p-violet); }
.cat-c1 { background: var(--p-violet-bg); color: var(--p-violet); }
.cat-c2 { background: var(--p-blue-bg); color: var(--p-blue); }
.cat-c3 { background: var(--p-peach-bg); color: var(--p-peach); }
.cat-c4 { background: var(--p-mint-bg); color: var(--p-mint); }
.adm-req { padding: 13px 0; border-bottom: 1px solid var(--hairline-2); }
.adm-req:last-child { border-bottom: 0; padding-bottom: 0; }
.adm-req-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-req-top b { font-size: .95rem; letter-spacing: -.012em; }
.adm-req p { margin: .3rem 0 .7rem; }
/* ── Campo de archivo en español ──────────────────────────────────────────
   El <input type="file"> nativo pinta "Choose File" en inglés y no hay forma
   de traducirlo: lo escribe el navegador. El input real sigue ahí (es el que
   viaja en el formulario) pero oculto, y delante va esta zona.
   Ver app/static/js/subir.js — se aplica sola a todo campo de archivo. */
.zona-archivo {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1.5px dashed var(--hairline);
  border-radius: 12px; background: var(--paper-soft); cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.zona-archivo:hover { border-color: var(--cobalt); background: var(--cobalt-wash); }
.zona-archivo:focus-within { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.zona-archivo.encima { border-color: var(--cobalt); border-style: solid; background: var(--cobalt-wash); }
.zona-archivo.con-archivo { border-style: solid; border-color: var(--p-mint); background: var(--p-mint-bg); }
.zona-archivo input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.za-icono { width: 22px; height: 22px; flex: 0 0 22px; color: var(--muted); }
.zona-archivo.con-archivo .za-icono { color: var(--p-mint); }
.za-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.za-texto b { font-size: .85rem; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-texto span { font-size: .76rem; color: var(--muted); }
.za-quitar {
  margin-left: auto; flex: 0 0 auto; position: relative; z-index: 1;
  border: 1px solid var(--hairline-2); background: #fff; color: var(--ink-soft);
  font: inherit; font-size: .76rem; font-weight: 600;
  padding: 5px 11px; border-radius: 8px; cursor: pointer;
}
.za-quitar:hover { border-color: #c0456a; color: #c0456a; }
@media (prefers-reduced-motion: reduce) { .zona-archivo { transition: none; } }

.cred { display: grid; gap: 10px; }
.cred > div { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cred span { flex: 0 0 170px; font-family: var(--mono); font-size: .58rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.cred b { font-size: .98rem; font-weight: 600; letter-spacing: -.01em; word-break: break-all; }
.cred b.clave { font-family: var(--mono); font-weight: 500; font-size: 1.06rem; letter-spacing: .04em; background: #fff; border: 1px solid var(--hairline-2); border-radius: 8px; padding: .3em .6em; }
@media (max-width: 560px) { .cred span { flex-basis: 100%; } }

.adm-mini-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .25rem; }
.adm-mini-list li { position: relative; padding-left: .95em; font-size: .84rem; color: var(--ink-soft); line-height: 1.4; }
.adm-mini-list li::before { content: ""; position: absolute; left: 0; top: .52em; width: 4px; height: 4px; border-radius: 50%; background: var(--cobalt); }
.adm-note { margin-top: .6rem; padding: .6em .8em; background: var(--canvas-2); border-radius: 10px; font-size: .84rem; color: var(--ink-soft); white-space: pre-wrap; }
.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-logo { display: block; margin: 0 auto 1.5rem; width: 176px; }
.adm-login-logo img { display: block; width: 100%; height: auto; }
.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; }
  .sectors { grid-template-columns: 1fr; }
  .packs { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .tm-top, .tm-body { grid-template-columns: 1fr; }
  .tm-photo { max-width: 300px; }
  .qt { grid-template-columns: 1fr; }
  .qt-aside { position: static; }
  .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; }
  /* El lienzo se apila: la barra pasa a ser una fila de pestañas arriba. */
  .adm-shell { flex-direction: column; min-height: 0; }
  .adm-side {
    width: auto; flex: none; flex-direction: row; align-items: center;
    gap: 6px; padding: 12px 14px; overflow-x: auto; scrollbar-width: none;
    border-right: 0; border-bottom: 1px solid var(--hairline);
  }
  .adm-side::-webkit-scrollbar { display: none; }
  .adm-side .brand { flex: none; margin-right: 8px; }
  .adm-side .brand img { width: 104px; }
  .adm-side-rule, .adm-nav-group, .adm-me { display: none; }
  .adm-nav { flex-direction: row; gap: 4px; }
  .adm-nav a { min-height: 40px; padding: 0 12px 0 6px; border-radius: 100px; white-space: nowrap; }
  .adm-nav a.on::after { display: none; }
  .adm-nav a .tile { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; }
  .adm-side-foot { margin: 0 0 0 auto; padding: 0; flex-direction: row; gap: 4px; }
  .adm-side-foot a { white-space: nowrap; }
  .adm-stats, .adm-cols { grid-template-columns: 1fr 1fr; }
  .adm-form .fr, .al-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .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; }
}
@media (max-width: 720px) {
  .svc-grid, .method, .pillars, .post-grid, .founders, .form-row { grid-template-columns: 1fr; }
  .qt-row, .qt-modes { grid-template-columns: 1fr; }
  .qt-packs { grid-template-columns: 1fr 1fr; }
  .tm-others { grid-template-columns: 1fr; }
  .qt-steps .t { display: none; }
  .qt-steps li { flex: 0 0 auto; justify-content: center; }
  .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; }
}

/* ── Admin · editor de textos ────────────────────────────────────────────*/
.adm-sub { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 1.1rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--hairline-2); }
.txt-hint { margin-top: .3rem; font-size: .74rem; color: var(--muted); font-family: var(--mono); }
.adm-save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 8px;
  padding: 14px 18px; background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r); box-shadow: var(--shadow-m); }
.adm-save-bar span { font-size: .86rem; color: var(--muted); }
.adm-ok a { color: var(--cobalt); text-decoration: underline; }

/* Marcador cuando aún no hay foto del perfil */
.tcard-ph, .tm-ph, .tm-other-ph { display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(150deg, var(--ink), #2b2f3a); color: var(--spark);
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
.tcard-ph { font-size: 2rem; }
.tm-ph { font-size: 5rem; }
.tm-other-ph { width: 66px; height: 82px; border-radius: 14px; flex: none; font-size: 1.5rem; }
.tm-photo-ph { background: var(--ink); }

/* ── Admin · equipo ──────────────────────────────────────────────────────*/
.adm-avatar { width: 42px; height: 52px; border-radius: 10px; object-fit: cover; object-position: center 20%; display: block; }
.adm-avatar-ph { display: grid; place-items: center; background: var(--ink); color: var(--spark);
  font-family: var(--display); font-weight: 800; font-size: .9rem; }
.adm-inline { display: flex; gap: 8px; align-items: center; }
.adm-inline .input { min-width: 220px; }
.img-preview-tall { aspect-ratio: 4/5; width: 132px; height: auto; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .84rem; }

/* ── Entrar con Google ───────────────────────────────────────────────────*/
.btn-google { display: flex; align-items: center; justify-content: center; gap: .7em;
  width: 100%; padding: .85em 1.2em; margin-bottom: 1.1rem; border-radius: 100px;
  background: #fff; color: #3c4043; font-family: var(--body); font-weight: 600; font-size: .96rem;
  border: 1px solid var(--hairline); transition: box-shadow .25s, border-color .25s, transform .25s var(--ease); }
.btn-google:hover { border-color: var(--muted); box-shadow: var(--shadow-s); transform: translateY(-1px); }
.btn-google svg { width: 19px; height: 19px; flex: none; }
.adm-or { position: relative; text-align: center; margin: 0 0 1.2rem; }
.adm-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--hairline-2); }
.adm-or span { position: relative; background: var(--paper); padding: 0 .9em;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════════
   COTIZACIONES DEL PANEL
   ═══════════════════════════════════════════════════════════════════ */

/* ── Pestañas de la sección ─────────────────────────────────────────── */
.adm-tabs { display: flex; align-items: center; gap: 6px; margin: 0 0 18px;
  border-bottom: 1px solid var(--hairline-2); }
.adm-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: .7em 1.05em;
  font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.adm-tabs a:hover { color: var(--ink); }
.adm-tabs a.on { color: var(--ink); border-bottom-color: var(--cobalt); }
.adm-tabs-fill { flex: 1; }
.adm-tabs .tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 100px; background: var(--spark); color: var(--ink);
  font-size: .72rem; font-weight: 700; }
.adm-tabs-side { font-weight: 500 !important; font-size: .84rem !important; }
.adm-tabs .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.adm-tabs .dot.ok { background: #2f9b71; }
.adm-tabs .dot.off { background: #d98324; }

/* ── Filtros por estado ─────────────────────────────────────────────── */
.adm-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.adm-filters .chip { position: static; padding: .42em 1em; border-radius: 100px;
  border: 1px solid var(--hairline); background: var(--paper); color: var(--ink-soft);
  font-size: .84rem; font-weight: 600; text-decoration: none; box-shadow: none; }
.adm-filters .chip:hover { border-color: var(--ink); }
.adm-filters .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Avisos ─────────────────────────────────────────────────────────── */
.adm-flash { border-radius: var(--r-sm); padding: .85em 1.15em; font-size: .9rem;
  margin-bottom: 14px; }
.adm-flash.ok { background: var(--p-mint-bg); color: var(--p-mint); font-weight: 600; }
.adm-flash.err { background: var(--p-pink-bg); color: #b23b60; font-weight: 600; }
.adm-flash.warn { background: var(--p-peach-bg); color: #96541c; }
.adm-flash a { color: inherit; text-decoration: underline; }

/* ── Encabezado de página ───────────────────────────────────────────── */
.adm-back { display: inline-block; font-size: .84rem; font-weight: 600; color: var(--muted);
  text-decoration: none; margin-bottom: .35rem; }
.adm-back:hover { color: var(--cobalt); }
.adm-head-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-card-title { font-size: 1.02rem; letter-spacing: -.02em; margin-bottom: .2rem; }
.adm-card-lead { font-size: .86rem; margin-bottom: 1rem; }
.adm-card-title + .adm-row, .adm-card-title + .field { margin-top: .9rem; }

/* ── Rejilla de campos ──────────────────────────────────────────────── */
.adm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-row.three { grid-template-columns: repeat(3, 1fr); }
.qz-form .field { display: block; margin-bottom: .85rem; }
.qz-form .field > span { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .35rem; }
.qz-form .field .req { color: var(--cobalt); font-weight: 600; font-style: normal; font-size: .74rem; }
.qz-form .field .opt { color: var(--muted); font-weight: 400; font-style: normal; font-size: .74rem; }
.check { display: flex; align-items: center; gap: .55em; font-size: .88rem; margin: .3rem 0 .9rem; }
.check input { accent-color: var(--cobalt); }
.tiny { font-size: .78rem; line-height: 1.5; }

/* ── Estados ────────────────────────────────────────────────────────── */
.pill.est { font-weight: 700; }
.est-borrador  { background: var(--canvas-2); color: var(--ink-soft); }
.est-enviada   { background: var(--p-blue-bg); color: var(--p-blue); }
.est-aceptada  { background: var(--p-mint-bg); color: var(--p-mint); }
.est-rechazada { background: var(--p-pink-bg); color: #b23b60; }
.est-vencida   { background: var(--p-peach-bg); color: #96541c; }

/* ── Lista de cotizaciones ──────────────────────────────────────────── */
.qz-list .num { text-align: right; }
.qz-num { font-family: var(--mono); font-size: .84rem; font-weight: 500;
  color: var(--ink); text-decoration: none; }
.qz-num:hover { color: var(--cobalt); }
.qz-total { font-family: var(--display); font-size: 1.02rem; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
.qz-track { font-size: .8rem; line-height: 1.5; }
.qz-track .ok { color: var(--p-mint); font-weight: 600; }
.qz-acciones { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.btn-mini.primary { background: var(--cobalt); border-color: var(--cobalt); }
.btn-mini.primary:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }

.adm-empty { text-align: center; padding: clamp(28px, 6vw, 56px) 20px; }
.adm-empty h3 { font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.adm-empty p { max-width: 52ch; margin: 0 auto; font-size: .92rem; }
.adm-empty-acciones { display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-top: 1.3rem; }

/* ── Editor ─────────────────────────────────────────────────────────── */
.qz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px;
  align-items: start; }
.qz-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.qz-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 18px; }

.qz-items { display: flex; flex-direction: column; }
.qz-item-head, .qz-item { display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 118px 108px 34px; gap: 10px; align-items: start; }
.qz-item-head { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); padding-bottom: .5rem;
  border-bottom: 1px solid var(--hairline-2); margin-bottom: .7rem; }
.qz-item-head .num { text-align: right; }
.qz-item { padding: .55rem 0; border-bottom: 1px solid var(--hairline-2); }
.qz-item:last-child { border-bottom: 0; }
.qz-item-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.qz-item-main .input.sub { font-size: .82rem; color: var(--muted); }
.qz-item-num { display: flex; align-items: center; justify-content: flex-end; min-height: 42px; }
.qz-item-num .input.num { text-align: right; font-variant-numeric: tabular-nums; }
.qz-item-num output { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; }
.qz-item-del { display: flex; align-items: center; justify-content: center; min-height: 42px; }

.btn-icon { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--hairline);
  background: var(--paper); color: var(--muted); font-size: 1.15rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; }
.btn-icon:hover { border-color: #c2410c; color: #c2410c; background: #fff1ea; }

.qz-item-acciones { display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-top: 1.1rem; padding-top: 1rem;
  border-top: 1px dashed var(--hairline); }
.qz-desde { display: flex; align-items: center; gap: 8px; }
.qz-desde .input { min-width: 250px; font-size: .86rem; }
.qz-desde label { font-size: .84rem; white-space: nowrap; }

/* ── Totales ────────────────────────────────────────────────────────── */
.qz-sum { display: flex; flex-direction: column; margin: .9rem 0 .2rem; }
.qz-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: .32rem 0;
  font-size: .9rem; }
.qz-sum span { color: var(--muted); }
.qz-sum b { font-weight: 600; font-variant-numeric: tabular-nums; }
.qz-total-box { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--cobalt-wash); border-radius: var(--r-sm); padding: .8em 1em; margin: .5rem 0 1rem; }
.qz-total-box span { font-weight: 600; font-size: .9rem; }
.qz-total-box b { font-family: var(--display); font-weight: 800; font-size: 1.45rem;
  letter-spacing: -.03em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.qz-enviar code { display: inline-block; margin-top: .3rem; background: var(--canvas-2);
  padding: .25em .5em; border-radius: 6px; font-size: .72rem; word-break: break-all; }
.btn.block { display: flex; width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.qz-danger { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--hairline); }

/* ── Estado del correo ──────────────────────────────────────────────── */
.mc-estado { display: flex; gap: 14px; align-items: flex-start; padding: 1.1em 1.2em;
  border-radius: var(--r-sm); margin-bottom: 1.2rem; }
.mc-estado.ok { background: var(--p-mint-bg); }
.mc-estado.off { background: var(--p-peach-bg); }
.mc-estado .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .45em; flex: none; }
.mc-estado .dot.ok { background: #2f9b71; }
.mc-estado .dot.off { background: #d98324; }
.mc-estado h2 { font-size: 1.02rem; letter-spacing: -.02em; }
.mc-estado p { font-size: .9rem; color: var(--ink-soft); margin-top: .2rem; }
.mc-datos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 1.4rem; }
.mc-datos dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.mc-datos dd { font-size: .92rem; font-weight: 600; }
.mc-ayuda { border-top: 1px solid var(--hairline-2); padding-top: 1.2rem; }
.mc-ayuda h3 { font-size: .98rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.mc-pre { background: var(--ink); color: #e9e6dc; border-radius: var(--r-sm); padding: 1em 1.2em;
  font-family: var(--mono); font-size: .78rem; line-height: 1.7; overflow-x: auto; margin: .9rem 0; }

@media (max-width: 1080px) {
  .qz-grid { grid-template-columns: 1fr; }
  .qz-side { position: static; }
}
@media (max-width: 720px) {
  .adm-row, .adm-row.three { grid-template-columns: 1fr; }
  .qz-item-head { display: none; }
  .qz-item { grid-template-columns: 1fr 1fr; gap: 8px; padding: .9rem 0; }
  .qz-item-main { grid-column: 1 / -1; }
  .qz-item-num { justify-content: flex-start; min-height: 0; }
  .qz-item-del { grid-column: 2; justify-content: flex-end; }
  .qz-desde .input { min-width: 0; width: 100%; }
  .qz-desde { width: 100%; }
  .mc-datos { grid-template-columns: 1fr; }
}
