@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Nunito:wght@300;400;600;800&family=Roboto:wght@300;400;500;700&family=Outfit:wght@400;600;800&family=Plus+Jakarta+Sans:wght@300;400;600;700&display=swap');

:root {
  /* Hondarribia Klinika - Colores Corporativos */
  --h-primary: #007BFF;
  --h-secondary: #0056b3;
  --h-accent: #6C757D;
  --h-light: #E3F2FD;
  --h-bg: #FFFFFF;
  --h-text: #161616;
  --h-font-h: 'Outfit', 'Nunito', system-ui, sans-serif;
  --h-font-b: 'Plus Jakarta Sans', 'Roboto', system-ui, sans-serif;

  /* ExpertBrain - Colores Corporativos */
  --e-primary: #101828;
  --e-secondary: #1F2937;
  --e-accent: #A86390;
  --e-accent-light: #C784B5;
  --e-purple: #7C3AED;
  --e-bg: #FFFFFF;
  --e-text: #000000;
  --e-font-h: 'Outfit', 'Nunito', sans-serif;
  --e-font-b: 'Plus Jakarta Sans', 'Lato', sans-serif;

  /* Global - Paleta Integrada para Curso IA */
  --bg-gradient: linear-gradient(135deg, #101828 0%, #1F2937 50%, #374151 100%);
  --dark-gradient: linear-gradient(135deg, #007BFF 0%, #0056b3 50%, #A86390 100%);
  --accent-gradient: linear-gradient(135deg, #A86390 0%, #C784B5 50%, #7C3AED 100%);
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(168, 99, 144, 0.2);

  /* Colores de Acento para IA */
  --ai-purple: #A86390;
  --ai-blue: #007BFF;
  --ai-violet: #7C3AED;
  --ai-cyan: #00D9D9;
  --ai-teal: #14B8A6;
  --ai-pink: #C784B5;
  --ai-green: #10B981;

  /* Colores del PDF */
  --pdf-cyan: #00D9D9;
  --pdf-dark: #1A3A47;
  --pdf-darker: #0F2027;
}

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

body {
  font-family: var(--e-font-b);
  color: #e5e7eb;
  background: var(--bg-gradient);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 217, 217, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 50% 20%, rgba(168, 99, 144, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(16, 24, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.25);
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(168, 99, 144, 0.15);
  transition: all 0.3s ease;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header img.logo {
  height: 50px;
  object-fit: contain;
  /* Forzar ambos logos a color blanco puro */
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)) !important;
  transition: all 0.3s ease;
}

header img.logo:hover {
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(0, 217, 217, 0.8)) !important;
}

.header-glosario-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 217, 217, 0.08);
  border: 1px solid rgba(0, 217, 217, 0.4);
  color: var(--ai-cyan);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.45rem 1.4rem;
  border-radius: 50px;
  cursor: pointer !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.header-glosario-btn:hover {
  cursor: pointer !important;
  background: rgba(0, 217, 217, 0.18);
  box-shadow: 0 0 18px rgba(0, 217, 217, 0.25);
}
.header-glosario-btn.active {
  background: rgba(0, 217, 217, 0.22);
  box-shadow: 0 0 18px rgba(0, 217, 217, 0.3);
}

.glosario-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.glosario-modal.open {
  display: flex;
}
.glosario-modal__content {
  background: rgba(10, 18, 36, 0.98);
  border: 1px solid rgba(0, 217, 217, 0.25);
  border-radius: 20px;
  padding: 2rem 2.5rem 2.5rem;
  max-width: 680px;
  width: 92%;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 217, 217, 0.1);
  animation: fadeInUp 0.25s ease;
}
.glosario-modal__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* Sections */
section {
  padding: 8rem 2rem 4rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* Module Hero */
.module-hero {
  background: var(--hero-gradient);
  color: white;
  text-align: center;
  border-radius: 30px;
  padding: 6rem 3rem;
  margin-bottom: 4rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
              0 0 100px rgba(0, 123, 255, 0.25),
              0 0 80px rgba(168, 99, 144, 0.2),
              inset 0 0 80px rgba(255, 255, 255, 0.05);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 0.8s forwards ease-out;
  position: relative;
  overflow: hidden;
}

.module-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 217, 217, 0.08) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.module-hero h1 {
  font-family: var(--e-font-h);
  font-size: 5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
               0 0 60px rgba(255, 255, 255, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                 0 0 60px rgba(255, 255, 255, 0.3);
  }
  to {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                 0 0 80px rgba(168, 99, 144, 0.6),
                 0 0 100px rgba(0, 123, 255, 0.4);
  }
}

