/* ==========================================================================
   COATAC ConTech IA - Multi-Page Design Tokens & Stylesheet
   ========================================================================== */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;

  /* HSL Palette */
  --bg-primary: hsl(222, 47%, 9%);
  --bg-secondary: hsl(222, 47%, 13%);
  --bg-surface: rgba(30, 41, 59, 0.75);
  --bg-surface-hover: rgba(51, 65, 85, 0.85);

  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(59, 130, 246, 0.3);

  --primary: hsl(217, 91%, 60%);
  --primary-hover: hsl(217, 91%, 50%);
  --primary-glow: rgba(59, 130, 246, 0.25);

  --accent-gold: hsl(43, 96%, 56%);
  --accent-purple: hsl(270, 75%, 65%);
  --accent-success: hsl(160, 84%, 39%);
  --accent-blue: hsl(199, 89%, 48%);
  --accent-pink: hsl(330, 81%, 60%);

  --text-main: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 65%);
  --text-dim: hsl(215, 16%, 47%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.18);

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

/* 🌟 Navbar siempre FIJA, ESTABLE y PERMANENTE (Nunca parpadea) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

/* 🌊 Transición Difuminada Elegante Solo en el Contenido Principal (Secciones / Main) */
section,
.page-hero,
.hero-section {
  animation: contentBlurFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform, filter;
}

body.content-leaving section,
body.content-leaving .page-hero,
body.content-leaving .hero-section {
  opacity: 0 !important;
  transform: scale(0.985) translateY(-6px) !important;
  filter: blur(6px) !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes contentBlurFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.99) translateY(12px);
    filter: blur(8px);
  }
  60% {
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

/* Tipografía Editorial Impecable - Bloques Justificados con Micro-tipografía (Taste & Layout Consistente) */
p,
.hero-description,
.page-description,
.course-summary,
.event-subtitle,
.pane-info p,
.card p,
.timeline-content p,
.cred-detail p,
.profile-info-box p,
.bio-text,
.event-banner-details p,
.meta-card p,
.nemo-subtitle,
.course-features li,
.phase-card-step1 p,
.phase-card-step2 p,
.impact-callout-text,
.nemo-story-card p,
.faq-answer {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.65;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  text-align: left;
}

.text-center,
.text-center h1,
.text-center h2,
.text-center h3,
.text-center p,
.section-header.center p,
.section-header.center h2 {
  text-align: center;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* 📐 Standardized Container Width Across ALL Pages (1280px) */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section.bg-alt {
  background-color: var(--bg-secondary);
}

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

/* 🌟 ConTech Glowing Blue Gradient Class */
.text-contech {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
  font-weight: 700;
}

/* 🌟 Ultra Glowing Google Antigravity & Gemini Class */
.text-gemini-antigravity {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.5), 0 0 35px rgba(56, 189, 248, 0.4);
  display: inline-block;
}

/* 🌟 Super Striking Brilliant Gold & Cyan Gradient for POR Y PARA */
.text-brilliant-at {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Local A Coruña Badge Style */
.coruna-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.25rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #93c5fd;
  margin: 1.25rem 0;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Reassurance Guarantee Callout Box (Requirements) */
.reassurance-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.reassurance-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.reassurance-content h3 {
  font-size: 1.35rem;
  color: #34d399;
  margin-bottom: 0.4rem;
}

.reassurance-content p {
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.6;
}

/* Fix Legibility on Buttons so .text-contech inside buttons is solid white */
.btn .text-contech,
.btn-primary .text-contech {
  background: none !important;
  -webkit-text-fill-color: white !important;
  color: white !important;
  text-shadow: none !important;
}

/* Section Headers */
.section-header {
  margin-bottom: 3rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #60a5fa;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 850px;
  margin: 0 auto;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal;
  overflow-wrap: break-word;
}

/* 💥 High-Impact Callout Box (Simuladores Demos) */
.impact-callout-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-top: 1.25rem;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.impact-callout-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.impact-callout-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  line-height: 1.55;
  text-align: left;
}

.impact-callout-highlight {
  color: #fbbf24;
  font-weight: 800;
  display: inline-block;
  margin-left: 0.4rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.single-line-title {
  display: block;
  font-size: clamp(1.3rem, 3vw, 2.3rem);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.single-line-form-title {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  white-space: nowrap;
}

.text-success {
  color: var(--accent-success);
}

.text-muted {
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-glow {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.badge-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.badge-accent {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.badge-blue {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
}

.badge-purple {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Pistoletazo de Salida Launch Pulse Badge */
.badge-launch-pulse {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(239, 68, 68, 0.3) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(217, 91%, 50%) 100%);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.brand-text-link {
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 0.3rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Page Hero */
.page-hero {
  padding: 8rem 0 4rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), var(--bg-primary));
}

.page-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 1rem 0 0.75rem 0;
}

.page-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 850px;
  margin: 0 auto;
}

/* Hero Section (Index) */
.hero-section {
  padding: 8.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 850px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured Event Box */
.featured-event-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.2);
  text-align: left;
  transform: none !important;
}

.featured-event-box h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.featured-event-box p {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal;
  overflow-wrap: normal;
}

.featured-event-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.featured-event-two-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.featured-event-col-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-event-col-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.featured-event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.event-grid-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.event-grid-icon {
  font-size: 1.4rem;
  background: rgba(59, 130, 246, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.centered-countdown-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  margin: 1rem auto;
  max-width: max-content;
}

.countdown-clean-digits {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.08em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  max-width: 100%;
  box-sizing: border-box;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contenedor Unificado de Pre-inscripción Oficial & Estadísticas Clave
   ========================================================================== */
.hero-preinscripcion-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin: 1.75rem auto 2rem auto;
  max-width: 860px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}

.hero-preinscripcion-box .hero-stats {
  background: transparent;
  border: none;
  padding: 0 0 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

.preinscripcion-actions {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Trio de Botones Hero Unificados: TALLERES, PRE-INSCRIPCIÓN y DOSSIER
   Geometría idéntica (píldora, padding, tipografía y transiciones)
   ========================================================================== */
.btn-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-hero-action:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3), 0 0 15px rgba(56, 189, 248, 0.15);
  color: #ffffff !important;
}

/* Variante de Alto Impacto con Brillo, Gradiente y Shimmer: PRE-INSCRIPCIÓN */
.btn-hero-action.btn-hero-glow,
.btn-pre-inscripcion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #3b82f6 100%);
  background-size: 200% auto;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.55), 0 0 50px rgba(37, 99, 235, 0.35);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: preinscripcionShimmer 3s ease infinite;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* ==========================================================================
   Botones de Convocatoria Directa: CONVOCATORIA JUEVES & CONVOCATORIA VIERNES
   Con contador de plazas en vivo, animación de pulso y resplandor neón
   ========================================================================== */
.btn-convocatoria {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-convocatoria-top {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: #ffffff !important;
}

.btn-convocatoria-jueves {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #06b6d4 100%);
  background-size: 200% auto;
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.55), 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: preinscripcionShimmer 3.5s ease infinite;
}

.btn-convocatoria-viernes {
  background: linear-gradient(135deg, #047857 0%, #0d9488 50%, #0284c7 100%);
  background-size: 200% auto;
  box-shadow: 0 0 25px rgba(13, 148, 136, 0.55), 0 6px 20px rgba(0, 0, 0, 0.4);
  animation: preinscripcionShimmer 4s ease infinite;
}

.btn-convocatoria:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #ffffff;
}

.btn-convocatoria-jueves:hover {
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.85), 0 10px 30px rgba(29, 78, 216, 0.6);
}

.btn-convocatoria-viernes:hover {
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.85), 0 10px 30px rgba(13, 148, 136, 0.6);
}

.convocatoria-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e0f2fe;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.18rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.02em;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: liveDotPulse 1.8s infinite;
}

