/* ==========================================================================
   josemariafmTIC · Diseño Moderno, Efectista, Limpio (Fondo Claro)
   Autor: José María Fernández Martín
   ========================================================================== */

:root {
  /* Paleta Clara Luminosa & Moderna */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-strong: rgba(255, 255, 255, 0.94);

  /* Textos de alto contraste y lectura limpia */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Acentos Tecnológicos Vibrantes */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --indigo: #4f46e5;
  --indigo-soft: rgba(79, 70, 229, 0.1);
  --cyan: #0891b2;
  --cyan-bright: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.12);
  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.1);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.12);
  --rose: #e11d48;
  --rose-soft: rgba(225, 29, 72, 0.1);

  /* Gradientes Efectistas */
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #06b6d4 100%);
  --grad-cyber: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f2942 100%);
  --grad-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* Bordes y Sombras Limpias */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(37, 99, 235, 0.35);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 48px -8px rgba(37, 99, 235, 0.14), 0 8px 20px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 10px 30px -5px rgba(37, 99, 235, 0.32);

  /* Radios y Transiciones */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-med: 0.38s var(--ease-out);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Fondo claro arquitectónico con malla sutil y esferas de luz suave */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(rgba(37, 99, 235, 0.075) 1px, transparent 1px),
    radial-gradient(rgba(6, 182, 212, 0.05) 1px, var(--bg-page) 1px);
  background-size: 36px 36px;
  background-position: 0 0, 18px 18px;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-orb.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.55) 0%, rgba(147, 197, 253, 0) 70%);
  top: -140px;
  right: -100px;
}

.ambient-orb.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(165, 243, 252, 0.55) 0%, rgba(165, 243, 252, 0) 70%);
  top: 38%;
  left: -160px;
  animation-delay: -6s;
}

.ambient-orb.orb-3 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(199, 210, 254, 0.5) 0%, rgba(199, 210, 254, 0) 70%);
  bottom: 8%;
  right: -120px;
  animation-delay: -11s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.06); }
  100% { transform: translate(-20px, 20px) scale(0.96); }
}

/* Accesibilidad: Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Contenedor Principal */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Tipografía y Utilidades */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN (Glassmorphism Claro)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition-fast), background var(--transition-fast);
}

.site-header.scrolled {
  background: var(--bg-glass-strong);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(37, 99, 235, 0.42);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-cyber {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #fff;
  box-shadow: 0 8px 22px rgba(6, 182, 212, 0.3);
}

.btn-cyber:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.42);
}

.btn-sm {
  padding: 0.52rem 1.05rem;
  font-size: 0.86rem;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.55rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (Moderno, Efectista, Limpio)
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-surface);
  border: 1px solid rgba(37, 99, 235, 0.22);
  padding: 0.42rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.35rem;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.hero-title {
  font-size: clamp(2.35rem, 4.5vw, 3.65rem);
  margin-bottom: 1.25rem;
  line-height: 1.12;
}

.hero-subtitle {
  font-size: 1.14rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  backdrop-filter: blur(8px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Tarjeta Visual del Profesor (Derecha del Hero) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-med);
}

.profile-showcase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: var(--grad-brand);
  opacity: 0.92;
}

.profile-avatar-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 18px auto 1.15rem;
  border-radius: 50%;
  padding: 5px;
  background: var(--bg-surface);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 3px solid var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.profile-info-center {
  text-align: center;
}

.profile-name {
  font-size: 1.38rem;
  margin-bottom: 0.25rem;
}

.profile-role {
  font-size: 0.92rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.profile-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.chip.chip-blue { background: var(--primary-soft); color: var(--primary); border-color: rgba(37, 99, 235, 0.2); }
.chip.chip-cyan { background: var(--cyan-soft); color: var(--cyan); border-color: rgba(6, 182, 212, 0.25); }
.chip.chip-indigo { background: var(--indigo-soft); color: var(--indigo); border-color: rgba(79, 70, 229, 0.2); }
.chip.chip-emerald { background: var(--emerald-soft); color: var(--emerald); border-color: rgba(5, 150, 105, 0.2); }
.chip.chip-amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(217, 119, 6, 0.25); }

.profile-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.quick-link-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Badges Flotantes Decorativos */
.floating-pill {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 2;
  animation: floatPill 5s ease-in-out infinite alternate;
}

.floating-pill.pill-top-left {
  top: 16px;
  left: -18px;
}

.floating-pill.pill-bottom-right {
  bottom: 24px;
  right: -18px;
  animation-delay: -2.5s;
}

@keyframes floatPill {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.65) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.25rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  margin-bottom: 0.9rem;
}

