/* ==========================================================================
   Landing pública: tokens visuales, layout editorial y módulos interactivos
   --------------------------------------------------------------------------
   Mapa rápido del archivo:
   1. Tipografías y design tokens
   2. Reset / base del documento
   3. Header y hero principal
   4. Secciones de trayectoria, cursos, skills, blog y contacto
   5. Blog index + detalle de artículo
   6. Chat público y widget flotante
   7. Breakpoints responsive
   ========================================================================== */

@font-face {
  font-family: "Baloo";
  src: url("../fonts/Baloo-Regular.7ea5a2778c10.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/Parkinsans-Light.4d320fa7c28d.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/Parkinsans-Regular.54749bf724bf.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/Parkinsans-SemiBold.207687c4d64c.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/Parkinsans-Bold.8ad9f17b4fdc.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg-primary: #080d18;
  --bg-secondary: #0b1220;
  --bg-tertiary: #111b2c;
  --surface-primary: #111827;
  --surface-secondary: #172235;
  --surface-hover: #1d2b42;
  --border-default: #26354a;
  --border-subtle: #1d293b;
  --border-active: #22d3ee;
  --brand-cyan: #22d3ee;
  --brand-blue: #3b82f6;
  --brand-purple: #a78bfa;
  --brand-violet: #9333ea;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --glow-cyan: rgba(34, 211, 238, 0.12);
  --glow-blue: rgba(59, 130, 246, 0.12);
  --glow-purple: rgba(167, 139, 250, 0.12);
  --gradient-brand: linear-gradient(120deg, #22d3ee, #3b82f6, #9333ea);
  --bg: var(--bg-primary);
  --bg-soft: rgba(11, 18, 32, 0.9);
  --panel: rgba(17, 24, 39, 0.88);
  --panel-strong: rgba(8, 13, 24, 0.96);
  --line: rgba(38, 53, 74, 0.92);
  --line-strong: rgba(34, 211, 238, 0.46);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --accent: var(--brand-cyan);
  --accent-strong: var(--brand-blue);
  --accent-warm: var(--brand-purple);
  --shadow: 0 24px 64px rgba(2, 6, 23, 0.34);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1220px;
}

/* --------------------------------------------------------------------------
   Reset y base global
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Parkinsans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 88, 88, 0.24), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(90, 255, 180, 0.16), transparent 22%),
    radial-gradient(circle at 78% 78%, rgba(0, 197, 255, 0.13), transparent 24%),
    radial-gradient(circle at 22% 82%, rgba(159, 255, 112, 0.14), transparent 26%),
    linear-gradient(155deg, #060909 0%, #0a1210 34%, #10161a 68%, #0a1016 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(70px);
}

body::before {
  top: 3rem;
  left: -3rem;
  width: 20rem;
  height: 20rem;
  background: rgba(255, 82, 82, 0.18);
}

body::after {
  right: -4rem;
  bottom: 6rem;
  width: 24rem;
  height: 24rem;
  background: rgba(0, 197, 255, 0.11);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

main section[id],
header[id] {
  scroll-margin-top: 6rem;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.surface {
  background: linear-gradient(180deg, rgba(28, 31, 35, 0.9), rgba(18, 20, 24, 0.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

/* --------------------------------------------------------------------------
   Header sticky y navegación principal
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(7, 12, 11, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: inline-flex;
}

.brand-logo {
  width: 80px;
  height: 80px;
  display: block;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.logo-badge {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #07120e;
  border: 2px solid #09110f;
  box-shadow: 0 10px 24px rgba(86, 240, 157, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-copy strong {
  font-family: "Baloo", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.brand-name {
  color: rgba(244, 244, 236, 0.58);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.brand-divider {
  display: inline-block;
  margin: 0 0.4rem;
  color: rgba(244, 244, 236, 0.34);
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.88rem;
}

.brand-summary {
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(159, 255, 112, 0.1);
}

.nav-cta {
  border: 1px solid rgba(159, 255, 112, 0.24);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: rgba(159, 255, 112, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: var(--text);
  border-radius: 999px;
}

main {
  display: grid;
  gap: 1.4rem;
}

/* --------------------------------------------------------------------------
   Hero de apertura: marca, promesa y capacidades visibles al entrar
   -------------------------------------------------------------------------- */

.hero {
  display: block;
}

.hero-panel,
.section-card,
.journey-section,
.courses-section,
.skills-shell,
.blog-section,
.contact-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.eyebrow,
.section-tag,
.blog-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(159, 255, 112, 0.08);
  border: 1px solid rgba(159, 255, 112, 0.14);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  font-family: "Baloo", sans-serif;
  font-weight: 400;
  line-height: 0.98;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  max-width: 15.2ch;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.22em;
}

.hero-title span {
  display: inline-block;
}

.hero-title-learn {
  color: var(--brand-cyan);
}

.hero-title-build {
  color: var(--brand-blue);
}

.hero-title-experiment {
  color: var(--brand-purple);
}

.hero-title-repeat {
  color: var(--text-primary);
}

.hero-description,
.section-heading p,
.timeline-body p,
.skill-card p,
.blog-body p,
.contact-card p,
.course-intro {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hero-description {
  max-width: 60ch;
  margin-top: 1.15rem;
}

.hero-panel {
  position: relative;
  padding: 2.8rem;
  animation: heroEntry 1.1s cubic-bezier(0.18, 0.8, 0.22, 1) both;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(159, 255, 112, 0.12), transparent 25%),
    radial-gradient(circle at 18% 85%, rgba(255, 191, 105, 0.08), transparent 24%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: -12%;
  left: -4%;
  width: 460px;
  height: 260px;
  background:
    linear-gradient(135deg, rgba(255, 82, 82, 0.24), rgba(255, 82, 82, 0) 68%),
    radial-gradient(circle at 36% 72%, rgba(255, 164, 120, 0.18), transparent 18%),
    radial-gradient(circle at 44% 78%, rgba(255, 244, 214, 0.12), transparent 12%),
    radial-gradient(circle at 52% 82%, rgba(255, 82, 82, 0.16), transparent 15%);
  filter: blur(24px);
  opacity: 0;
  transform: rotate(-18deg);
  pointer-events: none;
  animation: heroTrailDust 1.15s ease-out 0.04s both;
}

.hero-top,
.hero-capabilities,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 2rem;
  align-items: stretch;
}

.hero-intro {
  max-width: 60rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
  animation: heroContentReveal 0.9s ease-out 0.2s both;
}

.hero-intro-copy {
  display: grid;
}

.hero-side-cards {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
  animation: heroContentReveal 0.9s ease-out 0.32s both;
}

.hero-side-card,
.hero-capability-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.14);
}

.hero-side-card {
  padding: 1rem 1.1rem;
}

.hero-side-card-heading {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.68rem;
}

.hero-side-card .hero-side-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.14));
  color: var(--brand-cyan);
  font-size: 0.98rem;
}

.hero-side-card .hero-side-label {
  display: inline-block;
  color: var(--brand-purple);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-side-card span {
  display: block;
  color: var(--accent-warm);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-side-card strong {
  display: block;
  margin-top: 0.4rem;
  line-height: 1.34;
  font-size: 1rem;
}

.hero-side-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero-meteor {
  position: absolute;
  top: 41%;
  left: 52%;
  width: clamp(170px, 19vw, 250px);
  transform: translate(-50%, -50%) rotate(-14deg);
  opacity: 0.88;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.22));
  animation: heroMeteorDrop 1.15s cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.hero-stack-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-stack-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.96rem;
}

.hero-stack-row i {
  color: var(--accent);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-actions {
  animation: heroContentReveal 0.9s ease-out 0.44s both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04110c;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-capabilities {
  position: relative;
  z-index: 1;
  margin-top: 1.7rem;
  animation: heroContentReveal 0.9s ease-out 0.56s both;
}

.hero-capabilities-helper {
  margin-bottom: 0.9rem;
  color: rgba(182, 192, 184, 0.86);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

@keyframes heroEntry {
  0% {
    opacity: 0;
    transform: translate3d(-112px, -72px, 0) rotate(3deg) scale(0.965);
  }
  48% {
    opacity: 1;
    transform: translate3d(20px, 14px, 0) rotate(-0.8deg) scale(1.018);
  }
  72% {
    opacity: 1;
    transform: translate3d(-10px, -4px, 0) rotate(0.3deg) scale(0.997);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes heroTrailDust {
  0% {
    opacity: 0;
    transform: translate3d(-120px, -72px, 0) rotate(-22deg) scale(0.76);
  }
  20% {
    opacity: 0.95;
  }
  62% {
    opacity: 0.82;
    transform: translate3d(32px, 30px, 0) rotate(-8deg) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate3d(72px, 44px, 0) rotate(-4deg) scale(1.14);
  }
}

@keyframes heroMeteorDrop {
  0% {
    opacity: 0;
    transform: translate(-122%, -108%) rotate(22deg) scale(0.62);
    filter: blur(12px) drop-shadow(0 34px 42px rgba(255, 82, 82, 0.24));
  }
  54% {
    opacity: 0.98;
    transform: translate(-44%, -36%) rotate(-20deg) scale(1.1);
    filter: blur(0) drop-shadow(0 28px 34px rgba(255, 82, 82, 0.16));
  }
  74% {
    opacity: 0.92;
    transform: translate(-54%, -54%) rotate(-12deg) scale(0.96);
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.26));
  }
  100% {
    opacity: 0.88;
    transform: translate(-50%, -50%) rotate(-14deg) scale(1);
    filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.22));
  }
}

@keyframes heroContentReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   Tarjetas y bloques compartidos entre secciones
   -------------------------------------------------------------------------- */

.mini-card,
.nested-card,
.skill-card,
.blog-card,
.course-card,
.hero-capability-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mini-card,
.course-card,
.hero-capability-card {
  padding: 1rem;
}

.nested-card:hover,
.skill-card:hover,
.blog-card:hover,
.timeline-card:hover,
.course-card:hover,
.hero-capability-card:hover,
.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(159, 255, 112, 0.2);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.18);
}

.mini-card strong,
.skill-card h3,
.timeline-body h3,
.blog-body h3,
.course-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.mini-card span,
.timeline-company,
.course-card-head span {
  color: var(--muted);
}

.hero-capability-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 86px;
}

.hero-capability-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(159, 255, 112, 0.1);
  color: var(--accent);
}

.hero-capability-card strong {
  font-size: 1.02rem;
}
.contact-card h2,
.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 1rem 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.section-heading h2.section-title,
.contact-card h2.section-title {
  font-size: clamp(1.33rem, 2.8vw, 2.1rem);
}

.skills-header h2.section-title {
  font-size: clamp(1.26rem, 2.8vw, 1.96rem);
}

.section-title-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 0.76em;
  line-height: 1;
}

.journey-section,
.courses-section,
.blog-section {
  padding: 2.2rem;
}

.section-heading {
  max-width: min(100%, 72rem);
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

/* --------------------------------------------------------------------------
   Trayectoria / experiencia profesional
   -------------------------------------------------------------------------- */

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(86, 240, 157, 0.12));
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.timeline-meta img {
  width: 140px;
  max-height: 64px;
  object-fit: contain;
  padding: 0.65rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.timeline-meta span {
  color: #3B82F6;
  font-size: 0.95rem;
}

.timeline-company {
  margin-bottom: 0.7rem;
}

.timeline-functions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.timeline-functions li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-functions li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(159, 255, 112, 0.28);
}

.timeline-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.tooltip-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  cursor: default;
}

.tooltip-chip i {
  color: var(--accent);
}

.tooltip-chip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(280px, 70vw);
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  background: rgba(6, 11, 10, 0.94);
  border: 1px solid rgba(159, 255, 112, 0.15);
  color: var(--muted);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.25);
}

.tooltip-chip:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pill-group span {
  padding: 0.52rem 0.84rem;
  border-radius: 999px;
  background: rgba(159, 255, 112, 0.08);
  border: 1px solid rgba(159, 255, 112, 0.13);
  color: var(--text);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Cursos y aprendizaje continuo
   -------------------------------------------------------------------------- */

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
}

.course-wall {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 290px);
  gap: 1rem;
  margin-inline: 3.75rem;
  align-items: stretch;
}

.course-carousel {
  display: grid;
  margin-top: 1.5rem;
}

.course-carousel-stage {
  position: relative;
  min-width: 0;
}

.course-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.course-nav:hover {
  transform: translateY(-2px);
  background: rgba(159, 255, 112, 0.1);
  border-color: rgba(159, 255, 112, 0.18);
}

.course-carousel-stage .course-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
}

.course-carousel-stage .course-nav:hover {
  transform: translateY(calc(-50% - 2px));
}

.course-nav-prev {
  left: 0.35rem;
}

.course-nav-next {
  right: 0.35rem;
}

.course-track {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 0.25rem 0 0.45rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(159, 255, 112, 0.3) rgba(255, 255, 255, 0.04);
  scroll-padding-inline: 3.75rem;
  scroll-snap-type: x proximity;
}

.course-track::-webkit-scrollbar {
  height: 10px;
}

.course-track::-webkit-scrollbar-thumb {
  background: rgba(159, 255, 112, 0.24);
  border-radius: 999px;
}

.course-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 560px) {
  .course-nav-prev {
    left: 0.35rem;
  }

  .course-nav-next {
    right: 0.35rem;
  }
}

.course-card {
  display: grid;
  gap: 0.7rem;
  min-height: 190px;
  height: 100%;
  grid-template-rows: auto minmax(3.2rem, auto) auto;
  align-content: start;
  scroll-snap-align: start;
}