@keyframes liveDotPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ⚠️ ALERTA DE PLAZAS CRÍTICAS Y AGOTADAS */
.convocatoria-live-tag.plazas-criticas {
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: rgba(245, 158, 11, 0.8) !important;
  color: #fef08a !important;
  animation: pulse-critical 1.8s infinite;
}

.convocatoria-live-tag.plazas-criticas .live-pulse-dot {
  background: #f59e0b !important;
  box-shadow: 0 0 8px #f59e0b !important;
}

.convocatoria-live-tag.plazas-agotadas {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: rgba(239, 68, 68, 0.7) !important;
  color: #fca5a5 !important;
}

.convocatoria-live-tag.plazas-agotadas .live-pulse-dot {
  background: #ef4444 !important;
  box-shadow: 0 0 8px #ef4444 !important;
}

@keyframes pulse-critical {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ⏳ CIERRE DE MATRÍCULA OFICIAL (DISCRETO Y ELEGANTE) */
.cierre-matricula-discreto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.85rem auto 1.25rem auto;
  padding: 0.45rem 1.15rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 9999px;
  font-size: 0.88rem;
  color: #e2e8f0;
  max-width: 95%;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.cierre-matricula-discreto:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.cierre-matricula-discreto .cierre-icon {
  font-size: 0.95rem;
  opacity: 0.9;
}

.cierre-matricula-discreto .cierre-date {
  color: #fbbf24;
  font-weight: 700;
}

.cierre-matricula-discreto .cierre-sep {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
}

.cierre-matricula-discreto .cierre-timer {
  color: #94a3b8;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.cierre-matricula-discreto .cierre-timer strong {
  color: #ffffff;
  font-weight: 700;
}

.btn-hero-action.btn-hero-glow:hover,
.btn-pre-inscripcion:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.85), 0 0 65px rgba(37, 99, 235, 0.6);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff !important;
}

/* Iconos y Flechas del Trio Hero */
.btn-hero-action .btn-hero-icon,
.btn-pre-inscripcion .btn-pre-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.btn-hero-action .btn-hero-arrow,
.btn-pre-inscripcion .btn-pre-arrow {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-action:hover .btn-hero-arrow.btn-arrow-right {
  transform: translateX(4px);
}

.btn-hero-action:hover .btn-hero-arrow.btn-arrow-diag,
.btn-hero-action.btn-hero-glow:hover .btn-hero-arrow,
.btn-pre-inscripcion:hover .btn-pre-arrow {
  transform: translate(2px, -2px);
}

.btn-hero-action:hover .btn-hero-arrow.btn-arrow-down {
  transform: translateY(3px);
}

@keyframes preinscripcionShimmer {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 40px rgba(37, 99, 235, 0.25);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.75), 0 0 55px rgba(37, 99, 235, 0.45);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 40px rgba(37, 99, 235, 0.25);
  }
}

@media (max-width: 640px) {
  .hero-preinscripcion-box {
    padding: 1.25rem 1rem;
  }
  .hero-preinscripcion-box .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .preinscripcion-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .preinscripcion-actions .btn,
  .preinscripcion-actions .btn-hero-action {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Timeline / Cronograma Styles (Index Page) */
.timeline-wrapper {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.timeline-card {
  position: relative;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 6px;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: white;
  z-index: 2;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.timeline-marker.main-marker {
  background: var(--primary);
  border-color: #93c5fd;
}

.timeline-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
}

.timeline-card.Highlight-card .timeline-content {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(16, 185, 129, 0.08) 100%);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
  padding-top: 0.75rem;
  font-size: 0.85rem;
}

.link-btn {
  color: var(--primary);
  font-weight: 700;
}

/* Roadmap Flowchart Diagram Styles (Talleres Page) */
.path-controller {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.path-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.path-btn:hover,
.path-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.roadmap-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.roadmap-node {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  width: 200px;
  text-align: center;
  transition: all var(--transition-normal);
}

.roadmap-node.active-node {
  border-color: #fbbf24 !important;
  background: rgba(30, 58, 138, 0.4) !important;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.45) !important;
  transform: scale(1.04);
}

.node-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.roadmap-node h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: white;
}

.roadmap-node p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.roadmap-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: bold;
}

