/* =====================================================================
   CAMPUS EQUILIBRIA · estilos
   Hoja cuadriculada + tarjetas con sombra dura + paleta del logo
   ===================================================================== */

:root {
  /* Papel y tinta */
  --paper: #f6f4ee;
  --paper-2: #efebe2;
  --card: #fffefb;
  --ink: #15121c;
  --ink-2: #47424f;
  --ink-3: #6b6575;
  --grid: rgba(21, 18, 28, 0.055);
  --hair: rgba(21, 18, 28, 0.12);

  /* Marca (muestreados del logo) */
  --cyan: #03d6ce;
  --sky: #00a6d5;
  --blue: #0f58f6;
  --indigo: #4c3df9;
  --violet: #791ffe;
  --purple: #9000ff;
  --brand: #6a1bef;
  --brand-deep: #4a12b0;
  --brand-soft: #ece4fd;
  --brand-line: #b9a2f7;
  --grad: linear-gradient(90deg, #03d6ce 0%, #00a6d5 22%, #0f58f6 48%, #791ffe 74%, #9000ff 100%);

  /* Pasteles de apoyo */
  --p-blue: #dfe9fb;
  --p-butter: #faf0cc;
  --p-lav: #eae2fc;
  --p-mint: #d8f3ec;
  --p-rose: #f8e3e3;
  --t-blue: #2f5fd0;
  --t-gold: #a77f12;
  --t-lav: #5b21b6;
  --t-mint: #0f7a63;
  --t-rose: #b33b4b;

  /* Capa IA del hero */
  --ai-bg: #0d0a1c;
  --ai-ink: #ece8ff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --border: 2px solid var(--ink);

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-soft); color: var(--brand-deep); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ─────────────── Tipografía base ─────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 5px;
  border-bottom: 2px solid var(--brand);
  margin: 0 0 18px;
}
.h1, .h2, .h3 { font-family: var(--f-sans); font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.12; letter-spacing: -0.025em; }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); max-width: 58ch; margin: 18px 0 0; text-wrap: pretty; }
.mark { background: linear-gradient(transparent 58%, var(--brand-soft) 58%); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mono { font-family: var(--f-mono); }

/* ─────────────── Botones y chips ─────────────── */
.btn {
  --b-bg: var(--brand);
  --b-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: var(--border);
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--b-fg);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s cubic-bezier(.2,.8,.2,1), background-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); transition-duration: .06s; }
.btn--ghost { --b-bg: var(--card); --b-fg: var(--ink); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; gap: 8px; }
.btn[aria-disabled="true"] { --b-bg: var(--paper-2); --b-fg: var(--ink-3); box-shadow: none; border-style: dashed; border-color: var(--ink-3); pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 5px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}
.chip__ico {
  width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11px; letter-spacing: 0; color: #fff;
  background: var(--grad);
  border: 1.5px solid var(--ink);
}
.chip--plain { padding: 0 12px; box-shadow: none; }
.chip--vip { background: var(--ink); color: #fff; border-color: var(--ink); padding: 0 12px; box-shadow: 2px 2px 0 var(--brand); }
.chip--soon { background: var(--paper-2); color: var(--ink-3); border-color: var(--ink-3); box-shadow: none; padding: 0 12px; border-style: dashed; }
.chip--ok { background: var(--p-mint); color: var(--t-mint); border-color: var(--t-mint); box-shadow: none; padding: 0 12px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
}

/* ─────────────── Tarjeta base ─────────────── */
.card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ─────────────── Navegación ─────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 18px; }
.nav__in > * { flex: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: auto; filter: drop-shadow(1px 2px 0 rgba(21,18,28,.25)); }
.brand__txt { display: grid; line-height: 1; }
.brand__small { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .34em; color: var(--ink-2); }
.brand__big {
  font-weight: 900; font-stretch: 125%; font-size: 19px; letter-spacing: .01em; margin-top: 4px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 8px 10px; border-radius: 999px; color: var(--ink-2); white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav__link:hover { background: var(--paper-2); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav__search {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 10px 0 14px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--card); color: var(--ink-2); font-size: 14px; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.nav__search:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.nav__search svg { width: 16px; height: 16px; }
.kbd { font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--hair); border-radius: 6px; background: var(--paper); color: var(--ink-3); }
.nav__vip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; box-shadow: 2px 2px 0 var(--brand); white-space: nowrap; }
.nav__vip svg { width: 15px; height: 15px; }
.nav__vip.is-open { background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
@media (max-width: 1360px) { .nav__search .lbl, .nav__search .kbd { display: none; } .nav__search { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 1100px) { .nav__vip .lbl { display: none; } .nav__vip { width: 40px; padding: 0; justify-content: center; } .nav__links { gap: 2px; } .nav__link { padding: 8px; letter-spacing: .08em; } }

@media (max-width: 940px) {
  .nav__links .nav__link { display: none; }
  .nav__search .lbl, .nav__search .kbd { display: none; }
  .nav__search { width: 40px; padding: 0; justify-content: center; }
  .nav__vip .lbl { display: none; }
  .nav__vip { width: 40px; padding: 0; justify-content: center; }
  .nav__in { gap: 10px; }
}
.nav__menu { display: none; }
@media (max-width: 940px) {
  .nav__menu { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); box-shadow: 2px 2px 0 var(--ink); }
  .nav__menu svg { width: 18px; height: 18px; }
}
.drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
  background: var(--paper); border-bottom: 2px solid var(--ink);
  padding: 12px var(--gutter) 20px; display: grid; gap: 4px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}
.drawer.is-open { transform: none; opacity: 1; pointer-events: auto; }
.drawer a { font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 941px) { .drawer { display: none; } }

/* =====================================================================
   HERO · dos capas: papel (base) y "visión IA" (revelada por el blob)
   ===================================================================== */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); isolation: isolate; }