.course-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 52px;
}

.course-card-head img {
  width: 52px;
  height: 52px;
  display: block;
  flex-shrink: 0;
  padding: 0.45rem;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
}

.course-card strong {
  min-height: 3em;
  line-height: 1.38;
}

.course-link {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Skills y capacidades técnicas destacadas
   -------------------------------------------------------------------------- */

.skills-section {
  margin-top: 1.4rem;
}

.skills-shell {
  display: grid;
  gap: 1.4rem;
  padding: 2.2rem;
}

.skills-header {
  max-width: min(100%, 72rem);
}

.skills-header h2 {
  margin-top: 0.8rem;
  font-family: "Baloo", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.04;
}

.skills-header p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card {
  padding: 1.5rem;
}

.skill-card-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(159, 255, 112, 0.16), rgba(86, 240, 157, 0.08));
  color: var(--accent);
  font-size: 1.3rem;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tech-icons span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.tech-icons i {
  color: var(--accent);
}

.skill-meter {
  width: 100%;
  height: 10px;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.skill-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 22px rgba(86, 240, 157, 0.24);
}

.accent-card {
  background:
    radial-gradient(circle at top right, rgba(255, 191, 105, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(19, 31, 28, 0.96), rgba(10, 17, 16, 0.96));
}

.highlight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.highlight-metrics div {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.highlight-metrics strong {
  display: block;
  font-family: "Baloo", sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
}

.highlight-metrics span {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Blog cards de la landing y listado del blog
   -------------------------------------------------------------------------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.blog-grid--listing {
  margin-top: 0;
}

.blog-section-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.blog-section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-section-heading-row .section-title {
  margin-right: auto;
}

.blog-view-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  color: #3B82F6 !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.blog-view-all:hover {
  color: #3B82F6 !important;
}

.blog-card {
  overflow: hidden;
}

.blog-cover {
  min-height: 210px;
  background: linear-gradient(135deg, rgba(159, 255, 112, 0.18), rgba(86, 240, 157, 0.12));
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-cover-alt,
.blog-cover-code {
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: "Baloo", sans-serif;
  font-size: 2rem;
}

.blog-cover-alt {
  background:
    radial-gradient(circle at top left, rgba(255, 191, 105, 0.3), transparent 38%),
    linear-gradient(145deg, #17221f, #0f1715);
}

.blog-cover-code {
  background:
    linear-gradient(135deg, rgba(86, 240, 157, 0.18), rgba(7, 12, 11, 0.2)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 18px
    );
}

.blog-body {
  display: grid;
  gap: 0.75rem;
  padding: 1.4rem;
}

.blog-body h3 {
  line-height: 1.3;
}

.blog-date {
  color: var(--accent-warm);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* Tarjetas editoriales horizontales de la portada. */
.blog-section .blog-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.blog-section .blog-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(168px, 22%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 176px;
  overflow: hidden;
}

.blog-card-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.blog-section .blog-cover {
  position: relative;
  min-height: 176px;
  height: 100%;
}

.blog-section .blog-cover img {
  height: 100%;
}

.blog-card-index {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(34, 211, 238, 0.46);
  border-radius: 0 0 0.5rem 0;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.36);
  color: #07111f;
  font-size: 0.82rem;
  font-weight: 800;
}

.blog-section .blog-body {
  align-content: start;
  gap: 0.42rem;
  padding: 1rem 1.2rem;
  grid-template-rows: 1.3rem minmax(2.44rem, auto) minmax(2.7rem, auto) minmax(0, 1fr) auto;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  grid-row: 1;
}

.blog-section .blog-meta {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.72rem;
}

.blog-section .blog-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
}

.blog-section .blog-body h3 {
  grid-row: 2;
  margin: 0;
  font-size: clamp(1rem, 1.65vw, 1.22rem);
  line-height: 1.22;
}

.blog-section .blog-body p {
  grid-row: 3;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-card-tags {
  grid-row: 5;
  align-self: end;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.15rem;
}

.blog-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: rgba(29, 43, 66, 0.75);
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .blog-section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .blog-section .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-section .blog-cover {
    min-height: 170px;
    height: 170px;
  }
}

.contact-card {
  display: grid;
  gap: 1.3rem;
  padding: 2.2rem;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-actions {
  margin-top: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: transform 180ms ease, background 180ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(159, 255, 112, 0.12);
  color: #3B82F6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 0.6rem 0.3rem;
  color: var(--muted);
}

.footer-top {
  border: 1px solid rgba(159, 255, 112, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.footer-top:hover {
  transform: translateY(-2px);
  background: rgba(159, 255, 112, 0.08);
}

/* --------------------------------------------------------------------------
   Listado de artículos y detalle editorial
   -------------------------------------------------------------------------- */

.articles-page,
.article-page {
  display: grid;
  gap: 1.4rem;
}

.articles-hero,
.article-hero,
.article-layout,
.article-related {
  border-radius: var(--radius-xl);
}

.articles-hero,
.article-hero {
  padding: 2.3rem;
}

.article-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.2rem;
  align-items: stretch;
}

.article-hero-copy {
  display: grid;
  align-content: start;
}

.articles-hero h1 {
  margin-top: 1rem;
  font-family: "Baloo", sans-serif;
  font-weight: 400;
  line-height: 1.04;
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: min(100%, 36ch);
}

.article-hero h1 {
  margin-top: 1rem;
  font-family: "Baloo", sans-serif;
  font-weight: 400;
  line-height: 1.06;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  max-width: 24ch;
}

.articles-hero p,
.article-hero p,
.article-aside p,
.article-prose p,
.article-prose li {
  color: var(--muted);
  line-height: 1.78;
}

.article-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.articles-hero p,
.article-hero p {
  max-width: min(100%, 92ch);
}

.article-engagement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.engagement-pill,
.reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.reaction-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.reaction-pill small {
  color: var(--muted);
}

.article-share-row {
  margin-top: 0.6rem;
}

.article-share-trigger {
  min-height: 38px;
}

.article-share-modal[hidden] {
  display: none;
}

.article-share-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.article-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 11, 0.72);
  backdrop-filter: blur(8px);
}

.article-share-card {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 28px;
}

.article-share-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.article-share-head h2 {
  margin-top: 0.55rem;
  font-size: 1.18rem;
  line-height: 1.15;
}

.article-share-head p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.article-share-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.article-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.article-share-option {
  min-height: 54px;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.article-share-option:hover,
.article-share-copy-button:hover,
.article-share-close:hover {
  transform: translateY(-1px);
  background: rgba(159, 255, 112, 0.08);
  border-color: rgba(159, 255, 112, 0.18);
}

.article-share-option i {
  color: var(--accent);
}

.article-share-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.article-share-copy--text {
  align-items: start;
}

.article-share-copy-shell {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.article-share-copy-shell span {
  color: var(--muted);
  font-size: 0.78rem;
}

.article-share-copy-shell strong {
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.article-share-copy-button {
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.article-share-feedback {
  color: var(--accent);
  font-size: 0.8rem;
}

.articles-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

.article-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.mode-chip {
  min-height: 40px;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mode-chip:hover,
.mode-chip.is-active {
  transform: translateY(-2px);
  color: var(--text);
  background: rgba(159, 255, 112, 0.08);
  border-color: rgba(159, 255, 112, 0.18);
}

.article-view-helper {
  max-width: 68ch;
  margin-top: 0.9rem;
  font-size: 0.98rem;
}

/* Buscador y explorador entre vista por artículos y vista por series. */
.search-shell {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-shell i {
  color: var(--accent);
}

.search-shell input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.search-shell input::placeholder {
  color: rgba(182, 192, 184, 0.72);
}

.articles-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.series-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.series-card:hover {
  transform: translateY(-4px);
  border-color: rgba(159, 255, 112, 0.2);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.18);
}

.series-card-head,
.series-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.series-card-count,
.series-card-footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.series-card h2 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.series-card p {
  color: var(--muted);
  line-height: 1.68;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.pagination button {
  min-width: 46px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.pagination button:hover,
.pagination button.is-active {
  transform: translateY(-2px);
  background: rgba(159, 255, 112, 0.12);
  border-color: rgba(159, 255, 112, 0.24);
}

/* Layout 60/40 del detalle: contenido principal + panel lateral editorial. */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 0.95rem;
}

.article-content,
.article-aside,
.article-related {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.article-prose {
  display: grid;
  gap: 0.9rem;
  font-size: 0.93rem;
}

.article-prose h2 {
  font-family: "Baloo", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.06;
}

/* Tipografía y bloques enriquecidos que salen del editor HTML/visual del panel. */
.article-prose ul,
.article-prose ol {
  display: grid;
  gap: 0.22rem;
  padding-left: 1.35rem;
  margin: 0.2rem 0 0.9rem;
}

.article-prose li {
  font-size: 0.95rem;
  line-height: 1.62;
}

.article-prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0.9rem 0 1.1rem;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.025);
}

.article-prose th,
.article-prose td {
  padding: 0.66rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.article-prose th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.article-quote {
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: rgba(159, 255, 112, 0.05);
  color: var(--text);
}

.article-aside {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  position: sticky;
  top: 1rem;
}

.article-aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.article-aside-toggle {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.article-aside-toggle:hover {
  background: rgba(159, 255, 112, 0.08);
  border-color: rgba(159, 255, 112, 0.2);
}

.article-aside-toggle i {
  transition: transform 180ms ease;
}

/* Estado colapsado del aside para priorizar lectura del artículo. */
.article-layout.is-aside-collapsed {
  grid-template-columns: minmax(0, 1fr) 58px;
}

.article-layout.is-aside-collapsed .article-aside {
  padding: 0.7rem;
  gap: 0.55rem;
}

.article-layout.is-aside-collapsed .article-aside-body {
  display: none;
}

.article-layout.is-aside-collapsed .article-aside-head {
  justify-content: center;
}

.article-layout.is-aside-collapsed .article-aside-head .section-tag {
  display: none;
}

.article-layout.is-aside-collapsed .article-aside-toggle i {
  transform: rotate(180deg);
}

.article-aside-media,
.article-hero-media {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 220px;
  padding: 1.15rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
}

.article-aside-media::before,
.article-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.02), rgba(8, 10, 12, 0.62)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 18px
    );
  pointer-events: none;
}

.article-aside-media span,
.article-aside-media strong,
.article-hero-media span,
.article-hero-media strong {
  position: relative;
  z-index: 1;
}

.article-hero-media img,
.article-prose img {
  display: block;
  width: min(100%, 680px);
  height: auto;
  object-fit: contain;
  border-radius: inherit;
  margin-inline: auto;
}

.article-prose figure {
  margin: 1.2rem auto;
  width: fit-content;
  max-width: 100%;
}

.article-prose figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.article-prose pre {
  overflow-x: auto;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: rgba(7, 10, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-prose code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.94rem;
}

.article-aside-media span,
.article-hero-media span {
  color: rgba(244, 244, 236, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-aside-media strong,
.article-hero-media strong {
  margin-top: 0.45rem;
  font-size: 1.15rem;
  line-height: 1.24;
}

.article-media-python {
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 210, 92, 0.24), transparent 20%),
    linear-gradient(145deg, rgba(42, 76, 122, 0.98), rgba(17, 27, 44, 0.98));
}

.article-media-architecture {
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 191, 105, 0.22), transparent 18%),
    linear-gradient(145deg, rgba(48, 56, 63, 0.98), rgba(24, 29, 34, 0.98));
}

.article-media-writing {
  background:
    radial-gradient(circle at 20% 20%, rgba(86, 240, 157, 0.18), transparent 18%),
    linear-gradient(145deg, rgba(36, 48, 43, 0.98), rgba(18, 24, 23, 0.98));
}

.article-media-drf {
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 82, 82, 0.24), transparent 16%),
    linear-gradient(145deg, rgba(52, 28, 34, 0.98), rgba(20, 18, 24, 0.98));
}

.article-media-mobile {
  background:
    radial-gradient(circle at 24% 24%, rgba(0, 197, 255, 0.18), transparent 18%),
    linear-gradient(145deg, rgba(26, 42, 52, 0.98), rgba(14, 22, 28, 0.98));
}

.article-media-process {
  background:
    radial-gradient(circle at 78% 26%, rgba(159, 255, 112, 0.18), transparent 18%),
    linear-gradient(145deg, rgba(32, 46, 33, 0.98), rgba(16, 23, 18, 0.98));
}

/* Navegación de la serie actual y bloque lateral de apoyo. */
.article-aside h3,
.article-related h2 {
  font-size: 1rem;
}

.article-series-nav {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.45rem;
  padding: 0.72rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.article-series-nav-head {
  display: grid;
  gap: 0.18rem;
}

.article-series-nav-head h3 {
  font-size: 0.92rem;
}

.article-series-list {
  display: grid;
  gap: 0.4rem;
}

.article-series-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.55rem;
  padding: 0.58rem 0.62rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.article-series-item:hover {
  transform: translateY(-1px);
  border-color: rgba(159, 255, 112, 0.18);
  background: rgba(159, 255, 112, 0.05);
}

.article-series-item.is-current {
  border-color: rgba(159, 255, 112, 0.24);
  background: rgba(159, 255, 112, 0.09);
}

.article-series-item-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.68rem;
}

.article-series-item-copy {
  min-width: 0;
  color: var(--text);
  font-size: 0.74rem;
  line-height: 1.38;
}

.article-series-item-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  background: rgba(159, 255, 112, 0.14);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 600;
}

.article-list {
  display: grid;
  gap: 0.8rem;
}

.article-comments {
  margin-top: 0.4rem;
  padding: 0.82rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
}

.article-comments-head {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
}

.article-comments-head h2 {
  font-size: 0.9rem;
}

.article-comments-head p {
  font-size: 0.72rem;
  line-height: 1.4;
}

/* Hilo de comentarios compacto: padre visible y respuestas con sangría constante. */
.article-comment-form {
  display: grid;
  gap: 0.48rem;
  padding: 0.62rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.article-comment-identity {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0.48rem;
  align-items: start;
}

.article-comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 0.7rem;
}

.article-comment-avatar.is-form {
  color: rgba(255, 255, 255, 0.82);
}

.article-comment-notice,
.article-comment-replying {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.68rem;
  border-radius: 12px;
  border: 1px solid rgba(159, 255, 112, 0.14);
  background: rgba(159, 255, 112, 0.08);
  color: var(--text);
  font-size: 0.76rem;
}

.article-comment-notice {
  margin-bottom: 0.75rem;
  justify-content: flex-start;
}

.article-comment-replying a {
  color: var(--accent);
  font-size: 0.8rem;
}

.article-comment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.article-comment-form input,
.article-comment-form textarea {
  width: 100%;
  min-height: 34px;
  padding: 0.54rem 0.68rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
}

.article-comment-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: end;
}

.article-comment-form textarea {
  min-height: 66px;
  resize: vertical;
}

.article-comment-submit {
  justify-self: end;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 12px;
  font-size: 0.8rem;
}

.article-comment-thread-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
  max-height: 50vh;
  overflow: auto;
  padding-right: 0.15rem;
}

.article-comment-node {
  display: grid;
  gap: 0.3rem;
}

.article-comment-node.is-root-thread {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-comment-node.is-root-thread:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-comment-row {
  display: block;
}

.article-comment-bubble {
  max-width: 100%;
  padding: 0.58rem 0.72rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.article-comment-bubble.is-reply {
  background: rgba(159, 255, 112, 0.06);
  border-color: rgba(159, 255, 112, 0.12);
}

.article-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.16rem;
}

.article-comment-meta strong {
  font-size: 0.76rem;
}

.article-comment-bubble p {
  margin: 0;
  color: var(--text);
  line-height: 1.38;
  font-size: 0.72rem;
}

.article-comment-bubble small {
  color: var(--muted);
  font-size: 0.62rem;
}

.article-comment-actions {
  margin-top: 0.18rem;
}

.article-comment-reply-link {
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 600;
}

.article-comment-children {
  display: grid;
  gap: 0.4rem;
  padding-left: 0.9rem;
  margin: 0.15rem 0 0 0.7rem;
  border-left: 1px solid rgba(159, 255, 112, 0.14);
}

.article-comment-children .article-comment-node {
  gap: 0.24rem;
}

.article-comments-empty {
  color: var(--muted);
  font-size: 0.74rem;
}

.article-list a {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease;
}

.article-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 255, 112, 0.2);
}