.roadmap-branch {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* BC3 Budget Visualizer Bars & Raw Code View */
.bc3-raw-syntax-box {
  background: #090d16;
  border: 1px dashed rgba(96, 165, 250, 0.4);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.6;
  min-height: 180px;
  overflow-x: auto;
}

.bc3-raw-keyword {
  color: #f59e0b;
  font-weight: bold;
}

.bc3-raw-num {
  color: #34d399;
}

.bc3-raw-str {
  color: #60a5fa;
}

.chart-bar-group {
  margin-bottom: 0.75rem;
}

.bar-label {
  font-size: 0.8rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.bar-container {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cards & Project Feature Banners */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  margin: 0.75rem 0;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-banner-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-glow);
}

.project-banner-info h3 {
  font-size: 1.6rem;
  margin: 0.5rem 0;
}

.project-banner-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-banner-preview {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.github-shields-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.github-shields-row img {
  height: 22px;
  border-radius: 4px;
}

/* NEMO IoT */
.nemo-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 0.75rem;
}

.nemo-recommendation {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: #34d399;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nemo-metrics-row-layout {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.nemo-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.nemo-metric-header {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.nemo-metric-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.nemo-unit {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 400;
}

.nemo-metric-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.nemo-metric-progress {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease-in-out, background-color 0.8s ease-in-out;
}

/* Structural Pilar & Beam Visualizers */
.pillar-visualizer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #0f172a;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.pillar-section-graphic {
  width: 140px;
  height: 140px;
  border: 4px solid #64748b;
  background: #1e293b;
  position: relative;
  border-radius: 6px;
}

.rebar-dot {
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

.beam-visualizer-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  width: 100%;
}

.beam-elevation-graphic {
  width: 100%;
  height: 100px;
  border: 3px solid #64748b;
  background: #1e293b;
  position: relative;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beam-section-graphic {
  width: 80px;
  height: 100px;
  border: 3px solid #64748b;
  background: #1e293b;
  position: relative;
  border-radius: 6px;
  margin: 0 auto;
}

.beam-rebar-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: #ef4444;
}

.beam-rebar-bot {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 6px;
  background: #3b82f6;
}

.beam-load-arrow-dynamic {
  position: absolute;
  top: -24px;
  font-size: 1.2rem;
  color: #fbbf24;
  transition: left 0.15s ease-out;
  transform: translateX(-50%);
}

/* Course Filters & Grid */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.courses-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

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

.course-card.featured-course {
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(45, 30, 15, 0.6) 100%);
}

.course-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.session-corner-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.course-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.course-header h3 {
  font-size: 1.25rem;
  text-align: center;
}

.course-hours {
  font-size: 0.85rem;
  color: #34d399;
  font-weight: 600;
  text-align: center;
}

.course-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.6;
}

.course-features {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.course-features li {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

/* Requisite list for narrow cards */
.requisite-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.requisite-list li {
  text-align: left;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.45;
}

/* 🎨 Tarjetas de Fases del Programa (Fase 1 Gratuita vs Fase 2 Ciclo) */
.program-phases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.phase-card-step1 p,
.phase-card-step2 p {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.6;
}

/* Minute-by-Minute Talk Tabs */
.talk-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  width: 100%;
}

.talk-tab {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  transition: all var(--transition-fast);
  text-align: left;
}

.talk-tab:hover,
.talk-tab.active {
  background: rgba(30, 58, 138, 0.5);
  border-color: var(--primary);
  color: white;
}

.talk-tab-time {
  font-family: monospace;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.talk-tab-title {
  flex-grow: 1;
}

.talk-content-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.talk-pane {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.talk-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: tabFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pane-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.pane-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.pane-cta .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.pane-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.pane-info p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pane-info ul {
  list-style-position: inside;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.pane-info li {
  margin-bottom: 0.5rem;
}

.pane-quote blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  font-style: italic;
  font-size: 1.1rem;
  color: white;
}

/* Calculator Card */
.calculator-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.75rem 2.25rem;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  max-width: 920px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.calc-inputs .form-group {
  margin-bottom: 0.25rem;
}

.calc-inputs .form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #cbd5e1;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

input[type="range"] {
  flex-grow: 1;
  accent-color: var(--primary);
  cursor: pointer;
  height: 6px;
  touch-action: pan-y;
}

.range-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  min-width: 110px;
  text-align: right;
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
}

.result-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.result-box.Highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.res-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.res-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.res-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Demo Simulators */
.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.demo-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
}

.demo-tab.active {
  background: var(--primary);
  color: white;
}

.demo-box {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  opacity: 0;
  transform: translateY(8px);
}

.demo-box.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: tabFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.demo-control h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.demo-control p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.demo-control .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Terminal Mock */
.terminal-header {
  background: #1e293b;
  padding: 0.6rem 1rem;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ef4444;
}

.dot.yellow {
  background: #f59e0b;
}

.dot.green {
  background: #10b981;
}

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
  font-family: monospace;
}

.terminal-body {
  background: #0f172a;
  padding: 1.25rem;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  font-family: monospace;
  font-size: 0.85rem;
  min-height: 200px;
}

.log-info {
  color: #64748b;
  margin-bottom: 1rem;
}

