/* =========================================================
   José Norte · Hoja de estilos
   Paleta Reputación Digital · Poppins + Raleway
   ========================================================= */

:root {
  /* Marca */
  --pink: #E40B7C;
  --pink-700: #C0066A;
  --pink-100: #FCE1EF;
  --pink-50: #FFF4F9;
  /* Tinte lavanda para ilustraciones (derivado del Azul Real, como en Manager) */
  --lavender: #7B83EB;
  --lavender-100: #DEE0FB;
  --lavender-50: #F1F0FD;
  --obsidian: #14173A;
  --indigo: #1D2571;
  --royal: #283E8B;
  --cyan: #00F0FF;
  --titanium: #AAB0C0;
  --white: #FFFFFF;

  /* Uso */
  --ink: var(--obsidian);
  --text: #3A3F5C;
  --muted: #5E6480;
  --line: #E7E9F0;
  --soft: #F7F8FB;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-alt: "Raleway", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(20, 23, 58, .06);
  --shadow: 0 18px 40px -18px rgba(20, 23, 58, .22);
  --shadow-pink: 0 14px 30px -12px rgba(228, 11, 124, .45);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink-700); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 700; }
h2 { font-weight: 600; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.02em; }
h3 { font-weight: 600; font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
/* Raleway usa cifras antiguas por defecto; forzamos cifras alineadas */
.eyebrow, .kicker, .edu-years, .timeline-date, .book-sub, .post-cat, .pull-quote { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .9em 1.7em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--pink); color: var(--white); box-shadow: var(--shadow-pink); }
.btn-primary:hover { background: var(--pink-700); color: var(--white); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }
.btn-outline { color: var(--pink); border-color: var(--pink); background: transparent; }
.btn-outline:hover { background: var(--pink); color: var(--white); }
.btn-sm { padding: .6em 1.3em; font-size: .88rem; box-shadow: none; }
.btn-block { width: 100%; }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .45em; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Tipos auxiliares ---------- */
.eyebrow, .kicker {
  font-family: var(--font-alt); font-weight: 500; text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; color: var(--pink); margin-bottom: 1em;
}
.kicker { display: inline-flex; align-items: center; gap: .7em; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker-cyan { color: var(--cyan); }
.kicker-light { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--pink); color: var(--white);
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.brand-name { font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.brand--light, .brand--light:hover { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.8rem; }
.site-nav ul a { color: var(--ink); font-weight: 500; font-size: .95rem; position: relative; padding: .3em 0; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--pink); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(900px 520px at 88% 10%, rgba(228, 11, 124, .10), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(40, 62, 139, .06), transparent 60%),
    var(--white);
}
.hero-network { position: absolute; right: -60px; top: 20px; width: 640px; max-width: 70%; opacity: .55; pointer-events: none; }
.net-lines line { stroke: var(--titanium); stroke-width: 1; opacity: .6; }
.net-nodes circle { fill: var(--titanium); }
.net-nodes .hot { fill: var(--pink); }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero .hero-name { font-size: clamp(3rem, 7.5vw, 5.4rem); letter-spacing: -.035em; margin-bottom: .25em; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34em; color: var(--text); }
.hero-lead a { font-weight: 600; }

.credentials { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0 2.2rem; }
.credentials li {
  font-size: .85rem; font-weight: 500; color: var(--ink);
  padding: .45em 1em .45em 2.1em; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); position: relative;
}
.credentials li::before {
  content: ""; position: absolute; left: .9em; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: var(--pink); transform: translateY(-50%);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); }
.portrait { position: relative; border-radius: 28px; }
.portrait::before {
  content: ""; position: absolute; inset: 0; border-radius: 28px;
  background: linear-gradient(135deg, var(--pink), #F2479E);
  transform: translate(22px, 22px); z-index: 0;
}
.portrait img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center top;
  border-radius: 28px; box-shadow: var(--shadow);
}
.float-card {
  position: absolute; z-index: 2; border-radius: 16px; box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.3;
}
/* Tarjeta "conversación en vivo" (estilo Manager) */
.live-card {
  left: -48px; bottom: 36px; width: 260px; padding: 1rem 1.1rem .9rem;
  background: rgba(20, 23, 58, .94); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.live-head { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; margin-bottom: .4rem; }
.live-tag {
  margin-left: auto; white-space: nowrap; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--pink); background: rgba(228, 11, 124, .14); padding: .2em .6em; border-radius: 999px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--pink);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.live-chart { width: 100%; height: auto; display: block; overflow: visible; }