/* --------------------------------------------------------------------------
   Responsive general de landing, blog y artículo
   -------------------------------------------------------------------------- */

@media (max-width: 1160px) {
  .blog-grid,
  .contact-card,
  .series-grid,
  .article-layout,
  .articles-toolbar,
  .article-hero-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-top,
  .hero-capability-grid,
  .hero-stack-row,
  .timeline-card {
    grid-template-columns: 1fr;
  }

  .highlight-metrics,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .article-share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout.is-aside-collapsed {
    grid-template-columns: 1fr;
  }

  .article-layout.is-aside-collapsed .article-aside {
    padding: 1.35rem;
  }

  .article-layout.is-aside-collapsed .article-aside-body {
    display: grid;
  }

  .article-layout.is-aside-collapsed .article-aside-toggle i {
    transform: none;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.5rem;
    padding-bottom: 7.5rem;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.8rem;
  }

  .brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
  }

  .brand-copy {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .article-share-card {
    padding: 1rem;
  }

  .article-share-grid,
  .article-share-copy {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: 0;
    justify-self: end;
  }

  .site-nav {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .nav-cta {
    width: 100%;
    text-align: left;
  }

  .hero-panel,
  .journey-section,
  .blog-section,
  .section-card,
  .contact-card,
  .courses-section,
  .skills-shell {
    padding: 1.35rem;
    border-radius: 24px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .hero-top,
  .hero-side-cards,
  .hero-capability-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .course-wall {
    grid-template-columns: none;
    grid-auto-columns: minmax(240px, 82vw);
  }

  .course-card {
    min-height: 200px;
  }

  .skill-card-head {
    grid-template-columns: 1fr;
  }

  .skill-icon {
    width: 54px;
    height: 54px;
  }

  .hero-meteor {
    top: 11.2rem;
    left: auto;
    right: 5rem;
    width: 142px;
    transform: rotate(-12deg);
    /* border:1px solid red; */
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-body {
    padding: 1.08rem;
  }

  .blog-cover {
    min-height: 190px;
    height: 190px;
  }

  .blog-body h3 {
    font-size: 1rem;
  }

  .blog-body p {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .blog-date,
  .blog-body .text-link {
    font-size: 0.78rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 0.75rem;
  }

  .site-footer p {
    max-width: 32rem;
    margin: 0;
  }

  .footer-top {
    align-self: center;
  }
}

@media (max-width: 560px) {
  .brand {
    width: 100%;
    align-items: center;
    gap: 0.75rem;
  }

  .brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .brand-mark {
    flex-shrink: 0;
  }

  .brand-copy {
    min-width: 0;
    justify-content: center;
  }

  .brand-copy strong {
    font-size: 1.35rem;
  }

  .brand-name {
    font-size: 0.74rem;
  }

  .brand-divider {
    margin: 0 0.28rem;
  }

  .brand-copy small {
    font-size: 0.78rem;
  }

  .brand-summary {
    font-size: 0.76rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-cta-row {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-stack-row,
  .timeline-signals,
  .tech-icons {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-widget {
    --chat-widget-edge-offset: 0.75rem;
    --chat-widget-gap: 0.65rem;
    left: auto;
    right: var(--chat-widget-edge-offset);
    bottom: calc(var(--chat-widget-edge-offset) + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - (var(--chat-widget-edge-offset) * 2));
  }

  .chat-widget-trigger {
    width: auto;
    max-width: min(17rem, calc(100vw - (var(--chat-widget-edge-offset) * 2)));
    min-height: 60px;
    padding: 0.72rem 0.9rem;
    border-radius: 20px;
    justify-content: flex-start;
  }

  .chat-widget-trigger-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .chat-widget-trigger-copy strong {
    font-size: 0.92rem;
  }

  .chat-widget-trigger-copy small {
    font-size: 0.74rem;
  }

  .chat-widget-panel {
    width: min(22rem, calc(100vw - (var(--chat-widget-edge-offset) * 2)));
    max-width: calc(100vw - (var(--chat-widget-edge-offset) * 2));
    right: 0;
  }

  .blog-cover {
    min-height: 160px;
    height: 160px;
  }

  .blog-cover-alt,
  .blog-cover-code {
    font-size: 1.45rem;
  }

  .hero-capability-card {
    min-height: 74px;
  }

  .hero-meteor {
    top:4rem;
    right: -4rem;
    width: 132px;
    /* border:1px solid green; */
  }

  .tooltip-chip::after {
    width: min(220px, 85vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel,
  .hero-panel::after,
  .hero-intro,
  .hero-side-cards,
  .hero-meteor,
  .hero-actions,
  .hero-capabilities {
    animation: none !important;
  }
}

.contact-actions {
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Portal público de chats (pantallas completas)
   -------------------------------------------------------------------------- */

.chat-public-main {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
}

.chat-public-card {
  padding: 1.6rem;
  border-radius: 28px;
}

.chat-public-card-narrow {
  max-width: 620px;
  margin-inline: auto;
}

.chat-public-head h1 {
  margin: 0.3rem 0 0.5rem;
  font-family: "Baloo", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
}

.chat-public-head p,
.chat-public-field span,
.chat-thread-public-item span,
.chat-public-bubble small {
  color: rgba(244, 244, 236, 0.72);
}

.chat-public-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.chat-public-form-compact {
  max-width: 560px;
}

.chat-public-field {
  display: grid;
  gap: 0.45rem;
}

.chat-public-field.is-full,
.chat-public-actions {
  grid-column: 1 / -1;
}

.chat-public-field input,
.chat-public-field textarea {
  min-height: 52px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(159, 255, 112, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font: inherit;
}

.chat-public-field textarea {
  min-height: 150px;
  resize: vertical;
}

.chat-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chat-public-error {
  color: #ffb7b7;
}

.chat-thread-public-list,
.chat-public-workspace,
.chat-public-messages {
  display: grid;
  gap: 0.9rem;
}

.chat-thread-public-list {
  margin-top: 1.25rem;
}

.chat-thread-public-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(159, 255, 112, 0.08);
}

.chat-thread-public-item strong,
.chat-public-bubble strong {
  display: block;
}

.chat-public-messages {
  min-height: 260px;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-public-bubble {
  max-width: min(82%, 720px);
  padding: 0.95rem 1rem;
  border-radius: 20px;
  display: grid;
  gap: 0.25rem;
}

.chat-public-bubble.is-visitor {
  background: rgba(255, 255, 255, 0.05);
}

.chat-public-bubble.is-admin {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(159, 255, 112, 0.24), rgba(86, 240, 157, 0.12));
  color: #09110f;
}

.chat-public-bubble.is-admin small {
  color: rgba(9, 17, 15, 0.7);
}

.chat-public-reply {
  display: grid;
  gap: 0.9rem;
}

.chat-public-empty {
  color: rgba(244, 244, 236, 0.65);
}

@media (max-width: 720px) {
  .chat-public-main {
    width: min(100% - 1rem, 1240px);
  }

  .chat-public-form {
    grid-template-columns: 1fr;
  }

  .chat-public-actions {
    flex-direction: column;
  }

  .chat-public-bubble {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Widget flotante de chat con OTP, listado de hilos y conversación
   -------------------------------------------------------------------------- */

.chat-widget {
  --chat-widget-edge-offset: 1.2rem;
  --chat-widget-gap: 1rem;
  --chat-widget-trigger-height: 68px;
  --chat-widget-available-height: calc(100dvh - (var(--chat-widget-edge-offset) * 2) - var(--chat-widget-trigger-height) - var(--chat-widget-gap));
  position: fixed;
  right: var(--chat-widget-edge-offset);
  bottom: var(--chat-widget-edge-offset);
  z-index: 40;
}

.chat-widget-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 68px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(159, 255, 112, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 82, 82, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(18, 22, 26, 0.96), rgba(11, 14, 18, 0.96));
  color: var(--text);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.chat-widget-trigger:hover {
  transform: translateY(-3px);
  border-color: rgba(159, 255, 112, 0.24);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.32);
}

.chat-widget-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 82, 82, 0.18), rgba(255, 191, 105, 0.14));
  color: #ffb66b;
}

.chat-widget-trigger-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chat-widget-trigger-copy strong {
  font-size: 0.96rem;
}

.chat-widget-trigger-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-widget-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + var(--chat-widget-gap));
  width: min(26rem, calc(100vw - (var(--chat-widget-edge-offset) * 2)));
  max-height: var(--chat-widget-available-height);
}

.chat-widget-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: min(34rem, var(--chat-widget-available-height));
  max-height: min(44rem, var(--chat-widget-available-height));
  border-radius: 30px;
  overflow: hidden;
}

.chat-widget-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 82, 82, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(16, 19, 22, 0.98), rgba(10, 13, 16, 0.98));
}

.chat-widget-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-widget-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 82, 82, 0.16), rgba(255, 191, 105, 0.14));
  color: #ffbf69;
}

.chat-widget-brand strong {
  display: block;
  font-size: 0.96rem;
}

.chat-widget-brand small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.chat-widget-topbar-actions {
  display: flex;
  gap: 0.55rem;
}

.chat-widget-topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.chat-widget-topbar-link:hover {
  transform: translateY(-2px);
  background: rgba(159, 255, 112, 0.08);
  border-color: rgba(159, 255, 112, 0.18);
}

.chat-widget-body {
  display: grid;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 23, 27, 0.96), rgba(11, 14, 17, 0.98));
}

.chat-widget-body.is-loading {
  opacity: 0.82;
}

.chat-widget-loading,
.chat-widget-view {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 0;
  padding: 1.1rem;
}

.chat-widget-view {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

.chat-widget-loading {
  place-items: center;
  align-content: center;
  color: var(--muted);
}

.chat-widget-loading-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 82, 82, 0.12);
  color: #ffb66b;
  font-size: 1.1rem;
}

.chat-widget-head-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.chat-widget-head h3 {
  margin-top: 0.45rem;
  font-family: "Baloo", sans-serif;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.02;
}

.chat-widget-head p,
.chat-widget-thread-copy span,
.chat-widget-bubble small,
.chat-widget-empty,
.chat-widget-field span,
.chat-widget-text-link {
  color: var(--muted);
}

.chat-widget-head p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.chat-widget-notice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 2.1rem 0.6rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  line-height: 1.35;
}

.chat-widget-notice.is-success {
  border-color: rgba(159, 255, 112, 0.18);
  background: rgba(159, 255, 112, 0.08);
}

.chat-widget-notice.is-danger {
  border-color: rgba(255, 82, 82, 0.2);
  background: rgba(255, 82, 82, 0.08);
}

.chat-widget-notice i {
  margin-top: 0.08rem;
  color: var(--accent);
}

.chat-widget-notice.is-danger i {
  color: #ff9b9b;
}