.log-success {
  color: #34d399;
  margin: 0.4rem 0;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-item {
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
}

.file-item.raw {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

.file-item.structured {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: bold;
}

/* Docente Profile Card */
.profile-card-full {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.profile-img-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  margin-bottom: 1rem;
}

.profile-name {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 0.2rem;
}

.profile-job {
  font-size: 0.85rem;
  color: #60a5fa;
  font-weight: 600;
}

.hero-stacked-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.hero-stacked-title span:first-child {
  color: white;
}

.hero-stacked-title span:nth-child(2) {
  color: #60a5fa;
}

.hero-stacked-title span:nth-child(3) {
  color: #a78bfa;
}

/* Pre-registration Form */
.section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.75rem 2.25rem;
  border-radius: var(--radius-xl);
  max-width: 760px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.register-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 0.35rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-feedback {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-feedback.success {
  color: var(--accent-success);
}

/* Discrete Minimalist Footer */
.footer {
  background: #070a12;
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-container-clean {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0 auto;
}

.footer-nav-clean {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.footer-nav-clean a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  font-weight: 600;
  text-align: center;
}

.footer-nav-clean a:hover {
  color: var(--primary);
}

.footer-copy-clean {
  width: 100%;
  text-align: center;
  margin-top: 0.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-copy-clean p {
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

/* EUAT Claves Grid & Tool Matrix */
.euat-claves-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.tool-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
}

/* Responsive Media Queries */
@media (max-width: 992px) {

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .grid-3,
  .grid-2,
  .featured-event-grid,
  .featured-event-two-cols,
  .meta-cards-grid,
  .calendar-month-grid,
  .event-detail-card {
    grid-template-columns: 1fr;
  }

  .nemo-metrics-row-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .calculator-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem 1.75rem;
    text-align: left;
  }

  .project-banner-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.75rem 1.25rem;
    text-align: left;
  }

  .pane-grid,
  .demo-grid,
  .footer-container-clean,
  .profile-hero-grid,
  .beam-visualizer-container,
  .impact-callout-box,
  .reassurance-box {
    flex-direction: column;
    text-align: center;
  }

  .roadmap-diagram {
    flex-direction: column;
  }

  .roadmap-arrow {
    transform: rotate(90deg);
  }

  .single-line-title {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .timeline-card {
    padding-left: 60px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    left: 8px;
  }

  .timeline-line {
    left: 27px;
  }

  .register-form .form-row {
    grid-template-columns: 1fr;
  }

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

  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card {
    padding: 1.35rem 1.15rem;
  }

  .reassurance-box {
    flex-direction: column !important;
    text-align: center;
    padding: 1.25rem 1rem !important;
    gap: 1rem !important;
  }

  .reassurance-content {
    min-width: 0 !important;
    width: 100% !important;
  }

  .reassurance-btn-wrap {
    margin: 0.5rem auto 0 auto !important;
    width: 100%;
  }

  .reassurance-btn-wrap .btn {
    width: 100%;
    justify-content: center;
  }

  .featured-event-grid,
  .meta-cards-grid {
    grid-template-columns: 1fr;
  }

  .euat-claves-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .project-banner-card {
    padding: 1.5rem 1rem;
    gap: 1.25rem;
  }

  .project-banner-preview {
    padding: 1rem;
  }

  .bc3-raw-syntax-box {
    font-size: 0.72rem;
    padding: 0.85rem;
  }

  .course-card {
    padding: 1.25rem 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.75rem;
    padding: 1.15rem 0.85rem;
  }

  .stat-item {
    padding: 0.35rem 0.2rem;
  }

  .stat-number {
    font-size: 1.75rem;
    white-space: nowrap;
  }

  .stat-label {
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.25;
  }

  .featured-event-box {
    padding: 1.35rem 1rem;
    margin-bottom: 1.75rem;
  }

  .calculator-card {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem;
    gap: 1.5rem;
    box-sizing: border-box;
    width: 100%;
  }

  .calc-inputs {
    width: 100%;
  }

  .calc-inputs .form-group label {
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: left;
  }

  .range-wrap {
    width: 100%;
    gap: 0.6rem;
  }

  .range-val {
    font-size: 0.82rem;
    min-width: 85px;
  }

  .calc-results {
    width: 100%;
    gap: 0.75rem;
  }

  .result-box {
    padding: 0.75rem 1rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  .res-label {
    font-size: 0.78rem;
  }

  .res-value {
    font-size: 1.5rem;
    word-break: break-word;
  }

  .res-note {
    font-size: 0.72rem;
  }
}

/* Docente Profile Card Styles */
.docente-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  gap: 3rem;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.docente-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.docente-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.docente-info {
  flex-grow: 1;
}

.docente-info h2 {
  font-size: 2.1rem;
  color: white;
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.docente-role {
  font-size: 1.15rem;
  color: #60a5fa;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .docente-profile-card {
    flex-direction: column;
    padding: 2rem 1.5rem;
    text-align: center;
    gap: 1.5rem;
  }
}

/* Custom Social Buttons Docente */
.btn-docente-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-linkedin {
  background: #0077b5;
  color: white !important;
  border: 1px solid #0077b5;
}

.btn-linkedin:hover {
  background: #006097;
  box-shadow: 0 0 15px rgba(0, 119, 181, 0.6);
  transform: translateY(-2px);
}

.btn-github {
  background: #181717;
  color: white !important;
  border: 1px solid #333333;
}

.btn-github:hover {
  background: #24292e;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-web {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa !important;
  border: 1px solid #3b82f6;
}

.btn-web:hover {
  background: #3b82f6;
  color: white !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

/* Info Capsules (Informative Contact Section) */
.info-capsules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.info-capsule-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.35rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.info-capsule-card:hover {
  border-color: #3b82f6;
  background: rgba(30, 58, 138, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

.info-capsule-icon {
  font-size: 2rem;
}

.info-capsule-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-capsule-val {
  color: #60a5fa;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ==========================================================================
   ⚡ WIDGET FLOTANTE DE DISCORD (Avatar JMCG / C.L.U. a la IZQUIERDA con Halo & Tooltip)
   ========================================================================== */
.discord-floating-widget {
  position: fixed;
  bottom: 24px;
  left: 24px; /* 👈 Posición a la IZQUIERDA */
  right: auto;
  z-index: 999;
  display: flex;
  flex-direction: row-reverse; /* El bocadillo sale hacia la derecha */
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.discord-avatar-btn {
  position: relative;
  width: 68px;
  height: 68px;
  background: transparent; /* Sin fondo oscuro */
  border: none; /* Sin marco */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.discord-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* Halo perimetral resplandeciente que sigue el contorno de la imagen */
  filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.85)) drop-shadow(0 0 20px rgba(251, 191, 36, 0.45));
  animation: discordImageGlowPulse 2.8s infinite ease-in-out;
  transition: filter 0.3s ease;
}

@keyframes discordImageGlowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.75)) drop-shadow(0 0 16px rgba(251, 191, 36, 0.35));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 16px #5865F2) drop-shadow(0 0 26px rgba(251, 191, 36, 0.8));
    transform: scale(1.05);
  }
}

.discord-avatar-btn:hover img {
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 0 22px #5865F2) drop-shadow(0 0 32px #fbbf24);
}

/* Insignia de Estado En Línea */
.discord-online-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

/* Bocadillo de Mensaje Emergente (Hacia la Derecha) */
.discord-speech-bubble {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(88, 101, 242, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(88, 101, 242, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 280px;
  line-height: 1.4;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(-20px) scale(0.9);
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.discord-speech-bubble.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.discord-speech-bubble a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 700;
}

.discord-speech-bubble a:hover {
  text-decoration: underline;
  color: #fbbf24;
}

.discord-bubble-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s;
}

.discord-bubble-close:hover {
  color: #ef4444;
}

@media (max-width: 640px) {
  .docente-profile-card {
    padding: 1.5rem 1rem;
  }

  .docente-stats-panel {
    padding: 1rem 0.85rem !important;
  }

  .docente-metrics-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .docente-metrics-strip > div {
    border-left: 2px solid #3b82f6 !important;
    padding-left: 0.5rem !important;
  }

  .nemo-metrics-row-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .tool-matrix-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .docente-hero-capsule {
    border-radius: 18px;
    padding: 0.65rem 0.85rem;
    gap: 0.75rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 1rem 0 0.5rem 0;
  }

  .docente-capsule-avatar {
    width: 44px;
    height: 44px;
  }

  .docente-capsule-quote {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .docente-capsule-author {
    font-size: 0.72rem;
    margin-top: 0.2rem;
  }

  .coruna-tag {
    border-radius: 14px;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
    display: inline-block;
  }

  .discord-floating-widget {
    bottom: 12px;
    left: 12px;
    right: auto;
    z-index: 998;
  }

  .discord-avatar-btn {
    width: 50px;
    height: 50px;
  }

  .discord-speech-bubble {
    font-size: 0.74rem;
    max-width: calc(100vw - 120px);
    padding: 6px 10px;
    line-height: 1.3;
  }

  .back-to-top-btn {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    gap: 0.6rem 0.4rem;
    padding: 0.85rem 0.5rem;
  }

  .stat-number {
    font-size: 1.45rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .range-val {
    min-width: 75px;
    font-size: 0.78rem;
  }

  .res-value {
    font-size: 1.35rem;
  }
}


/* ==========================================================================
   Emil Design Eng & Apple Design Motion Utilities
   ========================================================================== */

/* Button Tactile Feedback & Spring Transition */
.btn {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:active {
  transform: scale(0.96) !important;
}

/* Scroll Reveal Fade & Elevate Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Delay Stagger for Cards inside Grids */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Interactive Filter Pills (Talleres & Demos) */
.filter-pills-container {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.75rem 0 2.5rem 0;
}

.filter-pill {
  padding: 0.5rem 1.25rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
  transform: translateY(-1px);
}

.filter-pill.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

/* Live IoT Telemetry Sparkline Canvas Container */
.sparkline-canvas-container {
  width: 100%;
  height: 65px;
  margin-top: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 4px;
}

.sparkline-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Subtítulo NEMO IoT Justificado */
.nemo-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  max-width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

/* Visor 3D Interactivo Online NEMO IoT Iframe */
.nemo-3d-iframe-container {
  width: 100%;
  height: 800px;
  /* 👈 AQUÍ PUEDES VARIAR LA ALTURA DE LA VENTANA 3D (ej: 600px, 700px, 800px) */
  background: #090d16;
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 130, 246, 0.35);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.15);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nemo-3d-iframe-container:hover {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.25);
}

.nemo-3d-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Tarjetas de Historia y Contexto de NEMO IoT */
.nemo-story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.nemo-story-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nemo-story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(59, 130, 246, 0.2);
}

.nemo-story-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: white;
}

.nemo-story-card-icon {
  font-size: 1.35rem;
}

.nemo-story-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
  margin: 0;
}

@media (max-width: 992px) {
  .nemo-story-grid {
    grid-template-columns: 1fr;
  }

  .nemo-3d-iframe-container {
    height: 580px;
  }

  .nemo-3d-iframe {
    width: 100%;
    height: 100%;
    transform: none;
  }
}

@media (max-width: 768px) {
  .nemo-3d-iframe-container {
    height: 420px;
  }
}

/* 🏷️ Badge Aclaratorio Cero Código */
.badge-no-code-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-top: 0.5rem;
}

/* 🎨 Tarjetas de Fases del Programa (Fase 1 Gratuita vs Fase 2 Ciclo) - Simetría y Elegancia */
.program-phases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin: 2.25rem 0;
  align-items: stretch;
}

.phase-card-step1,
.phase-card-step2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-xl);
  padding: 1.85rem 1.75rem;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  height: 100%;
}

