/* ============================================================
   ALAS TRAINING GROUP — Design System
   Derivado del Brand Guide + Onboarding Deck 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  /* Core brand palette */
  --bg:            #08081a;
  --bg2:           #0e0e2a;
  --bg3:           #14143a;
  --purple:        #7B3FF2;
  --purple-light:  #9B6CF7;
  --magenta:       #D946A8;
  --cyan:          #00D4F5;
  --lime:          #BCFF5A;
  --white:         #FFFFFF;
  --gray:          #8888aa;
  --gray-light:    #ccccdd;

  --card-bg:       rgba(255,255,255,0.04);
  --card-border:   rgba(255,255,255,0.08);

  --grad-brand:    linear-gradient(135deg, var(--purple), var(--magenta));
  --grad-cool:     linear-gradient(135deg, var(--purple), var(--cyan));
  --grad-text:     linear-gradient(135deg, var(--purple-light), var(--cyan));

  /* Layout */
  --maxw:          1180px;
  --nav-h:         72px;
  --radius:        18px;
  --radius-sm:     12px;
  --ease:          cubic-bezier(.22,.61,.36,1);

  --shadow:        0 24px 60px -20px rgba(0,0,0,.6);
  --shadow-glow:   0 0 0 1px rgba(123,63,242,.25), 0 24px 60px -16px rgba(123,63,242,.35);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* overflow-x: clip on the root kills phantom horizontal scroll from
   decorative bleed (glow spheres, marquee) WITHOUT creating a scroll
   container, so the sticky nav keeps working. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Ambient gradient field that lives behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(123,63,242,.22), transparent 60%),
    radial-gradient(900px 600px at 95% 0%, rgba(217,70,168,.16), transparent 55%),
    radial-gradient(800px 700px at 50% 110%, rgba(0,212,245,.12), transparent 60%),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }

/* Mono caps label — the editorial "// section" tag from the reference */
.mono-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--lime);
}
.mono-label::before { content: '//'; color: var(--cyan); opacity: .9; }
.mono-label.no-slash::before { content: ''; }
.mono-label.cyan { color: var(--cyan); } .mono-label.cyan::before { color: var(--lime); }
.mono-label.magenta { color: var(--magenta); } .mono-label.magenta::before { color: var(--purple-light); }
.mono { font-family: 'Space Mono', monospace; }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: clamp(16px, 1.6vw, 20px); }
p  { color: var(--gray-light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--purple-light);
  padding: 6px 14px; border-radius: 50px;
  background: rgba(123,63,242,.12);
  border: 1px solid rgba(123,63,242,.28);
  margin-bottom: 22px;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.c-cyan { color: var(--cyan); }
.c-magenta { color: var(--magenta); }
.c-purple { color: var(--purple-light); }
.c-lime { color: var(--lime); }
.c-white { color: #fff; }

.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--gray-light); max-width: 60ch; }
.muted { color: var(--gray); }
.small { font-size: 14px; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 18px; }

.divider { width: 56px; height: 3px; border-radius: 2px; background: var(--grad-cool); margin: 18px 0 26px; }
.section-head.center .divider { margin-left: auto; margin-right: auto; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(8,8,26,.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 34px; width: auto; }
.brand-txt { font-weight: 800; font-size: 16px; letter-spacing: -.01em; line-height: 1; }
.brand-txt span { display: block; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--gray-light);
  padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s;
  position: relative;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--grad-cool);
}

/* Dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 280px; padding: 10px; border-radius: 16px;
  background: rgba(16,16,42,.96); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(20px); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: all .22s var(--ease); z-index: 50;
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; background: none; }
.drop a:hover { background: rgba(123,63,242,.14); }
.drop .ico { font-size: 18px; line-height: 1.2; }
.drop b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.drop small { color: var(--gray); font-size: 12px; font-weight: 500; }

.nav-cta {
  margin-left: 10px;
}
.burger { display: none; background: none; border: none; color: #fff; cursor: pointer; font-size: 24px; padding: 6px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 13px 26px; border-radius: 50px; border: 1px solid transparent;
  transition: transform .2s var(--ease), opacity .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(217,70,168,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(217,70,168,.7); }
.btn-ghost { background: rgba(255,255,255,.05); color: #fff; border-color: rgba(255,255,255,.14); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ── PILLS / TAGS ────────────────────────────────────────── */
.pill { display: inline-block; padding: 5px 13px; border-radius: 50px; font-size: 12.5px; font-weight: 600; }
.pill-purple  { background: rgba(123,63,242,.18); color: var(--purple-light); border: 1px solid rgba(123,63,242,.3); }
.pill-cyan    { background: rgba(0,212,245,.14);  color: var(--cyan);         border: 1px solid rgba(0,212,245,.3); }
.pill-magenta { background: rgba(217,70,168,.15); color: var(--magenta);      border: 1px solid rgba(217,70,168,.3); }
.pill-lime    { background: rgba(188,255,90,.12); color: var(--lime);         border: 1px solid rgba(188,255,90,.25); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px;
  backdrop-filter: blur(6px); transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.card.hover:hover { transform: translateY(-5px); border-color: rgba(123,63,242,.4); background: rgba(255,255,255,.06); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }

/* ── SVG ICON SYSTEM (no emoji as structural icons) ──────── */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 28px; height: 28px; }