.module-hero p {
  font-size: 1.8rem;
  font-weight: 400;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Typography elements */
h2 {
  font-family: var(--e-font-h);
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 0 15px rgba(240, 147, 251, 0.6), 0 0 30px rgba(0, 123, 255, 0.4);
  margin: 3rem 0 2rem 0;
  position: relative;
  display: inline-block;
  animation: fadeInLeft 0.6s ease-out;
}

/* Texto h2 dentro del hero en blanco sólido */
.module-hero h2 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Asegurar que TODO el texto dentro del hero sea blanco */
.module-hero h2 span {
  color: #FFFFFF !important;
}

.module-hero p,
.module-hero p strong {
  color: #FFFFFF !important;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 5px;
  background: linear-gradient(90deg, var(--ai-purple) 0%, var(--ai-blue) 50%, transparent 100%);
  border-radius: 3px;
  box-shadow: 0 0 15px rgba(168, 99, 144, 0.6);
}

p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

ul {
  margin: 1.5rem 0 2rem 2.5rem;
  font-size: 1.3rem;
  color: #d0d0d0;
}

li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--ai-purple);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Cards / Blocks (Glassmorphism) */
.content-block {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(0, 123, 255, 0.15),
              0 0 30px rgba(168, 99, 144, 0.1),
              inset 0 0 20px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.content-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(168, 99, 144, 0.08) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.content-block:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
              0 0 40px rgba(0, 123, 255, 0.3),
              0 0 50px rgba(168, 99, 144, 0.25),
              inset 0 0 30px rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 99, 144, 0.3);
}

.content-block:hover::before {
  transform: rotate(45deg) translate(50%, 50%);
}

.content-block h3 {
  font-family: var(--h-font-h);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ai-cyan);
  text-shadow: 0 0 15px rgba(0, 217, 217, 0.5);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

/* Prompts / Code blocks */
.prompt-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(103, 126, 234, 0.3);
  overflow: hidden;
  border: 1px solid rgba(103, 126, 234, 0.3);
}