.lc-grid line { stroke: rgba(255, 255, 255, .08); stroke-dasharray: 3 4; }
.lc-line { fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 0; }
.js .lc-line { stroke-dashoffset: 400; animation: draw 2.4s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lc-now { stroke: var(--pink); stroke-dasharray: 2 3; stroke-width: 1.2; opacity: .8; }
.lc-end { fill: var(--pink); stroke: var(--white); stroke-width: 2; }
.live-foot { font-size: .72rem; color: rgba(255, 255, 255, .6); margin-top: .35rem; font-family: var(--font-alt); letter-spacing: .04em; }
.float-card--light {
  right: -18px; top: 36px; padding: .75rem 1rem;
  background: var(--white); color: var(--ink); font-weight: 600;
  display: flex; align-items: center; gap: .55rem;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--pink-100); }

/* ---------- Stats ---------- */
.stats { background: var(--white); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.2rem 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat-num em { font-style: normal; color: var(--pink); }
.stat-label { font-size: .9rem; color: var(--muted); line-height: 1.45; max-width: 16em; }

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.section-head--row h2 { margin-bottom: 0; }
.section-intro { font-size: 1.08rem; color: var(--muted); }

/* ---------- Perfil ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.profile-grid > div:first-child p { font-size: 1.05rem; }
.pull-quote {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--pink);
  background: var(--pink-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-alt); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink);
}
.pull-quote cite {
  display: block; margin-top: .7rem; font-style: normal; font-family: var(--font-head);
  font-size: .8rem; color: var(--muted);
}
.profile-grid { align-items: center; }
.hl { color: var(--pink); }

/* Ilustración "núcleo" (adaptada de Manager) */
.orbit {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: center;
  border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(123, 131, 235, .28) 1px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(145deg, var(--lavender-50), var(--pink-50));
}
.orbit-core { position: absolute; inset: 6%; width: 88%; height: 88%; }
.orbit-waves path { fill: none; stroke: var(--lavender); stroke-width: 1; opacity: .35; }
.orbit-ring { fill: none; stroke: var(--lavender); stroke-width: 1.2; stroke-dasharray: 2 6; opacity: .6; }
.poly-lines line { stroke: var(--lavender); stroke-width: 1.4; opacity: .85; }
.poly-nodes circle { fill: var(--lavender); }
.poly-nodes .core { fill: var(--pink); }
.orbit-dots circle { fill: var(--lavender); opacity: .7; }
.orbit .chip, .orbit .bubble-dark, .orbit .bubble-light {
  position: absolute; left: var(--x); top: var(--y);
  animation: float 6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.chip {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .8rem 1rem; min-width: 86px; border-radius: 16px; background: var(--white);
  box-shadow: 0 10px 24px -10px rgba(20, 23, 58, .25);
  font-size: .8rem; font-weight: 500; color: var(--ink);
}
.chip--wide { flex-direction: row; min-width: 0; padding: .7rem .9rem; gap: .6rem; }
.chip-icon { width: 26px; height: 26px; fill: none; stroke: var(--royal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip-icon--bars { stroke: var(--pink); stroke-width: 3; }
.chip-spark { width: 76px; height: 30px; overflow: visible; }
.chip-spark polyline { fill: none; stroke: var(--pink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chip-spark circle { fill: var(--white); stroke: var(--pink); stroke-width: 2; }
.chip-donut { width: 34px; height: 34px; transform: rotate(-90deg); }
.chip-donut circle { fill: none; stroke: var(--lavender-100); stroke-width: 6; }
.chip-donut .arc { stroke: var(--pink); stroke-dasharray: 52 82; stroke-linecap: round; }
.chip-lines { display: flex; flex-direction: column; gap: 4px; }
.chip-lines i { display: block; height: 4px; border-radius: 2px; background: var(--lavender-100); width: 54px; }
.chip-lines i:nth-child(2) { width: 40px; }
.chip-lines i:nth-child(3) { width: 48px; }
.bubble-dark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--obsidian); box-shadow: 0 8px 18px -8px rgba(20, 23, 58, .6);
}
.bubble-dark svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bubble-dark:first-of-type svg { fill: var(--white); stroke: none; }
.bubble-light {
  display: flex; gap: 5px; padding: .7rem .9rem; border-radius: 14px 14px 14px 4px; background: var(--white);
  box-shadow: 0 10px 24px -10px rgba(20, 23, 58, .25);
}
.bubble-light i { width: 7px; height: 7px; border-radius: 50%; background: var(--lavender); }

/* Tarjetas ilustradas */
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: clamp(48px, 7vw, 88px); }
.focus-card {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--white); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.focus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.focus-illus { background: linear-gradient(145deg, var(--lavender-50), var(--pink-50)); aspect-ratio: 28 / 15; }
.focus-illus svg { width: 100%; height: 100%; display: block; }
.focus-body { padding: 1.4rem 1.4rem 1.6rem; }
.focus-body h3 { font-size: 1.05rem; }
.focus-body p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.6; }
.il-waves path { fill: none; stroke: var(--lavender); stroke-width: 1; opacity: .35; }
.il-card { fill: var(--white); filter: drop-shadow(0 6px 10px rgba(20, 23, 58, .08)); }
.il-dot { fill: var(--lavender); }
.il-bar { fill: var(--lavender-100); }
.il-dark { fill: var(--obsidian); }
.il-white { fill: var(--white); }
.il-white-stroke { fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.il-at { fill: var(--white); font: 600 15px var(--font-head); text-anchor: middle; }
.il-links path { stroke: var(--lavender); stroke-width: 1; opacity: .45; fill: none; }
.il-nodes circle { fill: var(--lavender); }
.il-nodes .hot { fill: var(--pink); }
.il-trend { fill: none; stroke: var(--pink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.il-trend-dot { fill: var(--white); stroke: var(--pink); stroke-width: 2; }
.il-ring { fill: none; stroke: var(--lavender-100); stroke-width: 11; }
.il-arc { fill: none; stroke: var(--pink); stroke-width: 11; stroke-dasharray: 110 176; stroke-linecap: round; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 120px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--pink), var(--pink-100));
}
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 2.8rem; position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: 114px; top: 30px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--pink);
}
.timeline-date {
  padding-top: 20px; font-family: var(--font-alt); font-size: .85rem; color: var(--muted);
  display: flex; flex-direction: column; line-height: 1.3;
}
.timeline-date span { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.timeline-card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.timeline-card p:last-child { margin: 0; }
.timeline-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; }
.timeline-head h3 { font-size: 1.35rem; margin-bottom: .15em; }
.timeline-head h3 a { color: var(--ink); }
.timeline-head h3 a:hover { color: var(--pink); }
.role { font-size: .9rem; color: var(--pink); font-weight: 500; margin: 0; }
.badge {
  flex-shrink: 0; font-size: .75rem; font-weight: 600; padding: .35em .85em; border-radius: 999px;
  background: var(--soft); color: var(--royal); border: 1px solid var(--line);
}
.badge-live { background: var(--pink); color: var(--white); border-color: var(--pink); }

/* ---------- Formación ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.edu-card {
  grid-column: span 2; padding: 1.8rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white);
  display: flex; flex-direction: column;
}
.edu-card--featured { grid-column: span 3; border-top: 4px solid var(--pink); }
.edu-card p { font-size: .94rem; }
.edu-years { font-family: var(--font-alt); font-weight: 500; color: var(--pink); letter-spacing: .06em; font-size: .85rem; margin-bottom: .6rem; }
.edu-card h3 { font-size: 1.2rem; }
.edu-inst { color: var(--muted); font-size: .88rem !important; }
.edu-card .link-arrow { margin-top: auto; font-size: .92rem; }

/* ---------- Bloque oscuro ---------- */
.section-dark {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(700px 460px at 85% 0%, rgba(228, 11, 124, .22), transparent 65%),
    radial-gradient(700px 460px at 10% 100%, rgba(0, 240, 255, .10), transparent 65%),
    var(--obsidian);
  color: rgba(255, 255, 255, .78);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-intro { color: rgba(255, 255, 255, .72); }
.section-head--center { margin-inline: auto; text-align: center; max-width: 760px; }
.section-head--center .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Diagrama "Motor de análisis" */
.engine {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left core right" ". bottom ."; column-gap: clamp(60px, 9vw, 130px); row-gap: 44px;
  align-items: center; margin: 0 auto clamp(56px, 7vw, 80px); max-width: 1040px;
}
.engine-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.engine-links .link { fill: none; stroke: rgba(0, 240, 255, .45); stroke-width: 1.4; }
.engine-links .flow { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 4 14; animation: flow 1.6s linear infinite; opacity: .9; }
.engine-links .end { fill: var(--cyan); }
@keyframes flow { to { stroke-dashoffset: -36; } }
.engine-col { display: flex; flex-direction: column; gap: 1.6rem; position: relative; z-index: 1; }
.engine-left { grid-area: left; align-items: flex-end; }
.engine-right { grid-area: right; align-items: flex-start; }
.engine-bottom { grid-area: bottom; display: flex; justify-content: center; position: relative; z-index: 1; }
.engine-node {
  display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem .7rem .75rem;
  border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--white);
  background: rgba(20, 23, 58, .85); border: 1px solid rgba(0, 240, 255, .22);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, .05);
  transition: border-color .25s, box-shadow .25s;
}
@media (min-width: 1025px) { .engine-node { white-space: nowrap; } }
.engine-node:hover { border-color: var(--cyan); box-shadow: 0 0 24px -4px rgba(0, 240, 255, .45); }
.node-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0, 240, 255, .08); border: 1px solid rgba(0, 240, 255, .25);
}
.node-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.engine-core {
  grid-area: core; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  padding: 1.6rem 2rem; min-width: 190px; border-radius: 22px; text-align: center;
  font-size: 1.25rem; font-weight: 600; color: var(--white); line-height: 1.2;
  background: linear-gradient(160deg, rgba(40, 62, 139, .95), rgba(29, 37, 113, .95));
  border: 1px solid rgba(0, 240, 255, .55);
  box-shadow: 0 0 0 6px rgba(0, 240, 255, .06), 0 0 60px -6px rgba(0, 240, 255, .45);
}
.core-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0, 240, 255, .1); border: 1px solid rgba(0, 240, 255, .35);
}
.core-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linejoin: round; }