.hero__layer {
  position: relative;
  min-height: clamp(640px, calc(100svh - var(--nav-h)), 920px);
  display: flex;
}
.hero__layer--ai {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(121, 31, 254, .38), transparent 70%),
    radial-gradient(50% 45% at 8% 95%, rgba(3, 214, 206, .22), transparent 70%),
    linear-gradient(rgba(3,214,206,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(3,214,206,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ai-bg);
  color: var(--ai-ink);
  pointer-events: none;
  clip-path: polygon(0 0, 0 0, 0 0);
  -webkit-clip-path: polygon(0 0, 0 0, 0 0);
}
.hero__inner { position: relative; z-index: 3; }
.hero__layer--paper { z-index: 1; }
.hero__copy {
  padding-top: clamp(40px, 8vh, 96px);
  padding-bottom: clamp(230px, 34vh, 330px);
  max-width: 980px;
}
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: clamp(20px, 3vh, 30px); }
.hero__eyebrow .eyebrow { margin: 0; }
.hero__title {
  margin: 0;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(46px, 10.2vw, 150px);
  line-height: .88;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero__title .ln { display: grid; width: max-content; }
.hero__title .ln > span { grid-area: 1 / 1; }
.hero__title .ln--a { font-size: .56em; letter-spacing: .02em; margin-bottom: .1em; }
.t-ext { color: var(--ink); text-shadow:
  .01em .01em 0 var(--ink), .02em .02em 0 var(--ink), .03em .03em 0 var(--ink),
  .04em .04em 0 var(--ink), .05em .05em 0 var(--ink), .06em .06em 0 var(--ink); }
.t-face { color: var(--card); -webkit-text-stroke: max(2px, .022em) var(--ink); paint-order: stroke fill; }
.hero__lead { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 54ch; margin: clamp(22px, 3.4vh, 34px) 0 0; text-wrap: pretty; }
.hero__lead b { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.hero__hint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.hero__hint .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }

/* Variante IA del texto */
.hero__layer--ai .eyebrow { color: rgba(236,232,255,.7); border-color: var(--cyan); }
.hero__layer--ai .t-ext { color: #2a0e66; text-shadow:
  .01em .01em 0 #2a0e66, .02em .02em 0 #24095a, .03em .03em 0 #1f0752,
  .04em .04em 0 #1c064b, .05em .05em 0 #190544, .06em .06em 0 #16043d; }
.hero__layer--ai .t-face { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; }
.hero__layer--ai .hero__lead { color: rgba(236,232,255,.78); }
.hero__layer--ai .hero__lead b { color: #fff; }
.hero__layer--ai .btn { --b-bg: transparent; --b-fg: var(--ai-ink); border-color: var(--cyan); box-shadow: 3px 3px 0 var(--violet); }
.hero__layer--ai .btn--ghost { border-color: rgba(236,232,255,.5); box-shadow: 3px 3px 0 rgba(3,214,206,.6); }
.hero__layer--ai .hero__hint { color: var(--cyan); }
.hero__layer--ai .chip { background: transparent; color: var(--ai-ink); border-color: rgba(236,232,255,.5); box-shadow: 2px 2px 0 var(--violet); }

/* Detección "OCR" sobre el título (solo capa IA) */
.ocr {
  position: absolute; inset: -14px -18px -12px -14px;
  border: 1.5px dashed var(--cyan); border-radius: 6px; pointer-events: none;
}
.ocr::before, .ocr::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--cyan); }
.ocr::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.ocr::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.ocr__lbl {
  position: absolute; top: -26px; left: -2px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--cyan); color: #04121a; padding: 3px 8px; border-radius: 4px; font-weight: 700; white-space: nowrap;
}
.hero__title-wrap { position: relative; width: max-content; max-width: 100%; }

/* Ilustración */
.art { position: absolute; pointer-events: none; z-index: 1; }
.art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.art--ground { left: 0; right: 0; bottom: 0; height: clamp(220px, 40%, 380px); }
.art--sky { top: 0; right: 0; width: min(640px, 46vw); aspect-ratio: 640 / 400; }
@media (max-width: 860px) {
  .art--sky { width: min(80vw, 420px); top: auto; bottom: 178px; }
  .art--ground { height: 210px; }
  .hero__copy { padding-bottom: calc(210px + min(80vw, 420px) * .62); }
}