.prompt-container::before {
  content: 'PROMPT';
  position: absolute;
  top: 0;
  left: 0;
  background: var(--dark-gradient);
  color: white;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 0.5rem 1.2rem;
  border-bottom-right-radius: 12px;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.prompt-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(240, 147, 251, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.prompt-container pre {
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  color: #e6e6e6;
  font-size: 1.1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.copy-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, rgba(103, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.copy-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(103, 126, 234, 0.5);
}

/* Materials Section */
.materials-section {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: white;
  padding: 8rem 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.materials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(103, 126, 234, 0.2) 0%, transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(240, 147, 251, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.materials-section h2 {
  color: white;
  filter: drop-shadow(0 0 20px rgba(240, 147, 251, 0.6));
}

.materials-section h2::after {
  background: linear-gradient(90deg, #f093fb 0%, transparent 100%);
  box-shadow: 0 0 20px rgba(240, 147, 251, 0.8);
}

.materials-section .content-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f0f0f0;
}

.materials-section .content-block h3 {
  color: #f093fb;
  text-shadow: 0 0 15px rgba(240, 147, 251, 0.5);
}

.materials-section p {
  color: #d8d8d8;
}

.materials-section ul {
  color: #d8d8d8;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* Icon Styles */
h2::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 1rem;
  color: #f093fb;
  text-shadow: 0 0 15px rgba(240, 147, 251, 0.6);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 12, 41, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(103, 126, 234, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
  box-shadow: 0 0 20px rgba(240, 147, 251, 0.8);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--ai-blue) 0%, var(--ai-purple) 50%, var(--ai-violet) 100%);
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 0 20px rgba(168, 99, 144, 0.8);
}

/* Floating Particles Background */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: rgba(168, 99, 144, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(168, 99, 144, 0.8);
}

/* Subtle pulsing effect for module hero */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(103, 126, 234, 0.3),
                inset 0 0 80px rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 120px rgba(103, 126, 234, 0.5),
                inset 0 0 100px rgba(255, 255, 255, 0.08);
  }
}

.module-hero {
  animation: fadeUp 0.8s forwards ease-out, pulse 4s infinite ease-in-out;
}

/* Add shine effect to content blocks */
@keyframes shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.content-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.content-block:hover::after {
  left: 100%;
}

/* Enhanced list items with icons */
li {
  transition: all 0.3s ease;
}

li:hover {
  transform: translateX(10px);
  color: #fff;
}

li:hover::before {
  color: #ffd1ff;
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(240, 147, 251, 0.8);
}

/* Botones Interactivos */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ai-cyan) 0%, var(--ai-teal) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 217, 217, 0.4);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 217, 217, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--ai-purple) 0%, var(--ai-violet) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(168, 99, 144, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(168, 99, 144, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--ai-cyan);
  border: 2px solid var(--ai-cyan);
  box-shadow: 0 0 20px rgba(0, 217, 217, 0.3);
}

.btn-outline:hover {
  background: var(--ai-cyan);
  color: var(--pdf-darker);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 30px rgba(0, 217, 217, 0.6);
}

/* Cards Mejoradas con Iconos Grandes */
.feature-card {
  background: rgba(0, 217, 217, 0.05);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 217, 217, 0.2);
  border-radius: 25px;
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 217, 217, 0.1) 0%, transparent 70%);
  transition: all 0.6s ease;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--ai-cyan);
  box-shadow: 0 20px 60px rgba(0, 217, 217, 0.3),
              0 0 50px rgba(0, 217, 217, 0.2);
}

.feature-card:hover::before {
  top: -25%;
  right: -25%;
}

.feature-card .icon {
  font-size: 4rem;
  color: var(--ai-cyan);
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 20px rgba(0, 217, 217, 0.6));
  animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
  color: var(--ai-cyan);
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 217, 217, 0.5);
}

.feature-card p {
  color: #d0d0d0;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Stats Cards */
.stat-card {
  background: linear-gradient(135deg, rgba(0, 217, 217, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
  border: 2px solid rgba(0, 217, 217, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  border-color: var(--ai-cyan);
  box-shadow: 0 15px 40px rgba(0, 217, 217, 0.4);
}

.stat-card .number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--ai-cyan);
  text-shadow: 0 0 30px rgba(0, 217, 217, 0.8);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-card .label {
  font-size: 1.3rem;
  color: #e0e0e0;
  font-weight: 600;
}

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

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

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin: 3rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ai-cyan) 0%, var(--ai-teal) 100%);
  box-shadow: 0 0 20px rgba(0, 217, 217, 0.6);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.5rem;
  top: 0.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ai-cyan);
  box-shadow: 0 0 20px rgba(0, 217, 217, 0.8);
  border: 4px solid var(--pdf-darker);
}

.timeline-item h3 {
  color: var(--ai-cyan);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* Badges/Tags */
.badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--ai-cyan) 0%, var(--ai-teal) 100%);
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0.5rem 0.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 217, 217, 0.4);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 217, 217, 0.6);
}

/* Info Boxes */
.info-box {
  background: rgba(0, 217, 217, 0.08);
  border-left: 5px solid var(--ai-cyan);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: '\f05a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  color: rgba(0, 217, 217, 0.1);
}

.info-box.success {
  border-left-color: var(--ai-green);
  background: rgba(16, 185, 129, 0.08);
}

.info-box.warning {
  border-left-color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
}

/* Modals / Popups */
.tech-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-modal.show {
  display: flex;
  opacity: 1;
}

