/* =========================================================
  APRENDE EMGAGE / DESIGN SYSTEM
  Look & feel alineado al home: glass, gradientes, dark panels,
  cards completas clicables, sidebar fijo y navegación activa.
========================================================= */
:root {
  --page-bg: #eef2f8;
  --page-bg-2: #f8fbff;
  --ink-950: #07101f;
  --ink-900: #08111f;
  --ink-850: #111b2e;
  --ink-800: #1a2438;
  --ink-700: #273349;
  --ink-600: #415066;
  --ink-500: #5c687c;
  --ink-400: #7f8998;
  --white: #fff;
  --primary: #635bff;
  --primary-2: #4f46e5;
  --cyan: #14c8ff;
  --mint: #5ef1c4;
  --amber: #ffc65e;
  --rose: #ff5d8a;
  --dark-950: #050913;
  --dark-925: #07101f;
  --dark-900: #0d1729;
  --dark-850: #132038;
  --line: rgba(8, 17, 31, 0.09);
  --line-soft: rgba(8, 17, 31, 0.065);
  --shadow-xs: 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 14px 42px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 24px 80px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 36px 120px rgba(8, 17, 31, 0.22);
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-anim: 24px;
  --container: 1440px;
  --nav-height: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display:
    "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 5%, rgba(99, 91, 255, 0.16), transparent 28%),
    radial-gradient(
      circle at 90% 7%,
      rgba(20, 200, 255, 0.15),
      transparent 30%
    ),
    linear-gradient(180deg, #fafcff 0%, var(--page-bg) 42%, #f8fbff 100%);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}
ul,
ol {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
::selection {
  background: rgba(99, 91, 255, 0.2);
  color: var(--ink-950);
}
.page {
  position: relative;
  isolation: isolate;
  overflow: visible;
  overflow-x: clip;
}
.container {
  width: min(var(--container), calc(100% - 112px));
  margin-inline: auto;
}
@media (min-width: 1400px) and (max-width: 1600px) {
  .container {
    width: min(1360px, calc(100% - 128px));
  }
}
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--mint));
  box-shadow: 0 0 24px rgba(20, 200, 255, 0.52);
  transform-origin: left center;
}
.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(8, 17, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 17, 31, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 88%);
}
.ambient-light {
  position: fixed;
  z-index: -6;
  pointer-events: none;
  border-radius: var(--radius-anim);
  filter: blur(8px);
  opacity: 0.68;
}
.ambient-light.one {
  width: 460px;
  height: 460px;
  left: -140px;
  top: 80px;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.22), transparent 68%);
  animation: ambientDrift 18s ease-in-out infinite;
}
.ambient-light.two {
  width: 520px;
  height: 520px;
  right: -160px;
  top: 24px;
  background: radial-gradient(
    circle,
    rgba(20, 200, 255, 0.21),
    transparent 68%
  );
  animation: ambientDrift 22s ease-in-out infinite reverse;
}
@keyframes ambientDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -30px, 0) scale(1.04);
  }
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink-950);
  letter-spacing: -0.06em;
}
h1 {
  max-width: 980px;
  font-size: 72px;
  font-weight: 800;
  line-height: 0.92;
}
h2 {
  max-width: 960px;
  font-size: 60px;
  font-weight: 800;
  line-height: 0.98;
}
h3 {
  max-width: 780px;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.03;
}
h4 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
p {
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.72;
}
.lead {
  max-width: 820px;
  margin-top: 24px;
  color: var(--ink-500);
  font-size: 20px;
  line-height: 1.78;
  letter-spacing: -0.01em;
}
.gradient-text {
  background: linear-gradient(105deg, #08111f 0%, #4438ca 44%, #0998c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  color: #4438ca;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow:
    0 0 0 7px rgba(94, 241, 196, 0.14),
    0 0 20px rgba(20, 200, 255, 0.46);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.section-copy {
  color: var(--ink-500);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: -0.01em;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}
.btn:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 0.75s var(--ease);
}
.btn:hover:before {
  transform: translateX(120%) skewX(-18deg);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-2) 46%,
    #0cb9e5 100%
  );
  box-shadow: 0 18px 54px rgba(79, 70, 229, 0.32);
}
.btn-secondary {
  border: 1px solid rgba(8, 17, 31, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-950);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.btn-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.35s var(--ease);
  font-size: 15px;
}
.btn:hover .btn-icon {
  transform: translateX(3px);
}
/* =========================================================
  CSS 06. NAVBAR / HEADER
========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  pointer-events: none;
}
.nav-shell {
  width: 100%;
  pointer-events: auto;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled .nav-shell {
  border-bottom-color: rgba(8, 17, 31, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 70px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: var(--nav-height);
  padding-inline: clamp(28px, 6vw, 96px);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 132px;
  flex: 0 0 auto;
}
.brand img {
  width: 140px;
  height: auto;
  max-height: 36px;
  object-fit: contain;
}
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled .nav-menu {
  background: rgba(248, 250, 252, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.nav-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-600);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--ink-950);
  background: rgba(99, 91, 255, 0.09);
}
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
}
.nav-actions .btn {
  min-height: 54px;
  padding-inline: 22px;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--ink-950);
  color: #fff;
  box-shadow: 0 16px 40px rgba(8, 17, 31, 0.18);
}
.menu-line {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 8px;
  background: currentColor;
  transition: background 0.25s var(--ease);
}
.menu-line:before,
.menu-line:after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 8px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}
.menu-line:before {
  transform: translateY(-6px);
}
.menu-line:after {
  transform: translateY(6px);
}
.menu-toggle.is-open .menu-line {
  background: transparent;
}
.menu-toggle.is-open .menu-line:before {
  transform: rotate(45deg);
  background: #fff;
}
.menu-toggle.is-open .menu-line:after {
  transform: rotate(-45deg);
  background: #fff;
}
/* =========================================================
  HERO / HUB
========================================================= */
.learn-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 152px 0 92px;
  overflow: hidden;
}
.learn-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      circle at 16% 30%,
      rgba(99, 91, 255, 0.18),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 20%,
      rgba(20, 200, 255, 0.2),
      transparent 32%
    ),
    radial-gradient(
      circle at 66% 82%,
      rgba(94, 241, 196, 0.12),
      transparent 34%
    ),
    linear-gradient(120deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.1));
}
.learn-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(8, 17, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 17, 31, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 62% 36%, #000 16%, transparent 68%);
  pointer-events: none;
}
.learn-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.62fr);
  gap: 58px;
  align-items: center;
}
.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-600);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.hero-pill i {
  color: #4438ca;
}
.learn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.knowledge-search {
  position: relative;
  max-width: 760px;
  margin-top: 32px;
}
.knowledge-search i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #4438ca;
  font-size: 17px;
}
.knowledge-search input {
  width: 100%;
  min-height: 62px;
  padding: 0 20px 0 52px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 650;
  outline: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.knowledge-search input:focus {
  border-color: rgba(99, 91, 255, 0.36);
  box-shadow: 0 20px 70px rgba(79, 70, 229, 0.16);
}
.hero-image-slot {
  position: relative;
  min-height: 612px;
  overflow: hidden;
  border-radius: var(--radius-anim);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(99, 91, 255, 0.16),
      transparent 38%
    ),
    radial-gradient(
      circle at 84% 18%,
      rgba(20, 200, 255, 0.18),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}
.hero-image-slot:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 17, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 17, 31, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  z-index: 1;
}
.hero-image-slot img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 612px;
  object-fit: cover;
  border-radius: inherit;
}
/* =========================================================
  SECCIONES / CARDS
========================================================= */
.kb-section {
  position: relative;
  z-index: 1;
  padding: 112px 0;
}
.kb-section.compact {
  padding: 86px 0;
}
.soft-panel-section {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.48)
  );
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.article-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.knowledge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}
.knowledge-card:before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -118px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(20, 200, 255, 0.22),
    transparent 68%
  );
  pointer-events: none;
}
.knowledge-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 91, 255, 0.2);
}
.knowledge-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.card-icon,
.summary-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  color: #fff;
  background:
    radial-gradient(
      circle at 28% 18%,
      rgba(255, 255, 255, 0.38),
      transparent 24%
    ),
    linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.24);
  font-size: 19px;
  overflow: hidden;
}
.card-icon:after,
.summary-icon:after {
  content: attr(data-glyph);
  position: absolute;
  inset: auto 3px 3px auto;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.card-icon i,
.summary-icon i {
  position: relative;
  z-index: 1;
}
.knowledge-card-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(99, 91, 255, 0.09);
  color: #4438ca;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.knowledge-card strong {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.knowledge-card p {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.62;
}
.knowledge-card b {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: #4438ca;
  font-size: 15px;
  font-weight: 850;
}
.category-card {
  min-height: 330px;
}
.category-summary-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.category-summary-panel > div {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}
.category-summary-panel strong {
  display: block;
  color: var(--ink-950);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}