.chat-widget-notice-close {
  position: absolute;
  top: 0.38rem;
  right: 0.38rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 244, 236, 0.7);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.chat-widget-notice-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translateY(-1px);
}

.chat-widget-form,
.chat-widget-reply {
  display: grid;
  gap: 0.9rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.2rem;
  align-content: start;
}

.chat-widget-field {
  display: grid;
  gap: 0.45rem;
}

.chat-widget-field input,
.chat-widget-field textarea,
.chat-widget-field .panel-input,
.chat-widget-field .panel-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.88rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.chat-widget-field textarea,
.chat-widget-field .panel-textarea {
  min-height: 112px;
  resize: vertical;
}

.chat-widget-field input:focus,
.chat-widget-field textarea:focus,
.chat-widget-field .panel-input:focus,
.chat-widget-field .panel-textarea:focus {
  outline: none;
  border-color: rgba(159, 255, 112, 0.26);
  box-shadow: 0 0 0 4px rgba(159, 255, 112, 0.08);
}

.chat-widget-submit,
.chat-widget-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 38px;
  padding: 0.58rem 0.76rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #07120e;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chat-widget-submit:hover,
.chat-widget-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(86, 240, 157, 0.16);
}

.chat-widget-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  margin-left: auto;
}

.chat-widget-toolbar form {
  margin: 0;
}

.chat-widget-action.is-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.chat-widget-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  padding-top: 0.75rem;
  padding-bottom: 0.15rem;
  background: linear-gradient(180deg, rgba(11, 14, 17, 0), rgba(11, 14, 17, 0.92) 28%, rgba(11, 14, 17, 1) 100%);
}

.chat-widget-text-link {
  font-size: 0.92rem;
}

.chat-widget-error {
  color: #ffb3b3;
  font-size: 0.82rem;
}

.chat-widget-thread-list {
  display: grid;
  gap: 0.35rem;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  overflow-y: auto;
  min-height: 0;
  padding-right: 0.2rem;
}

.chat-widget-thread-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 0;
  padding: 0.34rem 0.72rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  align-self: start;
}

.chat-widget-thread-card:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 255, 112, 0.18);
  background: rgba(159, 255, 112, 0.05);
}

.chat-widget-thread-copy strong {
  display: block;
  font-size: 0.74rem;
  line-height: 1.2;
}

.chat-widget-thread-copy span {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.64rem;
  line-height: 1.15;
}

.chat-widget-thread-side {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.chat-widget-thread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(159, 255, 112, 0.12);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
}

.chat-widget-empty {
  display: grid;
  gap: 0.7rem;
  place-items: center;
  padding: 1.4rem;
  text-align: center;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.chat-widget-empty i {
  color: #ffb66b;
  font-size: 1.2rem;
}

.chat-widget-empty-state {
  display: grid;
  place-items: center;
  gap: 0.65rem;
  min-height: 100%;
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
}

.chat-widget-empty-state strong {
  color: var(--text);
  font-size: 0.94rem;
}

.chat-widget-empty-state p {
  font-size: 0.86rem;
  line-height: 1.55;
}

.chat-widget-empty-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 191, 105, 0.08);
  color: #ffb66b;
}

.chat-widget-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.chat-widget-otp input {
  width: 100%;
  min-height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.chat-widget-otp input:focus {
  outline: none;
  border-color: rgba(159, 255, 112, 0.26);
  box-shadow: 0 0 0 4px rgba(159, 255, 112, 0.08);
}

.chat-widget-messages {
  display: grid;
  gap: 0.75rem;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding: 0.2rem 0.1rem 0.2rem 0;
}

.chat-widget-bubble {
  display: grid;
  gap: 0.35rem;
  max-width: 84%;
  height: auto;
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  align-self: start;
}

.chat-widget-bubble strong {
  font-size: 0.74rem;
}

.chat-widget-bubble p {
  font-size: 0.9rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.chat-widget-bubble small {
  font-size: 0.72rem;
}

.chat-widget-bubble-text.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-widget-message-toggle {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.chat-widget-message-toggle:hover {
  text-decoration: underline;
}

.chat-widget-bubble.is-visitor {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(159, 255, 112, 0.14), rgba(86, 240, 157, 0.08));
}

.chat-widget-bubble.is-admin {
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-widget-view-conversation {
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.chat-widget-chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.2rem;
}

.chat-widget-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chat-widget-chat-head-copy {
  min-width: 0;
}

.chat-widget-chat-head-copy strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}

.chat-widget-chat-head-copy span {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.chat-widget-messages-empty {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0;
}

/* Composer fijo al pie del widget para no perder el campo de respuesta. */
.chat-widget-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 0.75rem;
  padding-bottom: 0.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(11, 14, 17, 0), rgba(11, 14, 17, 0.98) 24%);
}

.chat-widget-composer-field {
  display: grid;
  gap: 0.35rem;
}

.chat-widget-composer-field textarea,
.chat-widget-composer-field .panel-textarea {
  min-height: 54px;
  max-height: 96px;
  padding: 0.82rem 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  resize: none;
  overflow-y: auto;
  font: inherit;
  line-height: 1.45;
}

.chat-widget-composer-field textarea:focus,
.chat-widget-composer-field .panel-textarea:focus {
  outline: none;
  border-color: rgba(159, 255, 112, 0.26);
  box-shadow: 0 0 0 4px rgba(159, 255, 112, 0.08);
}

.chat-widget-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #07120e;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chat-widget-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(86, 240, 157, 0.16);
}

@media (max-width: 820px) {
  .chat-widget {
    --chat-widget-edge-offset: 0.7rem;
    --chat-widget-gap: 0.75rem;
    right: var(--chat-widget-edge-offset);
    bottom: var(--chat-widget-edge-offset);
  }

  .chat-widget-trigger {
    width: auto;
    max-width: min(18rem, calc(100vw - (var(--chat-widget-edge-offset) * 2)));
    justify-content: flex-start;
  }

  .chat-widget-panel {
    width: min(24rem, calc(100vw - (var(--chat-widget-edge-offset) * 2)));
    right: 0;
  }

  .chat-widget-shell {
    min-height: min(70vh, var(--chat-widget-available-height));
    max-height: var(--chat-widget-available-height);
  }

  .chat-widget-toolbar {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .chat-widget-head-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .chat-widget-toolbar .chat-widget-action,
  .chat-widget-toolbar form,
  .chat-widget-toolbar .chat-widget-action.is-ghost {
    flex: 1 1 auto;
  }
}

/* --------------------------------------------------------------------------
   Dark Tech Premium theme
   Mantiene los layouts y comportamientos existentes; solo redefine la capa
   visual pública con tokens semánticos de la nueva identidad.
   -------------------------------------------------------------------------- */

html {
  background: var(--bg-primary);
}

body {
  background:
    radial-gradient(circle at 8% 8%, var(--glow-blue), transparent 26%),
    radial-gradient(circle at 90% 22%, var(--glow-purple), transparent 22%),
    radial-gradient(circle at 54% 88%, rgba(34, 211, 238, 0.06), transparent 28%),
    linear-gradient(155deg, var(--bg-primary) 0%, var(--bg-secondary) 48%, var(--bg-primary) 100%);
}

body::before {
  background: rgba(59, 130, 246, 0.08);
  filter: blur(84px);
}

body::after {
  background: rgba(147, 51, 234, 0.07);
  filter: blur(84px);
}

::selection {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.45);
}

:focus-visible {
  outline: 3px solid var(--border-active);
  outline-offset: 3px;
}

.surface,
.chat-widget-shell {
  background: linear-gradient(155deg, rgba(23, 34, 53, 0.94), rgba(11, 18, 32, 0.96));
  border-color: var(--border-default);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.site-header {
  border-color: var(--border-subtle);
  background: rgba(8, 13, 24, 0.94);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(12px);
}

.brand {
  gap: 0.8rem;
}

.brand-logo {
  width: 142px;
  height: 71px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
}

.brand-copy strong {
  color: var(--text-primary);
}

.brand-name,
.brand-copy small {
  color: var(--text-secondary);
}

.brand-summary {
  color: var(--brand-cyan);
}

.site-nav a {
  color: var(--text-secondary);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.14);
}

.nav-cta {
  border-color: rgba(34, 211, 238, 0.42);
}

.menu-toggle {
  background: rgba(59, 130, 246, 0.14);
}

.eyebrow,
.section-tag,
.blog-meta {
  color: var(--brand-cyan);
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.24);
}

.hero-panel::before {
  background:
    radial-gradient(circle at 80% 18%, rgba(59, 130, 246, 0.16), transparent 28%),
    radial-gradient(circle at 18% 85%, rgba(147, 51, 234, 0.1), transparent 26%);
}

.hero-panel::after {
  content: none;
}

.hero-avatar-wrap {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 100%;
  pointer-events: none;
}

.hero-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: 15% 7% 12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.12) 48%, transparent 72%);
  filter: blur(18px);
}

.hero-avatar {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 24px rgba(2, 6, 23, 0.45));
}

.hero-side-card,
.hero-capability-card,
.skill-card,
.blog-card,
.course-card,
.timeline-card,
.engagement-pill,
.reaction-pill,
.mode-chip,
.article-share-option,
.article-share-copy-button,
.article-share-close,
.search-shell,
.social-links a,
.course-nav {
  border-color: var(--border-default);
  background: rgba(23, 34, 53, 0.66);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.16);
}

.hero-side-card span,
.blog-date {
  color: var(--brand-purple);
}

.course-card-head span {
  color: #3B82F6;
}

.hero-capability-card i,
.skill-icon,
.tech-icons i,
.course-link,
.text-link,
.article-prose a,
.article-share-option i,
.search-shell i,
.footer-top,
.chat-widget-text-link {
  color: var(--brand-cyan);
}

.button-primary,
.chat-widget-submit,
.chat-widget-action:not(.is-ghost),
.chat-widget-send {
  color: #07111f;
  background: var(--gradient-brand);
}

.button-secondary,
.footer-top {
  color: var(--text-primary);
  border-color: var(--border-default);
  background: rgba(23, 34, 53, 0.72);
}

.button:hover,
.course-nav:hover,
.social-links a:hover,
.footer-top:hover,
.mode-chip:hover,
.mode-chip.is-active,
.article-share-option:hover,
.article-share-copy-button:hover,
.article-share-close:hover,
.article-list a:hover,
.chat-widget-trigger:hover,
.chat-widget-action:hover,
.chat-widget-send:hover {
  border-color: var(--border-active);
  background-color: var(--surface-hover);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.12);
}

.skill-card:hover,
.blog-card:hover,
.timeline-card:hover,
.course-card:hover,
.hero-capability-card:hover {
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.1);
}

.timeline-card::before,
.timeline-functions li::before,
.skill-meter span {
  background: var(--gradient-brand);
}

.timeline-signals .tooltip-chip,
.pill-group span,
.tech-icons span,
.article-tag,
.article-category,
.chat-widget-thread-badge {
  border-color: var(--border-default);
  background: rgba(29, 43, 66, 0.75);
}

.blog-cover,
.blog-cover-code {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.16), rgba(147, 51, 234, 0.16)),
    repeating-linear-gradient(90deg, rgba(248, 250, 252, 0.04) 0, rgba(248, 250, 252, 0.04) 1px, transparent 1px, transparent 18px);
}

.blog-cover-alt {
  background:
    radial-gradient(circle at top left, rgba(167, 139, 250, 0.22), transparent 40%),
    linear-gradient(145deg, var(--surface-secondary), var(--bg-secondary));
}

.accent-card,
.article-hero,
.articles-hero {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 36%),
    linear-gradient(155deg, rgba(23, 34, 53, 0.96), rgba(11, 18, 32, 0.96));
}

.course-track {
  scrollbar-color: rgba(34, 211, 238, 0.42) rgba(23, 34, 53, 0.72);
}

.course-track::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.36);
}

.course-track::-webkit-scrollbar-track {
  background: rgba(23, 34, 53, 0.72);
}

.chat-widget-trigger,
.chat-widget-panel,
.chat-widget-topbar,
.chat-widget-field input,
.chat-widget-field textarea,
.chat-widget-field .panel-input,
.chat-widget-field .panel-textarea,
.chat-widget-composer-field textarea,
.chat-widget-composer-field .panel-textarea,
.chat-widget-bubble.is-admin,
.chat-widget-thread-card,
.chat-public-card,
.chat-public-field input,
.chat-public-field textarea {
  border-color: var(--border-default);
  background-color: var(--surface-primary);
}

.chat-widget-trigger-icon,
.chat-widget-brand-mark,
.chat-widget-loading-mark,
.chat-widget-empty-mark {
  color: var(--brand-cyan);
  background: rgba(34, 211, 238, 0.12);
}

.chat-widget-field input:focus,
.chat-widget-field textarea:focus,
.chat-widget-field .panel-input:focus,
.chat-widget-field .panel-textarea:focus,
.chat-widget-composer-field textarea:focus,
.chat-widget-composer-field .panel-textarea:focus,
.chat-widget-otp input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

@media (max-width: 1160px) {
  .hero-avatar-wrap {
    width: min(38vw, 250px);
    margin: -0.35rem 0 0.2rem auto;
  }
}