/* Tinted icon container — the on-brand replacement for emoji-in-a-box */
.icon-box {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(123,63,242,.14); color: var(--purple-light);
  border: 1px solid rgba(123,63,242,.25);
}
.icon-box .icon { width: 26px; height: 26px; }
.ib-cyan    { background: rgba(0,212,245,.12);  color: var(--cyan);    border-color: rgba(0,212,245,.28); }
.ib-magenta { background: rgba(217,70,168,.12); color: var(--magenta); border-color: rgba(217,70,168,.28); }
.ib-lime    { background: rgba(188,255,90,.10); color: var(--lime);    border-color: rgba(188,255,90,.24); }
.ib-grad    { background: var(--grad-brand); color: #fff; border: none; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }

/* Accent top-bar cards */
.acc { position: relative; overflow: hidden; }
.acc::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; }
.acc-1::before { background: linear-gradient(90deg, #3B82F6, var(--purple)); }
.acc-2::before { background: linear-gradient(90deg, var(--purple), var(--magenta)); }
.acc-3::before { background: linear-gradient(90deg, var(--magenta), var(--lime)); }
.acc-4::before { background: linear-gradient(90deg, var(--lime), var(--cyan)); }

/* ── HERO ────────────────────────────────────────────────── */
.hero { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(60px, 8vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; font-size: clamp(17px, 1.6vw, 21px); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.stat .num { font-size: clamp(30px, 4vw, 44px); font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat .lbl { font-size: 13px; color: var(--gray); margin-top: 8px; max-width: 150px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img.kairo { width: min(380px, 90%); filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); animation: float 6s ease-in-out infinite; }
.hero-glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(123,63,242,.4), transparent 65%); filter: blur(30px); z-index: -1; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }

.speech {
  position: absolute; top: 6%; right: -4%;
  background: rgba(16,16,42,.92); border: 1px solid rgba(0,212,245,.3);
  border-radius: 16px 16px 16px 4px; padding: 12px 16px; max-width: 210px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}

/* ── QUOTE / CALLOUT ─────────────────────────────────────── */
.quote {
  border-left: 3px solid var(--purple); padding: 18px 26px;
  background: rgba(123,63,242,.08); border-radius: 0 14px 14px 0;
  font-style: italic; font-size: 17px; color: var(--gray-light);
}
.callout {
  display: flex; gap: 16px; align-items: center;
  background: rgba(188,255,90,.05); border: 1px solid rgba(188,255,90,.18);
  border-radius: var(--radius-sm); padding: 18px 24px;
}
.callout .ico { font-size: 22px; flex-shrink: 0; }
.callout p { font-size: 14.5px; }

/* ── CHECK LIST ──────────────────────────────────────────── */
.checks { list-style: none; }
.checks li { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 15px; color: var(--gray-light); }
.checks li:last-child { border-bottom: none; }
.checks .mk { color: var(--lime); flex-shrink: 0; margin-top: 2px; font-weight: 800; }
.checks .mk.x { color: #ff6b6b; }

/* ── STEPS / TIMELINE ────────────────────────────────────── */
.steps { display: grid; gap: 16px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step .n {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--grad-cool); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.step h4 { margin-bottom: 4px; }
.step p { font-size: 14.5px; }

/* ── LOGO CHIPS ──────────────────────────────────────────── */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.logo-chip {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: 18px 12px; text-align: center; font-weight: 700; font-size: 14px;
  transition: border-color .2s, background .2s;
}
.logo-chip:hover { border-color: rgba(123,63,242,.4); background: rgba(255,255,255,.07); }
.logo-chip span { display: block; font-size: 11px; font-weight: 500; color: var(--gray); margin-top: 4px; }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(135deg, rgba(123,63,242,.18), rgba(217,70,168,.14));
  border: 1px solid rgba(123,63,242,.3); border-radius: 28px;
  padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
}
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { max-width: 56ch; margin: 0 auto 30px; font-size: 18px; }
.cta-inner .hero-cta { justify-content: center; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { border-top: 1px solid rgba(255,255,255,.08); padding: 64px 0 32px; background: rgba(8,8,22,.6); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand p { font-size: 14px; margin: 18px 0; max-width: 32ch; }
.foot-col h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--gray-light); padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: var(--cyan); }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background .2s, transform .2s; }
.foot-social a:hover { background: var(--grad-brand); transform: translateY(-2px); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; color: var(--gray); flex-wrap: wrap; }

/* ── REVEAL ANIM ─────────────────────────────────────────── */
/* GSAP drives reveals when JS is on; this is the no-JS / pre-init fallback.
   will-change only on elements that actually animate (gsap-performance). */
.reveal { opacity: 0; transform: translateY(24px); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; }
.js-ready .reveal { transition: none; }            /* GSAP owns the motion */
html:not(.js-ready) .reveal { opacity: 1; transform: none; } /* safety if JS fails */
.hero-art img.kairo { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-art img.kairo { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── PAGE HEADER (interior pages) ────────────────────────── */
.page-head { padding: clamp(56px, 7vw, 96px) 0 clamp(36px, 5vw, 56px); text-align: center; }
.page-head .lead { margin: 18px auto 0; text-align: center; }
.breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--cyan); }

/* tier badge */
.tier-badge { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; margin-bottom: 16px; }
.t1 { background: linear-gradient(135deg, #3B82F6, var(--purple)); }
.t2 { background: linear-gradient(135deg, var(--purple), var(--magenta)); }
.t3 { background: linear-gradient(135deg, var(--magenta), var(--lime)); }

/* resource / blog cards */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .thumb { height: 150px; background: var(--grad-cool); display: flex; align-items: center; justify-content: center; font-size: 44px; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: 12px; color: var(--gray); margin-bottom: 10px; letter-spacing: .04em; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card p { font-size: 14px; flex: 1; }
.post-card .more { margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--cyan); }

/* downloadable */
.dl { display: flex; gap: 18px; align-items: center; }
.dl .ico { width: 52px; height: 52px; border-radius: 13px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.dl b { display: block; font-size: 16px; margin-bottom: 3px; }
.dl small { color: var(--gray); font-size: 13px; }

/* article body */
.article { max-width: 760px; margin: 0 auto; }
.article p { font-size: 17px; line-height: 1.8; margin: 0 0 22px; }
.article h2 { margin: 44px 0 18px; }
.article h3 { margin: 32px 0 12px; }
.article ul { margin: 0 0 22px; padding-left: 22px; }
.article li { font-size: 17px; line-height: 1.7; color: var(--gray-light); margin-bottom: 8px; }
.article .quote { margin: 30px 0; }

/* form */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-light); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 11px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-family: inherit; font-size: 15px; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--purple-light); background: rgba(255,255,255,.06); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray); }

/* faq */
.faq-item { border-bottom: 1px solid rgba(255,255,255,.08); }
.faq-q { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 4px; cursor: pointer; font-weight: 700; font-size: 17px; }
.faq-q .pm { color: var(--cyan); font-size: 22px; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a p { padding: 0 4px 22px; font-size: 15.5px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .speech { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(12,12,32,.98); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 14px; gap: 4px; backdrop-filter: blur(20px);
  }
  .nav-links.open a { padding: 13px 16px; border-radius: 10px; }
  .nav-links.open .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.03); min-width: 0; margin: 4px 0; transform: none; }
  .has-drop { display: flex; flex-direction: column; }
  .nav-cta { margin: 6px 0 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 24px; }
  .foot-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand-txt span { display: none; }
}

/* ════════════════════════════════════════════════════════════
   DYNAMIC LAYER — variety, energy, ludic devices
   (Sora display + mono labels + bento + ghost numbers + doodles)
   ════════════════════════════════════════════════════════════ */

/* Kinetic shine headline — seamless soft loop (palindrome gradient +
   alternate + ease-in-out, no hard reset). */
.kinetic {
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--purple-light), var(--cyan), var(--lime));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 9s ease-in-out infinite alternate;
}
@keyframes shine { from { background-position: 0% center; } to { background-position: 100% center; } }