.category-summary-panel span:not(.summary-icon) {
  display: block;
  margin-top: 7px;
  color: var(--ink-500);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}
/* =========================================================
  ARTICLE HERO / CONTENT / SIDEBAR
========================================================= */
.kb-article-hero {
  position: relative;
  padding: 152px 0 74px;
  overflow: hidden;
}
.kb-article-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 18% 26%,
      rgba(99, 91, 255, 0.17),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 18%,
      rgba(20, 200, 255, 0.17),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.1));
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 750;
}
.breadcrumb a {
  color: #4438ca;
}
.breadcrumb span {
  color: var(--ink-400);
}
.article-section {
  position: relative;
  padding: 48px 0 112px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.article-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  z-index: 5;
  max-height: calc(100vh - 124px);
}
.sidebar-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  color: #4438ca;
  background: rgba(99, 91, 255, 0.08);
  font-size: 14px;
  font-weight: 850;
}
.sidebar-card strong {
  display: block;
  padding: 10px 12px 8px;
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 900;
}
.toc-nav {
  display: grid;
  gap: 6px;
}
.toc-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.toc-link span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}
.toc-link:hover {
  color: var(--ink-950);
  background: rgba(99, 91, 255, 0.07);
  transform: translateX(2px);
}
.toc-link.is-active {
  color: var(--ink-950);
  background: rgba(99, 91, 255, 0.1);
}
.toc-link.is-active span {
  background: var(--mint);
  box-shadow:
    0 0 0 6px rgba(94, 241, 196, 0.14),
    0 0 16px rgba(94, 241, 196, 0.48);
}
.article-content {
  padding: 46px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}