@media (max-width: 820px) {
  .brand-logo {
    width: 124px;
    height: 62px;
  }

  .hero-avatar-wrap {
    width: min(58vw, 250px);
  }

  .hero-avatar-wrap::before {
    inset: 16% 4% 12%;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 108px;
    height: 54px;
  }

  .brand-copy {
    gap: 0.08rem;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .brand-name,
  .brand-copy small,
  .brand-summary {
    font-size: 0.64rem;
    line-height: 1.25;
  }

  .brand-divider {
    margin: 0 0.16rem;
  }

  .hero-avatar-wrap {
    width: min(70vw, 230px);
    margin-top: -0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --------------------------------------------------------------------------
   Iteración 2: identidad personal compacta, hero de dos columnas y footer
   -------------------------------------------------------------------------- */

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand navigation";
  align-items: center;
}

.brand {
  grid-area: brand;
  min-width: 0;
}

.brand-mark {
  width: 74px;
  height: 74px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 18px;
  background: var(--surface-secondary);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
}

.brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.35rem;
  line-height: 1.05;
}

.brand-copy small {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.brand-summary {
  max-width: 58rem;
  color: #3B82F6;
  font-size: 0.76rem;
  line-height: 1.35;
}

.site-nav {
  grid-area: navigation;
  justify-content: flex-end;
}

.hero-top {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
}

.hero h1 {
  max-width: 15.2ch;
}

.site-footer {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.875rem;
  margin-top: 1.4rem;
  min-height: 260px;
  padding: 1rem 2rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--surface-secondary);
  background-image: url("../img/brand/barckl3y-footer-cybertech.e72c801c11c3.png");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  text-align: center;
}

.site-footer::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 14, 29, 0.32), rgba(6, 14, 29, 0.82) 34%, rgba(6, 14, 29, 0.84) 66%, rgba(6, 14, 29, 0.32)),
    linear-gradient(180deg, rgba(6, 14, 29, 0.18), rgba(6, 14, 29, 0.42));
  pointer-events: none;
}

.footer-brand-block {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 25%;
  height: auto;
  margin-inline: auto;
}

.footer-brand-block p {
  max-width: 52rem;
  margin: 0;
  color: var(--muted);
}

.footer-brand-block .footer-tagline {
  color: #e6f4ff;
  font-size: clamp(0.78rem, 1vw, 0.94rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.45;
  text-shadow: 0 0 14px rgba(45, 215, 248, 0.25);
}

.site-footer .footer-top {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Iteración 3: densidad vertical del hero (desktop)
   -------------------------------------------------------------------------- */

.hero-title {
  flex-direction: column;
  row-gap: 0;
}

@media (min-width: 821px) {
  .hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 4.1vw, 4.1rem);
    line-height: 1.05;
  }

  .hero-panel {
    padding: 2.15rem 2.8rem;
  }

  .hero-intro {
    justify-content: flex-start;
    gap: 1rem;
  }

  .hero-description {
    margin-top: 0.8rem;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 0.75rem;
    margin-top: 1.15rem;
  }

  .hero-side-cards {
    gap: 0.7rem;
  }

  .hero-side-card {
    padding: 0.8rem 0.9rem;
  }

  .hero-side-card-heading {
    gap: 0.55rem;
  }

  .hero-side-card .hero-side-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .hero-side-card strong {
    margin-top: 0.3rem;
    font-size: 0.96rem;
  }

  .hero-side-card small {
    margin-top: 0.3rem;
    line-height: 1.38;
  }

  .hero-capabilities {
    margin-top: 1.15rem;
  }

  .hero-capabilities-helper {
    margin-bottom: 0.65rem;
  }

  .hero-capability-grid {
    gap: 0.7rem;
  }

  .hero-capability-card {
    min-height: 74px;
    gap: 0.6rem;
    padding: 0.8rem;
  }

  .hero-capability-card i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "navigation";
  }

  .site-nav {
    justify-content: flex-start;
    padding-top: 0.35rem;
  }
}