/* Floating blurred energy spheres */
.glow-sphere { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; pointer-events: none; animation: pulse-glow 9s ease-in-out infinite; }
.gs-purple  { background: var(--purple); }
.gs-magenta { background: var(--magenta); }
.gs-cyan    { background: var(--cyan); }
.gs-lime    { background: var(--lime); }
@keyframes pulse-glow { 0%,100% { opacity:.22; transform:scale(1); } 50% { opacity:.42; transform:scale(1.12); } }

/* Ludic dotted pattern */
.ludic-dots { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(188,255,90,.16) 1.4px, transparent 1.4px);
  background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

/* Squiggle doodle under a word (uses brand squiggle asset).
   Sits tight in the descender space so it never collides with the
   line below — only use on last-line / standalone words. */
.squig { position: relative; display: inline-block; padding-bottom: .14em; }
.squig::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.04em; height: .2em;
  background: url('../img/graficos/Squiggle-3.png') no-repeat center bottom / 100% 100%;
  opacity: .95; pointer-events: none;
}
.squig.s1::after { background-image: url('../img/graficos/Squiggle-1.png'); }
.squig.s5::after { background-image: url('../img/graficos/Squiggle-5.png'); }
.squig.s6::after { background-image: url('../img/graficos/Squiggle-6.png'); }
/* headings that carry a squiggle get a touch more leading for breathing room */
.lh-air { line-height: 1.22 !important; }