.tech-modal-content {
  background: var(--bg-gradient);
  border: 1px solid rgba(0, 217, 217, 0.3);
  border-radius: 20px;
  padding: 3rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(0, 217, 217, 0.2);
  transform: translateY(30px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-modal.show .tech-modal-content {
  transform: translateY(0) scale(1);
}

.zoom-content {
  max-width: 720px;
  max-height: 82vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* El botón X sale del posicionamiento absoluto y se convierte
   en cabecera fija en la parte superior del flex */
.zoom-content .tech-modal-close {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  align-self: flex-end;
  flex-shrink: 0;
  margin: 0.8rem 0.8rem 0;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
}

#zoom-modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 0.4rem 1.5rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 217, 217, 0.3) transparent;
}

#zoom-modal-body::-webkit-scrollbar { width: 5px; }
#zoom-modal-body::-webkit-scrollbar-track { background: transparent; }
#zoom-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 217, 217, 0.3);
  border-radius: 10px;
}

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

.tech-modal-close:hover {
  background: rgba(255, 75, 75, 0.8);
  transform: scale(1.1);
}

#tech-modal-title {
  font-family: var(--e-font-h);
  color: var(--ai-cyan);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  margin-right: 2rem;
}

#tech-modal-desc {
  font-size: 1.2rem;
  color: #e0e0e0;
  line-height: 1.8;
}

/* Clickable Badges */
.tech-words-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.tech-word-badge {
  background: rgba(0, 217, 217, 0.1);
  border: 1px solid rgba(0, 217, 217, 0.3);
  color: var(--ai-cyan);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tech-word-badge:hover {
  background: linear-gradient(135deg, var(--ai-cyan) 0%, var(--ai-teal) 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 217, 217, 0.4);
}

/* Prompt Enlarge logic */
.prompt-container {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.prompt-container:hover {
  transform: scale(1.02);
}

.zoom-content .prompt-container {
  margin: 0;
  padding: 2rem 1.5rem 1.5rem;
  transform: none;
  cursor: default;
}

/* ── Toggle de outputs dentro del slider ── */
.prompt-output-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 1.2rem 0 0.6rem;
}

.prompt-output-toggle {
  background: linear-gradient(135deg, rgba(0, 217, 217, 0.12) 0%, rgba(0, 100, 150, 0.12) 100%);
  border: 1px solid rgba(0, 217, 217, 0.35);
  color: var(--ai-cyan);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.prompt-output-toggle:hover {
  background: linear-gradient(135deg, rgba(0, 217, 217, 0.25) 0%, rgba(0, 100, 150, 0.25) 100%);
  border-color: var(--ai-cyan);
  box-shadow: 0 0 14px rgba(0, 217, 217, 0.2);
}

.prompt-output-panel {
  margin-bottom: 0.5rem;
}

.prompt-output-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.prompt-output-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ai-cyan);
}

.prompt-output-close {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ff6b6b;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.prompt-output-close:hover {
  background: rgba(255, 107, 107, 0.25);
  border-color: #ff6b6b;
}

.prompt-output-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.prompt-output-col__label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #e0e0e0;
}