.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cap-card {
  padding: 1.8rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
}
.cap-card p { margin: 0; font-size: .93rem; }
.cap-num { display: inline-block; font-weight: 700; font-size: .85rem; color: var(--pink); margin-bottom: .8rem; letter-spacing: .08em; }
.engine-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; margin-top: clamp(40px, 5vw, 56px); }
.btn-glass { color: var(--white); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.btn-glass:hover { color: var(--white); background: rgba(255, 255, 255, .16); }

/* Docencia (fondo claro) */
.academy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 28px); }
.academy-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.academy-col h3 { font-size: 1.05rem; margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.academy-col h3.mt { margin-top: 2rem; }
.list-check li { position: relative; padding-left: 1.6rem; margin-bottom: .85rem; font-size: .94rem; line-height: 1.55; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px;
  background: var(--pink); transform: rotate(45deg);
}
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  font-size: .82rem; font-weight: 500; padding: .35em .9em; border-radius: 999px;
  background: var(--pink-50); color: var(--pink-700); border: 1px solid var(--pink-100);
}
.langs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; }
.langs dt { color: var(--ink); font-weight: 600; font-size: .95rem; }
.langs dd { margin: 0; font-size: .82rem; color: var(--pink); }

/* ---------- Libro ---------- */
.section-pink { background: linear-gradient(180deg, var(--pink-50), var(--white)); }
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.book-cover { position: relative; justify-self: center; max-width: 340px; }
.book-cover::before {
  content: ""; position: absolute; inset: 12% -14% -8% -14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 11, 124, .28), transparent 70%); z-index: 0;
}
.book-cover img {
  position: relative; z-index: 1; border-radius: 6px 14px 14px 6px;
  box-shadow: 0 30px 60px -20px rgba(20, 23, 58, .45), -6px 0 0 rgba(20, 23, 58, .12) inset;
  transform: rotate(-3deg); transition: transform .4s;
}
.book-cover:hover img { transform: rotate(0) scale(1.02); }
.book-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.book-sub { font-family: var(--font-alt); font-size: 1.2rem; color: var(--pink); margin-top: -.3em; }
.store-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 1.4rem 1.5rem 1.7rem; }
.post-cat { font-family: var(--font-alt); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--pink); font-weight: 500; }
.post-body h3 { font-size: 1.1rem; margin: .5rem 0 0; line-height: 1.35; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--pink); }