/* Trazos de la ilustración en papel */
.ink { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ink-thin { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.fill-paper { fill: var(--paper); }
.fill-paper2 { fill: var(--paper-2); }
.fill-card { fill: var(--card); }
.fill-ink { fill: var(--ink); }
/* Trazos de la ilustración IA */
.neo { fill: none; stroke: url(#gNeo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.neo-c { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.neo-v { fill: none; stroke: #a46bff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.neo-dim { fill: none; stroke: rgba(164,107,255,.45); stroke-width: 1; }
.fill-ai { fill: rgba(13,10,28,.85); }
.ai-lbl { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; fill: #04121a; }
.ai-lbl-bg { fill: var(--cyan); }
.ai-lbl-bg--v { fill: #a46bff; }
.ai-txt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; fill: rgba(236,232,255,.8); }

.spin { transform-box: fill-box; transform-origin: center; animation: spin 7s linear infinite; }
.spin--b { animation-duration: 5.5s; }
.spin--c { animation-duration: 8.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow { stroke-dasharray: 6 14; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.drift { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(40px); } }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.ping--2 { animation-delay: 1.3s; }
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; z-index: 1;
  background: linear-gradient(transparent, rgba(3,214,206,.10) 70%, rgba(3,214,206,.55) 99%, transparent);
  animation: scan 6s cubic-bezier(.45,0,.55,1) infinite; pointer-events: none; }
@keyframes scan { to { transform: translateY(calc(100vh + 240px)); } }

@media (prefers-reduced-motion: reduce) {
  .spin, .flow, .drift, .ping, .scan { animation: none !important; }
  .scan { display: none; }
}

/* =====================================================================
   SECCIONES DE LA LANDING
   ===================================================================== */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section + .section { padding-top: 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--split { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
@media (max-width: 760px) { .sec-head--split { grid-template-columns: 1fr; } }

/* Números */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.stat { padding: 20px 20px 18px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; }
.stat__n { font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat__l { font-size: 14px; color: var(--ink-2); line-height: 1.35; margin-top: 10px; }
.stat:nth-child(1) .stat__n { color: var(--brand); }
.stat:nth-child(2) .stat__n { color: var(--blue); }
.stat:nth-child(3) .stat__n { color: var(--t-mint); }
.stat:nth-child(4) .stat__n { color: var(--t-gold); }
.stat:nth-child(5) .stat__n { color: var(--sky); }
.stat:nth-child(6) .stat__n { color: var(--violet); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; } .stat { min-height: 116px; padding: 16px; } }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.step { padding: 22px; position: relative; }
.step__n {
  width: 46px; height: 46px; border-radius: 50%; border: var(--border); background: var(--card);
  display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.step h3 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; }
.step p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 18px; }
.type { padding: 20px; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.type .eyebrow { font-size: 11px; margin-bottom: 12px; border-bottom-color: currentColor; }
.type .type__t { font-size: clamp(24px, 2.6vw, 32px); color: var(--ink); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 10px; }
.type p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.type--blue { background: var(--p-blue); } .type--blue .type__t, .type--blue .eyebrow { color: var(--t-blue); }
.type--lav { background: var(--p-lav); } .type--lav .type__t, .type--lav .eyebrow { color: var(--t-lav); }
.type--butter { background: var(--p-butter); } .type--butter .type__t, .type--butter .eyebrow { color: var(--t-gold); }
.type--mint { background: var(--p-mint); } .type--mint .type__t, .type--mint .eyebrow { color: var(--t-mint); }
.type--rose { background: var(--p-rose); } .type--rose .type__t, .type--rose .eyebrow { color: var(--t-rose); }
@media (max-width: 1100px) { .types { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .types { grid-template-columns: 1fr; } }

/* Ruta: niveles en línea de tiempo */
.route { position: relative; display: grid; gap: clamp(44px, 6vw, 72px); }
.level { display: grid; grid-template-columns: 64px 1fr; gap: 0 clamp(16px, 2.5vw, 28px); position: relative; }
.level::before {
  content: ""; position: absolute; left: 31px; top: 64px; bottom: calc(-1 * clamp(44px, 6vw, 72px));
  border-left: 2px dashed var(--ink-3); opacity: .55;
}
.level:last-child::before { display: none; }
.level__dot {
  width: 64px; height: 64px; border-radius: 50%; border: var(--border); background: var(--card);
  display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow); position: relative; z-index: 1;
}
.level__dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 3px solid var(--lv, var(--brand)); opacity: .9; }
.level__head { padding-top: 6px; margin-bottom: 20px; }
.level__head .tag { color: var(--lv, var(--brand)); }
.level__title { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 6px; }
.level__desc { margin: 0; color: var(--ink-2); max-width: 60ch; }
.level__mods { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
@media (max-width: 600px) {
  .level { grid-template-columns: 44px 1fr; }
  .level__dot { width: 44px; height: 44px; font-size: 12px; }
  .level::before { left: 21px; top: 44px; }
  .level__mods { grid-column: 1 / -1; }
}

.mcard {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px;
  text-decoration: none; min-height: 196px; position: relative;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s cubic-bezier(.2,.8,.2,1);
}
.mcard:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.mcard__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mcard__num { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--ink-3); }
.mcard__t { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.mcard__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); }
.mcard__arrow { position: absolute; right: 16px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; background: var(--card); transition: background-color .2s, color .2s, transform .2s; }
.mcard__arrow svg { width: 14px; height: 14px; }
.mcard:hover .mcard__arrow { background: var(--brand); color: #fff; transform: rotate(-45deg); }
/* Módulo apagado (próximamente): gris, rayado suave y sin color de marca */
.mcard--soon {
  --off: #cdcccf; --off-2: #bbbabe; --off-line: #87858c; --off-ink: #48464d;
  background-color: var(--off);
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(21, 18, 28, .07) 10px 11px);
  border-color: var(--off-line); border-style: dashed;
  box-shadow: 3px 3px 0 var(--off-line);
}
.mcard--soon .mcard__num, .mcard--soon .mcard__t, .mcard--soon .mcard__meta { color: var(--off-ink); }
.mcard--soon:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--off-line); }
.mcard--soon .mcard__arrow { background: transparent; border-color: var(--off-line); color: var(--off-ink); }
.mcard--soon:hover .mcard__arrow { background: var(--off-2); color: var(--ink-2); transform: none; }
.mcard--soon .chip--soon { background: var(--off-2); color: var(--off-ink); border-color: var(--off-line); }
.mcard__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.mcard__meta svg { width: 12px; height: 12px; flex: none; }
.bar { height: 6px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--hair); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.mcard .bar { margin-right: 44px; }

/* Biblioteca: estante (preview) */
.shelf {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2vw, 26px); align-items: end;
  padding: 26px clamp(16px, 3vw, 36px) 0; position: relative;
}
.shelf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px;
  background: var(--ink); border-radius: 4px; box-shadow: 0 6px 0 rgba(21,18,28,.12);
}
@media (max-width: 900px) { .shelf { grid-template-columns: repeat(3, 1fr); } .shelf > :nth-child(n+4) { display: none; } }
@media (max-width: 520px) { .shelf { grid-template-columns: repeat(2, 1fr); } .shelf > :nth-child(n+3) { display: none; } }

/* Portada de libro (también en la biblioteca) */
.book { display: block; text-decoration: none; perspective: 900px; }
.cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; overflow: hidden;
  border: var(--border); box-shadow: var(--shadow); background: var(--card);
  transform-origin: left center; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1);
}
.book:hover .cover, .book:focus-visible .cover { transform: rotateY(-14deg) translateX(4px); box-shadow: 10px 6px 0 var(--ink); }
.cover::before { /* lomo */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; z-index: 3;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.05) 60%, rgba(255,255,255,.25) 80%, transparent);
}
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gcover { position: absolute; inset: 0; padding: 14% 12% 10% 16%; display: flex; flex-direction: column; color: var(--ink); }
.gcover__cat { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.gcover__t { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(14px, 1.45vw, 19px); margin-top: 10%; text-wrap: balance; position: relative; z-index: 2; }
.gcover__art { position: absolute; inset: auto 0 0 0; height: 58%; z-index: 1; }
.gcover__art svg { width: 100%; height: 100%; }
.gcover__brand { margin-top: auto; display: flex; align-items: center; gap: 6px; position: relative; z-index: 2; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.gcover__brand img { width: 16px; }
.gcover--1 { background: var(--p-lav); } .gcover--2 { background: var(--p-blue); } .gcover--3 { background: var(--p-butter); }
.gcover--4 { background: var(--p-mint); } .gcover--5 { background: var(--p-rose); } .gcover--6 { background: var(--ink); color: #fff; }
.gcover--6 .gcover__brand { color: #fff; }
.badge-new { position: absolute; top: 10px; right: 10px; z-index: 4; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; background: var(--brand); color: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 8px; }

/* VIP */
.vip {
  position: relative; overflow: hidden; color: var(--ai-ink);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(121, 31, 254, .45), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(3, 214, 206, .25), transparent 70%),
    linear-gradient(rgba(3,214,206,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(3,214,206,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ai-bg);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  box-shadow: 6px 6px 0 var(--brand);
}
.vip .eyebrow { color: rgba(236,232,255,.75); border-color: var(--cyan); }
.vip .h2 { color: #fff; max-width: 14ch; }
.vip .lead { color: rgba(236,232,255,.75); }
.vip__lock { justify-self: center; width: min(260px, 60vw); }
.vip .btn { --b-bg: var(--cyan); --b-fg: #04121a; border-color: #04121a; box-shadow: 3px 3px 0 var(--violet); }
@media (max-width: 800px) { .vip { grid-template-columns: 1fr; } .vip__lock { width: 160px; justify-self: start; order: -1; } }

/* Preguntas */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 17px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform .25s, background-color .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--brand-soft); }
.faq .ans { padding: 0 22px 20px; color: var(--ink-2); margin: 0; max-width: 68ch; }

/* Footer */
.footer { border-top: 2px solid var(--ink); padding: 28px 0 40px; margin-top: clamp(40px, 6vw, 80px); }
.footer__in { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.footer .brand img { width: 26px; }

/* =====================================================================
   PÁGINA DE MÓDULO
   ===================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { text-decoration: none; color: var(--ink-2); border-bottom: 1.5px solid var(--brand-line); }
.crumbs a:hover { color: var(--brand); }
.mhead { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.mback { margin-bottom: 20px; }
.mback svg, .ftab--back svg { width: 15px; height: 15px; flex: none; }
.mhead__num { font-weight: 900; font-stretch: 125%; font-size: clamp(64px, 9vw, 120px); line-height: .8; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px var(--ink); display: block; margin-bottom: 14px; }
.mhead__t { font-size: clamp(34px, 5vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; max-width: 20ch; margin: 0; text-wrap: balance; }
.mhead__d { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); max-width: 62ch; margin: 18px 0 0; }
.mhead__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.mstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
.mstats .stat { min-height: 104px; }
@media (max-width: 900px) { .mstats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .mstats { grid-template-columns: repeat(3, 1fr); gap: 10px; } .mstats .stat { min-height: 84px; padding: 12px; } .mstats .stat__n { font-size: 28px; } .mstats .stat__l { font-size: 12.5px; margin-top: 6px; } }

.mtools {
  position: sticky; top: calc(var(--nav-h) - 1px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-block: 1.5px solid var(--ink); padding: 12px 0; margin-bottom: 36px;
}
.mtools__in { display: flex; gap: 10px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.mtools__in::-webkit-scrollbar { display: none; }
.ftab {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card);
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.ftab .n { font-size: 11px; color: var(--ink-3); }
.ftab:hover { transform: translate(-1px,-1px); box-shadow: 2px 2px 0 var(--ink); }
.ftab[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.ftab[aria-pressed="true"] .n { color: rgba(255,255,255,.75); }
.mtools__sp { flex: 1; min-width: 8px; }
.ftab--back { text-decoration: none; background: var(--ink); color: #fff; border-color: var(--ink); }
.ftab--back:hover { box-shadow: 2px 2px 0 var(--brand); }
.mtools__div { flex: none; width: 1.5px; height: 24px; background: var(--ink); opacity: .2; }

.mlayout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.mindex { position: sticky; top: calc(var(--nav-h) + 86px); padding: 18px; }
.mindex h4 { margin: 0 0 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.mindex ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mindex a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; padding: 8px; border-radius: 8px; text-decoration: none; font-size: 14px; line-height: 1.3; color: var(--ink-2); transition: background-color .15s, color .15s; }
.mindex a:hover { background: var(--paper-2); color: var(--ink); }
.mindex a.is-active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.mindex .ix { font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--ink-3); padding-top: 1px; }
.mindex a.is-done .ix { color: var(--t-mint); }
.mindex .prog { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); display: grid; gap: 8px; }
@media (max-width: 980px) { .mlayout { grid-template-columns: 1fr; } .mindex { display: none; } }

/* Clase = parada en la línea de tiempo */
.clases { display: grid; gap: clamp(56px, 7vw, 88px); }
.clase { display: grid; grid-template-columns: 52px 1fr; gap: 0 clamp(14px, 2vw, 24px); position: relative; scroll-margin-top: calc(var(--nav-h) + 80px); }
.clase::before { content: ""; position: absolute; left: 25px; top: 54px; bottom: calc(-1 * clamp(56px, 7vw, 88px)); border-left: 2px dashed var(--ink-3); opacity: .5; }
.clase:last-child::before { bottom: 0; }
.clase__dot { width: 52px; height: 52px; border-radius: 50%; border: var(--border); background: var(--card); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: 12px; box-shadow: var(--shadow-sm); position: relative; z-index: 1; }
.clase.is-done .clase__dot { background: var(--p-mint); }
.clase__body { min-width: 0; }
.clase__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 8px; }
.clase__t { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 0; flex-basis: 100%; text-wrap: balance; }
.clase__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.clase__sum { color: var(--ink-2); font-size: 16.5px; max-width: 66ch; margin: 16px 0 0; }
.clase__sum b, .clase__sum strong { color: var(--ink); }

/* Tipo de sesión: la clase (morado de marca) y la práctica (cian) */
.kind {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 11px;
  border: var(--border); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--f-mono); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.kind svg { width: 16px; height: 16px; flex: none; }
.kind--clase { background: var(--brand); color: #fff; }
.kind--practica { background: var(--cyan); color: var(--ink); }
.kind__lema { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.clase--clase:not(.is-done) .clase__dot { background: var(--brand); color: #fff; }
.clase--practica:not(.is-done) .clase__dot { background: var(--cyan); }
.clase__lock {
  position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; border: 2px solid var(--card);
}
.clase__lock svg { width: 12px; height: 12px; }
.mindex .ix--clase { color: var(--brand); }
.mindex .ix--practica { color: var(--t-mint); }
.ix__lock { display: inline-flex; vertical-align: -1px; color: var(--ink); }
.ix__lock svg { width: 13px; height: 13px; }
@media (min-width: 901px) { .mstats--6 { grid-template-columns: repeat(6, 1fr); } }
.done-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--card); font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .15s, color .15s;
}
.done-btn svg { width: 14px; height: 14px; }
.done-btn[aria-pressed="true"] { background: var(--p-mint); color: var(--t-mint); border-color: var(--t-mint); }
@media (max-width: 600px) {
  .clase { grid-template-columns: 1fr; }
  .clase::before { display: none; }
  .clase__dot { width: 44px; height: 44px; margin-bottom: 10px; }
}

.callout {
  margin-top: 22px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--brand-soft); border: 1.5px solid var(--brand);
}
.callout__k { font-family: var(--f-mono); font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--brand-deep); }
.callout p { margin: 0; color: var(--ink); }

.rblock { margin-top: 30px; }
.rblock__h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.rblock__h::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.rblock__h .n { color: var(--ink-3); }

/* Ventana tipo "○○○ PROMPT 1" */
.win { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.win__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: var(--border); background: var(--paper); min-height: 50px; }
.win__dots { font-size: 9px; letter-spacing: 3px; color: var(--ink); flex: none; }
.win__ttl { font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy {
  flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--brand); color: #fff;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 2px 2px 0 var(--ink); transition: transform .15s, box-shadow .15s, background-color .2s;
}
.copy svg { width: 13px; height: 13px; }
.copy:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.copy:active { transform: translate(1px,1px); box-shadow: 0 0 0 var(--ink); }
.copy.is-ok { background: var(--t-mint); }
.win__pre {
  margin: 0; padding: 18px 20px; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.75; color: var(--ink);
  white-space: pre-wrap; word-break: break-word; max-height: 440px; overflow: auto; background: var(--card);
  scrollbar-width: thin;
}
.win__pre .ph { background: var(--p-butter); border-radius: 3px; padding: 0 2px; }
.win__scroll { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
/* Prompt largo: llena el alto de la fila; la sombra inferior solo aparece mientras queda texto por leer */
.win--largo .win__scroll { min-height: 440px; }
.win--largo .win__pre {
  position: absolute; inset: 0; max-height: none;
  background:
    linear-gradient(to top, var(--card) 45%, transparent) bottom / 100% 56px no-repeat local,
    linear-gradient(to top, rgba(21, 18, 28, .16), transparent) bottom / 100% 22px no-repeat scroll,
    var(--card);
}
.win--largo.is-full .win__pre { position: static; background: var(--card); }
.win__more {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px;
  border: 0; border-top: var(--border); background: var(--paper); color: var(--brand-deep);
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .15s;
}
.win__more[hidden] { display: none; }
.win__more .win__n { color: var(--ink-3); font-weight: 600; letter-spacing: .06em; text-transform: none; }
@media (hover: hover) and (pointer: fine) { .win__more:hover { background: var(--brand-soft); } }
.win__body { padding: 18px 20px; font-size: 15px; line-height: 1.6; }

.ppair { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.ppair + .ppair { margin-top: 18px; }
.ppair--solo { grid-template-columns: 1fr; }
.pmeta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 2px; }
.pmeta__t { font-weight: 800; font-size: 18px; letter-spacing: -.02em; margin: 0; }
.attach { grid-column: 1 / -1; padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--hair); background: color-mix(in srgb, var(--card) 70%, transparent); }
.attach .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.attach p { margin: 2px 0 0; font-size: 14.5px; }
@media (max-width: 860px) { .ppair { grid-template-columns: 1fr; } }

/* Prompt galáctico: panel dorado con un brillo suave para distinguirlo del resto */
.ppair.ppair--galactico {
  position: relative; padding: 20px; margin-block: 34px 14px; border-radius: 22px;
  border: 2px solid #e2ad00; background: linear-gradient(160deg, #fffbe3, #fff1b3);
}
.ppair--galactico::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 5px rgba(255, 204, 0, .3), 0 0 38px 8px rgba(255, 186, 0, .55);
  animation: brillo 3.6s ease-in-out infinite;
}
@keyframes brillo { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.ppair--galactico .win { box-shadow: 4px 4px 0 var(--ink), 0 0 0 3px #ffd60a; }
.ppair--galactico .win__bar { background: #fff4c2; }
.galax {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: #ffd60a; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--f-mono); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 600px) { .ppair.ppair--galactico { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .ppair--galactico::before { animation: none; opacity: .8; } }

/* Resultado (markdown simple) */
.res .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.res h2, .res h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 10px; font-weight: 800; }
.res p { margin: 0 0 12px; color: var(--ink-2); }
.res p b, .res p strong, .res li b { color: var(--ink); }
.res ul { margin: 0 0 12px; padding-left: 18px; color: var(--ink-2); }
.res li { margin-bottom: 6px; }
.res blockquote { margin: 4px 0 0; padding: 12px 14px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; color: var(--ink); }
.res > :last-child { margin-bottom: 0; }
.res img { border-radius: 8px; border: 1.5px solid var(--ink); }
.res a:not(.btn), .clase__sum a, .callout a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.res .res__cta { margin: 4px 0 14px; }
.res .res__cta .btn { white-space: normal; max-width: 100%; padding-block: 8px; border-radius: 18px; line-height: 1.3; }
.res .res__cta .btn svg { width: 15px; height: 15px; flex: none; }
.res__video { margin: 4px 0 14px; width: min(100%, 325px); }
.res__frame { aspect-ratio: 9 / 16; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-sm); }
.res__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.res__video figcaption { margin-top: 10px; font-size: 13px; }
.res__video figcaption a { display: inline-flex; align-items: center; gap: 6px; }
.res__video figcaption svg { width: 13px; height: 13px; }

/* Pizarras */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pz { text-align: left; padding: 0; background: var(--card); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s cubic-bezier(.2,.8,.2,1); }
.pz:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.pz__img { aspect-ratio: 16 / 10; background: #fff; border-bottom: var(--border); overflow: hidden; position: relative; }
.pz__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pz:hover .pz__img img { transform: scale(1.04); }
.pz__zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--ink); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); }
.pz__zoom svg { width: 15px; height: 15px; }
.pz__cap { padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.pz__cap .win__dots { font-size: 8px; }
.pz__cap span:last-child { font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Enlaces */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lnk { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.lnk:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.lnk__ico { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-stretch: 125%; font-size: 18px; color: var(--ink); }
.lnk__t { font-weight: 700; font-size: 15.5px; line-height: 1.25; letter-spacing: -.01em; }
.lnk__d { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.lnk__u { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); margin-top: 4px; letter-spacing: .04em; }
.lnk__go svg { width: 16px; height: 16px; }
.lnk.is-pending { border-style: dashed; border-color: var(--ink-3); box-shadow: none; pointer-events: none; }
.lnk.is-pending .lnk__ico { border-color: var(--ink-3); color: var(--ink-3); background: var(--paper-2) !important; }

/* Archivos */
.files { display: grid; gap: 10px; }
.file { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; }
.file__type { height: 38px; border-radius: 8px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.file__t { font-weight: 600; font-size: 15px; }
.ft-pdf { background: var(--p-rose); color: var(--t-rose); } .ft-ppt { background: var(--p-butter); color: var(--t-gold); }
.ft-doc { background: var(--p-blue); color: var(--t-blue); } .ft-xls { background: var(--p-mint); color: var(--t-mint); }
.ft-otro { background: var(--p-lav); color: var(--t-lav); }

/* Bloqueo VIP */
.locked { margin-top: 22px; position: relative; overflow: hidden; padding: clamp(22px, 3vw, 32px); border: 2px dashed var(--ink-3); border-radius: var(--radius); background: color-mix(in srgb, var(--card) 50%, transparent); }
.locked__ghost { position: absolute; inset: 0; padding: 26px; display: grid; gap: 14px; filter: blur(5px); opacity: .5; pointer-events: none; }
.locked__ghost i { display: block; height: 14px; border-radius: 6px; background: var(--ink-3); }
.locked__ghost i:nth-child(2) { width: 82%; } .locked__ghost i:nth-child(3) { width: 64%; } .locked__ghost i:nth-child(4) { height: 120px; border-radius: 12px; background: var(--brand-line); }
.locked__in { position: relative; z-index: 1; max-width: 460px; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.lockhead { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.lockhead h3, .lockhead h4 { margin: 0; }
.locked__in h4 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.locked__in p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.lockico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 3px 3px 0 var(--brand); }
.lockico svg { width: 20px; height: 20px; }
.passrow { display: flex; gap: 10px; }
.input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: var(--border); border-radius: 999px; background: var(--paper);
  font: 500 15px var(--f-sans); color: var(--ink); outline: none; transition: box-shadow .15s, background-color .15s;
}
.input:focus { background: var(--card); box-shadow: 3px 3px 0 var(--brand); }
.input.is-bad { animation: shake .36s; border-color: var(--t-rose); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.passmsg { font-size: 13px; color: var(--t-rose); min-height: 18px; margin-top: 8px; }
@media (max-width: 460px) { .passrow { flex-direction: column; } }

/* Filtros por tipo de recurso */
.mod[data-filter="pizarras"] .rblock:not([data-kind="pizarras"]),
.mod[data-filter="prompts"] .rblock:not([data-kind="prompts"]),
.mod[data-filter="enlaces"] .rblock:not([data-kind="enlaces"]),
.mod[data-filter="archivos"] .rblock:not([data-kind="archivos"]),
.mod[data-filter]:not([data-filter="todo"]) .callout { display: none; }
.mod[data-filter="pizarras"] .clase:not([data-has~="pizarras"]),
.mod[data-filter="prompts"] .clase:not([data-has~="prompts"]),
.mod[data-filter="enlaces"] .clase:not([data-has~="enlaces"]),
.mod[data-filter="archivos"] .clase:not([data-has~="archivos"]) { display: none; }

.empty { padding: clamp(28px, 5vw, 48px); text-align: left; display: grid; gap: 10px; justify-items: start; }
.empty h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.empty p { margin: 0; color: var(--ink-2); max-width: 52ch; }

.mnav { display: grid; grid-template-columns: 1fr minmax(190px, auto) 1fr; gap: 16px; margin-top: clamp(56px, 8vw, 96px); }
.mnav a { padding: 18px 20px; text-decoration: none; display: grid; gap: 4px; transition: transform .18s, box-shadow .18s; }
.mnav a:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.mnav .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.mnav .t { font-weight: 800; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; }
.mnav .prev { grid-column: 1; }
.mnav .all { grid-column: 2; text-align: center; background: var(--brand-soft); }
.mnav .next { text-align: right; grid-column: 3; }
@media (max-width: 600px) { .mnav { grid-template-columns: 1fr; } .mnav .prev, .mnav .all, .mnav .next { grid-column: 1; } }

/* Destello al llegar a un elemento desde la búsqueda */
.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px var(--brand), var(--shadow); } 100% { box-shadow: var(--shadow); } }

/* =====================================================================
   BIBLIOTECA
   ===================================================================== */
.libtools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 36px; }
.search-in { position: relative; flex: 1 1 320px; max-width: 460px; }
.search-in svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-3); }
.search-in .input { width: 100%; padding-left: 44px; }
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(22px, 3vw, 36px) clamp(18px, 2.4vw, 28px); }
.lib { display: flex; flex-direction: column; gap: 14px; }
.lib__info { display: grid; gap: 6px; }
.lib__t { font-weight: 800; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.lib__d { font-size: 14px; color: var(--ink-2); line-height: 1.45; margin: 0; }
.lib__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.lib__act { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.noresults { grid-column: 1 / -1; }

/* =====================================================================
   SUPERPOSICIONES: búsqueda, visor de pizarras, modal VIP, aviso
   ===================================================================== */
.overlay { position: fixed; inset: 0; z-index: 100; display: none; }
.overlay.is-open { display: block; }
.overlay__bg { position: absolute; inset: 0; background: rgba(21, 18, 28, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.palette { position: relative; margin: min(12vh, 110px) auto 0; width: min(680px, calc(100% - 32px)); max-height: min(70vh, 640px); display: flex; flex-direction: column; overflow: hidden; animation: rise .22s cubic-bezier(.2,.8,.2,1); }
.palette__in { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: var(--border); }
.palette__in svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.palette__in input { flex: 1; height: 60px; border: 0; outline: 0; background: transparent; font: 600 18px var(--f-sans); color: var(--ink); min-width: 0; }
.palette__list { overflow: auto; padding: 8px; }
.palette__grp { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); padding: 12px 10px 6px; }
.palette__item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; }
.palette__item[aria-selected="true"] { background: var(--brand-soft); }
.palette__ico { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.palette__t { font-weight: 600; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__s { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__empty { padding: 28px 18px; color: var(--ink-2); }
.palette__foot { border-top: 1px solid var(--hair); padding: 10px 16px; display: flex; gap: 16px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.palette mark { background: var(--p-butter); color: inherit; border-radius: 3px; }

.lightbox { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; }
.lightbox__bar { display: flex; align-items: center; gap: 12px; padding: 14px var(--gutter); color: #fff; position: relative; z-index: 2; }
.lightbox__ttl { flex: 1; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__stage { position: relative; overflow: auto; display: grid; place-items: center; padding: 0 var(--gutter) var(--gutter); }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 10px; border: var(--border); background: #fff; box-shadow: 6px 6px 0 var(--brand); cursor: zoom-in; animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.lightbox__stage.is-zoom { place-items: start; }
.lightbox__stage.is-zoom img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.icobtn { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); text-decoration: none; }
.icobtn svg { width: 18px; height: 18px; }
.icobtn:hover { background: var(--brand-soft); }
.lightbox .nav-arrow { position: fixed; top: 50%; translate: 0 -50%; z-index: 3; }
.lightbox .nav-arrow--prev { left: 14px; } .lightbox .nav-arrow--next { right: 14px; }

.modal { position: relative; margin: min(18vh, 160px) auto 0; width: min(460px, calc(100% - 32px)); padding: 26px; animation: rise .22s cubic-bezier(.2,.8,.2,1); }
.modal h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.modal p { margin: 0 0 18px; color: var(--ink-2); }
.modal__x { position: absolute; top: 14px; right: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; translate: -50% 0;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 14px;
  box-shadow: 3px 3px 0 var(--brand); display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Página genérica */
.page { padding-bottom: 40px; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 0; }

/* =====================================================================
   NIVEL SECRETO
   ===================================================================== */
.chip svg { width: 13px; height: 13px; flex: none; }
.chip--sus { background: var(--ink); color: #fff; border-color: var(--ink); padding: 0 12px; box-shadow: 2px 2px 0 var(--violet); }
.level--secreto .level__dot { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--violet); }
.level--secreto .level__dot::after { border-color: var(--violet); }
.level--secreto .level__dot svg { width: 22px; height: 22px; }
.level--secreto .level__head .tag { color: var(--violet); }
.mcard--secreto {
  color: var(--ai-ink); box-shadow: 4px 4px 0 var(--violet);
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(121, 31, 254, .45), transparent 70%),
    linear-gradient(rgba(3,214,206,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(3,214,206,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ai-bg);
}
.mcard--secreto:hover { box-shadow: 6px 6px 0 var(--violet); }
.mcard--secreto .mcard__num, .mcard--secreto .mcard__meta { color: rgba(236,232,255,.75); }
.mcard--secreto .mcard__arrow { background: transparent; border-color: rgba(236,232,255,.6); color: #fff; }
.mcard--secreto .bar { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.mcard--secreto .chip--sus { background: transparent; border-color: rgba(236,232,255,.6); box-shadow: 2px 2px 0 var(--violet); }
.mod--secreto .mhead__num { -webkit-text-stroke-color: var(--violet); }
.locked--sec {
  border: 2px solid var(--ink);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(121, 31, 254, .4), transparent 70%),
    linear-gradient(rgba(3,214,206,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(3,214,206,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ai-bg);
}
.locked--sec .locked__ghost i { background: rgba(164,107,255,.5); }
.locked__help { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }
.locked__help svg { width: 14px; height: 14px; transition: transform .2s; }
.locked__help:hover svg { transform: translateX(3px); }
.vip__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.vip .btn--ghost { --b-bg: transparent; --b-fg: #fff; border-color: rgba(236,232,255,.7); box-shadow: 3px 3px 0 var(--cyan); }

/* =====================================================================
   ECOSISTEMA EQUILIBRIA 360
   ===================================================================== */
.ecogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 1000px) { .ecogrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ecogrid { grid-template-columns: 1fr; } }
.eco {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 20px; min-height: 240px;
  text-decoration: none; overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s cubic-bezier(.2,.8,.2,1);
}
.eco:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.eco__ico { position: absolute; top: 18px; right: 18px; width: 64px; height: 64px; opacity: .9; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.eco__ico svg { width: 100%; height: 100%; stroke-width: 1.4; }
.eco:hover .eco__ico { transform: rotate(-8deg) scale(1.06); }
.eco__n { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .2em; opacity: .75; }
.eco__t { font-size: clamp(21px, 2vw, 25px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 18px; max-width: 14ch; }
.eco__d { font-size: 15px; line-height: 1.45; opacity: .85; max-width: 32ch; }
.eco__u { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; border-top: 1px dashed currentColor; opacity: .85; word-break: break-all; }
.eco__u svg { width: 14px; height: 14px; flex: none; }
.eco--lav { background: var(--p-lav); } .eco--lav .eco__ico { color: var(--t-lav); }
.eco--blue { background: var(--p-blue); } .eco--blue .eco__ico { color: var(--t-blue); }
.eco--mint { background: var(--p-mint); } .eco--mint .eco__ico { color: var(--t-mint); }
.eco--butter { background: var(--p-butter); } .eco--butter .eco__ico { color: var(--t-gold); }
.eco--rose { background: var(--p-rose); } .eco--rose .eco__ico { color: var(--t-rose); }
.eco--ink {
  color: var(--ai-ink); box-shadow: 4px 4px 0 var(--violet);
  background: radial-gradient(70% 80% at 100% 0%, rgba(121, 31, 254, .45), transparent 70%), var(--ai-bg);
}
.eco--ink .eco__ico { color: var(--cyan); }
.eco--ink:hover { box-shadow: 6px 6px 0 var(--violet); }
.eco--sm { min-height: 150px; padding: 18px 18px 16px; }
.eco--sm .eco__ico { width: 40px; height: 40px; top: 14px; right: 14px; }
.eco--sm .eco__t { font-size: 17px; margin-top: 10px; max-width: 12ch; }
.eco--sm .eco__u { font-size: 11px; }
.ecoband__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1100px) { .ecoband__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ecoband__grid { grid-template-columns: repeat(2, 1fr); } }
.ctaband { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 3vw, 32px); margin-top: clamp(40px, 6vw, 64px); background: var(--brand-soft); }
.ctaband .eyebrow { margin-bottom: 10px; }

.footer { padding-bottom: 96px; }
.footer__mas { display: grid; gap: 14px; padding-bottom: 28px; margin-bottom: 26px; border-bottom: 1px dashed var(--ink-3); }
.footer__mas[hidden] { display: none; }
.footer__mas .eyebrow { margin: 0; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.flink { height: 100%; display: grid; grid-template-columns: 1fr auto; column-gap: 18px; row-gap: 4px; align-items: center; padding: 18px 20px; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.flink:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.flink__t { grid-column: 1; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.flink__d { grid-column: 1; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.flink__u { grid-column: 1; margin-top: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }
.flink__go { grid-column: 2; grid-row: 1 / span 3; width: 42px; height: 42px; border: var(--border); border-radius: 50%; display: grid; place-items: center; background: var(--p-lav); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.footer__links li:nth-child(2n) .flink__go { background: var(--p-butter); }
.footer__links li:nth-child(3n) .flink__go { background: var(--p-mint); }
.flink__go svg { width: 17px; height: 17px; }
.flink:hover .flink__go { transform: rotate(-12deg); }
@media (prefers-reduced-motion: reduce) { .flink, .flink__go { transition: none; } .flink:hover { transform: none; } .flink:hover .flink__go { transform: none; } }

/* =====================================================================
   CARGA
   ===================================================================== */
.loading { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.loading img { width: 56px; animation: spin 2.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .loading img { animation: none; } }
.level__mods:has(> :only-child) { grid-template-columns: minmax(0, 480px); }

/* =====================================================================
   CONTACTO CON CLAUDIA · widget flotante
   .cw[data-estado]: oculto (en el hero) · circulo · abierto
   ===================================================================== */
#claudia { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; }
.cw { position: relative; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .35s ease; }
.cw[data-estado="oculto"] { transform: translateY(calc(100% + 48px)); opacity: 0; pointer-events: none; }

.cw__dot {
  position: relative; display: block; width: 66px; height: 66px; padding: 4px; border-radius: 50%;
  border: 2px solid var(--ink); background: conic-gradient(#03d6ce, #0f58f6, #791ffe, #9000ff, #03d6ce);
  box-shadow: 4px 4px 0 var(--violet); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.cw__dot img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); background: var(--brand-soft); }
.cw__dot:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--violet); }
.cw__dot:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.cw[data-estado="abierto"] .cw__dot { box-shadow: 2px 2px 0 var(--violet); }
.cw__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: 3px 3px 0 var(--violet); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.cw[data-estado="circulo"] .cw__dot:hover .cw__tip,
.cw[data-estado="circulo"] .cw__dot:focus-visible .cw__tip { opacity: 1; transform: none; }

.cw__panel {
  position: absolute; right: 0; bottom: calc(100% + 14px); width: min(310px, calc(100vw - 32px));
  transform-origin: calc(100% - 33px) calc(100% + 47px);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s ease, visibility 0s;
}
.cw:not([data-estado="abierto"]) .cw__panel {
  transform: scale(.12); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .42s cubic-bezier(.4,0,.2,1), opacity .25s ease, visibility 0s .42s;
}
.cw__fig { position: relative; z-index: 2; display: block; width: 150px; margin: 0 auto -64px; animation: flotar 5.6s ease-in-out infinite; filter: drop-shadow(0 14px 18px rgba(74, 18, 176, .25)); }
.cw__fig img { width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(#000 70%, transparent 97%); mask-image: linear-gradient(#000 70%, transparent 97%); }
.cw__card { position: relative; padding: 72px 22px 18px; text-align: center; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--violet); }
.cw__x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--hair); background: var(--card); font-size: 18px; line-height: 1; color: var(--ink-2); }
.cw__x:hover { background: var(--paper-2); color: var(--ink); }
.cw__hola { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.cw__msg { margin: 6px 0 16px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.cw__cta { width: 100%; justify-content: center; }
.cw__sub { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 600px) {
  .cw__dot { width: 58px; height: 58px; }
  .cw__panel { transform-origin: calc(100% - 29px) calc(100% + 43px); }
  .cw__fig { width: 120px; margin-bottom: -52px; }
  .cw__card { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .cw, .cw__panel, .cw:not([data-estado="abierto"]) .cw__panel { transition: opacity .2s ease, visibility 0s; }
  .cw[data-estado="oculto"], .cw:not([data-estado="abierto"]) .cw__panel { transform: none; }
  .cw__fig { animation: none; }
}
@keyframes flotar { 0%, 100% { translate: 0 0; rotate: -1.5deg; } 50% { translate: 0 -10px; rotate: 1.5deg; } }

/* ─────────────── Sección "Habla con Claudia" ─────────────── */
.talk {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  background: radial-gradient(70% 90% at 78% 40%, #f4efff 0%, var(--p-lav) 55%, #ddd1fb 100%);
  overflow: hidden;
}
.talk__copy .btn { margin-top: 28px; }
.talk__stage { position: relative; min-height: clamp(360px, 40vw, 500px); display: grid; place-items: center; }
.talk__orbit { position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(106, 27, 239, .35); }
.talk__orbit::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 70%); }
.talk__fig { position: relative; z-index: 2; width: clamp(220px, 26vw, 330px); animation: flotar 6s ease-in-out infinite; filter: drop-shadow(0 22px 26px rgba(74, 18, 176, .28)); }
.talk__fig img { width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); }
.talk__shadow { position: absolute; bottom: 4%; width: 46%; height: 18px; border-radius: 50%; background: radial-gradient(rgba(74, 18, 176, .35), transparent 70%); animation: sombra 6s ease-in-out infinite; }
@keyframes sombra { 0%, 100% { scale: 1; opacity: .9; } 50% { scale: .8; opacity: .55; } }
.talk__q {
  position: absolute; z-index: 3; padding: 9px 14px; border-radius: 14px; background: var(--card); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--violet);
  font-size: 14px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; animation: flotar 7s ease-in-out infinite;
  transition: background-color .2s, color .2s;
}
.talk__q:hover { background: var(--brand); color: #fff; }
.talk__q--1 { top: 10%; left: 0; animation-delay: -1s; }
.talk__q--2 { top: 46%; right: 0; animation-delay: -3s; }
.talk__q--3 { bottom: 14%; left: 4%; animation-delay: -5s; }
@media (max-width: 860px) {
  .talk { grid-template-columns: 1fr; }
  .talk__stage { min-height: 380px; }
  .talk__q { font-size: 13px; }
  .talk__q--2 { right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .talk__fig, .talk__q, .talk__shadow { animation: none; }
}

/* =====================================================================
   BIBLIOTECA · serie de manuales (portada A4, colores propios, estados)
   ===================================================================== */
.cover { aspect-ratio: 210 / 297; }
.gcover--serie { background: var(--mf); color: var(--ink); }
.gcover--serie::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: var(--mc); z-index: 1; }
.gcover--serie .gcover__art { bottom: 18%; height: 50%; }
.gcover--serie .gcover__brand { color: #fff; }
.gcover--serie .gcover__brand img { filter: brightness(0) invert(1); }
.badge-vip {
  position: absolute; top: 10px; right: 10px; z-index: 4; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 8px; box-shadow: 2px 2px 0 var(--violet);
}
.cover__soon {
  position: absolute; top: 10px; left: 12px; z-index: 4; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 8px;
}
.book { position: relative; }
.cover__tags { position: absolute; top: -11px; left: 12px; z-index: 5; display: flex; gap: 6px; pointer-events: none; }
.cover__tags .badge-new, .cover__tags .badge-vip, .cover__tags .cover__soon { position: static; }
.lib--soon .book { cursor: default; }
.lib--soon .book:hover .cover { transform: none; box-shadow: var(--shadow); }
.lib__vip { color: var(--brand); font-weight: 700; }

/* =====================================================================
   BOTÓN "UNIVERSO DE IAs" (barra superior)
   ===================================================================== */
.nav__uni {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
  color: var(--ink); text-decoration: none; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; transition: transform .15s, box-shadow .15s;
}
.nav__uni svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.nav__uni:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.nav__uni[hidden] { display: none; }
@media (max-width: 1240px) { .nav__uni .lbl { display: none; } .nav__uni { width: 40px; padding: 0; justify-content: center; } }
.drawer a[hidden] { display: none; }

/* Ecosistema: 7 plataformas sin dejar una tarjeta suelta */
.ecoband__grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (min-width: 1001px) { .ecogrid > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; min-height: 0; } }
@media (min-width: 601px) and (max-width: 1000px) { .ecogrid > :last-child:nth-child(2n + 1) { grid-column: 1 / -1; min-height: 0; } }
.ecogrid > :last-child:is(:nth-child(3n + 1), :nth-child(2n + 1)) .eco__t { max-width: 26ch; }
.ecogrid > :last-child:is(:nth-child(3n + 1), :nth-child(2n + 1)) .eco__d { max-width: 60ch; }
@media (max-width: 600px) {
  .libgrid { grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .lib__t { font-size: 15px; }
  .lib__d { font-size: 13px; }
  .lib__act .btn { width: 100%; justify-content: center; padding: 0 10px; }
  .libtools .mtools__in { flex-wrap: nowrap !important; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; }
  .libtools .search-in { max-width: none; }
}