.phase-card-step1 {
  background: linear-gradient(145deg, rgba(35, 24, 12, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(251, 191, 36, 0.12);
}

.phase-card-step2 {
  background: linear-gradient(145deg, rgba(12, 28, 52, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(59, 130, 246, 0.16);
}

.phase-badge-step {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.phase-card-step1 .phase-badge-step {
  background: #fbbf24;
  color: #0f172a;
}

.phase-card-step2 .phase-badge-step {
  background: #3b82f6;
  color: #ffffff;
}

.phase-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.phase-title-step1 {
  color: #fbbf24;
}

.phase-title-step2 {
  color: #60a5fa;
}

.phase-card-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.55;
  text-align: left;
  min-height: 2.85rem;
}

.phase-micro-containers {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.phase-micro-box {
  background: rgba(15, 23, 42, 0.65);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.phase-micro-box.box-step1 {
  border-left: 3px solid #fbbf24;
}

.phase-micro-box.box-step2 {
  border-left: 3px solid #3b82f6;
}

.phase-micro-box:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
}

.micro-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.micro-box-header .micro-box-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.micro-box-body {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

.micro-box-body strong {
  color: #f1f5f9;
}

.micro-box-time {
  color: #38bdf8;
  font-weight: 700;
}

.micro-box-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.micro-box-status.success {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.micro-box-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
}

.micro-box-badge.free {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.micro-box-badge.deadline {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.phase-action-btn {
  margin-top: auto;
}

@media (max-width: 768px) {
  .program-phases-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .phase-card-desc {
    min-height: auto;
  }
}

/* ==========================================================================
   NUEVAS MEJORAS DE EXPERIENCIA DE USUARIO (UX/UI & INTERACTIVIDAD)
   ========================================================================== */

/* 2.2 Barra de Progreso de Lectura Superior */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #fbbf24 100%);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

/* 2.3 Micro-animaciones en Botones */
.btn, .btn-primary, .btn-secondary, .demo-tab, .subtab-btn {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:active, .btn-primary:active, .btn-secondary:active {
  transform: scale(0.97);
}

.btn:hover, .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* 2.1 Menú Móvil con Drawer / Glassmorphism */
@media (max-width: 868px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding: 1.5rem 1.25rem !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.25) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    gap: 0.75rem !important;
    animation: drawerSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes drawerSlideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 520px) {
    .brand-sub {
      display: none;
    }
    .nav-container {
      padding: 0 1rem;
    }
  }
}

/* 1.8 Cápsula del Docente en Portada (Estilo Web Personal JMCG) */
.docente-hero-capsule {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.6rem 1.5rem 0.6rem 0.75rem;
  border-radius: 9999px;
  margin: 1.5rem 0 0.5rem 0;
  transition: var(--transition-normal);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  max-width: 100%;
}

.docente-hero-capsule:hover {
  border-color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  background: rgba(30, 41, 59, 0.85);
}

.docente-capsule-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
  flex-shrink: 0;
}

.docente-capsule-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.docente-capsule-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.docente-capsule-quote {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.docente-capsule-author {
  font-size: 0.78rem;
  color: #60a5fa;
  font-weight: 500;
}

/* 1.9 Acordeón FAQ Interactivo */
.faq-section {
  margin: 3.5rem 0;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.faq-item.active {
  border-color: #3b82f6;
  background: rgba(30, 41, 59, 0.9);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  color: #60a5fa;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #fbbf24;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 800px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* 2.8 Botón Flotante Volver Arriba */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

/* 2.10 Toast de Notificación Personalizado */
.custom-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #3b82f6;
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.4);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.custom-toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 2.6 Tooltips Técnicos Explicativos */
.tech-tooltip {
  position: relative;
  display: inline-block;
  color: #60a5fa;
  border-bottom: 1px dashed rgba(96, 165, 250, 0.6);
  cursor: help;
}

.tech-tooltip .tooltip-box {
  visibility: hidden;
  width: 240px;
  background: rgba(15, 23, 42, 0.98);
  color: var(--text-main);
  text-align: left;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  position: absolute;
  z-index: 50;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.tech-tooltip:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Tarjeta Requisitos del Alumno (1.5) */
.requisites-grid-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.requisite-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: var(--transition-normal);
}

.requisite-item-card:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.requisite-item-icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.requisite-item-title {
  font-weight: 700;
  color: white;
  font-size: 1.05rem;
}

/* ==========================================================================
   25. 🎈 Floating Ambient Emojis (Global Background & Foreground Floaters)
   ========================================================================== */
.global-floating-emoji {
  position: fixed;
  pointer-events: auto;
  cursor: pointer;
  z-index: 999;
  user-select: none;
  font-size: 1.8rem;
  line-height: 1;
  opacity: 0;
  will-change: transform, opacity;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
  animation-fill-mode: forwards;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.global-floating-emoji:hover {
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.9)) scale(1.35) !important;
}

@keyframes floatEmojiBottomUp {
  0% {
    top: 105vh;
    opacity: 0;
    transform: rotate(0deg) scale(0.85);
  }
  10% {
    opacity: 0.85;
    transform: rotate(35deg) scale(1.1);
  }
  85% {
    opacity: 0.85;
  }
  100% {
    top: -10vh;
    opacity: 0;
    transform: rotate(360deg) scale(0.9);
  }
}

@keyframes floatEmojiTopDown {
  0% {
    top: -10vh;
    opacity: 0;
    transform: rotate(0deg) scale(0.85);
  }
  10% {
    opacity: 0.85;
    transform: rotate(-35deg) scale(1.1);
  }
  85% {
    opacity: 0.85;
  }
  100% {
    top: 105vh;
    opacity: 0;
    transform: rotate(-360deg) scale(0.9);
  }
}

@keyframes floatEmojiLeftRight {
  0% {
    left: -10vw;
    opacity: 0;
    transform: rotate(0deg) scale(0.85);
  }
  10% {
    opacity: 0.85;
    transform: rotate(45deg) scale(1.1);
  }
  85% {
    opacity: 0.85;
  }
  100% {
    left: 105vw;
    opacity: 0;
    transform: rotate(360deg) scale(0.9);
  }
}

@keyframes floatEmojiRightLeft {
  0% {
    left: 105vw;
    opacity: 0;
    transform: rotate(0deg) scale(0.85);
  }
  10% {
    opacity: 0.85;
    transform: rotate(-45deg) scale(1.1);
  }
  85% {
    opacity: 0.85;
  }
  100% {
    left: -10vw;
    opacity: 0;
    transform: rotate(-360deg) scale(0.9);
  }
}

/* ==========================================================================
   26. 🥚 Easter Egg: 'Aparejador Ninja ConTech & IA Trivia'
   ========================================================================== */
.ninja-secret-trigger {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ninja-secret-trigger:hover {
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

.easter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.easter-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.easter-modal-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid #3b82f6;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.35);
  position: relative;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.easter-modal-overlay.active .easter-modal-box {
  transform: scale(1) translateY(0);
}

.easter-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.easter-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

/* Avatar Giratorio 3D */
.easter-avatar-spinner {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(#3b82f6, #06b6d4, #8b5cf6, #fbbf24, #3b82f6);
  animation: spinAvatarBorder 3s linear infinite;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
  cursor: pointer;
}

.easter-avatar-spinner img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.easter-avatar-spinner:active img {
  transform: rotate(360deg) scale(1.15);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spinAvatarBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.easter-trivia-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: left;
}

.easter-trivia-q {
  font-size: 1.05rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.easter-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.easter-opt-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.easter-opt-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #60a5fa;
  color: white;
  transform: translateX(4px);
}

.easter-opt-btn.correct {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
  font-weight: bold;
}

.easter-opt-btn.wrong {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #f87171 !important;
  color: #f87171 !important;
}

.easter-feedback {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 24px;
}

/* Modos del Easter Egg: Pestañas de Navegación */
.easter-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem 0;
}

.easter-tab-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #94a3b8;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.easter-tab-btn:hover {
  color: white;
  border-color: #60a5fa;
}

.easter-tab-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(37, 99, 235, 0.45) 100%);
  color: #60a5fa;
  border-color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

/* Barra de Rango y Racha Ninja */
.easter-rank-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  color: #fbbf24;
  font-weight: 700;
}

.easter-rank-bar .ninja-streak {
  color: #f97316;
  font-weight: 800;
}

/* Oráculo de Excusas de Obra IA */
.easter-oracle-box {
  display: none;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
}

.easter-oracle-box.active {
  display: block;
}

.oracle-quote-display {
  font-size: 1.05rem;
  color: #f1f5f9;
  font-style: italic;
  font-weight: 600;
  line-height: 1.55;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.6);
  border-left: 4px solid #a855f7;
  border-radius: 6px;
  text-align: left;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.oracle-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Confeti Emojis Flotantes en Victoria */
.easter-confetti-item {
  position: absolute;
  pointer-events: none;
  font-size: 1.5rem;
  animation: confettiFly 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 100000;
}

@keyframes confettiFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 40px), var(--ty, -100px)) scale(1.3) rotate(var(--rot, 180deg));
  }
}

/* ==========================================================================
   TABLAS DE FICHA TÉCNICA EN TARJETAS DE TALLERES (talleres.html)
   ========================================================================== */
.course-tech-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.course-tech-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  line-height: 1.45;
}

.course-tech-table tr:last-child td {
  border-bottom: none;
}

.course-tech-table td:first-child {
  width: 38%;
  color: var(--text-dim);
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.5);
  white-space: nowrap;
}