/* Glass card (reference look) — richer than the flat .card */
.glass {
  position: relative; border-radius: 22px; padding: 30px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 1px 1px 0 0 rgba(255,255,255,.08);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .35s;
}
.glass.lift:hover { transform: translateY(-6px); border-color: rgba(123,63,242,.5); box-shadow: 0 26px 50px -22px rgba(0,0,0,.6), inset 1px 1px 0 0 rgba(255,255,255,.12); }
.glass.edge-lime:hover    { border-color: rgba(188,255,90,.5); }
.glass.edge-cyan:hover    { border-color: rgba(0,212,245,.5); }
.glass.edge-magenta:hover { border-color: rgba(217,70,168,.5); }

/* BENTO grid — varied tile sizes, not a uniform row */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bento > * { grid-column: span 4; }
.b-wide { grid-column: span 8 !important; }
.b-half { grid-column: span 6 !important; }
.bento .b-tall { grid-row: span 2; }
.bento-feature { display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; }
.bento .ghost-ico { position: absolute; right: 14px; top: 10px; opacity: .07; pointer-events: none; }
.bento .ghost-ico .icon { width: 120px; height: 120px; }

/* GIANT ghost numbers (process) */
.ghost-step { position: relative; }
.ghost-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(64px, 9vw, 120px);
  line-height: 1.04; padding-top: .06em; letter-spacing: -.04em; color: transparent; overflow: visible;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.16); transition: color .5s var(--ease), -webkit-text-stroke-color .5s; }
.rail { padding-top: 8px; }
.ghost-step:hover .ghost-num, .ghost-step.on .ghost-num { color: rgba(188,255,90,.16); -webkit-text-stroke-color: rgba(188,255,90,.45); }
.ghost-bar { height: 2px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; border-radius: 2px; margin: 14px 0; }
.ghost-bar::after { content:''; position:absolute; inset:0 100% 0 0; background: var(--grad-cool); transition: inset .7s var(--ease); }
.ghost-step:hover .ghost-bar::after, .ghost-step.on .ghost-bar::after { inset: 0 0 0 0; }

/* Horizontal snap rail */
.rail { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; }
.rail::-webkit-scrollbar { height: 6px; } .rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }
.rail > * { scroll-snap-align: center; flex: 0 0 min(360px, 80vw); }

/* Stats bar (big numbers, hover-scale) */
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.statbar .s { text-align: center; padding: 8px; }
.statbar .s .v { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(34px, 4.4vw, 54px); line-height: 1;
  transition: transform .3s var(--ease); display: inline-block; }
.statbar .s:hover .v { transform: scale(1.12); }
.statbar .s .k { font-family: 'Space Mono', monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); margin-top: 10px; }

/* Manifiesto — oversized centered statement */
.manifiesto { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(26px, 4.2vw, 50px);
  line-height: 1.22; letter-spacing: -.02em; text-align: center; max-width: 18ch; margin: 0 auto; }