.article-content h2 {
  margin: 44px 0 16px;
  max-width: 980px;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.045em;
  scroll-margin-top: 120px;
}
.article-content h2:first-child {
  margin-top: 0;
}
.article-content h3 {
  margin: 34px 0 12px;
  max-width: 960px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  scroll-margin-top: 120px;
}
.article-content h4 {
  margin: 24px 0 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
}
.article-content p {
  max-width: 960px;
  margin: 14px 0;
  color: var(--ink-600);
  font-size: 17px;
  line-height: 1.82;
}
.article-content .article-note {
  display: inline-flex;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: rgba(99, 91, 255, 0.08);
  color: #4438ca;
  font-size: 14px;
  font-weight: 800;
}
.table-wrap {
  max-width: 100%;
  overflow: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(8, 17, 31, 0.08);
  box-shadow: var(--shadow-xs);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(8, 17, 31, 0.07);
  text-align: left;
  vertical-align: top;
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.55;
}
th {
  color: var(--ink-950);
  font-weight: 850;
  background: rgba(99, 91, 255, 0.06);
}
.related-section {
  margin-top: 58px;
  padding-top: 38px;
  border-top: 1px solid rgba(8, 17, 31, 0.09);
}
.related-section h2 {
  margin-top: 0;
}
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.related-grid .knowledge-card {
  min-height: 245px;
  padding: 22px;
}
/* =========================================================
  FOOTER
========================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 56px 0;
  background: #050913;
  color: rgba(255, 255, 255, 0.64);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.footer-brand img {
  width: 136px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 0.7fr);
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-description {
  max-width: 390px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
  line-height: 1.72;
}
.footer-col strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.footer-col a {
  display: block;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 15px;
  line-height: 1.5;
  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 15px;
  line-height: 1.5;
}
/* =========================================================
  RESPONSIVE
========================================================= */
@media (max-width: 1480px) {
  .nav-menu a {
    padding-inline: 12px;
  }
  .brand img {
    width: 132px;
  }
}
@media (max-width: 1180px) {
  .learn-hero-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: relative;
    top: auto;
  }
  .section-head {
    grid-template-columns: 1fr;
  }
  .knowledge-grid,
  .article-card-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-summary-panel {
    grid-template-columns: 1fr;
  }
  .hero-image-slot {
    min-height: 420px;
  }
  .hero-image-slot img {
    min-height: 420px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  h1 {
    font-size: 58px;
  }
  h2 {
    font-size: 44px;
  }
  .article-content h2 {
    font-size: 34px;
  }
  .article-content h3 {
    font-size: 26px;
  }
}
@media (max-width: 1080px) {
  .nav-inner {
    min-height: 78px;
    padding-inline: 20px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-actions .btn-primary {
    display: none;
  }
  .nav-center {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 84px;
    left: 50%;
    display: grid;
    width: min(460px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(8, 17, 31, 0.08);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18);
    visibility: hidden;
    opacity: 1;
    pointer-events: none;
    transform: translate(-50%, -12px);
    transition:
      visibility 0.3s var(--ease),
      transform 0.3s var(--ease);
  }
  .site-header.is-scrolled .nav-menu {
    background: #fff;
  }
  .nav-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .nav-menu a {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 16px;
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 92px;
  }
  .container {
    width: min(100% - 28px, var(--container));
  }
  .nav-inner {
    width: 100%;
    min-height: 72px;
    padding-inline: 14px;
  }
  .brand {
    min-width: 0;
  }
  .brand img {
    width: 118px;
    max-height: 34px;
  }
  h1 {
    font-size: 42px;
  }
  h2 {
    font-size: 34px;
  }
  h3 {
    font-size: 30px;
  }
  h4 {
    font-size: 26px;
  }
  .lead {
    font-size: 17px;
  }
  .learn-hero {
    min-height: auto;
    padding: 118px 0 58px;
  }
  .kb-article-hero {
    padding: 118px 0 58px;
  }
  .learn-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .hero-image-slot {
    min-height: 320px;
  }
  .hero-image-slot img {
    min-height: 320px;
  }
  .kb-section {
    padding: 72px 0;
  }
  .kb-section.compact {
    padding: 64px 0;
  }
  .knowledge-grid,
  .article-card-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .knowledge-card {
    min-height: 230px;
  }
  .article-content {
    padding: 24px;
  }
  .article-content p {
    font-size: 16px;
  }
  .article-content h2 {
    font-size: 30px;
  }
  .article-content h3 {
    font-size: 24px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .nav-menu {
    background: #fff;
    opacity: 1;
  }
  .nav-menu.is-open {
    background: #fff;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
  V3 PRODUCCIÓN / AJUSTES FINOS BASE DE CONOCIMIENTO
  - Sidebar sticky real: la página ya no corta sticky con overflow hidden.
  - Artículos con mayor legibilidad y jerarquía.
  - Buscador con resultados inmediatos bajo el input.
  - Acordeones para resumir qué puedes hacer en Aprende.
========================================================= */
.search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 90px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.search-results.is-open {
  display: grid;
  gap: 8px;
}
.search-result-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(8, 17, 31, 0.06);
  background: rgba(248, 250, 252, 0.76);
  transition:
    transform 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.search-result-item:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(99, 91, 255, 0.18);
}
.search-result-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
}
.search-result-item strong {
  display: block;
  color: var(--ink-950);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 850;
}
.search-result-item span {
  display: block;
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}
.search-result-type {
  color: #4438ca;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-empty {
  padding: 14px;
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.knowledge-search {
  z-index: 30;
}
.knowledge-search input {
  position: relative;
  z-index: 2;
}
.knowledge-search .fa-magnifying-glass {
  z-index: 3;
}
.use-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.use-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 9% 8%, rgba(99, 91, 255, 0.11), transparent 32%),
    radial-gradient(
      circle at 92% 16%,
      rgba(20, 200, 255, 0.12),
      transparent 34%
    );
  pointer-events: none;
}
.use-accordion {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(8, 17, 31, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.use-accordion + .use-accordion {
  margin-top: 12px;
}
.use-accordion summary {
  display: grid;
  grid-template-columns: 46px 1fr 32px;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}
.use-accordion summary::-webkit-details-marker {
  display: none;
}
.use-accordion-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 14px 36px rgba(79, 70, 229, 0.2);
}
.use-accordion-title strong {
  display: block;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.use-accordion-title span {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}
.use-accordion-caret {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: #4438ca;
  background: rgba(99, 91, 255, 0.08);
  transition: transform 0.25s var(--ease);
}
.use-accordion[open] .use-accordion-caret {
  transform: rotate(45deg);
}
.use-accordion-body {
  padding: 0 22px 22px 80px;
}
.use-accordion-body p {
  margin: 10px 0;
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.72;
}
.use-accordion-body ul,
.use-accordion-body ol {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.use-accordion-body li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-600);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}
.use-accordion-body li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}
.use-accordion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background: rgba(99, 91, 255, 0.08);
  color: #4438ca;
  font-size: 14px;
  font-weight: 850;
}
.mini-link:hover {
  background: rgba(99, 91, 255, 0.13);
}
.article-section {
  padding-top: 22px;
}
.article-layout {
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 40px;
}
.article-sidebar {
  position: sticky !important;
  top: 104px !important;
  align-self: start !important;
}
.sidebar-card {
  max-height: calc(100vh - 124px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 91, 255, 0.32) transparent;
}
.toc-nav {
  gap: 5px;
}
.toc-link {
  min-height: 38px;
  font-size: 13.5px;
  line-height: 1.32;
  padding: 9px 11px;
}
.article-content {
  position: relative;
  padding: 56px 58px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88),
    rgba(255, 255, 255, 0.74)
  );
  box-shadow: 0 30px 110px rgba(15, 23, 42, 0.11);
}
.article-content:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--mint));
}
.article-content h2 {
  position: relative;
  margin: 54px 0 20px;
  padding-top: 8px;
  max-width: 1020px;
  font-size: 42px;
  line-height: 1.03;
  letter-spacing: -0.055em;
}
.article-content h2:first-child {
  margin-top: 0;
}
.article-content h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 74px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}
.article-content h3 {
  position: relative;
  margin: 42px 0 16px;
  max-width: 980px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.article-content h3:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow:
    0 0 0 7px rgba(94, 241, 196, 0.13),
    0 0 18px rgba(94, 241, 196, 0.42);
  vertical-align: 0.13em;
}
.article-content h4 {
  margin: 28px 0 12px;
  font-size: 24px;
  color: var(--ink-800);
}
.article-content p {
  max-width: 980px;
  margin: 16px 0;
  color: #415066;
  font-size: 18px;
  line-height: 1.88;
  letter-spacing: -0.006em;
}
.article-content p:first-of-type {
  font-size: 19px;
  color: #334155;
}
.article-content .article-note {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(99, 91, 255, 0.08);
  color: #4438ca;
  font-size: 14px;
  font-weight: 850;
}
.article-content h2 + p,
.article-content h3 + p {
  margin-top: 10px;
}
.table-wrap {
  margin: 30px 0;
}
.related-section {
  margin-top: 64px;
  padding-top: 46px;
}
.related-section h2 {
  font-size: 38px;
}
.faq-page .article-content h3 {
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(99, 91, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(99, 91, 255, 0.055);
}
.faq-page .article-content h3:before {
  vertical-align: 0.12em;
}
.faq-page .toc-link {
  font-size: 13px;
}
.faq-page .sidebar-card strong:after {
  content: " · preguntas";
  color: var(--ink-400);
  font-weight: 800;
}
@media (max-width: 1180px) {
  .article-sidebar {
    position: relative !important;
    top: auto !important;
    max-height: none;
  }
  .sidebar-card {
    max-height: none;
    overflow: visible;
  }
  .article-content {
    padding: 38px;
  }
  .search-results {
    position: relative;
    top: auto;
    margin-top: 10px;
  }
  .use-accordion-body {
    padding: 0 18px 20px 18px;
  }
}
@media (max-width: 760px) {
  .article-content {
    padding: 26px 22px;
  }
  .article-content p {
    font-size: 16px;
    line-height: 1.78;
  }
  .article-content p:first-of-type {
    font-size: 17px;
  }
  .article-content h2 {
    font-size: 31px;
  }
  .article-content h3 {
    font-size: 24px;
  }
  .use-accordion summary {
    grid-template-columns: 40px 1fr 30px;
    padding: 15px;
  }
  .use-accordion-icon {
    width: 40px;
    height: 40px;
  }
  .use-accordion-title strong {
    font-size: 18px;
  }
  .search-result-item {
    grid-template-columns: 38px 1fr;
  }
  .search-result-type {
    display: none;
  }
}

/* =========================================================
  V4 PRODUCCIÓN / AJUSTES FINALES
  - Buscador visible, con scroll interno y resultados por delante.
  - Corrección de iconos dentro de resultados.
  - Sidebar de artículos con fallback fixed controlado por JS.
  - Lectura: párrafos 17px, interlineado 1.65 y listas con bullets.
========================================================= */
.learn-hero,
.learn-hero-layout,
.learn-hero-copy {
  overflow: visible !important;
}
.learn-hero {
  z-index: 40;
}
.learn-hero .container,
.learn-hero-layout,
.learn-hero-copy {
  position: relative;
  z-index: 80;
}
.knowledge-search {
  position: relative !important;
  z-index: 900 !important;
  overflow: visible !important;
}
.knowledge-search > i.fa-magnifying-glass {
  position: absolute;
  left: 20px;
  top: 31px;
  transform: translateY(-50%);
  z-index: 12;
  color: #4438ca;
  font-size: 17px;
  pointer-events: none;
}
.search-results {
  position: absolute !important;
  top: calc(100% + 14px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  display: none;
  max-height: min(420px, 58vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid rgba(99, 91, 255, 0.14);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 14% 0%, rgba(99, 91, 255, 0.08), transparent 28%),
    radial-gradient(
      circle at 92% 4%,
      rgba(20, 200, 255, 0.08),
      transparent 30%
    ),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    0 34px 120px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 91, 255, 0.34) rgba(8, 17, 31, 0.04);
}
.search-results::-webkit-scrollbar {
  width: 8px;
}
.search-results::-webkit-scrollbar-track {
  background: rgba(8, 17, 31, 0.04);
  border-radius: 999px;
}
.search-results::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--cyan));
  border-radius: 999px;
}
.search-results.is-open {
  display: grid !important;
  gap: 9px;
}
.search-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 10px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}
.search-result-meta strong {
  color: var(--ink-950);
  font-size: 13px;
}
.search-result-item {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(8, 17, 31, 0.075);
  background: rgba(248, 250, 252, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}
.search-result-item:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(99, 91, 255, 0.22);
  box-shadow: 0 18px 48px rgba(79, 70, 229, 0.12);
}
.search-result-icon {
  position: static !important;
  display: grid !important;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 !important;
  border-radius: var(--radius-md);
  color: #fff !important;
  background:
    radial-gradient(
      circle at 28% 18%,
      rgba(255, 255, 255, 0.38),
      transparent 24%
    ),
    linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.22);
}
.knowledge-search .search-result-icon i,
.search-result-icon i {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: block !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1 !important;
  margin: 0 !important;
}
.search-result-copy {
  min-width: 0;
  display: block;
}
.search-result-copy strong {
  display: block;
  color: var(--ink-950);
  font-size: 15.5px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.018em;
}
.search-result-copy span {
  display: -webkit-box;
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 13.5px;
  line-height: 1.38;
  font-weight: 650;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-type {
  align-self: center;
  justify-self: end;
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  background: rgba(99, 91, 255, 0.09);
  color: #4438ca;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.search-empty {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.92);
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}
.article-layout {
  position: relative;
  overflow: visible !important;
}
.article-sidebar {
  will-change: transform;
}
.article-sidebar.is-fixed {
  position: fixed !important;
  top: 104px !important;
  z-index: 80 !important;
}
.article-sidebar.is-bottom {
  position: absolute !important;
  top: auto !important;
  bottom: 0 !important;
  z-index: 80 !important;
}
.article-sidebar.is-reset {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
}
.sidebar-card {
  max-height: calc(100vh - 126px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.article-content {
  padding: 54px 58px 60px;
}
.article-content p,
.article-content p:first-of-type {
  max-width: 980px;
  margin: 13px 0;
  color: #415066;
  font-size: 17px !important;
  line-height: 1.65 !important;
  letter-spacing: -0.004em;
}
.article-content h2 + p,
.article-content h3 + p,
.article-content h4 + p {
  margin-top: 8px;
}
.article-content .article-bullet-list {
  display: grid;
  gap: 9px;
  max-width: 920px;
  margin: 18px 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(99, 91, 255, 0.1);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 0% 0%, rgba(99, 91, 255, 0.055), transparent 34%),
    rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-xs);
  list-style: none;
}
.article-content .article-bullet-list li {
  position: relative;
  padding-left: 26px;
  color: #415066;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 560;
}
.article-content .article-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 0 0 6px rgba(99, 91, 255, 0.07);
}
.article-content .article-bullet-list li strong {
  color: var(--ink-950);
}
.article-content h2 {
  margin-top: 50px;
}
.article-content h3 {
  margin-top: 38px;
}
.article-content blockquote {
  max-width: 920px;
  margin: 24px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  background: rgba(99, 91, 255, 0.065);
  color: var(--ink-800);
  font-size: 18px;
  line-height: 1.62;
  font-weight: 750;
}
@media (max-width: 1180px) {
  .article-sidebar,
  .article-sidebar.is-fixed,
  .article-sidebar.is-bottom,
  .article-sidebar.is-reset {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
  }
  .sidebar-card {
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 760px) {
  .search-results {
    position: absolute !important;
    max-height: 360px;
  }
  .search-result-item {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 76px;
  }
  .search-result-type {
    display: none;
  }
  .article-content {
    padding: 28px 22px;
  }
  .article-content p,
  .article-content p:first-of-type,
  .article-content .article-bullet-list li {
    font-size: 16px !important;
    line-height: 1.66 !important;
  }
  .article-content .article-bullet-list {
    padding: 16px;
  }
}

/* =========================================================
  CSS V5. AJUSTES FINOS PRODUCCIÓN
  - Sticky real del sidebar sin JS fixed.
  - Más aire entre bloques de artículo.
  - Buscador sin recorte dentro del hero.
========================================================= */
html,
body {
  overflow-x: hidden;
}
.page {
  overflow: visible !important;
}
main,
.learn-hero,
.article-section,
.container,
.article-layout {
  overflow: visible !important;
}
.learn-hero {
  z-index: 20;
}
.learn-hero::before,
.learn-hero::after {
  pointer-events: none;
}
.knowledge-search {
  position: relative !important;
  z-index: 10000 !important;
  isolation: isolate;
  overflow: visible !important;
}
.search-results {
  z-index: 10050 !important;
  max-height: min(390px, 52vh) !important;
  overflow-y: auto !important;
  clip-path: none !important;
  transform: translateZ(0);
}
.search-results.is-open {
  display: grid !important;
}
.search-result-item {
  text-decoration: none;
}
.search-result-icon,
.knowledge-search .search-result-icon {
  flex: 0 0 auto;
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.search-result-icon i,
.knowledge-search .search-result-icon i {
  opacity: 1 !important;
  visibility: visible !important;
}
.article-layout {
  align-items: start;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
}
.article-sidebar,
.article-sidebar.is-fixed,
.article-sidebar.is-bottom,
.article-sidebar.is-reset {
  position: sticky !important;
  top: calc(var(--nav-height) + 22px) !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  z-index: 60 !important;
  align-self: start !important;
  height: fit-content !important;
  max-height: calc(100vh - var(--nav-height) - 42px) !important;
  transform: translateZ(0);
}
.sidebar-card {
  max-height: calc(100vh - var(--nav-height) - 42px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 91, 255, 0.32) transparent;
}
.sidebar-card::-webkit-scrollbar {
  width: 6px;
}
.sidebar-card::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-card::-webkit-scrollbar-thumb {
  background: rgba(99, 91, 255, 0.28);
  border-radius: 999px;
}
.article-content {
  padding-top: 62px !important;
  padding-bottom: 72px !important;
}
.article-content h2 {
  margin-top: 72px !important;
  margin-bottom: 24px !important;
  scroll-margin-top: 126px !important;
}
.article-content h2:first-child,
.article-content h2:first-of-type {
  margin-top: 0 !important;
}
.article-content h3 {
  margin-top: 52px !important;
  margin-bottom: 18px !important;
  scroll-margin-top: 126px !important;
}
.article-content h4 {
  margin-top: 34px !important;
  margin-bottom: 14px !important;
}
.article-content p,
.article-content p:first-of-type {
  margin: 18px 0 !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}
.article-content h2 + p,
.article-content h3 + p,
.article-content h4 + p {
  margin-top: 12px !important;
}
.article-content p + h2,
.article-content ul + h2,
.article-content ol + h2,
.article-content .table-wrap + h2,
.article-content blockquote + h2 {
  margin-top: 78px !important;
}
.article-content p + h3,
.article-content ul + h3,
.article-content ol + h3,
.article-content .table-wrap + h3,
.article-content blockquote + h3 {
  margin-top: 58px !important;
}
.article-content .article-bullet-list {
  margin: 22px 0 34px !important;
}
.article-content .article-bullet-list + p {
  margin-top: 24px !important;
}
.article-content .table-wrap,
.article-content blockquote {
  margin-top: 28px !important;
  margin-bottom: 36px !important;
}
.related-section {
  margin-top: 78px !important;
}
@media (max-width: 1180px) {
  .article-sidebar,
  .article-sidebar.is-fixed,
  .article-sidebar.is-bottom,
  .article-sidebar.is-reset {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
  }
  .sidebar-card {
    max-height: none !important;
    overflow-y: visible !important;
  }
}
@media (max-width: 760px) {
  .article-content {
    padding-top: 34px !important;
    padding-bottom: 42px !important;
  }
  .article-content h2 {
    margin-top: 54px !important;
    margin-bottom: 18px !important;
  }
  .article-content h3 {
    margin-top: 40px !important;
  }
  .article-content p,
  .article-content p:first-of-type {
    margin: 15px 0 !important;
    font-size: 16px !important;
    line-height: 1.66 !important;
  }
}

/* =========================================================
  CSS V6. SIDEBAR FIJO CONTROLADO / LAYOUT FLEX ARTÍCULOS
  - El layout reserva siempre el espacio de la columna izquierda.
  - El sidebar pasa a fixed solo dentro del rango del artículo.
  - Evita que el contenido se desplace o que se dañe la navegación.
========================================================= */
@media (min-width: 1181px) {
  .article-section {
    overflow: visible !important;
  }

  .article-section > .container.article-layout,
  .article-layout {
    display: flex !important;
    align-items: flex-start !important;
    gap: 44px !important;
    grid-template-columns: none !important;
    position: relative !important;
    overflow: visible !important;
  }

  .article-sidebar-spacer {
    display: none;
    flex: 0 0 var(--sidebar-fixed-width, 300px);
    width: var(--sidebar-fixed-width, 300px);
    min-width: var(--sidebar-fixed-width, 300px);
    pointer-events: none;
    visibility: hidden;
  }

  .article-layout.is-sidebar-fixed .article-sidebar-spacer,
  .article-layout.is-sidebar-bottom .article-sidebar-spacer {
    display: block;
  }

  .article-layout .article-sidebar {
    flex: 0 0 var(--sidebar-fixed-width, 300px) !important;
    width: var(--sidebar-fixed-width, 300px) !important;
    min-width: var(--sidebar-fixed-width, 300px) !important;
    max-width: var(--sidebar-fixed-width, 300px) !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 80 !important;
    align-self: flex-start !important;
    transform: none !important;
  }

  .article-layout .article-sidebar.is-fixed {
    position: fixed !important;
    top: var(--sidebar-fixed-top, 106px) !important;
    left: var(--sidebar-fixed-left, 0px) !important;
    right: auto !important;
    bottom: auto !important;
    width: var(--sidebar-fixed-width, 300px) !important;
    min-width: var(--sidebar-fixed-width, 300px) !important;
    max-width: var(--sidebar-fixed-width, 300px) !important;
    max-height: calc(100vh - var(--sidebar-fixed-top, 106px) - 24px) !important;
  }

  .article-layout .article-sidebar.is-bottom {
    position: absolute !important;
    top: var(--sidebar-bottom-top, 0px) !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: var(--sidebar-fixed-width, 300px) !important;
    min-width: var(--sidebar-fixed-width, 300px) !important;
    max-width: var(--sidebar-fixed-width, 300px) !important;
  }

  .article-layout .article-sidebar.is-reset {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .article-layout .sidebar-card {
    max-height: calc(100vh - var(--sidebar-fixed-top, 106px) - 24px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 91, 255, 0.32) transparent;
  }

  .article-layout .article-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 1180px) {
  .article-layout {
    display: block !important;
  }

  .article-sidebar-spacer {
    display: none !important;
  }

  .article-layout .article-sidebar,
  .article-layout .article-sidebar.is-fixed,
  .article-layout .article-sidebar.is-bottom,
  .article-layout .article-sidebar.is-reset {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
  }
}

/* =========================================================
  CSS EXTRA. HERO / CARRUSEL DE IMÁGENES APRENDE
  Agregar al FINAL de /aprende/assets/css/aprende.css
  Mantiene el mismo ancho/alto de .hero-image-slot y solo enriquece
  el bloque derecho del hero del index /aprende/.
========================================================== */
.hero-image-slot.hero-carousel {
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 12%, rgba(99, 91, 255, 0.22), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(20, 200, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
}

.hero-carousel-track {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 0.82s var(--ease),
    transform 1.1s var(--ease);
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-image-slot.hero-carousel .hero-carousel-slide img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
  transform: scale(1.01);
}

.hero-carousel-slide.is-empty {
  background:
    radial-gradient(circle at 28% 18%, rgba(99, 91, 255, 0.18), transparent 34%),
    radial-gradient(circle at 78% 16%, rgba(20, 200, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #eef2f8, #dff7ff);
}

.hero-carousel-slide.is-empty::before {
  content: "Agrega tu imagen en /aprende/assets/img/";
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 2;
  max-width: 270px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-600);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.hero-carousel-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 9, 19, 0.02) 0%, rgba(5, 9, 19, 0.05) 38%, rgba(5, 9, 19, 0.64) 100%),
    linear-gradient(90deg, rgba(5, 9, 19, 0.22) 0%, transparent 45%, rgba(5, 9, 19, 0.12) 100%);
}

.hero-carousel-caption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 76px;
  z-index: 4;
  max-width: 520px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 16, 31, 0.58);
  box-shadow: 0 20px 70px rgba(7, 16, 31, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(16px);
  opacity: 0;
  transition:
    transform 0.72s var(--ease) 0.12s,
    opacity 0.72s var(--ease) 0.12s;
}

.hero-carousel-slide.is-active .hero-carousel-caption {
  transform: translateY(0);
  opacity: 1;
}

.hero-carousel-caption span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  margin-bottom: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(94, 241, 196, 0.18);
  background: rgba(94, 241, 196, 0.10);
  color: #b8f4ff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-carousel-caption strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-carousel-caption p {
  max-width: 430px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.hero-carousel-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-carousel-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 16px 44px rgba(7, 16, 31, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.hero-carousel-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.22);
}

.hero-carousel-dots {
  position: absolute;
  left: 26px;
  bottom: 33px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
  transition:
    width 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.hero-carousel-dots button.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--mint));
  box-shadow: 0 0 18px rgba(20, 200, 255, 0.36);
}

.hero-carousel-progress {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  z-index: 5;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-carousel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--mint));
  box-shadow: 0 0 22px rgba(20, 200, 255, 0.44);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-carousel.is-playing .hero-carousel-progress span {
  animation: heroCarouselProgress 5.6s linear forwards;
}

@keyframes heroCarouselProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 1180px) {
  .hero-carousel-caption {
    bottom: 74px;
  }
}

@media (max-width: 760px) {
  .hero-carousel-caption {
    left: 16px;
    right: 16px;
    bottom: 68px;
    padding: 16px;
  }

  .hero-carousel-caption strong {
    font-size: 24px;
  }

  .hero-carousel-caption p {
    display: none;
  }

  .hero-carousel-controls {
    right: 16px;
    bottom: 16px;
  }

  .hero-carousel-dots {
    left: 16px;
    bottom: 27px;
  }

  .hero-carousel-progress {
    left: 16px;
    right: 16px;
    top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide,
  .hero-carousel-caption,
  .hero-carousel-progress span {
    animation: none !important;
    transition: none !important;
  }
}