.course-tech-table td:last-child {
  color: var(--text-main);
  font-weight: 500;
}

.course-tech-table a {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 600;
}

.course-tech-table a:hover {
  color: #93c5fd;
}

@media (max-width: 768px) {
  .course-tech-table td {
    display: block;
    width: 100% !important;
    border-right: none !important;
  }
  .course-tech-table td:first-child {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.3rem;
  }
  .course-tech-table td:last-child {
    padding-top: 0.3rem;
  }
}

/* ==========================================================================
   MAPA TECNOLÓGICO DE TALLERES POR HERRAMIENTA IA (TOOL MATRIX)
   ========================================================================== */
.matrix-node:hover {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35) !important;
  background: rgba(30, 41, 59, 0.95) !important;
}

.tool-matrix-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   ACORDEÓN DE BLOQUES LECTIVOS (TALLERES DINÁMICOS)
   ========================================================================== */
.blocks-accordion-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blocks-accordion-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #60a5fa;
  color: white;
}

.blocks-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.blocks-accordion-content.open {
  max-height: 800px;
}

.block-card-mini {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #3b82f6;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.block-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.block-mini-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
}

.block-mini-duration {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

.block-mini-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.block-mini-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.block-mini-deliverable {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.2rem;
  line-height: 1.35;
}

.search-input-field:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35) !important;
}