/* ---------- Contacto ---------- */
.contact {
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, var(--pink) 0%, #B8076B 100%);
  color: var(--white);
}
.contact h2 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.4rem); }
.contact-copy p { font-size: 1.1rem; max-width: 26em; color: rgba(255, 255, 255, .92); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.social { display: flex; gap: .8rem; margin-top: 2rem; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5); color: var(--white); transition: background .2s, color .2s;
}
.social a:hover { background: var(--white); color: var(--pink); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.contact-form {
  background: var(--white); border-radius: 24px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 60px -24px rgba(20, 23, 58, .5);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--soft); transition: border-color .2s, background .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); background: var(--white); }
.field textarea { resize: vertical; }
.contact-form .btn { grid-column: 1 / -1; margin-top: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--obsidian); color: rgba(255, 255, 255, .65); padding: 2.4rem 0; font-size: .88rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.site-footer a:not(.brand) { color: var(--white); font-weight: 500; }
.site-footer a:not(.brand):hover { color: var(--pink); }
.site-footer .brand-name { font-size: 1.05rem; }
.site-footer .brand-mark { width: 34px; height: 34px; font-size: .82rem; border-radius: 9px; }

/* ---------- Animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .lc-line { animation: none; stroke-dashoffset: 0; }
  .orbit .chip, .orbit .bubble-dark, .orbit .bubble-light, .engine-links .flow, .live-dot::after { animation: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .profile-grid, .book-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .academy-grid { grid-template-columns: 1fr 1fr; }
  .academy-col:last-child { grid-column: 1 / -1; }
  .edu-card, .edu-card--featured { grid-column: span 3; }
  .edu-card:last-child { grid-column: 1 / -1; }
  .book-cover { max-width: 280px; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .engine { column-gap: 48px; }
  .engine-node { font-size: .82rem; }
}

@media (max-width: 860px) {
  .engine { grid-template-columns: 1fr 1fr; grid-template-areas: "core core" "left right" "bottom bottom"; row-gap: 1rem; column-gap: 1rem; }
  .engine-links { display: none; }
  .engine-core { justify-self: center; margin-bottom: 1rem; }
  .engine-left, .engine-right { align-items: stretch; gap: 1rem; }
  .engine-bottom { justify-content: stretch; }
  .engine-bottom .engine-node { flex: 1; }
  .capabilities { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.2rem var(--gutter) 1.6rem; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card:last-child { display: none; }
}

@media (max-width: 640px) {
  .hero-network { max-width: 100%; opacity: .35; }
  .live-card { left: -6px; bottom: -28px; width: 220px; }
  .hero-visual { margin-bottom: 28px; }
  .float-card--light { right: -4px; top: 20px; font-size: .78rem; }
  .portrait::before { transform: translate(12px, 12px); }
  .stat { padding: 1.6rem 1rem; }
  .focus-grid { grid-template-columns: 1fr; }
  .chip { padding: .55rem .7rem; min-width: 0; font-size: .7rem; border-radius: 12px; }
  .chip-icon { width: 20px; height: 20px; }
  .chip-spark { width: 56px; height: 22px; }
  .chip-lines i { width: 36px; }
  .bubble-dark { width: 32px; height: 32px; }
  .bubble-dark svg { width: 16px; height: 16px; }
  .engine { grid-template-columns: 1fr; grid-template-areas: "core" "left" "right" "bottom"; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: .6rem; padding-left: 2rem; }
  .timeline-item::before { left: 0; top: 6px; }
  .timeline-date { padding-top: 0; flex-direction: row; align-items: baseline; gap: .5rem; }
  .timeline-date span { font-size: 1.25rem; }
  .timeline-card { padding: 1.4rem; }
  .timeline-head { flex-direction: column; gap: .6rem; }
  .edu-card, .edu-card--featured { grid-column: 1 / -1; }
  .academy-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card:last-child { display: block; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-actions .btn, .store-links .btn { flex: 1 1 auto; }
}