/* Marquee — moving brand phrases */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; gap: 28px; white-space: nowrap; will-change: transform; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(26px, 3.4vw, 44px); color: rgba(255,255,255,.10); -webkit-text-stroke: 1px rgba(255,255,255,.18); display: inline-flex; align-items: center; gap: 28px; }
.marquee-item .dot { color: var(--lime); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Image frame with mascot + dashed ludic border + floating badge */
.frame { position: relative; }
.frame .dash { position: absolute; inset: -14px; border: 2px dashed rgba(188,255,90,.28); border-radius: 28px; }
.frame .pane { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(120% 120% at 30% 0%, rgba(123,63,242,.28), rgba(8,8,26,.6)); padding: 18px; }
.float-badge { position: absolute; background: rgba(20,20,42,.9); backdrop-filter: blur(10px);
  border: 1px solid rgba(0,212,245,.3); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.float-badge .v { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 26px; color: var(--cyan); line-height: 1; }
.float-badge .k { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-top: 4px; }
.float-soft { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Magnetic button (JS moves it; this is the smoothing) */
.magnetic { transition: transform .25s var(--ease); }

/* Pulse dot for live tags */
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(188,255,90,.5); animation: pdot 2.4s infinite; }
@keyframes pdot { 0% { box-shadow: 0 0 0 0 rgba(188,255,90,.5);} 70%{ box-shadow: 0 0 0 8px rgba(188,255,90,0);} 100%{ box-shadow:0 0 0 0 rgba(188,255,90,0);} }

@media (prefers-reduced-motion: reduce) {
  .kinetic, .glow-sphere, .float-soft, .marquee-track, .pulse-dot { animation: none !important; }
  .marquee-track { transform: none; }
}

@media (max-width: 900px) {
  .bento > *, .b-wide, .b-half { grid-column: span 12 !important; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
}

/* ── LEVEL CARDS — strong, distinct identity per nivel ───────── */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.level {
  position: relative; overflow: hidden; border-radius: 24px; padding: 30px;
  display: flex; flex-direction: column; min-height: 340px;
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px); transition: transform .45s var(--ease), border-color .35s, box-shadow .35s;
}
.level:hover { transform: translateY(-7px); box-shadow: 0 30px 60px -26px rgba(0,0,0,.65); }
.level .wm { position: absolute; top: -18px; right: 6px; font-family:'Sora',sans-serif; font-weight: 800;
  font-size: 150px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.07); pointer-events: none; }
.level .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; position: relative; z-index: 1; }
.level h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; position: relative; z-index: 1; }
.level p { font-size: 14.5px; position: relative; z-index: 1; }
.level .tags { margin-top: auto; padding-top: 20px; position: relative; z-index: 1; }
.level .go { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-family:'Space Mono',monospace; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
/* nivel themes */
.level.lv1 { background: radial-gradient(130% 120% at 100% 0%, rgba(0,212,245,.16), rgba(255,255,255,.03)); }
.level.lv1:hover { border-color: rgba(0,212,245,.5); }
.level.lv1 .wm { -webkit-text-stroke-color: rgba(0,212,245,.18); }
.level.lv2 { background: radial-gradient(130% 120% at 100% 0%, rgba(217,70,168,.18), rgba(255,255,255,.03)); }
.level.lv2:hover { border-color: rgba(217,70,168,.5); }
.level.lv2 .wm { -webkit-text-stroke-color: rgba(217,70,168,.2); }
.level.lv3 { background: radial-gradient(130% 120% at 100% 0%, rgba(188,255,90,.14), rgba(255,255,255,.03)); }
.level.lv3:hover { border-color: rgba(188,255,90,.5); }
.level.lv3 .wm { -webkit-text-stroke-color: rgba(188,255,90,.2); }
.level .featured-tag { font-family:'Space Mono',monospace; font-size: 11px; font-weight:700; letter-spacing:.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 50px; background: rgba(217,70,168,.18); color: var(--magenta); border:1px solid rgba(217,70,168,.35); }

/* ── COMPLEMENTARIOS wide band ──────────────────────────────── */
.comp-band { display: grid; grid-template-columns: 1.1fr 2fr; gap: 32px; align-items: center;
  border-radius: 24px; padding: 32px; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(120deg, rgba(123,63,242,.12), rgba(255,255,255,.02)); }
.comp-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.comp-item { text-align: center; }
.comp-item .icon-box { margin: 0 auto 10px; }
.comp-item b { display: block; font-size: 14px; }
.comp-item small { color: var(--gray); font-size: 12px; }

/* ── VALUES — bold band ─────────────────────────────────────── */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value {
  border-radius: 20px; padding: 26px 22px; border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035); transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.value:hover { transform: translateY(-5px); background: rgba(255,255,255,.06); }
.value .icon-box { width: 60px; height: 60px; margin-bottom: 18px; }
.value .icon-box .icon { width: 30px; height: 30px; }
.value h4 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 6px; }
.value p { font-size: 13.5px; }
.value.v1:hover { border-color: rgba(0,212,245,.5); } .value.v2:hover { border-color: rgba(217,70,168,.5); }
.value.v3:hover { border-color: rgba(188,255,90,.5); } .value.v4:hover { border-color: rgba(123,63,242,.5); }

/* ── TRUST band — with weight ───────────────────────────────── */
.trust-band { display: grid; grid-template-columns: .8fr 2.2fr; gap: 32px; align-items: center;
  border-radius: 24px; padding: 34px; border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.025); }
.trust-band .lead-stat .v { font-family:'Sora',sans-serif; font-weight:800; font-size: clamp(40px,5vw,58px); line-height:1; }
.trust-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.trust-logos .logo-chip { padding: 22px 12px; font-size: 16px; }

/* ── KAIRO statement (spotlight tile + speech bubble) ───────── */
.kairo-stage { position: relative; max-width: 380px; margin: 0 auto; }
.kairo-spot { position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); aspect-ratio: 1 / 1;
  background: radial-gradient(80% 80% at 50% 95%, rgba(123,63,242,.5), rgba(8,8,26,.1)); }
.kairo-spot img { width: 108%; height: 108%; object-fit: cover; object-position: center 12%; position: relative; left: -4%; }
/* vignette blends the baked-in render background into the dark UI */
.kairo-spot::after { content:''; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(70% 70% at 50% 38%, transparent 55%, rgba(8,8,26,.85) 100%);
  box-shadow: inset 0 -40px 60px -20px rgba(8,8,26,.9), inset 0 30px 50px -20px rgba(8,8,26,.7); }