/* ==========================================================================
   ⚡ WIDGET FLOTANTE DE DISCORD (Silueta PNG Recortada JMCG con Sombra Adaptada)
   ========================================================================== */
.discord-floating-widget {
  position: fixed;
  bottom: 24px;
  left: 24px; /* 👈 Posición a la IZQUIERDA */
  right: auto;
  z-index: 999;
  display: flex;
  flex-direction: row-reverse; /* El bocadillo sale hacia la derecha */
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}

.discord-avatar-btn {
  position: relative;
  width: 68px;
  height: 68px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  /* Sombra suave perimetral adaptada exactamente a la geometría del PNG */
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 8px rgba(88, 101, 242, 0.35));
}

.discord-avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  display: block;
}

.discord-avatar-btn:hover {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 14px rgba(88, 101, 242, 0.65));
}

/* Insignia de Estado En Línea limpia en la esquina inferior */
.discord-online-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

/* Bocadillo de Mensaje Emergente (Hacia la Derecha) */
.discord-speech-bubble {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(88, 101, 242, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(88, 101, 242, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 280px;
  line-height: 1.4;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(-20px) scale(0.9);
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.discord-speech-bubble.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.discord-speech-bubble a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 700;
}

.discord-speech-bubble a:hover {
  text-decoration: underline;
  color: #fbbf24;
}

.discord-bubble-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s;
}

.discord-bubble-close:hover {
  color: #ef4444;
}



/* ==========================================================================
   3.10 MODO DE MOVIMIENTO REDUCIDO (PREFERS-REDUCED-MOTION)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reading-progress-bar,
  .badge-launch-pulse,
  .hero-bg-glow {
    animation: none !important;
    transition: none !important;
  }

  .phase-card-step1,
  .phase-card-step2,
  .docente-profile-card,
  .featured-event-box {
    transform: none !important;
  }
}

/* ==========================================================================
   🤖 ESTILOS EVALUADOR DE EQUIPO & TELEMETRÍA C.L.U. CONTECH
   ========================================================================== */
.evaluador-clu-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(10, 15, 29, 0.95) 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  position: relative;
  overflow: hidden;
}

.clu-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.clu-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.clu-card-download {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.08);
}

.clu-card-download:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.18);
  transform: translateY(-2px);
}

.clu-card-analyzer {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.08);
}

.clu-card-analyzer:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.18);
  transform: translateY(-2px);
}

.clu-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.clu-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.clu-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.clu-step-item {
  font-size: 0.86rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.clu-step-item span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.clu-textarea {
  width: 100%;
  padding: 0.85rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  color: #e2e8f0;
  font-family: monospace;
  font-size: 0.82rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.clu-textarea:focus {
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

/* Panel Dinámico de Resultados C.L.U. */
.clu-results-panel {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.15);
  animation: cluSlideDown 0.4s ease-out;
}

@keyframes cluSlideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.clu-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.clu-score-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  text-align: center;
  min-width: 140px;
}

.clu-score-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
  font-family: var(--font-display);
}

.clu-score-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}

.clu-quote-box {
  background: rgba(234, 179, 8, 0.08);
  border-left: 3px solid #eab308;
  padding: 0.85rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.clu-bars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.clu-bar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.clu-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-bottom: 0.45rem;
}

.clu-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  overflow: hidden;
}

.clu-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 999px;
  transition: width 1s ease-in-out;
}

.clu-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.clu-detail-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
}

@media (max-width: 768px) {
  .clu-grid-container {
    grid-template-columns: 1fr;
  }
  .clu-bars-grid {
    grid-template-columns: 1fr;
  }
  .clu-details-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   🚀 MEJORAS GLOBALES DE FRONTEND & EXPERIENCIA (ConTech 2026 Standards)
   ========================================================================== */

/* 1. ⏱️ Video Chapters Bar */
.video-chapters-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 820px;
  margin: -0.5rem auto 1.25rem auto;
}

.chapter-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.chapter-chip:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.6);
  transform: translateY(-1px);
}

.chapter-chip:active {
  transform: scale(0.97);
}

.chapter-chip.active {
  background: rgba(59, 130, 246, 0.35);
  border-color: #60a5fa;
  color: #93c5fd;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.chapter-chip .chip-time {
  background: rgba(59, 130, 246, 0.25);
  color: #38bdf8;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 700;
}