.section-desc {
  font-size: 1.06rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PORTAL DESTACADO DE CIBERSEGURIDAD + HUB DE TEMAS ESCALABLE
   ========================================================================== */
.cyber-spotlight-banner {
  background: var(--bg-surface);
  border: 2px solid rgba(6, 182, 212, 0.28);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.cyber-spotlight-banner::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cyber-banner-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cyber-banner-info {
  max-width: 700px;
}

.cyber-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.cyber-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.cyber-banner-info h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  margin-bottom: 0.5rem;
}

.cyber-banner-info p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.cyber-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.eso-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.eso-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.eso-card.eso-1::after { background: linear-gradient(90deg, #f59e0b, #d97706); }
.eso-card.eso-2::after { background: linear-gradient(90deg, #14b8a6, #0d9488); }
.eso-card.eso-3::after { background: linear-gradient(90deg, #06b6d4, #2563eb); }

.eso-card:hover {
  transform: translateY(-6px);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.eso-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.eso-icon {
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-subtle);
}

.eso-level-tag {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.eso-1 .eso-level-tag { background: var(--amber-soft); color: var(--amber); }
.eso-2 .eso-level-tag { background: var(--emerald-soft); color: var(--emerald); }
.eso-3 .eso-level-tag { background: var(--primary-soft); color: var(--primary); }

.eso-card h4 {
  font-size: 1.22rem;
  margin-bottom: 0.45rem;
}

.eso-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.eso-topics {
  list-style: none;
  margin-bottom: 1.4rem;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.9rem;
}

.eso-topics li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 0.42rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.eso-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.eso-actions .btn {
  flex: 1;
  text-align: center;
}

/* Hub Escalable de Temas y Especialidades */
.topics-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3.5rem 0 1.5rem;
}

.topics-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.35rem;
}

.topic-portal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.topic-portal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.topic-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.topic-status {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-active {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.status-videos {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-soon {
  background: var(--amber-soft);
  color: var(--amber);
}

.topic-portal-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.topic-portal-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.topic-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.topic-link:hover {
  gap: 0.65rem;
}

/* ==========================================================================
   ACADEMIA DE TUTORIALES Y LISTAS DE YOUTUBE
   ========================================================================== */
.tutorials-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--bg-surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.25rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.filter-tab:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.filter-tab.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.search-box {
  position: relative;
  min-width: 270px;
  flex: 1;
  max-width: 360px;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Grid de Listas de Reproducción (Cursos) */
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.playlist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-med);
  position: relative;
}

.playlist-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.playlist-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.playlist-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), opacity 0.3s ease;
}

.playlist-card:hover .playlist-thumb {
  transform: scale(1.05);
}

.playlist-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.72) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.playlist-card:hover .playlist-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
  transform: scale(0.9);
  transition: transform var(--transition-fast);
}

.playlist-card:hover .play-btn-circle {
  transform: scale(1);
}

.playlist-count-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.playlist-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.playlist-body {
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.playlist-title {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.playlist-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.playlist-preview-lessons {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1.2rem;
  list-style: none;
}

.playlist-preview-lessons li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.22rem 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.playlist-preview-lessons li span.lesson-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  min-width: 22px;
}

.playlist-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.playlist-footer .btn {
  flex: 1;
}

/* ==========================================================================
   MODAL INTERACTIVO DE CURSO / REPRODUCTOR DE LECCIONES
   ========================================================================== */
.course-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.course-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.course-modal {
  background: var(--bg-surface);
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease-out);
}

.course-modal-backdrop.open .course-modal {
  transform: translateY(0) scale(1);
}

.course-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.course-modal-title-wrap h3 {
  font-size: 1.15rem;
}

.course-modal-title-wrap span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--rose-soft);
  color: var(--rose);
  border-color: rgba(225, 29, 72, 0.25);
}

.course-modal-content {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  overflow: hidden;
  flex: 1;
}

.modal-video-pane {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #0f172a;
  color: #fff;
}

.video-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.video-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.current-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.current-video-meta h4 {
  color: #fff;
  font-size: 1.05rem;
}

.modal-lessons-pane {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  overflow-y: auto;
  max-height: 68vh;
}

.lessons-pane-header {
  padding: 1rem 1.25rem;
  font-weight: 800;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
  position: sticky;
  top: 0;
}

.modal-lesson-list {
  list-style: none;
}

.modal-lesson-btn {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.25rem;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition-fast);
}

.modal-lesson-btn:hover {
  background: var(--bg-page);
}

.modal-lesson-btn.active {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
}

.modal-lesson-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-page);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.modal-lesson-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

/* ==========================================================================
   SOBRE MÍ & TRAYECTORIA PROFESIONAL (about.me/josemariafm)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.bio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.35rem;
  box-shadow: var(--shadow-sm);
}

.bio-card h3 {
  font-size: 1.55rem;
  margin-bottom: 1.15rem;
}

.bio-card p {
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  font-size: 1.01rem;
}

.bio-quote {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.96rem;
}

/* Línea de Tiempo Interactiva */
.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 1.75rem;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--cyan-bright));
}

.timeline-item {
  position: relative;
  margin-bottom: 1.65rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.timeline-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
  display: block;
}

.timeline-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.timeline-item p {
  font-size: 0.89rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CONECTA CONMIGO / REDES SOCIALES Y FOOTER
   ========================================================================== */
.social-connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.15rem;
}

.social-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.social-meta strong {
  display: block;
  font-size: 0.96rem;
}

.social-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Animaciones Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   CABECERAS DE PÁGINAS INTERNAS & VISTA RESUMEN DE INICIO
   ========================================================================== */
.page-hero {
  padding: 3.5rem 0 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(241, 245, 249, 0.65) 100%);
}

.page-hero-inner {
  max-width: 820px;
}

.page-hero .section-kicker {
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 0.85rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.home-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.overview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-med);
  text-decoration: none;
  color: inherit;
}

.overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.overview-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.overview-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.overview-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-xs);
}

.pillar-card h4 {
  font-size: 1.1rem;
  margin: 0.75rem 0 0.45rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .cyber-courses-grid,
  .course-modal-content,
  .home-overview-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .floating-pill {
    display: none;
  }

  .modal-lessons-pane {
    max-height: 36vh;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .cyber-spotlight-banner {
    padding: 1.5rem;
  }

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