@media (max-width: 820px) {
  .hero-top {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand menu"
      "navigation navigation";
  }

  .menu-toggle {
    grid-area: menu;
  }

  .site-nav {
    grid-area: navigation;
    padding-top: 0.5rem;
  }

  .brand-copy {
    align-items: flex-start;
    text-align: left;
  }

  .brand-summary {
    max-width: 44rem;
  }

  .footer-brand-block {
    text-align: center;
  }

  .footer-logo {
    width: clamp(180px, 38vw, 240px);
  }

  .site-footer {
    min-height: 230px;
    background-position: center center;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .brand-copy small {
    font-size: 0.7rem;
  }

  .brand-summary {
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .footer-logo {
    width: clamp(180px, 60vw, 240px);
  }

  .site-footer {
    min-height: 236px;
    padding-inline: 1rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

/* Iteración 6: composición vertical exclusiva del footer móvil. */
@media (max-width: 767px) {
  .site-footer {
    background-image: url("../img/brand/footer-bg-mobile.7c210ddd684b.webp");
    background-position: center;
    background-size: cover;
  }

  .site-footer::before {
    background:
      linear-gradient(180deg, rgba(4, 12, 28, 0.38), rgba(4, 12, 28, 0.8) 38%, rgba(4, 12, 28, 0.84) 72%, rgba(4, 12, 28, 0.44)),
      linear-gradient(90deg, rgba(4, 12, 28, 0.22), rgba(4, 12, 28, 0.74) 50%, rgba(4, 12, 28, 0.22));
  }
}

/* Roadmap público: catálogo editorial y progreso de series. */
.roadmap-page { width: min(1180px, calc(100% - 2rem)); margin: 2rem auto 5rem; display: grid; gap: 1.25rem; }
.roadmap-hero, .roadmap-series-hero { padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(125deg, rgba(10, 30, 55, .94), rgba(6, 13, 30, .92)), url("../img/brand/barckl3y-footer-cybertech.e72c801c11c3.png") center/cover; }
.roadmap-hero h1, .roadmap-series-hero h1 { margin: .55rem 0; font-family: "Baloo", sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.roadmap-hero p, .roadmap-series-hero p { max-width: 680px; color: var(--muted); }
.roadmap-metrics, .roadmap-series-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1.5rem; }
.roadmap-metrics article, .roadmap-series-card { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 22, 44, .82); }
.roadmap-metrics i { color: #22d3ee; font-size: 1.35rem; }.roadmap-metrics strong { display: block; margin-top: .45rem; color: #fff; font-size: 1.65rem; }.roadmap-metrics span { color: var(--muted); font-size: .78rem; }
.roadmap-filter { padding: 1rem; }.roadmap-filter form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }.roadmap-filter label { display: grid; gap: .35rem; color: var(--muted); font-size: .76rem; }.roadmap-filter select, .roadmap-filter input { min-height: 42px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(6, 17, 35, .88); }
.section-heading h2 { margin: .25rem 0; }.roadmap-series-card { display: grid; gap: .7rem; min-height: 220px; }.roadmap-series-card h3 { margin: 0; color: #fff; font-size: 1.12rem; }.roadmap-series-card p { margin: 0; color: var(--muted); }.roadmap-series-card-top, .roadmap-series-card-bottom, .roadmap-article-meta { display: flex; justify-content: space-between; gap: .7rem; align-items: center; color: var(--muted); font-size: .75rem; }.roadmap-series-card-bottom { margin-top: auto; }.roadmap-series-card-bottom a { color: #22d3ee; }
.roadmap-level, .roadmap-status { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; padding: .25rem .5rem; border-radius: 99px; color: #dffbff; background: rgba(34, 211, 238, .14); font-size: .68rem; font-weight: 700; text-transform: uppercase; }.roadmap-progress { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(109, 146, 187, .22); }.roadmap-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #3b82f6, #a855f7); }
.roadmap-next { margin-top: 1rem; color: #dffbff; }.roadmap-article-list { display: grid; gap: .7rem; }.roadmap-article-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem; }.roadmap-order { color: #22d3ee; font-weight: 800; }.roadmap-article-card h2 { margin: .35rem 0; color: #fff; font-size: 1.05rem; }.roadmap-article-card p { margin: 0; color: var(--muted); }.roadmap-status.is-published { background: rgba(52, 211, 153, .16); color: #93f9c8; }.roadmap-status.is-in_progress { background: rgba(59, 130, 246, .18); color: #a8d1ff; }.roadmap-status.is-pending { background: rgba(148, 163, 184, .18); color: #d6dfeb; }.roadmap-article-link { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: #22d3ee; }.roadmap-article-link.is-locked { color: var(--muted); }
@media (max-width: 760px) { .roadmap-page { width: min(100% - 1rem, 1180px); margin-top: 1rem; }.roadmap-metrics, .roadmap-series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.roadmap-article-card { grid-template-columns: auto minmax(0, 1fr); }.roadmap-article-link { grid-column: 2; }.roadmap-article-meta { align-items: flex-start; flex-direction: column; gap: .3rem; } }

/* Iteración UI/UX: jerarquía visual del roadmap. */
.roadmap-breadcrumb{display:flex;gap:.45rem;align-items:center;margin:.55rem 0 1rem;color:#9db1ce;font-size:.78rem}.roadmap-breadcrumb a{color:#52d8ff}.roadmap-hero{min-height:390px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(90deg,rgba(4,12,28,.92) 0%,rgba(4,12,28,.62) 56%,rgba(4,12,28,.3)),url("../img/brand/barckl3y-footer-cybertech.e72c801c11c3.png") right center/cover}.roadmap-hero .section-tag{width:max-content}.roadmap-metrics{margin-top:1.7rem}.roadmap-metrics article{min-height:114px;position:relative;overflow:hidden}.roadmap-metrics article:nth-child(2) i{color:#4ade80}.roadmap-metrics article:nth-child(3) i{color:#d946ef}.roadmap-metrics article:nth-child(4) i{color:#fbbf24}.roadmap-metrics small{display:block;margin-top:.2rem;color:#8295b2;font-size:.67rem}.roadmap-filter{border-color:rgba(59,130,246,.22);box-shadow:0 10px 30px rgba(2,8,23,.25)}.roadmap-filter form{gap:.55rem}.roadmap-search{position:relative;min-width:230px}.roadmap-search i{position:absolute;left:.75rem;bottom:.78rem;color:#38bdf8}.roadmap-search input{padding-left:2rem}.roadmap-series-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.roadmap-series-card{padding:0;overflow:hidden;min-height:340px;gap:.65rem;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.roadmap-series-card:hover{transform:translateY(-4px);border-color:rgba(34,211,238,.7);box-shadow:0 18px 36px rgba(2,8,23,.4)}.roadmap-series-visual{height:112px;position:relative;display:flex;align-items:center;justify-content:center;background:linear-gradient(120deg,rgba(8,31,60,.94),rgba(35,12,78,.75)),url("../img/brand/barckl3y-footer-cybertech.e72c801c11c3.png") center/cover}.roadmap-series-visual>i{font-size:2.5rem;color:#4ddcff;text-shadow:0 0 18px rgba(34,211,238,.7)}.roadmap-series-number,.roadmap-series-arrow{position:absolute;top:.75rem;border-radius:8px;padding:.3rem .45rem;font-size:.72rem;font-weight:800}.roadmap-series-number{left:.75rem;background:#22d3ee;color:#06203b}.roadmap-series-arrow{right:.75rem;background:rgba(2,10,25,.68);color:#fff}.roadmap-series-card>*:not(.roadmap-series-visual){margin-left:1rem;margin-right:1rem}.roadmap-category{font-size:.72rem;color:#a9c9ec}.roadmap-series-card-bottom{padding-bottom:1rem}.roadmap-series-hero{min-height:300px;background:linear-gradient(90deg,rgba(4,12,28,.9),rgba(4,12,28,.35)),url("../img/brand/barckl3y-footer-cybertech.e72c801c11c3.png") right center/cover}.roadmap-article-card{grid-template-columns:auto 74px minmax(0,1fr) auto;padding:.85rem 1rem}.roadmap-article-thumb{width:74px;height:74px;border-radius:10px;object-fit:cover}.roadmap-article-thumb.is-fallback{display:grid;place-items:center;background:linear-gradient(135deg,#123a66,#38166e);color:#40d9ff;font-size:1.5rem}.roadmap-article-card.is-public:hover{border-color:rgba(52,211,153,.7)}
@media(max-width:1024px){.roadmap-series-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.roadmap-hero{min-height:unset;background-position:60% center}.roadmap-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.roadmap-filter form>*{width:100%}.roadmap-search{min-width:0}.roadmap-series-grid{grid-template-columns:1fr}.roadmap-article-card{grid-template-columns:auto 58px minmax(0,1fr);gap:.65rem}.roadmap-article-thumb{width:58px;height:58px}.roadmap-article-link{grid-column:3}.roadmap-metrics article{min-height:105px}}

/* Refinamiento del catálogo: controles compactos, jerarquía y cover editorial. */
.roadmap-hero {
  min-height: 430px;
  background-image: linear-gradient(90deg, rgba(4, 12, 28, .88) 0%, rgba(4, 12, 28, .48) 47%, rgba(4, 12, 28, .25)), url("../img/brand/roadmap-hero-cyberpunk.2d3627279769.png");
  background-position: center;
}
.roadmap-metrics article { --metric-color: #22d3ee; display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:.65rem; align-content:center; min-height:108px; }
.roadmap-metrics article:nth-child(2) { --metric-color:#4ade80; }.roadmap-metrics article:nth-child(3) { --metric-color:#d946ef; }.roadmap-metrics article:nth-child(4) { --metric-color:#fbbf24; }
.roadmap-metrics article i { grid-row:span 3; align-self:center; color:var(--metric-color); }
.roadmap-metrics article strong { grid-column:2; margin:0; color:var(--metric-color); line-height:1; }
.roadmap-metrics article span { grid-column:2; margin-top:.3rem; color:#fff; font-weight:800; font-size:.82rem; }
.roadmap-metrics article small { grid-column:2; margin-top:.16rem; }
.roadmap-filter form { display:grid; grid-template-columns:minmax(155px,1.35fr) repeat(5,minmax(74px,1fr)) auto auto; align-items:end; gap:.45rem; }
.roadmap-filter label { min-width:0; }.roadmap-filter select,.roadmap-filter input { width:100%; min-height:38px; }
.roadmap-filter-apply,.roadmap-filter-clear { min-height:38px; padding:.45rem .7rem; border-radius:10px; border:1px solid rgba(59,130,246,.6); background:rgba(13,30,58,.88); color:#8ec5ff; font:inherit; font-size:.78rem; font-weight:700; white-space:nowrap; cursor:pointer; }
.roadmap-filter-apply:hover,.roadmap-filter-apply:focus-visible,.roadmap-filter-clear:hover,.roadmap-filter-clear:focus-visible { border-color:#38bdf8; color:#dff7ff; background:rgba(22,51,91,.92); }.roadmap-filter-clear { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; text-decoration:none; color:#d8e7fb; }
.roadmap-series-toolbar { display:flex; justify-content:space-between; align-items:end; gap:1rem; }.roadmap-series-toolbar h2 { margin:0; color:#fff; font-size:1.5rem; }.roadmap-series-toolbar p { margin:.18rem 0 0; color:var(--muted); font-size:.88rem; }
.roadmap-series-controls { display:flex; align-items:end; gap:.4rem; }.roadmap-series-controls label { display:grid; gap:.25rem; color:var(--muted); font-size:.72rem; }.roadmap-series-controls select { min-height:38px; padding:.35rem .55rem; border:1px solid var(--line); border-radius:9px; background:#08172e; color:#fff; }.roadmap-series-controls button { min-height:38px; padding:.35rem .65rem; border:1px solid var(--line); border-radius:9px; background:rgba(8,23,46,.9); color:#b7c8df; font:inherit; font-size:.75rem; cursor:pointer; }.roadmap-series-controls button.is-active { border-color:#38bdf8; background:#1d9fe0; color:#061426; font-weight:800; }
.roadmap-series-card { min-height:0; padding-bottom:.85rem; }.roadmap-series-visual { height:98px; }.roadmap-series-card p { min-height:2.8em; font-size:.86rem; line-height:1.38; }.roadmap-series-card-bottom { padding-bottom:0; }.roadmap-series-card-bottom span { color:#bcecff; font-weight:800; }.roadmap-series-tags,.roadmap-article-tags { display:flex; flex-wrap:wrap; gap:.35rem; }.roadmap-series-tags { margin-top:.1rem; }.roadmap-series-tags span,.roadmap-article-tags span { padding:.24rem .5rem; border:1px solid rgba(80,129,184,.28); border-radius:99px; background:rgba(18,47,83,.55); color:#c7d9ed; font-size:.67rem; }
.roadmap-series-grid.is-list { grid-template-columns:1fr; }.roadmap-series-grid.is-list .roadmap-series-card { grid-template-columns:190px minmax(0,1fr); column-gap:0; }.roadmap-series-grid.is-list .roadmap-series-visual { grid-row:span 5; height:auto; min-height:180px; }.roadmap-series-grid.is-list .roadmap-series-card>*:not(.roadmap-series-visual) { margin-left:1rem; }.roadmap-series-grid.is-list .roadmap-series-card p { min-height:0; }
.roadmap-article-card { grid-template-columns:auto 74px minmax(0,1fr) auto; border-radius:14px; overflow:hidden; }.roadmap-article-body h2 { margin:0 0 .3rem; }.roadmap-article-tags { margin-top:.5rem; }.roadmap-article-aside { display:grid; justify-items:end; align-content:center; gap:.55rem; min-width:135px; padding-left:.85rem; border-left:1px solid rgba(80,129,184,.24); }.roadmap-article-date { color:#b8c9df; font-size:.72rem; white-space:nowrap; }.roadmap-article-date i { margin-right:.3rem; color:#55d8ff; }.roadmap-article-aside .roadmap-article-link { width:34px; height:34px; }
@media (max-width:1100px) { .roadmap-filter form { grid-template-columns:minmax(170px,1.35fr) repeat(3,minmax(95px,1fr)) auto auto; }.roadmap-filter form label:nth-of-type(5),.roadmap-filter form label:nth-of-type(6) { grid-column:auto; }.roadmap-series-toolbar { align-items:start; flex-direction:column; }.roadmap-series-controls { align-self:stretch; } }
@media (max-width:760px) { .roadmap-hero { min-height:440px; background-position:52% center; }.roadmap-filter form { display:flex; }.roadmap-filter form>* { width:100%; }.roadmap-filter-apply,.roadmap-filter-clear { min-height:42px; }.roadmap-series-controls { flex-wrap:wrap; }.roadmap-series-controls label { flex:1 1 155px; }.roadmap-series-controls button { flex:1; }.roadmap-series-grid.is-list .roadmap-series-card { grid-template-columns:1fr; }.roadmap-series-grid.is-list .roadmap-series-visual { grid-row:auto; min-height:0; height:98px; }.roadmap-series-grid.is-list .roadmap-series-card>*:not(.roadmap-series-visual) { margin-left:1rem; }.roadmap-article-card { grid-template-columns:auto 58px minmax(0,1fr); }.roadmap-article-aside { grid-column:2 / -1; grid-row:2; display:flex; justify-content:flex-start; align-items:center; padding:.55rem 0 0; border-left:0; border-top:1px solid rgba(80,129,184,.24); }.roadmap-article-aside .roadmap-article-link { margin-left:auto; }.roadmap-article-card .roadmap-article-link { grid-column:auto; }.roadmap-article-body { min-width:0; } }

/* Detalle compacto de serie y tarjetas de catálogo de menor densidad. */
.roadmap-series-grid:not(.is-list) .roadmap-series-card { gap:.42rem; padding-bottom:.65rem; }
.roadmap-series-grid:not(.is-list) .roadmap-series-visual { height:82px; }.roadmap-series-grid:not(.is-list) .roadmap-series-card p { min-height:2.55em; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }.roadmap-series-grid:not(.is-list) .roadmap-series-card>*:not(.roadmap-series-visual) { margin-left:.85rem; margin-right:.85rem; }
.roadmap-series-hero { min-height:0; padding:.65rem; background:#071429; }.roadmap-series-hero .roadmap-breadcrumb { margin:.15rem .2rem .55rem; }.roadmap-series-summary { display:grid; grid-template-columns:165px minmax(0,1fr); gap:.65rem; align-items:stretch; }.roadmap-series-cover { min-height:136px; overflow:hidden; border:1px solid rgba(59,130,246,.28); border-radius:12px; background:radial-gradient(circle at 50% 45%,rgba(34,211,238,.18),rgba(7,20,41,.96)); display:grid; place-items:center; }.roadmap-series-cover img { width:100%; height:100%; object-fit:cover; }.roadmap-series-cover i { color:#43d9ff; font-size:2.4rem; }.roadmap-series-summary-card { min-width:0; padding:.7rem 1rem; border:1px solid rgba(59,130,246,.28); border-radius:12px; background:linear-gradient(90deg,rgba(4,12,28,.91),rgba(4,12,28,.48)),url("../img/brand/barckl3y-footer-cybertech.e72c801c11c3.png") right center/cover; }.roadmap-series-summary-card h1 { margin:0; font-size:clamp(1.2rem,2.2vw,1.7rem); }.roadmap-series-summary-card p { margin:.22rem 0 .5rem; max-width:760px; font-size:.8rem; line-height:1.4; }.roadmap-series-summary-card .roadmap-series-tags { margin:0; }.roadmap-series-meta { display:flex; flex-wrap:wrap; gap:.45rem 1rem; margin-top:.55rem; color:#b8c9df; font-size:.68rem; }.roadmap-series-meta i { margin-right:.25rem; color:#41d8ff; }
@media (max-width:760px) { .roadmap-series-summary { grid-template-columns:92px minmax(0,1fr); gap:.45rem; }.roadmap-series-cover { min-height:122px; }.roadmap-series-summary-card { padding:.62rem .72rem; }.roadmap-series-summary-card p { font-size:.74rem; }.roadmap-series-meta { gap:.35rem; font-size:.63rem; }.roadmap-series-grid:not(.is-list) .roadmap-series-visual { height:88px; } }

/* Vista Lista: una fila densa; etiquetas contenidas en la columna editorial. */
.roadmap-series-list-meta { display:none; }.roadmap-series-grid.is-list .roadmap-series-card { min-height:176px; padding-bottom:0; grid-template-rows:auto auto minmax(0,1fr) 7px auto auto; gap:.34rem; }
.roadmap-series-grid.is-list .roadmap-series-visual { grid-row:span 6; align-self:stretch; height:100%; min-height:100%; }.roadmap-series-grid.is-list .roadmap-series-card-top { margin-top:.48rem; }.roadmap-series-grid.is-list .roadmap-series-card-bottom { display:none; }.roadmap-series-grid.is-list .roadmap-series-tags { flex-wrap:nowrap; overflow:hidden; white-space:nowrap; }.roadmap-series-grid.is-list .roadmap-series-tags span { flex:0 0 auto; white-space:nowrap; }.roadmap-series-grid.is-list .roadmap-series-list-meta { display:flex; flex-wrap:wrap; gap:.35rem .8rem; padding-bottom:.48rem; color:#abc0d9; font-size:.66rem; }.roadmap-series-grid.is-list .roadmap-series-list-meta i { margin-right:.2rem; color:#42d9ff; }.roadmap-series-grid.is-list .roadmap-series-card p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
@media (max-width:760px) { .roadmap-series-grid.is-list .roadmap-series-card { min-height:0; grid-template-rows:none; padding-bottom:.65rem; }.roadmap-series-grid.is-list .roadmap-series-visual { min-height:0; height:88px; }.roadmap-series-grid.is-list .roadmap-series-tags { flex-wrap:wrap; white-space:normal; overflow:visible; }.roadmap-series-grid.is-list .roadmap-series-list-meta { display:none; } }

/* Cards editoriales de la landing, alineadas con el patrón del Roadmap. */
.blog-section .section-tag { display:inline-flex; margin-bottom:.72rem; }.blog-section .blog-card { grid-template-columns:74px minmax(0,1fr) auto; column-gap:.85rem; min-height:0; align-items:center; padding:.85rem 1rem; border-color:rgba(80,129,184,.42); }.blog-section .blog-cover { min-height:74px; width:74px; height:74px; border-radius:10px; overflow:hidden; }.blog-section .blog-body { min-width:0; gap:.38rem; padding:0; grid-template-rows:none; }.blog-section .blog-body h3 { grid-row:auto; font-size:1.02rem; }.blog-section .blog-body p { grid-row:auto; font-size:.86rem; line-height:1.42; }.blog-section .blog-card-tags { grid-row:auto; align-self:auto; margin-top:.08rem; }.blog-section .blog-card-tags span { min-height:auto; padding:.22rem .48rem; font-size:.66rem; }.blog-card-aside { display:grid; justify-items:end; gap:.5rem; min-width:130px; padding-left:.85rem; border-left:1px solid rgba(80,129,184,.24); }.blog-section .blog-date,.blog-article-position { color:#b8c9df; font-size:.72rem; white-space:nowrap; }.blog-section .blog-date i { margin-right:.3rem; color:#55d8ff; }.blog-article-position { color:#8ea9c8; font-size:.66rem; }.blog-card-open { display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--line); border-radius:10px; color:#42d9ff; }
@media (max-width:640px) { .blog-section .blog-card { grid-template-columns:58px minmax(0,1fr); gap:.65rem; }.blog-section .blog-cover { width:58px; height:58px; min-height:58px; }.blog-card-aside { grid-column:2 / -1; display:flex; justify-content:flex-start; align-items:center; min-width:0; padding:.55rem 0 0; border-top:1px solid rgba(80,129,184,.24); border-left:0; }.blog-card-open { margin-left:auto; }.blog-section .blog-card-tags { flex-wrap:wrap; } }

/* Contexto editorial en el detalle público de cada artículo. */
.article-breadcrumb { margin:.1rem 0 .9rem; min-width:0; }
.article-breadcrumb-current { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.article-meta-row i { margin-right:.28rem; color:#55d8ff; }
@media (max-width:640px) { .article-breadcrumb { gap:.35rem; font-size:.72rem; }.article-breadcrumb a { flex:0 0 auto; }.article-breadcrumb-current { flex:1 1 auto; } }

/* Serie del artículo en la card editorial de la landing. */
.blog-card-title-link { color:inherit; text-decoration:none; }
.blog-card-title-link:hover,.blog-card-title-link:focus-visible { color:#65dcff; }
.blog-series-badge { display:inline-flex; align-items:center; gap:.32rem; max-width:100%; padding:.27rem .5rem; border:1px solid rgba(168,85,247,.48); border-radius:12px; background:rgba(112,45,184,.16); color:#d9b7ff; font-size:.66rem; font-weight:800; line-height:1.1; text-decoration:none; }
.blog-series-badge > span { display:grid; min-width:0; }.blog-series-badge small { color:#bda4e0; font-size:.58rem; font-weight:700; }.blog-series-badge strong { overflow:hidden; color:#eadbff; font-size:.66rem; text-overflow:ellipsis; white-space:nowrap; }
.blog-series-badge:hover,.blog-series-badge:focus-visible { border-color:#c084fc; background:rgba(126,55,196,.28); color:#f0e4ff; }

/* Recursos Geek públicos y su acceso desde la landing. */
.home-roadmap-section { width:min(1180px,calc(100% - 2rem)); min-height:262px; margin:1.6rem auto; padding:clamp(1.3rem,3vw,2.3rem); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:1rem; overflow:hidden; border:1px solid rgba(91,105,255,.48); border-radius:18px; background:linear-gradient(90deg,rgba(3,10,23,.96) 0%,rgba(3,10,23,.84) 43%,rgba(5,12,33,.25) 100%),url("../img/brand/roadmap-landing-neon-route.9289dd26de64.png") center/cover; box-shadow:0 16px 36px rgba(0,0,0,.26); }
.home-roadmap-section h2 { max-width:560px; margin:.3rem 0; color:#fff; }.home-roadmap-title { color:#fff!important; -webkit-text-fill-color:#fff; }.home-roadmap-title-accent { background:linear-gradient(95deg,#20d9f5,#397fff 50%,#d63cf2); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }.home-roadmap-section h2 .section-title-icon { color:#5ce6ff; -webkit-text-fill-color:#5ce6ff; }.home-roadmap-section p { max-width:540px; margin:0; color:#c6d5e9; line-height:1.55; }.home-roadmap-section .section-tag { display:inline-flex; gap:.35rem; color:#71e5ff; }.home-roadmap-section .button { margin-top:.2rem; }
.home-geek-resources { width:min(1180px,calc(100% - 2rem)); margin:1.6rem auto; padding:clamp(1.3rem,3vw,2.3rem); display:grid; grid-template-columns:minmax(0,.85fr) minmax(360px,1.15fr); gap:1.25rem; overflow:hidden; border:1px solid rgba(51,219,255,.38); border-radius:18px; background:linear-gradient(90deg,rgba(3,10,23,.95),rgba(4,12,28,.78)),url("../img/brand/geek-resources-hero.7efbb00acbfa.png") center/cover; box-shadow:0 16px 36px rgba(0,0,0,.26); }
.home-geek-resources .section-tag { display:inline-flex; align-items:center; gap:.45rem; }.home-geek-resources h2 { margin:.35rem 0 .65rem; color:#fff; }.home-geek-resources-title { display:flex; flex-flow:row nowrap; align-items:center; gap:.42rem; background:linear-gradient(96deg,#fff 0%,#fff 35%,#d050ff 64%,#d050ff 100%); -webkit-background-clip:text; background-clip:text; color:transparent!important; }.home-geek-resources-title::before { content:"\f0d0"; flex:0 0 auto; color:#4ce0ff; -webkit-text-fill-color:#4ce0ff; font-family:"Font Awesome 6 Free"; font-size:.68em; font-weight:900; filter:drop-shadow(0 0 8px rgba(76,224,255,.45)); }.home-geek-resources p { max-width:530px; margin:0 0 1rem; color:#c6d5e9; line-height:1.55; }.home-geek-resources-preview { align-self:end; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.55rem; }.home-geek-resource,.home-geek-resource-more,.home-geek-resource-empty { min-height:125px; display:flex; flex-direction:column; justify-content:end; gap:.3rem; overflow:hidden; padding:.6rem; border:1px solid rgba(80,170,226,.45); border-radius:12px; background:rgba(5,18,39,.78); color:#fff; text-decoration:none; }.home-geek-resource { position:relative; }.home-geek-resource img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.45; }.home-geek-resource strong,.home-geek-resource small,.home-geek-resource>span { position:relative; }.home-geek-resource strong { font-size:.76rem; line-height:1.18; }.home-geek-resource small { color:#a9dfff; font-size:.63rem; }.home-geek-resource>span { align-self:center; margin:auto; color:#56ddff; font-size:1.55rem; }.home-geek-resource-more { justify-content:center; align-items:center; text-align:center; border-color:rgba(203,83,255,.62); background:linear-gradient(140deg,rgba(19,47,83,.94),rgba(66,24,112,.92)); }.home-geek-resource-more strong { color:#56ddff; font-size:1.05rem; }.home-geek-resource-more span { color:#e4d9ff; font-size:.68rem; }.home-geek-resource:hover,.home-geek-resource:focus-visible,.home-geek-resource-more:hover,.home-geek-resource-more:focus-visible { transform:translateY(-3px); border-color:#53e4ff; box-shadow:0 10px 20px rgba(0,0,0,.25); }

/* La biblioteca pública sigue la jerarquía visual de la referencia geek. */
.landing-v2 .home-roadmap-section { display:grid; grid-template-columns:minmax(0,.85fr) minmax(360px,1.15fr); align-items:center; gap:1.25rem; }
.home-roadmap-intro .button { display:inline-flex; margin-top:1rem; }
.home-roadmap-preview { align-self:end; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.55rem; }
.home-roadmap-article,.home-roadmap-more { min-height:125px; display:flex; flex-direction:column; justify-content:end; gap:.3rem; overflow:hidden; padding:.6rem; border:1px solid rgba(80,170,226,.45); border-radius:12px; background:rgba(5,18,39,.52); color:#fff; text-decoration:none; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.home-roadmap-article { position:relative; }.home-roadmap-article img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.24; }.home-roadmap-article strong,.home-roadmap-article small,.home-roadmap-article>span { position:relative; }.home-roadmap-article strong { display:-webkit-box; overflow:hidden; font-size:.76rem; line-height:1.18; -webkit-box-orient:vertical; -webkit-line-clamp:3; }.home-roadmap-article small { color:#a9dfff; font-size:.63rem; }.home-roadmap-article>span { align-self:center; margin:auto; color:#56ddff; font-size:1.55rem; }.home-roadmap-article-empty { cursor:default; }
.home-roadmap-more { justify-content:center; align-items:center; text-align:center; border-color:rgba(193,74,240,.62); background:linear-gradient(140deg,rgba(19,47,83,.94),rgba(66,24,112,.92)); }.home-roadmap-more strong { color:#56ddff; font-size:1.05rem; }.home-roadmap-more span { color:#e4d9ff; font-size:.68rem; }.home-roadmap-article:hover,.home-roadmap-article:focus-visible,.home-roadmap-more:hover,.home-roadmap-more:focus-visible { transform:translateY(-3px); border-color:#53e4ff; box-shadow:0 10px 20px rgba(0,0,0,.25); }
@media(max-width:1050px) { .landing-v2 .home-roadmap-section { grid-template-columns:1fr; }.home-roadmap-preview { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:700px) { .home-roadmap-preview { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.resources-page { width:min(100% - 2rem,1360px); margin:1.2rem auto 4rem; gap:1.1rem; }.resources-hero { min-height:405px; padding:1.35rem clamp(1.25rem,3vw,2.4rem) 1.1rem; background-image:linear-gradient(90deg,rgba(3,10,23,.97) 0%,rgba(3,10,23,.82) 37%,rgba(3,10,23,.22) 100%),url("../img/brand/geek-resources-hero.7efbb00acbfa.png"); background-position:center; }.resources-hero .roadmap-breadcrumb { margin:.1rem 0 .7rem; }.resources-hero .section-tag { display:inline-flex; align-items:center; gap:.35rem; width:max-content; margin:.1rem 0 .65rem; color:#59e2ff; }.resources-hero h1 { max-width:680px; font-size:clamp(2rem,4vw,3.55rem); letter-spacing:-.04em; }.resources-hero h1 span { color:#e050ff; text-shadow:0 0 18px rgba(203,83,255,.38); }.resources-hero p { max-width:615px; margin:.55rem 0 0; font-size:1rem; }.resources-hero .resource-tabs { margin-top:auto; padding-top:1.3rem; }.resource-tabs { grid-template-columns:repeat(7,minmax(0,1fr)); gap:.55rem; }.resource-tab { min-height:64px; padding:.55rem; border-radius:10px; }.resource-tab i { font-size:1.2rem; }.resource-tab strong { font-size:.73rem; }.resource-tab small { font-size:.58rem; }.resource-tab:nth-child(7) i { color:#c86bff; }
.resource-catalog { padding:1rem; background:rgba(5,18,39,.84); }.resource-list-heading { margin-bottom:.55rem; }.resource-list-heading h2 { display:flex; align-items:center; gap:.55rem; margin:.15rem 0; font-size:1.35rem; }.resource-list-heading h2 small { display:inline-grid; min-width:1.6rem; padding:.22rem .48rem; border-radius:999px; background:rgba(15,157,218,.2); color:#52e0ff; font-size:.68rem; text-align:center; }.resource-view-toggle { display:flex; gap:.35rem; }.resource-view-toggle a { display:grid; place-items:center; width:36px; height:36px; border:1px solid rgba(80,129,184,.5); border-radius:9px; color:#bdcee4; text-decoration:none; }.resource-view-toggle a.is-active,.resource-view-toggle a:hover { border-color:#44dfff; background:rgba(20,99,151,.45); color:#fff; }.resource-filter { margin:.4rem 0 1rem; }.resource-filter button { background:linear-gradient(125deg,#08c7ef,#7437f1); border-color:transparent; color:#031126; font-weight:900; }.resource-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; }.resource-card { display:grid; grid-template-columns:42% minmax(0,1fr); min-height:205px; border-radius:10px; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }.resource-card:hover { transform:translateY(-3px); border-color:#38d9ff; box-shadow:0 12px 24px rgba(0,0,0,.25); }.resource-card-cover { min-height:100%; font-size:1.7rem; }.resource-card-body { align-content:start; gap:.32rem; padding:.65rem; }.resource-card-body h3 { font-size:.9rem; }.resource-card-body p { display:-webkit-box; margin:0; overflow:hidden; color:#b7c8dc; font-size:.7rem; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:3; }.resource-card-body .resource-tags { gap:.25rem; margin-top:auto; }.resource-card-body .resource-tags span { padding:.18rem .38rem; font-size:.58rem; }.resource-card .resource-type-badge { font-size:.54rem; }.resource-card .resource-type-badge i { margin-right:.2rem; }.resource-grid.is-list { grid-template-columns:1fr; }.resource-grid.is-list .resource-card { grid-template-columns:130px minmax(0,1fr); min-height:125px; }.resource-grid.is-list .resource-card-body { grid-template-columns:auto minmax(0,1fr) auto; align-items:start; column-gap:.8rem; }.resource-grid.is-list .resource-card-body .resource-type-badge { grid-column:1; }.resource-grid.is-list .resource-card-body h3 { grid-column:2; grid-row:1; }.resource-grid.is-list .resource-card-body small { grid-column:2; }.resource-grid.is-list .resource-card-body p { grid-column:2; -webkit-line-clamp:2; }.resource-grid.is-list .resource-card-body .resource-card-meta { grid-column:3; grid-row:1 / span 2; }.resource-grid.is-list .resource-card-body .resource-tags { grid-column:2 / -1; }.resource-pagination { margin-top:1.2rem; }.resource-pagination a { padding:.45rem .7rem; border:1px solid rgba(80,129,184,.5); border-radius:9px; text-decoration:none; }
@media(max-width:1050px) { .home-geek-resources { grid-template-columns:1fr; }.resource-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }.resource-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .home-roadmap-section { width:min(100% - 1rem,1180px); min-height:300px; background-position:57% center; }.home-geek-resources { width:min(100% - 1rem,1180px); }.home-geek-resources-preview { grid-template-columns:repeat(2,minmax(0,1fr)); }.resources-page { width:min(100% - 1rem,1360px); }.resources-hero { min-height:500px; background-position:61% center; }.resource-tabs { display:flex; overflow-x:auto; }.resource-tab { flex:0 0 142px; }.resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.resource-card { grid-template-columns:44% minmax(0,1fr); min-height:190px; }.resource-filter>* { flex:1 1 145px; }.resource-filter .resource-search { flex-basis:100%; }.resource-grid.is-list { grid-template-columns:1fr; }.resource-grid.is-list .resource-card { grid-template-columns:96px minmax(0,1fr); } }

/* La serie se identifica antes de la categoría en el hero del artículo. */
.article-hero-badges { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; margin-bottom:.8rem; }
.article-hero-badges .section-tag { margin:0; }
.article-series-badge { display:inline-flex; align-items:center; gap:.34rem; padding:.35rem .65rem; border:1px solid rgba(168,85,247,.55); border-radius:999px; background:rgba(112,45,184,.16); color:#ddc4ff; font-size:.7rem; font-weight:800; letter-spacing:.02em; text-decoration:none; }
.article-series-badge:hover,.article-series-badge:focus-visible { border-color:#c084fc; background:rgba(126,55,196,.3); color:#f3eaff; }

/* Geek Picks: biblioteca personal de inspiración y aprendizaje. */
.resources-page,.resource-detail-page { width:min(100% - 2rem,1180px); margin:1.5rem auto 3rem; display:grid; gap:1rem; }.resources-hero { min-height:360px; padding:1.4rem 1.7rem 1.1rem; display:flex; flex-direction:column; justify-content:flex-start; background:linear-gradient(90deg,rgba(3,10,23,.96) 0%,rgba(3,10,23,.76) 40%,rgba(3,10,23,.25)),url("../img/brand/geek-picks-hero.0a5b484a54bb.png") center/cover; }.resources-hero .section-tag { margin:.2rem 0 .7rem; }.resources-hero h1 { margin:0; color:#fff; font-size:clamp(2rem,4.4vw,3.8rem); line-height:1; }.resources-hero h1 span { color:#27d9ff; }.resources-hero h1 em { color:#c05cff; font-style:normal; }.resources-hero p { max-width:680px; margin:.75rem 0 0; color:#c4d4e9; font-size:clamp(.92rem,1.5vw,1.1rem); line-height:1.55; }.resources-hero .resource-tabs { margin-top:auto; padding-top:1.2rem; }.resource-tabs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.6rem; }.resource-tab { display:flex; align-items:center; gap:.6rem; min-height:72px; padding:.7rem; border:1px solid rgba(80,129,184,.52); border-radius:12px; background:rgba(4,14,31,.84); backdrop-filter:blur(5px); color:#e5efff; text-decoration:none; }.resource-tab i { color:#53dfff; font-size:1.4rem; }.resource-tab:nth-child(2) i { color:#e879f9; }.resource-tab:nth-child(3) i { color:#4ade80; }.resource-tab:nth-child(4) i { color:#fb7185; }.resource-tab:nth-child(5) i { color:#22d3ee; }.resource-tab:nth-child(6) i { color:#facc15; }.resource-tab span { display:grid; gap:.14rem; min-width:0; }.resource-tab strong { font-size:.83rem; }.resource-tab small { color:#a8bad3; font-size:.64rem; }.resource-tab:hover,.resource-tab:focus-visible,.resource-tab.is-active { border-color:#27d9ff; background:linear-gradient(135deg,rgba(17,75,124,.88),rgba(11,28,59,.94)); box-shadow:0 0 20px rgba(34,211,238,.2); }.resource-featured,.resource-catalog,.resource-detail,.resource-detail-notes { padding:1rem; }.resource-featured>header,.resource-list-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:.8rem; }.resource-featured h2,.resource-list-heading h2 { margin:.35rem 0 0; color:#fff; font-size:1.25rem; }.resource-featured>header>a { padding:.45rem .7rem; border:1px solid #218ac5; border-radius:9px; color:#6bdfff; font-size:.78rem; text-decoration:none; white-space:nowrap; }.resource-featured-layout { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(0,1.05fr) minmax(220px,.85fr); gap:1rem; }.resource-featured-cover,.resource-detail-cover { min-height:245px; overflow:hidden; border:1px solid rgba(80,129,184,.4); border-radius:11px; display:grid; place-items:center; background:radial-gradient(circle,#103860,#071429); color:#5cdfff; font-size:3rem; }.resource-featured-cover img,.resource-detail-cover img,.resource-card-cover img { width:100%; height:100%; object-fit:cover; }.resource-featured-copy { display:flex; flex-direction:column; align-items:flex-start; }.resource-type-badge { display:inline-flex; padding:.24rem .46rem; border:1px solid rgba(34,211,238,.55); border-radius:99px; color:#5adfff; background:rgba(6,61,91,.38); font-size:.62rem; font-weight:800; text-transform:uppercase; }.resource-year { margin:.45rem 0 0; color:#9bb0ce; font-size:.8rem; }.resource-featured-copy p { margin:.5rem 0; color:#c2d0e3; line-height:1.5; }.resource-tags { display:flex; flex-wrap:wrap; gap:.35rem; margin:.45rem 0; }.resource-tags span { padding:.24rem .5rem; border:1px solid rgba(80,129,184,.4); border-radius:99px; background:#0b213d; color:#c8d9ed; font-size:.67rem; }.resource-rating { margin:.55rem 0; color:#fff; font-size:.85rem; }.resource-rating i,.resource-card-meta i,.resource-detail dd i { color:#facc15; }.resource-external-link { display:inline-flex; gap:.4rem; align-items:center; margin-top:auto; color:#54dfff; font-weight:800; text-decoration:none; }.resource-reasons { padding:.85rem 1rem; border-left:1px solid rgba(80,129,184,.35); }.resource-reasons h3 { margin:0; color:#fff; font-size:.95rem; }.resource-reasons h3 i { color:#facc15; margin-right:.35rem; }.resource-reasons ul { display:grid; gap:.55rem; padding:0; margin:.75rem 0 0; list-style:none; color:#c6d5e6; font-size:.8rem; }.resource-reasons li::before { content:"✓"; margin-right:.45rem; color:#38d7ff; font-weight:900; }.resource-reasons p { color:#9eb1c9; font-size:.8rem; }.resource-filter { display:flex; flex-wrap:wrap; gap:.5rem; margin:.8rem 0 1rem; }.resource-filter input,.resource-filter select,.resource-filter button,.resource-filter>a { min-height:38px; padding:.45rem .6rem; border:1px solid rgba(80,129,184,.48); border-radius:9px; background:#091a33; color:#dbeafe; font:inherit; font-size:.76rem; }.resource-filter>a { display:inline-flex; align-items:center; color:#b8d9ff; text-decoration:none; }.resource-filter button { border-color:#1b93ca; color:#bff5ff; cursor:pointer; }.resource-search { position:relative; flex:1 1 190px; }.resource-search i { position:absolute; top:.72rem; left:.65rem; color:#56dfff; }.resource-search input { width:100%; padding-left:2rem; }.resource-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }.resource-card { overflow:hidden; border:1px solid rgba(80,129,184,.4); border-radius:11px; background:rgba(8,24,47,.9); }.resource-card-cover { display:grid; min-height:150px; place-items:center; background:#07172d; color:#51ddff; font-size:2rem; }.resource-card-body { display:grid; gap:.35rem; padding:.7rem; }.resource-card-body h3 { margin:0; line-height:1.25; font-size:.92rem; }.resource-card-body h3 a { color:#fff; text-decoration:none; }.resource-card-body small { color:#aabbd0; }.resource-card-meta { display:flex; justify-content:space-between; gap:.5rem; color:#bdcde0; font-size:.7rem; }.resource-empty { padding:3rem 1rem; text-align:center; color:#aebed2; }.resource-empty i { color:#55dfff; font-size:2rem; }.resource-empty h3 { color:#fff; }.resource-pagination { display:flex; justify-content:center; align-items:center; gap:1rem; margin-top:1rem; color:#b8c9dc; font-size:.8rem; }.resource-pagination a { color:#5adfff; }.resource-detail { display:grid; grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr); gap:1.2rem; }.resource-detail-cover { min-height:340px; }.resource-detail-copy { padding:.4rem 0; }.resource-detail-copy h1 { margin:.65rem 0; color:#fff; font-size:clamp(1.7rem,3vw,2.7rem); }.resource-detail-copy>p { color:#c3d3e7; line-height:1.6; }.resource-detail dl { display:flex; flex-wrap:wrap; gap:.65rem 1.2rem; margin:1rem 0; }.resource-detail dl div { display:grid; gap:.15rem; }.resource-detail dt { color:#89a4c5; font-size:.65rem; text-transform:uppercase; }.resource-detail dd { margin:0; color:#f2f7ff; font-size:.82rem; }.resource-detail-notes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }.resource-detail-notes h2,.resource-related h2 { color:#fff; font-size:1.1rem; }.resource-detail-notes p,.resource-detail-notes li { color:#c1d1e4; line-height:1.55; }.resource-detail-notes ul { padding-left:1.1rem; }.resource-related { display:grid; gap:.7rem; }
@media(max-width:950px){.resource-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.resource-featured-layout{grid-template-columns:minmax(180px,.75fr) minmax(0,1.2fr)}.resource-reasons{grid-column:1/-1;border-left:0;border-top:1px solid rgba(80,129,184,.35)}.resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:640px){.resources-page,.resource-detail-page{width:min(100% - 1rem,1180px);margin-top:1rem}.resources-hero{min-height:0;padding:1rem;background-position:57% center}.resource-tabs{display:flex;overflow-x:auto;padding-bottom:.25rem}.resource-tab{flex:0 0 155px}.resource-featured,.resource-catalog,.resource-detail,.resource-detail-notes{padding:.75rem}.resource-featured>header,.resource-list-heading{align-items:start;flex-direction:column}.resource-featured-layout,.resource-detail,.resource-detail-notes{grid-template-columns:1fr}.resource-featured-cover,.resource-detail-cover{min-height:230px}.resource-reasons{grid-column:auto}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.resource-card-cover{min-height:120px}.resource-filter>*{flex:1 1 145px}.resource-filter .resource-search{flex-basis:100%}.resource-card-body{padding:.55rem}.resource-card-body h3{font-size:.82rem}}

/* Debe permanecer al final: sustituye el catálogo previo por la composición pública Geek. */
.resources-page{width:min(100% - 2rem,1360px);margin:1.2rem auto 4rem}.resources-page .resources-hero{min-height:405px;padding:1.35rem clamp(1.25rem,3vw,2.4rem) 1.1rem;background-image:linear-gradient(90deg,rgba(3,10,23,.97) 0%,rgba(3,10,23,.82) 37%,rgba(3,10,23,.22) 100%),url("../img/brand/geek-resources-hero.7efbb00acbfa.png");background-position:center}.resources-page .resources-hero .roadmap-breadcrumb{margin:.1rem 0 .7rem}.resources-page .resources-hero .section-tag{display:inline-flex;align-items:center;gap:.35rem;width:max-content;margin:.1rem 0 .65rem;color:#59e2ff}.resources-page .resources-hero h1{max-width:680px;font-size:clamp(2rem,4vw,3.55rem);letter-spacing:-.04em}.resources-page .resources-hero h1 span{color:#e050ff;text-shadow:0 0 18px rgba(203,83,255,.38)}.resources-page .resources-hero p{max-width:615px;margin:.55rem 0 0;font-size:1rem}.resources-page .resources-hero .resource-tabs{margin-top:auto;padding-top:1.3rem}.resources-page .resource-tabs{grid-template-columns:repeat(7,minmax(0,1fr));gap:.55rem}.resources-page .resource-tab{min-height:64px;padding:.55rem;border-radius:10px}.resources-page .resource-tab i{font-size:1.2rem}.resources-page .resource-tab strong{font-size:.73rem}.resources-page .resource-tab small{font-size:.58rem}.resources-page .resource-tab:nth-child(7) i{color:#c86bff}.resources-page .resource-catalog{padding:1rem;background:rgba(5,18,39,.84)}.resources-page .resource-list-heading{margin-bottom:.55rem}.resources-page .resource-list-heading h2{display:flex;align-items:center;gap:.55rem;margin:.15rem 0;font-size:1.35rem}.resources-page .resource-list-heading h2 small{display:inline-grid;min-width:1.6rem;padding:.22rem .48rem;border-radius:999px;background:rgba(15,157,218,.2);color:#52e0ff;font-size:.68rem;text-align:center}.resource-view-toggle{display:flex;gap:.35rem}.resource-view-toggle a{display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(80,129,184,.5);border-radius:9px;color:#bdcee4;text-decoration:none}.resource-view-toggle a.is-active,.resource-view-toggle a:hover{border-color:#44dfff;background:rgba(20,99,151,.45);color:#fff}.resources-page .resource-filter{margin:.4rem 0 1rem}.resources-page .resource-filter button{background:linear-gradient(125deg,#08c7ef,#7437f1);border-color:transparent;color:#031126;font-weight:900}.resources-page .resource-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}.resources-page .resource-card{display:grid;grid-template-columns:42% minmax(0,1fr);min-height:205px;border-radius:10px;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.resources-page .resource-card:hover{transform:translateY(-3px);border-color:#38d9ff;box-shadow:0 12px 24px rgba(0,0,0,.25)}.resources-page .resource-card-cover{min-height:100%;font-size:1.7rem}.resources-page .resource-card-body{align-content:start;gap:.32rem;padding:.65rem}.resources-page .resource-card-body h3{font-size:.9rem}.resources-page .resource-card-body p{display:-webkit-box;margin:0;overflow:hidden;color:#b7c8dc;font-size:.7rem;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:3}.resources-page .resource-card-body .resource-tags{gap:.25rem;margin-top:auto}.resources-page .resource-card-body .resource-tags span{padding:.18rem .38rem;font-size:.58rem}.resources-page .resource-card .resource-type-badge{font-size:.54rem}.resources-page .resource-card .resource-type-badge i{margin-right:.2rem}.resources-page .resource-grid.is-list{grid-template-columns:1fr}.resources-page .resource-grid.is-list .resource-card{grid-template-columns:130px minmax(0,1fr);min-height:125px}.resources-page .resource-grid.is-list .resource-card-body{grid-template-columns:auto minmax(0,1fr) auto;align-items:start;column-gap:.8rem}.resources-page .resource-grid.is-list .resource-card-body .resource-type-badge{grid-column:1}.resources-page .resource-grid.is-list .resource-card-body h3{grid-column:2;grid-row:1}.resources-page .resource-grid.is-list .resource-card-body small{grid-column:2}.resources-page .resource-grid.is-list .resource-card-body p{grid-column:2;-webkit-line-clamp:2}.resources-page .resource-grid.is-list .resource-card-body .resource-card-meta{grid-column:3;grid-row:1 / span 2}.resources-page .resource-grid.is-list .resource-card-body .resource-tags{grid-column:2 / -1}.resources-page .resource-pagination{margin-top:1.2rem}.resources-page .resource-pagination a{padding:.45rem .7rem;border:1px solid rgba(80,129,184,.5);border-radius:9px;text-decoration:none}@media(max-width:1050px){.resources-page .resource-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.resources-page .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.resources-page{width:min(100% - 1rem,1360px)}.resources-page .resources-hero{min-height:500px;background-position:61% center}.resources-page .resource-tabs{display:flex;overflow-x:auto}.resources-page .resource-tab{flex:0 0 142px}.resources-page .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resources-page .resource-card{grid-template-columns:44% minmax(0,1fr);min-height:190px}.resources-page .resource-filter>*{flex:1 1 145px}.resources-page .resource-filter .resource-search{flex-basis:100%}.resources-page .resource-grid.is-list{grid-template-columns:1fr}.resources-page .resource-grid.is-list .resource-card{grid-template-columns:96px minmax(0,1fr)}}