.bubble {
  position: absolute; z-index: 3; background: #fff; color: #14142a;
  font-weight: 800; font-size: 15px; line-height: 1.35; padding: 14px 18px;
  border-radius: 18px 18px 18px 4px; max-width: 240px; box-shadow: var(--shadow);
}
.bubble small { display:block; font-family:'Space Mono',monospace; font-weight:700; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--purple); margin-bottom:4px; }
.bubble::after { content:''; position:absolute; bottom:-10px; left:26px; border:10px solid transparent; border-top-color:#fff; border-bottom:0; }

/* Kairo peeking sticker (corner accent) */
.kairo-peek { position: absolute; width: 130px; pointer-events: none; filter: drop-shadow(0 12px 20px rgba(0,0,0,.45)); }

@media (max-width: 900px) {
  .levels { grid-template-columns: 1fr; }
  .comp-band, .trust-band { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .comp-list { grid-template-columns: repeat(2, 1fr); }
  .trust-logos { grid-template-columns: repeat(3, 1fr); }
}

/* Rounded corners on every content image — except the brand logos. */
img { border-radius: 16px; }
.brand img, .foot-brand img { border-radius: 0; }

/* Breathing room so level cards never collide with the next block */
.levels { margin-bottom: 8px; }
.comp-band { margin-top: 28px !important; }

/* ── CUSTOM LIME CURSOR + TRAIL ─────────────────────────────
   Driven by gsap.quickTo() (see main.js). Only active on a real
   pointer; native cursor stays under touch / reduced-motion. */
#cursor-dot, .cursor-trail {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; z-index: 100000; will-change: transform;
}
#cursor-dot {
  width: 16px; height: 16px; box-sizing: border-box;
  border: 2px solid transparent;
  background: radial-gradient(circle at 35% 30%, #d8ff90, var(--lime) 72%);
  box-shadow: 0 0 14px 2px rgba(188,255,90,.6), 0 0 5px rgba(188,255,90,.95);
  /* grow by real size (not transform scale) → stays crisp, never pixelates */
  transition: width .26s var(--ease), height .26s var(--ease),
              background .26s, box-shadow .26s, border-color .26s;
}
/* hover: hollow lime ring, transparent center → doesn't cover content */
#cursor-dot.hovering {
  width: 40px; height: 40px;
  background: rgba(188,255,90,.10);
  border-color: var(--lime);
  box-shadow: 0 0 12px rgba(188,255,90,.35);
}
.cursor-trail { width: 13px; height: 13px; background: var(--lime); }
html.cursor-on, html.cursor-on * { cursor: none !important; }
@media (hover: none), (pointer: coarse) { #cursor-dot, .cursor-trail { display: none; } }
@media (prefers-reduced-motion: reduce) { #cursor-dot, .cursor-trail { display: none; } }

/* ── HubSpot embedded form (free plan = cross-origin iframe) ─────
   Can't reach inside the iframe to theme it, so we give it a clean
   LIGHT card so HubSpot's default dark text stays readable and the
   form reads as an intentional element on the dark page. */
.hs-form-frame {
  display: block; background: #fff; border-radius: 14px;
  padding: 10px 14px; min-height: 300px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.hs-form-frame iframe { width: 100% !important; border: 0; }

/* ════════════════════════════════════════════════════════════
   BLOG ARTICLE TEMPLATE — editorial layout + dynamic features
   ════════════════════════════════════════════════════════════ */

/* reading progress bar (transform scaleX → cheap) */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200; background: transparent; }
.read-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--magenta)); will-change: transform; }

/* hero */
.article-hero { max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(48px,7vw,84px) 24px clamp(28px,4vw,44px); }
.article-hero .breadcrumb { justify-content: center; }
.article-hero h1 { font-size: clamp(32px,5vw,56px); margin: 12px 0 18px; }
.article-hero .dek { font-size: clamp(17px,1.6vw,21px); color: var(--gray-light); max-width: 60ch; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 26px;
  font-family: 'Space Mono', monospace; font-size: 12.5px; letter-spacing: .04em; color: var(--gray); }
.article-meta .who { display: inline-flex; align-items: center; gap: 9px; color: var(--gray-light); }
.article-meta .av { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); display: inline-flex; align-items: center; justify-content: center; font-family: 'Sora'; font-weight: 800; font-size: 13px; color: #fff; }
.article-meta .sep { opacity: .4; }

/* featured image */
.featured { max-width: 1040px; margin: 0 auto clamp(28px,5vw,56px); padding: 0 24px; }
.featured figure { margin: 0; }
.featured img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 22px; }
figcaption { font-size: 13px; color: var(--gray); margin-top: 10px; text-align: center; font-style: italic; }

/* layout: sticky TOC + body */
.article-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 56px; align-items: start; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.toc { position: sticky; top: 96px; }
.toc .ttl { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); margin-bottom: 14px; }
.toc ul { list-style: none; border-left: 1px solid rgba(255,255,255,.12); }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; font-size: 13.5px; color: var(--gray); border-left: 2px solid transparent; transition: color .2s, border-color .2s; line-height: 1.4; }
.toc li a:hover { color: var(--gray-light); }
.toc li a.active { color: var(--lime); border-left-color: var(--lime); }
.toc li.sub a { padding-left: 28px; font-size: 12.5px; }