.prompt-output-box {
  position: relative;
  background: linear-gradient(135deg, #0d1f2d 0%, #0a1a28 100%);
  border: 1px solid rgba(0, 217, 217, 0.2);
  border-radius: 14px;
  padding: 2.2rem 1.4rem 1.4rem;
  height: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.prompt-output-box:hover {
  border-color: rgba(0, 217, 217, 0.5);
}

.prompt-output-copy {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(0, 217, 217, 0.15);
  border: 1px solid rgba(0, 217, 217, 0.35);
  color: var(--ai-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-output-copy:hover {
  background: rgba(0, 217, 217, 0.28);
}

.prompt-output-box pre {
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  color: #c8e8e8;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.65;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 217, 217, 0.35) transparent;
}

.prompt-output-box pre::-webkit-scrollbar { width: 4px; }
.prompt-output-box pre::-webkit-scrollbar-track { background: transparent; }
.prompt-output-box pre::-webkit-scrollbar-thumb {
  background: rgba(0, 217, 217, 0.35);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .prompt-output-cols { grid-template-columns: 1fr; }
}

.zoom-content pre {
  font-size: 0.95rem;
}

/* Output en popup — mismo contenedor reutilizado */
.zoom-output-box {
  background: linear-gradient(135deg, #0d1f2d 0%, #0a1a28 100%);
  border: 1px solid rgba(0, 217, 217, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
}

.zoom-output-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ai-cyan);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zoom-output-box pre {
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 0.92rem;
  color: #c8e8e8;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.7;
  margin: 0;
}

.zoom-output-copy {
  display: block;
  margin: 1.2rem auto 0;
  background: rgba(0, 217, 217, 0.15);
  border: 1px solid rgba(0, 217, 217, 0.35);
  color: var(--ai-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zoom-output-copy:hover {
  background: rgba(0, 217, 217, 0.28);
}

/* Responsive */
@media (max-width: 768px) {
  .module-hero h1 { font-size: 3rem; }
  .module-hero p { font-size: 1.3rem; }
  .module-hero { padding: 4rem 2rem; }
  header { flex-direction: column; gap: 1rem; padding: 1rem; }
  header img.logo { height: 35px; }
  section { padding: 8rem 1rem 3rem 1rem; }
  h2 { font-size: 2.2rem; }
  p { font-size: 1.2rem; }
  ul { font-size: 1.2rem; }
  .content-block { padding: 2rem; }
  .prompt-container { padding: 2rem; }

  /* Disable parallax on mobile */
  .content-block {
    transform: none !important;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card .icon {
    font-size: 3rem;
  }

  .stat-card .number {
    font-size: 3rem;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }
}

/* ============================================================
   PROMPT SLIDER — Módulo 1: Casos malo vs bueno
   Añadido sobre el estado actual, sin tocar nada anterior
   ============================================================ */

.prompt-slider {
  background: var(--glass-bg);
  border: 1px solid rgba(0, 217, 217, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  margin: 0 0 3rem 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 217, 217, 0.1);
}

.prompt-slider__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 2.4rem;
  background: rgba(0, 217, 217, 0.08);
  border-bottom: 1px solid rgba(0, 217, 217, 0.15);
  gap: 1rem;
}

.prompt-slider__case-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ai-cyan);
  letter-spacing: 0.02em;
}

.prompt-slider__counter {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  background: rgba(0, 217, 217, 0.1);
  border: 1px solid rgba(0, 217, 217, 0.2);
  border-radius: 20px;
  padding: 0.3rem 1rem;
}

.prompt-slider__viewport {
  overflow: hidden;
  width: 100%;
}

.prompt-slider__track {
  display: flex;
  width: 400%; /* 4 slides × 100% */
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.prompt-slider__slide {
  width: 25%; /* 100% / 4 slides */
  padding: 2.4rem 5rem;
  box-sizing: border-box;
  flex-shrink: 0;
}

.prompt-slider__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.prompt-slider__col {
  display: flex;
  flex-direction: column;
}

/* Prompt containers dentro del slider: altura fija con scroll interno */
.prompt-slider .prompt-container {
  margin: 0.8rem 0 0 0;
  padding: 2.5rem 2rem 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.prompt-slider .prompt-container pre {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 1.5rem;
  flex: 1;
  overflow-y: auto;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 217, 217, 0.4) transparent;
}

.prompt-slider .prompt-container pre::-webkit-scrollbar {
  width: 5px;
}

.prompt-slider .prompt-container pre::-webkit-scrollbar-track {
  background: transparent;
}

.prompt-slider .prompt-container pre::-webkit-scrollbar-thumb {
  background: rgba(0, 217, 217, 0.4);
  border-radius: 10px;
}

/* La columna del prompt simple no necesita scroll */
.prompt-slider .prompt-slider__col:first-child .prompt-container pre {
  overflow-y: visible;
  max-height: none;
}

.prompt-slider__label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.prompt-slider__label--bad {
  color: #ff6b6b;
}

.prompt-slider__label--good {
  color: var(--ai-green);
}

.prompt-slider__note {
  font-size: 1.05rem;
  color: #c0c0c0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.6;
}

.prompt-slider__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 2.4rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prompt-slider__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  background: rgba(0, 217, 217, 0.12);
  border: 1px solid rgba(0, 217, 217, 0.3);
  border-radius: 8px;
  color: var(--ai-cyan);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
}

.prompt-slider__btn:hover {
  background: rgba(0, 217, 217, 0.22);
  border-color: rgba(0, 217, 217, 0.5);
}

.prompt-slider__btn:disabled,
.prompt-slider__btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Flechas laterales de navegación táctil */
.prompt-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 8, 18, 0.6);
  border: 1px solid rgba(0, 217, 217, 0.38);
  color: rgba(0, 217, 217, 0.92);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow:
    0 0 18px rgba(0, 217, 217, 0.18),
    0 4px 18px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: inherit;
}

.prompt-slider__arrow--prev {
  left: 10px;
}

.prompt-slider__arrow--next {
  right: 10px;
}

.prompt-slider__arrow:hover {
  background: rgba(0, 217, 217, 0.16);
  border-color: rgba(0, 217, 217, 0.65);
  box-shadow:
    0 0 28px rgba(0, 217, 217, 0.32),
    0 4px 22px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(-50%) scale(1.09);
}

.prompt-slider__arrow:active {
  transform: translateY(-50%) scale(0.93);
  background: rgba(0, 217, 217, 0.22);
}

.prompt-slider__arrow:disabled,
.prompt-slider__arrow[disabled] {
  opacity: 0.18;
  cursor: not-allowed;
  pointer-events: none;
}

.prompt-slider__dots {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.prompt-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.prompt-slider__dot--active {
  background: var(--ai-cyan);
  border-color: var(--ai-cyan);
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(0, 217, 217, 0.5);
}

/* Responsive: en móvil el grid malo/bueno se apila */
@media (max-width: 768px) {
  .prompt-slider__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .prompt-slider__header {
    padding: 1.2rem 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .prompt-slider__case-title {
    font-size: 1.3rem;
  }

  .prompt-slider__slide {
    padding: 1.4rem 3.8rem;
  }

  .prompt-slider__nav {
    padding: 1rem 1.4rem;
  }

  .prompt-slider__arrow {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }

  .prompt-slider__arrow--prev {
    left: 6px;
  }

  .prompt-slider__arrow--next {
    right: 6px;
  }

  .prompt-slider__dot {
    width: 12px;
    height: 12px;
  }
}

/* ============================================================
   MÓDULO 2 — Audio player & file cards
   ============================================================ */

/* Stat card clickable (nota de voz) */
.voice-note-trigger:hover {
  border-color: var(--ai-cyan);
  box-shadow: 0 0 30px rgba(0, 217, 217, 0.35);
}

/* File cards */
.file-card {
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}
.file-card:hover {
  transform: translateY(-4px);
  border-color: var(--ai-cyan);
  box-shadow: 0 12px 32px rgba(0, 217, 217, 0.3);
}

/* Custom audio player */
.custom-audio-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 217, 217, 0.08);
  border: 1px solid rgba(0, 217, 217, 0.3);
  border-radius: 50px;
  padding: 0.8rem 1.4rem;
}

.audio-play-btn {
  background: var(--ai-cyan);
  border: none;
  color: #0a0a1a;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audio-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(0, 217, 217, 0.6);
}

.audio-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.audio-progress {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ai-cyan);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 217, 217, 0.7);
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #aaa;
}

/* File preview modal content pre-wrap */
#file-preview-content h1,
#file-preview-content h2,
#file-preview-content h3 {
  color: var(--ai-cyan);
  margin: 1.2rem 0 0.5rem;
}
#file-preview-content strong { color: #fff; }
#file-preview-content code {
  background: rgba(255,255,255,0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95em;
}