/* 2. 🎯 ROI Calculator Presets */
.calc-presets-container {
  margin-bottom: 1.25rem;
}

.calc-presets-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.calc-preset-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-preset-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(59, 130, 246, 0.5);
  color: white;
}

.calc-preset-btn:active {
  transform: scale(0.97);
}

.calc-preset-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.35) 100%);
  border-color: #60a5fa;
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

/* 3. 📋 Mi Plan Formativo Floating Dock & Bookmarks */
.btn-bookmark-workshop {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.btn-bookmark-workshop:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.btn-bookmark-workshop.active {
  background: #fbbf24;
  color: #0f172a;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.my-plan-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(160px);
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 9999px;
  padding: 0.5rem 0.85rem 0.5rem 1.25rem;
  display: none;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(251, 191, 36, 0.2);
  z-index: 9990;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 92vw;
}

.my-plan-dock.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.my-plan-dock-title {
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.my-plan-dock-hours {
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* 5. ⚡ Performance & Content-Visibility */
.faq-section,
.calculator-card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 450px;
}

/* ==========================================================================
   26. ⚡ SIMULADORES CONTECH PREMIUM (ISO 19650, PILAR CE-21, VIGA CE-21)
   ========================================================================== */

/* Demo 1: ISO 19650 Progress & Tokens */
.iso-progress-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.75rem 0 1rem 0;
  display: none;
  position: relative;
}

.iso-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #38bdf8, #34d399);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  transition: width 0.15s ease-out;
}

.iso-token {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
  margin: 0 1px;
}

.iso-token.proj { background: rgba(59, 130, 246, 0.25); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.iso-token.agent { background: rgba(34, 197, 94, 0.25); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.4); }
.iso-token.zone { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
.iso-token.disc { background: rgba(168, 85, 247, 0.25); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.iso-token.type { background: rgba(251, 191, 36, 0.25); color: #fde047; border: 1px solid rgba(251, 191, 36, 0.4); }
.iso-token.desc { background: rgba(56, 189, 248, 0.25); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }

.iso-metrics-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  color: #86efac;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* Demo 2: Pillar CE-21 SVG Visualizer & Capacity Gauge */
.pillar-svg-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pillar-capacity-meter {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}

.capacity-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.capacity-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.capacity-bar-fill {
  height: 100%;
  width: 65%;
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

/* Demo 3: Beam Moment Diagram SVG */
.beam-diagram-wrap {
  width: 100%;
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.beam-diagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.beam-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.beam-status-pill.cumple {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.beam-status-pill.alerta {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  animation: pulseWarning 1.5s infinite;
}

@keyframes pulseWarning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Demo 4: Pórtico 2D & Deformada Elástica */
.portal-visualizer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.portal-canvas-card {
  width: 100%;
  background: #060b14;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7);
}

.portal-canvas-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.portal-canvas-legend {
  display: flex;
  gap: 0.75rem;
  font-size: 0.72rem;
  align-items: center;
}

.portal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.portal-legend-line {
  width: 16px;
  height: 2px;
  border-radius: 1px;
}
.portal-legend-line.reposo {
  border-top: 2px dashed #64748b;
  height: 0;
}
.portal-legend-line.elastica {
  background: linear-gradient(90deg, #38bdf8, #34d399);
  height: 3px;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}

.portal-svg-wrap {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 520 / 290;
}

/* Selector de Tipologías Estructurales (Pórtico, Vuelo, Balcón, Cercha) */
.portal-typology-selector {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-type-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.portal-type-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: white;
  transform: translateY(-1px);
}

.portal-type-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
  font-weight: 700;
}

.portal-control-group {
  display: none;
}
.portal-control-group.active {
  display: block;
}

.portal-presets-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.portal-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-preset-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: white;
}

.portal-preset-btn.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
}

.portal-sway-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.portal-sway-indicator.rigido {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.portal-sway-indicator.traslacional {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   27. 📸 CARRUSEL DE CAPTURAS OFICIALES BC3 VIEWER V3.0
   ========================================================================== */
.project-banner-card.bc3-card-enhanced {
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  gap: 2.25rem;
}

@media (max-width: 992px) {
  .project-banner-card.bc3-card-enhanced {
    grid-template-columns: 1fr;
  }
}

.bc3-carousel-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.bc3-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.bc3-carousel-controls-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bc3-carousel-play-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bc3-carousel-play-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: white;
}

.bc3-carousel-counter {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.bc3-carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #020617;
  cursor: pointer;
}

.bc3-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.bc3-carousel-stage:hover .bc3-slide-img {
  transform: scale(1.02);
}

.bc3-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.bc3-carousel-arrow:hover {
  background: #0284c7;
  color: white;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.bc3-carousel-arrow.prev { left: 8px; }
.bc3-carousel-arrow.next { right: 8px; }

.bc3-carousel-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.95) 75%);
  padding: 1.25rem 0.85rem 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 4;
}

.bc3-cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.bc3-slide-title {
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc3-zoom-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.bc3-zoom-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: white;
}

/* Category Filter Pills */
.bc3-category-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.bc3-cat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bc3-cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.bc3-cat-pill.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  font-weight: 700;
}

/* Thumbnail Strip */
.bc3-thumbnail-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-behavior: smooth;
}

.bc3-thumbnail-strip::-webkit-scrollbar {
  height: 4px;
}

.bc3-thumbnail-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.bc3-thumb-item {
  width: 54px;
  height: 31px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bc3-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bc3-thumb-item:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.bc3-thumb-item.active {
  opacity: 1;
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

/* Modal / Lightbox */
.bc3-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.bc3-lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.bc3-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(14px);
}

.bc3-lightbox-dialog {
  position: relative;
  z-index: 10;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bc3-lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #090d16;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

.bc3-lightbox-img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.bc3-lightbox-caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: #0f172a;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.bc3-lightbox-btn-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bc3-lightbox-btn-close:hover {
  background: #ef4444;
}

.bc3-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.bc3-lightbox-arrow:hover {
  background: #0284c7;
  transform: translateY(-50%) scale(1.1);
}

.bc3-lightbox-arrow.prev { left: -56px; }
.bc3-lightbox-arrow.next { right: -56px; }

@media (max-width: 768px) {
  .bc3-lightbox-arrow.prev { left: 8px; }
  .bc3-lightbox-arrow.next { right: 8px; }
}