/* body extras (extends .article) */
.article-body { max-width: none; }
.article-body .article-lead { font-size: clamp(18px,1.7vw,22px); line-height: 1.7; color: #fff; margin-bottom: 28px; }
.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; border-radius: 16px; }
.article-body blockquote.pull { border: 0; margin: 34px 0; padding: 0 0 0 24px; border-left: 3px solid var(--lime);
  font-family: 'Sora'; font-weight: 700; font-size: clamp(20px,2.4vw,28px); line-height: 1.3; color: #fff; font-style: normal; }
.article-body blockquote.pull cite { display: block; margin-top: 12px; font-family: 'Space Mono'; font-size: 13px; font-weight: 400; font-style: normal; color: var(--gray); }
.callout-box { display: flex; gap: 14px; padding: 18px 22px; border-radius: 14px; margin: 28px 0; border: 1px solid; }
.callout-box .ci { flex-shrink: 0; }
.callout-box p { margin: 0; font-size: 15px; }
.callout-box.tip { background: rgba(188,255,90,.06); border-color: rgba(188,255,90,.22); }
.callout-box.tip .ci { color: var(--lime); }
.callout-box.info { background: rgba(0,212,245,.06); border-color: rgba(0,212,245,.22); }
.callout-box.info .ci { color: var(--cyan); }
.callout-box.warn { background: rgba(217,70,168,.06); border-color: rgba(217,70,168,.22); }
.callout-box.warn .ci { color: var(--magenta); }
.key-takeaways { background: linear-gradient(135deg, rgba(123,63,242,.12), rgba(0,212,245,.06)); border: 1px solid rgba(123,63,242,.25); border-radius: 18px; padding: 26px 28px; margin: 36px 0; }
.key-takeaways h4 { margin-bottom: 14px; }
.key-takeaways ul { margin: 0; padding-left: 0; list-style: none; }
.key-takeaways li { display: flex; gap: 10px; padding: 6px 0; font-size: 15.5px; }
.key-takeaways li::before { content: '→'; color: var(--lime); font-weight: 800; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 38px 0 24px; }
.share-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.share-row .lbl { font-family: 'Space Mono'; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.share-row a, .share-row button { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--gray-light); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.share-row a:hover, .share-row button:hover { background: var(--grad-brand); color: #fff; transform: translateY(-2px); }

/* author box */
.author-box { display: flex; gap: 20px; align-items: center; }
.author-box .ph { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-brand); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Sora'; font-weight: 800; font-size: 24px; color: #fff; }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 14px; z-index: 1100;
  background: rgba(20,20,42,.9); border: 1px solid rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; backdrop-filter: blur(10px); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 880px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

/* ── BLOG HUB — search + tag filter ─────────────────────────── */
.blog-toolbar { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.blog-search { position: relative; max-width: 460px; }
.blog-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.blog-search input {
  width: 100%; padding: 14px 16px 14px 46px; border-radius: 50px; font-size: 15px; font-family: inherit;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); color: #fff;
}
.blog-search input:focus { outline: none; border-color: var(--purple-light); background: rgba(255,255,255,.06); }
.blog-search input::placeholder { color: var(--gray); }
.filter-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-lbl { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); flex-shrink: 0; min-width: 78px; }
.tagfilter { display: flex; flex-wrap: wrap; gap: 9px; }
.tagchip {
  font-family: 'Space Mono', monospace; font-size: 12.5px; padding: 8px 16px; border-radius: 50px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); color: var(--gray-light); transition: background .2s, border-color .2s, color .2s;
}
.tagchip:hover { border-color: rgba(123,63,242,.45); color: #fff; }
.tagchip.active { background: var(--grad-brand); border-color: transparent; color: #fff; }
.blog-count { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .08em; color: var(--gray); }
.blog-empty { text-align: center; padding: 48px 0; color: var(--gray); }

/* ── GLOBAL SEARCH results (404 + reusable) ─────────────────── */
.search-results { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.sr-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 13px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); transition: background .2s, border-color .2s, transform .2s; text-align: left; }
.sr-item:hover { background: rgba(255,255,255,.06); border-color: rgba(123,63,242,.4); transform: translateX(3px); }
.sr-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: rgba(123,63,242,.16); color: var(--purple-light); display: flex; align-items: center; justify-content: center; }
.sr-txt { flex: 1; min-width: 0; }
.sr-txt b { display: block; font-size: 15px; color: #fff; }
.sr-txt small { display: block; font-size: 13px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-tag { flex-shrink: 0; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); padding: 4px 10px; border-radius: 50px; background: rgba(255,255,255,.05); }

/* ── 404 ────────────────────────────────────────────────────── */
.nf { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 24px; position: relative; overflow: hidden; }
.nf .big { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(96px, 18vw, 200px); line-height: .9; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--lime), var(--cyan), var(--purple-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nf h1 { font-size: clamp(24px, 3.4vw, 36px); margin: 14px 0 12px; }
.nf p { max-width: 48ch; margin: 0 auto 8px; }
.nf .search-wrap { width: 100%; max-width: 560px; margin: 30px auto 0; }
.nf .blog-search { max-width: none; }
.nf .quick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

/* ── GLOBAL SEARCH — nav button + overlay (injected by main.js) ── */
.nav-search-btn { margin-left: auto; margin-right: 4px; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 11px; color: var(--gray-light);
  display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.nav-search-btn:hover { background: rgba(255,255,255,.06); color: #fff; }

.gsearch { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 11vh 20px 20px; }
.gsearch[hidden] { display: none; }
.gsearch-backdrop { position: absolute; inset: 0; background: rgba(5,5,14,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gsearch-panel { position: relative; width: 100%; max-width: 640px; background: rgba(16,16,34,.98);
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; animation: gsIn .24s var(--ease); }
@keyframes gsIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.gsearch-bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.gsearch-bar > .icon { color: var(--gray); flex-shrink: 0; }
.gsearch-input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font-size: 17px; font-family: inherit; }
.gsearch-input:focus { outline: none; }
.gsearch-input::placeholder { color: var(--gray); }
.gsearch-close { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .06em; color: var(--gray);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; padding: 6px 9px; cursor: pointer; flex-shrink: 0; }
.gsearch-close:hover { color: #fff; }
.gsearch-results { max-height: 56vh; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.gsearch-results:empty { display: none; }
.gsearch-msg { padding: 26px; text-align: center; color: var(--gray); font-size: 14px; }

/* ════════════════════════════════════════════════════════════
   HOME REFINEMENTS
   ════════════════════════════════════════════════════════════ */

/* Hero — transparent Kairo (no spotlight tile needed) */
.kairo-hero-wrap { position: relative; max-width: 400px; margin: 0 auto; }
.kairo-hero { width: 100%; filter: drop-shadow(0 26px 42px rgba(0,0,0,.5)); position: relative; z-index: 1; }
@media (max-width: 980px) {
  .hero-art.art-below { order: 1; margin-top: 4px; }   /* image BELOW the claim on mobile */
}

/* Level concept-tags: themed per level so all three are consistent */
.level.lv1 .featured-tag { background: rgba(0,212,245,.16); color: var(--cyan); border-color: rgba(0,212,245,.35); }
.level.lv3 .featured-tag { background: rgba(188,255,90,.14); color: var(--lime); border-color: rgba(188,255,90,.30); }

/* Complementarios band → vertical hierarchy, more presence, CTA below */
.comp-band { display: flex !important; flex-direction: column; align-items: center; text-align: center;
  gap: 22px; padding: 34px 32px;
  background: linear-gradient(135deg, rgba(123,63,242,.18), rgba(0,212,245,.08)) !important;
  border-color: rgba(123,63,242,.25) !important; }
.comp-band .comp-head .mono-label { justify-content: center; }
.comp-band .comp-list { width: 100%; grid-template-columns: repeat(4, 1fr); }
.comp-band .comp-cta { align-self: center; }
@media (max-width: 760px) { .comp-band .comp-list { grid-template-columns: repeat(2, 1fr); } }

/* Proceso — swipe hint (mobile) */
.rail-hint { display: none; }
@media (max-width: 760px) {
  .rail-hint { display: flex; align-items: center; gap: 7px; justify-content: flex-end;
    font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--lime); margin-top: 8px; animation: nudge 1.8s ease-in-out infinite; }
}
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

/* Values — single column on small phones for spatial harmony */
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Metodología — Kairo en el pizarrón (taller) */
.pizarra-frame { position: relative; border-radius: 22px; padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(120% 100% at 50% 0%, rgba(123,63,242,.3), rgba(8,8,26,.4)); }
.pizarra-frame .dash { position: absolute; inset: -12px; border: 2px dashed rgba(0,212,245,.26); border-radius: 28px; pointer-events: none; }
.pizarra-frame img { width: 100%; border-radius: 14px; display: block; }

/* Pain points (landing-style) */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { position: relative; overflow: hidden; border-radius: 20px; padding: 28px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035);
  display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s, background .35s; }
.pain:hover { transform: translateY(-5px); background: rgba(255,255,255,.05); }
.pain .stat-big { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(42px, 5vw, 62px); line-height: 1; }
.pain h4 { font-size: 18px; margin: 14px 0 10px; }
.pain p { font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.pain .src { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .03em; color: var(--gray); display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.pain .src:hover { color: var(--cyan); }
.pain.p1:hover { border-color: rgba(217,70,168,.5); }
.pain.p2:hover { border-color: rgba(0,212,245,.5); }
.pain.p3:hover { border-color: rgba(188,255,90,.5); }
@media (max-width: 880px) { .pains { grid-template-columns: 1fr; } }

/* Hero: restore top padding on mobile (the .wrap shorthand zeroed it),
   and lift the +96% badge above Kairo's wing. */
@media (max-width: 760px) { .hero { padding-top: 52px; } }
.float-badge { z-index: 4; }
