/* ===== SWEETALERT CUSTOM STYLES ===== */
.swal-exam-popup {
  border-radius: 16px !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  z-index: 9999 !important;
}

/* SweetAlert2 backdrop z-index */
.swal2-backdrop {
  z-index: 9998 !important;
}

/* SweetAlert2 container z-index */
.swal2-container {
  z-index: 9999 !important;
}

/* ===== SWEETALERT FEEDBACK STYLES ===== */
.swal-feedback-popup {
  border-radius: 16px !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  z-index: 9999 !important;
}

.swal-feedback-title {
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  margin-bottom: 1rem !important;
}

.swal-feedback-content {
  color: var(--text-secondary) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.swal-feedback-confirm {
  background: var(--primary-color) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.8rem 2rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

.swal-feedback-confirm:hover {
  background: var(--accent-color) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(22, 141, 135, 0.3) !important;
}

/* Feedback-specific colors */
.swal2-popup.swal2-success .swal-feedback-title {
  color: #059669 !important;
}

.swal2-popup.swal2-error .swal-feedback-title {
  color: #dc2626 !important;
}

.swal2-popup.swal2-warning .swal-feedback-title {
  color: #f59e0b !important;
}

.swal-exam-title {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
}

.swal-exam-content {
  color: var(--text-secondary) !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
}

.swal-exam-confirm {
  background: var(--secondary-color) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.8rem 2rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

.swal-exam-confirm:hover {
  background: #b91c1c !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3) !important;
}

.swal-exam-cancel {
  background: var(--primary-color) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.8rem 2rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

.swal-exam-cancel:hover {
  background: var(--accent-color) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(22, 141, 135, 0.3) !important;
}

.swal-exam-actions {
  gap: 1rem !important;
  margin-top: 1.5rem !important;
}

.swal-exam-confirm i,
.swal-exam-cancel i {
  margin-right: 0.5rem !important;
}

/* Responsive SweetAlert */
@media (max-width: 768px) {
  .swal-exam-popup {
    width: 90% !important;
    margin: 0 auto !important;
  }
  
  .swal-exam-title {
    font-size: 1.3rem !important;
  }
  
  .swal-exam-content {
    font-size: 1rem !important;
  }
  
  .swal-exam-confirm,
  .swal-exam-cancel {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
}

/* ===== RESET Y CONFIGURACIÓN BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #0a0e27;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta de colores sólidos y claros */
  --primary-color: #168d87; /* verde turquesa */
  --primary-dark: #168d87;
  --secondary-color: #dc2626; /* Rojo sólido */
  --accent-color: #059669; /* Verde sólido */
  --warning-color: #d97706; /* Naranja sólido */
  
  /* Colores de fondo claros */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-dark: #1f2937;
  
  /* Colores de texto con mejor contraste */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-white: #ffffff;
  
  /* Sombras suaves */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
  
  /* Bordes */
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 16px;
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== TIPOGRAFÍA ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0e27;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  /* Mejorar scroll en móvil */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Mejoras en las transiciones de scroll */
* {
  scroll-margin-top: 100px;
}

/* Animaciones mejoradas para elementos dentro de las secciones */
.service-card,
.tech-category,
.benefit-card,
.contact-item,
.course-card,
.project-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.animate-in,
.tech-category.animate-in,
.benefit-card.animate-in,
.contact-item.animate-in,
.course-card.animate-in,
.project-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animación escalonada para elementos en grid */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

/* ===== CONTENEDORES ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ===== HEADER CORPORATIVO ===== */
.main-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  /* Asegurar que el header esté siempre por encima del contenido */
}

.main-header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  padding: 0.75rem 0;
  max-width: 100%;
  margin: 0;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1002;
  flex-shrink: 0;
}

.logo-img {
  width: 120px;
  height: 45px;
  object-fit: contain;
  margin-left: 0;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

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

.navbar {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: flex-end;
  flex-shrink: 0;
  width: auto;
  margin-left: auto;
  margin-right: 0;
  padding-right: 0;
  max-width: none;
  position: relative;
}

/* Selector de idioma - Dropdown independiente */
.language-selector {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 1001;
  margin-left: 1rem;
  margin-right: 0;
  padding-right: 0;
  flex-shrink: 0;
}

/* Selector de idioma en el header-container */
.header-container .language-selector {
  position: static;
  transform: none;
  margin-left: 1rem;
  margin-right: 0;
  padding-right: 0;
}

/* Botón toggle del dropdown */
.lang-btn-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 60px;
}

.lang-btn-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-btn-toggle .lang-chevron {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

/* Dropdown menu */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 0.9rem;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
  background: rgba(78, 201, 176, 0.2);
  color: var(--primary-color);
}

.lang-option .flag-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.flag-icon {
  font-size: 1.2rem;
  line-height: 1;
  font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  display: inline-block;
  vertical-align: middle;
}

.flag-mx,
.flag-us {
  font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
}

/* Responsive para selector de idioma */
@media (max-width: 768px) {
  /* Mover las banderas al header en móvil - lado derecho, opuesto a hamburguesa */
  .language-selector {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    z-index: 1002 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: 3;
  }
  
  /* Selector de idioma en el header container directamente - móvil */
  .header-container .language-selector {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: 0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: 3 !important;
  }
  
  /* Asegurar que el selector siempre sea visible en el header */
  .main-header .language-selector {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .lang-btn-toggle {
    padding: 0.4rem 0.6rem;
    min-width: 50px;
    height: 40px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .lang-dropdown {
    right: 0 !important;
    min-width: 120px;
  }
  
  .flag-icon {
    font-size: 1rem;
    display: inline-block !important;
  }
  
  /* Ajustar el header container para incluir las banderas */
  .header-container {
    position: relative !important;
    padding-right: 5rem !important; /* Espacio para las banderas */
  }
  
  /* Asegurar que las banderas estén visibles en el header móvil */
  .branding {
    flex: 1;
    min-width: 0; /* Permitir que se reduzca */
    order: 1 !important;
  }
  
  .navbar {
    display: none !important; /* Ocultar navbar en móvil, se muestra en mobile-menu */
    order: 2 !important;
  }
  
  /* Asegurar que el logo no se superponga con las banderas */
  .logo-img {
    max-width: 100px;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 1rem 1.2rem;
  transition: var(--transition-normal);
  position: relative;
  border: none;
  background: transparent;
}

.nav-links li:last-child a {
  padding-right: 0;
}

.nav-links a:hover {
  color: var(--primary-color);
  background: transparent;
  transform: none;
  box-shadow: none;
  border: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 60%;
}

.nav-links a.active::after {
  width: 60%;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4rem;
  margin: 0;
  background: #0a0e27;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

/* Fondo: una sola luz fría arriba a la izquierda y una trama de puntos muy tenue.
   Nada de blobs ni gradientes de texto. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(22, 141, 135, 0.22), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(30, 64, 175, 0.18), transparent 60%),
    linear-gradient(180deg, #0a0e27 0%, #0b1226 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem 4rem;
  align-items: center;
}

/* ----- Columna de texto ----- */
.hero-content {
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fadeInUp 0.7s ease-out both;
}

.hero-eyebrow::before {
  content: '';
  width: 2.25rem;
  height: 2px;
  background: #f39c2b;
  border-radius: 2px;
}

.hero-title {
  margin: 0 0 1.5rem;
  color: #ffffff;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title em {
  font-style: normal;
  color: #7fe3dc;
}

.hero-subtext {
  margin: 0 0 2.25rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.125rem;
  line-height: 1.65;
  text-wrap: pretty;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-btn.primary {
  background: var(--primary-color);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(22, 141, 135, 0.35);
}

.hero-btn.primary:hover {
  background: #1aa39c;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(22, 141, 135, 0.45);
}

.hero-btn.secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-btn.secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.hero-btn i {
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.hero-btn:hover i {
  transform: translateX(3px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-proof li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 1.75rem 0 0;
  margin-right: 1.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-proof li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero-proof strong {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ----- Columna visual: tres sistemas reales apilados ----- */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  animation: fadeInUp 0.9s ease-out 0.25s both;
}

.hero-shot {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b1220;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.hero-shot-back {
  top: 0;
  right: 0;
  width: 72%;
  aspect-ratio: 16 / 10;
  opacity: 0.55;
  transform: translate(0, 0) scale(0.96);
}

.hero-shot-mid {
  top: 14%;
  right: 8%;
  width: 78%;
  aspect-ratio: 16 / 10;
  opacity: 0.8;
}

.hero-shot-front {
  top: 30%;
  left: 0;
  width: 86%;
  aspect-ratio: 16 / 10;
  border-color: rgba(127, 227, 220, 0.45);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-shot-caption {
  position: absolute;
  left: 0;
  bottom: -1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(10, 14, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-shot-caption strong {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-shot-caption span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
}

.hero-shot-caption .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
  vertical-align: middle;
}

/* ----- Clientes ----- */
.hero-trust {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-trust-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-trust ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .hero-proof li {
    padding-right: 1.1rem;
    margin-right: 1.1rem;
  }

  .hero-proof strong {
    font-size: 1.35rem;
  }

  .hero-proof span {
    font-size: 0.74rem;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 6.5rem 0 3rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: none;
  }

  .hero-visual {
    max-width: 560px;
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 6rem 0 2.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .hero-buttons .hero-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-proof {
    gap: 0.75rem 0;
  }

  .hero-proof li {
    flex: 1 1 30%;
    padding-right: 0.75rem;
    margin-right: 0.75rem;
  }

  .hero-proof strong {
    font-size: 1.25rem;
  }

  .hero-proof span {
    font-size: 0.7rem;
  }

  .hero-visual {
    aspect-ratio: 16 / 12;
    margin-bottom: 1rem;
  }

  .hero-shot-caption {
    bottom: -1.5rem;
  }

  .hero-trust ul {
    gap: 0.5rem 1.1rem;
  }

  .hero-trust li {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-subtext, .hero-buttons, .hero-proof, .hero-visual, .hero-trust {
    animation: none;
  }
}


/* Variaciones de animación para parpadeo aleatorio - destellos rápidos pero menos frecuentes */
@keyframes starTwinkle1 {
  0%, 85%, 100% { opacity: 0.4; transform: scale(1); }
  86% { opacity: 1; transform: scale(1.5); }
  87% { opacity: 0.5; transform: scale(1); }
  88% { opacity: 0.9; transform: scale(1.4); }
  89% { opacity: 0.4; transform: scale(1); }
}

@keyframes starTwinkle2 {
  0%, 80%, 100% { opacity: 0.4; transform: scale(1); }
  81% { opacity: 0.8; transform: scale(1.3); }
  82% { opacity: 1; transform: scale(1.5); }
  83% { opacity: 0.5; transform: scale(1); }
  84% { opacity: 0.7; transform: scale(1.25); }
  85% { opacity: 0.4; transform: scale(1); }
}

@keyframes starTwinkle3 {
  0%, 75%, 100% { opacity: 0.4; transform: scale(1); }
  76% { opacity: 1; transform: scale(1.5); }
  77% { opacity: 0.6; transform: scale(1); }
  78% { opacity: 0.9; transform: scale(1.4); }
  79% { opacity: 0.4; transform: scale(1); }
}

@keyframes starTwinkle4 {
  0%, 90%, 100% { opacity: 0.4; transform: scale(1); }
  91% { opacity: 0.6; transform: scale(1.2); }
  92% { opacity: 1; transform: scale(1.5); }
  93% { opacity: 0.5; transform: scale(1.1); }
  94% { opacity: 0.8; transform: scale(1.35); }
  95% { opacity: 0.4; transform: scale(1); }
}

@keyframes starTwinkle5 {
  0%, 88%, 100% { opacity: 0.4; transform: scale(1); }
  89% { opacity: 1; transform: scale(1.5); }
  90% { opacity: 0.5; transform: scale(1); }
  91% { opacity: 0.9; transform: scale(1.4); }
  92% { opacity: 0.4; transform: scale(1); }
}


@keyframes floatTag {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(calc(var(--float-y-1, -40px))) translateX(calc(var(--float-x-1, 30px))) rotate(calc(var(--rotate-1, 3deg))) scale(1.05);
  }
  50% {
    transform: translateY(calc(var(--float-y-2, -80px))) translateX(calc(var(--float-x-2, -25px))) rotate(calc(var(--rotate-2, -3deg))) scale(1);
  }
  75% {
    transform: translateY(calc(var(--float-y-3, -50px))) translateX(calc(var(--float-x-3, 15px))) rotate(calc(var(--rotate-3, 2deg))) scale(1.02);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
}


@keyframes hero-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}


.gradient-text {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(25, 161, 155, 0.5);
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', 'Monaco', 'Consolas', monospace;
}


.hero-background-video {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: cover;
  z-index: 0;
  filter: blur(3px);
  /* Prevenir que el video se abra en ventana separada en móvil */
  pointer-events: none;
  /* Asegurar que cubra completamente sin espacios blancos */
  min-width: 100%;
  min-height: 100%;
}

.hero-background-overlay {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: transparent;
  z-index: 1;
  /* Asegurar que cubra completamente sin espacios blancos */
  width: calc(100% + 20px);
  height: calc(100% + 20px);
}


/* Video background visible en todas las secciones */
.hero-background-video {
  display: block;
}


/* ===== SECCIONES GENERALES DISRUPTIVAS ===== */
.section {
  padding: 6rem 0;
  position: relative;
  min-height: auto;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.active-section,
.section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section .container {
  position: relative;
  z-index: 2;
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.section.active-section .container,
.section.animate-in .container {
  opacity: 1;
  transform: translateY(0);
}

.projects-section {
  overflow: visible;
  padding-bottom: 8rem;
  position: relative;
}

.projects-section .container {
  position: relative;
  z-index: 1;
}

.section.alt {
  background: transparent;
}

.section:not(#inicio) {
  position: relative;
  overflow: hidden;
}

/* La sección activa debe permitir overflow visible para que su contenido
   no quede clipeado cuando excede el viewport en modo SPA. */
.section:not(#inicio).active-section {
  overflow: visible;
}

.section:not(#inicio)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  opacity: 0.5;
}

.section:not(#inicio)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 14, 39, 0.98) 100%),
    radial-gradient(circle at 20% 80%, rgba(197, 134, 192, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 201, 176, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 10% 10%, rgba(197, 134, 192, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(78, 201, 176, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.section-header {
  text-align: left;
  margin-bottom: 3rem;
  position: relative;
  max-width: 800px;
  margin-left: 0;
  margin-right: auto;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  border-radius: 0;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #ffffff;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  padding-left: 2rem;
  letter-spacing: -0.02em;
}

.section-header h2::after {
  display: none;
}

.section-subtitle {
  font-size: 1rem;
  color: #e2e8f0;
  max-width: 600px;
  margin: 0;
  margin-left: 2rem;
  line-height: 1.5;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

/* ===== SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  min-height: auto;
  position: relative;
  margin-bottom: 2.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-tech);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-tech);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(22, 141, 135, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.service-card:hover::before {
  opacity: 0.1;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  margin-right: 1rem;
  font-size: 1.4rem;
  color: white;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

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

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: var(--shadow-cyber);
  animation: hologram 1s ease-in-out infinite;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #ffffff;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  flex-grow: 1;
}

.service-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-features li {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.4rem;
  padding-left: 1.8rem;
  position: relative;
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1rem;
  background: rgba(37, 99, 235, 0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(37, 99, 235, 0.2);
}

.service-card:hover .service-features li::before {
  background: var(--primary-color);
  color: white;
  transform: scale(1.15);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}

/* ===== TECNOLOGÍAS ===== */
.technologies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  position: relative;
}

.tech-category {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.tech-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-tech);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tech-category:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(5, 150, 105, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.tech-category:hover::before {
  opacity: 0.1;
}

.tech-category h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  gap: 0.8rem;
  position: relative;
}

.tech-category h3 i {
  color: var(--primary-color);
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.tech-category:hover h3 i {
  transform: scale(1.1) rotate(5deg);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-item {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.8rem 1.4rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(37, 99, 235, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tech-item::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 ease;
}

.tech-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-color);
}

.tech-item:hover::before {
  left: 100%;
}

/* ===== TECHNOLOGIES - SINGLE COLUMN WITH CLEAR AREAS ===== */
.technologies-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(255, 255, 255, 0.1) 50%, #ffffff 100%);
  position: relative;
}

.technologies-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(22, 141, 135, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  z-index: -1;
}

.technologies-compact {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.tech-category-compact {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Backend - Green/Blue Gradient */
.tech-category-compact:nth-child(1) {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 197, 94, 0.2) inset, 0 0 40px rgba(34, 197, 94, 0.1);
}

.tech-category-compact:nth-child(1):hover {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 197, 94, 0.3) inset, 0 0 60px rgba(34, 197, 94, 0.2);
  transform: translateY(-8px) scale(1.02);
}

/* Frontend - Purple/Pink Gradient */
.tech-category-compact:nth-child(2) {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(168, 85, 247, 0.2) inset, 0 0 40px rgba(168, 85, 247, 0.1);
}

.tech-category-compact:nth-child(2):hover {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(168, 85, 247, 0.3) inset, 0 0 60px rgba(168, 85, 247, 0.2);
  transform: translateY(-8px) scale(1.02);
}

/* Mobile - Orange/Red Gradient */
.tech-category-compact:nth-child(3) {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(249, 115, 22, 0.2) inset, 0 0 40px rgba(249, 115, 22, 0.1);
}

.tech-category-compact:nth-child(3):hover {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 115, 22, 0.3) inset, 0 0 60px rgba(249, 115, 22, 0.2);
  transform: translateY(-8px) scale(1.02);
}

/* DevOps - Cyan/Blue Gradient */
.tech-category-compact:nth-child(4) {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(6, 182, 212, 0.2) inset, 0 0 40px rgba(6, 182, 212, 0.1);
}

.tech-category-compact:nth-child(4):hover {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(6, 182, 212, 0.3) inset, 0 0 60px rgba(6, 182, 212, 0.2);
  transform: translateY(-8px) scale(1.02);
}

.tech-category-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.tech-category-compact:hover::before {
  opacity: 1;
}

.tech-category-compact::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.tech-category-compact:hover::after {
  opacity: 1;
}

.tech-category-compact:hover {
  transform: translateY(-8px) scale(1.02);
}

.tech-category-header-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Colorful category icons */
.tech-category-compact:nth-child(1) .tech-category-header-compact i {
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.tech-category-compact:nth-child(2) .tech-category-header-compact i {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.tech-category-compact:nth-child(3) .tech-category-header-compact i {
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.tech-category-compact:nth-child(4) .tech-category-header-compact i {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.tech-category-header-compact i {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tech-category-compact:hover .tech-category-header-compact i {
  transform: scale(1.1) rotate(5deg);
}

.tech-category-header-compact h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

.tech-items-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.tech-item-compact {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tech-item-compact::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.4s ease;
}

.tech-item-compact:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tech-item-compact:hover::before {
  left: 100%;
}

/* Colorful tech item icons */
.tech-item-compact:nth-child(1) i {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.4);
}

.tech-item-compact:nth-child(2) i {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}

.tech-item-compact:nth-child(3) i {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.4);
}

.tech-item-compact:nth-child(4) i {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 3px 10px rgba(6, 182, 212, 0.4);
}

.tech-item-compact:nth-child(5) i {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.4);
}

.tech-item-compact:nth-child(6) i {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

.tech-item-compact:nth-child(7) i {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

.tech-item-compact:nth-child(8) i {
  background: linear-gradient(135deg, #0070ba, #005ea6);
  box-shadow: 0 3px 10px rgba(0, 112, 186, 0.4);
}

.tech-item-compact:nth-child(9) i {
  background: linear-gradient(135deg, #635bff, #4f46e5);
  box-shadow: 0 3px 10px rgba(99, 91, 255, 0.4);
}

.tech-item-compact i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tech-item-compact:hover i {
  transform: scale(1.2) rotate(8deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tech-item-compact span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tech-item-compact:hover span {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ===== PROYECTOS ===== */
/* ===== PROYECTOS: cuadrícula filtrable ===== */
.projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.projects-filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.projects-filter:hover {
  background: rgba(22, 141, 135, 0.2);
  border-color: rgba(22, 141, 135, 0.6);
  transform: translateY(-1px);
}

.projects-filter.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 18px rgba(22, 141, 135, 0.45);
}

.projects-filter:focus-visible,
.project-card:focus-visible,
.project-modal-close:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

.projects-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.projects-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 220px;
  max-width: 360px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.6);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.projects-search:focus-within {
  border-color: rgba(22, 141, 135, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

.projects-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
}

.projects-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.projects-search input::-webkit-search-cancel-button {
  filter: invert(1);
  cursor: pointer;
}

.projects-counter {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  white-space: nowrap;
}

.projects-counter strong {
  color: #fff;
  font-size: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 141, 135, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(22, 141, 135, 0.2);
}

.project-card[hidden] {
  display: none;
}

.projects-grid.is-filtering .project-card:not([hidden]) {
  animation: projectIn 0.35s ease both;
  animation-delay: calc(var(--i, 1) * 25ms);
}

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

.project-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  overflow: hidden;
}

.project-card-media img,
.project-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-media img,
.project-card:hover .project-card-media video {
  transform: scale(1.04);
}

.project-card-cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 14, 39, 0.85);
  border: 1px solid rgba(22, 141, 135, 0.6);
  color: #5eead4;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
}

.project-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.project-card-body p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-body .project-tech {
  gap: 0.4rem;
  margin-top: auto;
}

.project-card-body .tech-tag {
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  border-width: 1px;
}

.project-card-more {
  color: #5eead4;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.8;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.project-card:hover .project-card-more {
  gap: 0.7rem;
  opacity: 1;
}

.projects-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 1rem;
  font-size: 1rem;
}

/* ----- Ficha de detalle (modal) ----- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 8, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-modal.is-open {
  opacity: 1;
}

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

body.project-modal-open {
  overflow: hidden;
}

.project-modal-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(10, 14, 39, 0.98));
  border: 1px solid rgba(22, 141, 135, 0.4);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.project-modal.is-open .project-modal-dialog {
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 14, 39, 0.8);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.project-modal-close:hover {
  background: var(--primary-color);
}

.project-modal-media {
  background: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 62vh;
}

.project-modal-media img,
.project-modal-media video {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  display: block;
}

.project-modal-media img[hidden],
.project-modal-media video[hidden] {
  display: none;
}

.project-modal-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-modal-cat {
  color: #5eead4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-modal-title {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.project-modal-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .projects-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-tools {
    justify-content: space-between;
    flex-basis: auto;
  }

  .projects-search {
    max-width: none;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
  }

  .project-modal {
    padding: 0.75rem;
  }

  .project-modal-dialog {
    max-height: calc(100vh - 1.5rem);
  }

  .project-modal-media,
  .project-modal-media img,
  .project-modal-media video {
    max-height: 45vh;
  }

  .project-modal-body {
    padding: 1.1rem 1.25rem 1.4rem;
  }

  .project-modal-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-filter {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-grid.is-filtering .project-card:not([hidden]) {
    animation: none;
  }

  .project-card,
  .project-card-media img,
  .project-card-media video {
    transition: none;
  }
}


.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.tech-tag:hover {
  background: var(--accent-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--accent-color);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.carousel-button:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-50%) scale(1.15);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--accent-color);
}

.carousel-button.prev {
  left: 25px;
}

.carousel-button.next {
  right: 25px;
}

/* ===== BENEFICIOS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  position: relative;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-tech);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.benefit-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-tech);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover::before {
  opacity: 0.1;
}

.benefit-card:hover::after {
  transform: scaleX(1);
}

.benefit-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.5);
}

.benefit-icon {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: white;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: var(--shadow-cyber);
  animation: hologram 1s ease-in-out infinite;
}

.benefit-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #ffffff;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
}

/* ===== CLASES ESPECÍFICAS PARA BENEFICIOS (EVITAR CONFLICTOS) ===== */
.benefits-benefit-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(22, 141, 135, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits-benefit-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bg-primary);
  background: var(--bg-dark);
}

.benefits-benefit-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(22, 141, 135, 0.3);
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 10px rgba(22, 141, 135, 0.15);
}

.benefits-benefit-card h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  margin-top: 0;
}

.benefits-benefit-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-size: 0.85rem;
  margin: 0;
}

.benefits-grid-custom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(22, 141, 135, 0.3);
  position: relative;
}

.benefits-grid-custom::before {
  content: attr(data-title);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.services-section .section-header {
  margin-bottom: 2rem;
}

.services-section .section-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

/* ===== COURSES SECTION - LANDING PAGE ===== */
.courses-section {
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
  padding: 4rem 0;
  margin-top: 6rem;
  scroll-margin-top: 6rem;
  position: relative;
  z-index: 1;
}

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

/* Hero Course - Excel Focus */
.hero-course {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border: 2px solid #22c55e;
  box-shadow: 
    0 0 20px rgba(34, 197, 94, 0.4),
    0 0 40px rgba(34, 197, 94, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: container-glow 3s ease-in-out infinite;
}

@keyframes container-glow {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(34, 197, 94, 0.4),
      0 0 40px rgba(34, 197, 94, 0.2),
      0 4px 16px rgba(0, 0, 0, 0.2);
    border-color: #22c55e;
  }
  50% {
    box-shadow: 
      0 0 30px rgba(34, 197, 94, 0.6),
      0 0 60px rgba(34, 197, 94, 0.3),
      0 4px 16px rgba(0, 0, 0, 0.2);
    border-color: #4ade80;
  }
}

.hero-course::before {
  display: none;
}

.hero-course-title-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.6rem;
}

.hero-course-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #217346 0%, #1e6b3d 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(33, 115, 70, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.hero-course-icon i {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-course-icon:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 12px 32px rgba(33, 115, 70, 0.5);
}

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

.course-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
  border: 2px solid #ef4444;
  box-shadow: 
    0 0 15px rgba(239, 68, 68, 0.5),
    0 0 30px rgba(239, 68, 68, 0.3);
  animation: badge-glow-red 2s ease-in-out infinite;
  position: relative;
}

@keyframes badge-glow-red {
  0%, 100% {
    box-shadow: 
      0 0 15px rgba(239, 68, 68, 0.5),
      0 0 30px rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
  }
  50% {
    box-shadow: 
      0 0 25px rgba(239, 68, 68, 0.7),
      0 0 50px rgba(239, 68, 68, 0.4);
    border-color: #f87171;
  }
}

.hero-course-title-row h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.hero-course-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.course-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.feature-item i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.feature-item:hover i {
  color: rgba(255, 255, 255, 0.9);
}

.feature-item span {
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.course-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.original-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1.2rem;
  font-weight: 500;
}

.current-price {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.8rem;
  font-weight: 700;
}

.discount {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.course-duration i {
  color: var(--primary-color);
}

.course-cta {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.btn-enroll-primary {
  background: rgba(22, 141, 135, 0.2);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(22, 141, 135, 0.4);
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-enroll-primary:hover {
  background: rgba(22, 141, 135, 0.3);
  border-color: rgba(22, 141, 135, 0.6);
}

.btn-info-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-info-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.course-testimonial {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  position: relative;
  min-height: 100px;
}

.testimonial-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.testimonial-author strong {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-weight: 600;
}

.testimonial-author span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  display: block;
  margin-top: 0.2rem;
}

.testimonial-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-indicators .indicator.active {
  background: rgba(255, 255, 255, 0.8);
  width: 24px;
  border-radius: 4px;
}

/* Courses Tabs */
.courses-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
}

.tab-button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  margin-bottom: -2px;
}

.tab-button:hover {
  color: rgba(255, 255, 255, 0.9);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-button i {
  font-size: 1.1rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block !important;
  width: 100%;
  visibility: visible;
  opacity: 1;
}

.tab-content.active .courses-grid {
  display: grid !important;
  width: 100%;
  visibility: visible;
}

.tab-content.active .course-card {
  display: flex !important;
  width: 100%;
  visibility: visible;
}

.tab-content.active .hero-course {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Asegurar que AOS no oculte los elementos dentro del tab activo */
.tab-content.active [data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
}

.tab-content.active .courses-grid [data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
}

.tab-content.active .course-card {
  opacity: 1 !important;
  visibility: visible !important;
}

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

/* Course Topics List */
.course-topics {
  margin: 1rem 0;
  padding: 0.8rem 0;
}

.topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}

.topics-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  padding: 0.5rem 0;
  line-height: 1.4;
}

.topics-list li i {
  color: var(--primary-color);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Resources Section */
.resources-section {
  padding: 2rem 0;
}

/* Nueva sección de recursos independiente */
.resources-section-main {
  padding: 6rem 0 5rem 0;
  position: relative;
  min-height: auto;
}

.resources-section-main .section-header {
  margin-bottom: 3rem;
  margin-top: 0;
  padding: 0 1rem;
  text-align: left;
}

.resources-section-main .section-header h2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-left: 0;
  margin-left: 0;
  margin-right: 0;
}

.resources-section-main .section-subtitle {
  padding: 0;
  margin: 0;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.6;
  text-align: left;
}

.resources-section-main .section-header h2 i {
  color: var(--primary-color);
}

/* Usar el mismo grid de cursos para recursos */
.resources-section-main .courses-grid {
  margin-bottom: 3rem;
  padding-bottom: 0;
  gap: 1.5rem;
}

.resources-section-main .container {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Reducir padding en las cards de recursos */
.resources-section-main .course-card {
  padding: 0.9rem;
  min-height: auto;
}

.resources-section-main .course-header {
  margin-bottom: 0.6rem;
}

.resources-section-main .course-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  padding: 0;
  line-height: 1.3;
}

.resources-section-main .course-card p {
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  padding: 0;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.resources-section-main .course-meta {
  margin-bottom: 0.6rem;
  gap: 0.3rem;
  padding: 0;
}

.resources-section-main .meta-item {
  font-size: 0.75rem;
  gap: 0.3rem;
  padding: 0;
}

.resources-section-main .course-icon {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.resources-section-main .btn-enroll {
  margin-top: 0.4rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  width: 100%;
}

.resources-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.resources-header h3 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.resources-header h3 i {
  color: var(--primary-color);
}

.resources-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.15);
}

.resource-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(22, 141, 135, 0.3);
}

.resource-info {
  flex: 1;
}

.resource-info h4 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.resource-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 193, 7, 0.4);
  white-space: nowrap;
}

.resource-badge-new i {
  color: #ffc107;
  font-size: 0.7rem;
  animation: star-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.resource-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.resource-type,
.resource-size {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.resource-type i,
.resource-size i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.btn-download-resource {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(22, 141, 135, 0.2);
  align-self: flex-end;
}

.btn-download-resource:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 141, 135, 0.4);
}

/* Courses Grid */
.courses-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Grid de cursos con clases únicas */
.cursos-section-courses-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

.cursos-section-course-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex !important;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-height: auto;
  visibility: visible !important;
  opacity: 1 !important;
}

.cursos-section-course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-tech);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.cursos-section-course-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-tech);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursos-section-course-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(22, 141, 135, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.cursos-section-course-card:hover::before {
  opacity: 0.1;
}

.cursos-section-course-card:hover::after {
  transform: scaleX(1);
}

.cursos-section-course-card.featured {
  border: 2px solid var(--accent-color);
  box-shadow: 0 6px 15px rgba(5, 150, 105, 0.15);
}

.cursos-section-course-card .course-header {
  margin-bottom: 0.8rem;
}

.cursos-section-course-card h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.cursos-section-course-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.cursos-section-course-card .course-topics {
  margin: 0.6rem 0;
  padding: 0.6rem;
  background: rgba(22, 141, 135, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.cursos-section-course-card .topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.cursos-section-course-card .topics-list li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.cursos-section-course-card .topics-list li i {
  color: var(--primary-color);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.cursos-section-course-card .course-meta {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cursos-section-course-card .course-price {
  margin-top: auto;
  margin-bottom: 0.8rem;
}

.cursos-section-course-card .btn-enroll {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.course-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex !important;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-height: 400px;
  visibility: visible !important;
  opacity: 1 !important;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-tech);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.course-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-tech);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(22, 141, 135, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.course-card:hover::before {
  opacity: 0.1;
}

.course-card:hover::after {
  transform: scaleX(1);
}

.course-card.featured {
  border: 2px solid var(--accent-color);
  box-shadow: 0 6px 15px rgba(5, 150, 105, 0.15);
}

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

.course-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.course-card:hover .course-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: var(--shadow-cyber);
  animation: hologram 1s ease-in-out infinite;
}

.course-card h4 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.course-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.course-card .course-topics {
  margin: 0.8rem 0;
  padding: 0.8rem;
  background: rgba(22, 141, 135, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  display: block;
  visibility: visible;
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  margin-top: auto;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.meta-item i {
  color: var(--primary-color);
  width: 16px;
}

.course-price {
  margin-bottom: 0.8rem;
}

.course-price .price {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 700;
}

.btn-enroll {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-enroll:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 141, 135, 0.3);
}

/* Course Benefits */
.course-benefits {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.course-benefits h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 4px 12px rgba(22, 141, 135, 0.2);
}

.benefit-item h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.benefit-item p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* CTA Section */
.course-cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  color: white;
  box-shadow: 0 6px 15px rgba(22, 141, 135, 0.2);
}

.cta-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.cta-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cta-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-cta-secondary:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.urgency-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  animation: pulse-urgency 2s infinite;
}

@keyframes pulse-urgency {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.urgency-text i {
  color: #ff6b35;
  font-size: 1.2rem;
}

/* Responsive Design - Benefits Grid Custom */
@media (max-width: 1200px) {
  .benefits-grid-custom {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 1024px) {
  .benefits-grid-custom {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .benefits-benefit-card {
    padding: 1.2rem 0.8rem;
  }
  
  .benefits-benefit-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .benefits-benefit-card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
  
  .benefits-benefit-card p {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .benefits-grid-custom {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
  }
  
  .benefits-benefit-card {
    padding: 1rem 0.6rem;
  }
  
  .benefits-benefit-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  
  .benefits-benefit-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .benefits-benefit-card p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .benefits-grid-custom {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .benefits-benefit-card {
    padding: 1rem;
  }
  
  .benefits-benefit-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }
  
  .benefits-benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  
  .benefits-benefit-card p {
    font-size: 0.85rem;
  }
}

/* Responsive Design - Courses Section */
@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }
  
  .cursos-section-courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .cursos-section-course-card {
    padding: 0.9rem;
  }
  
  .cursos-section-course-card h4 {
    font-size: 1rem;
  }
  
  .cursos-section-course-card p {
    font-size: 0.8rem;
  }
  
  .cursos-section-course-card .course-topics {
    padding: 0.5rem;
    margin: 0.5rem 0;
  }
  
  .cursos-section-course-card .topics-list li {
    font-size: 0.75rem;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .hero-course {
    padding: 2rem;
  }
  
  .hero-course-icon {
    width: 90px;
    height: 90px;
  }
  
  .hero-course-icon i {
    font-size: 3.5rem;
  }
  
  .hero-course-title-row h3 {
    font-size: 1.8rem;
  }
  
  .course-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  
  .course-card {
    padding: 1.2rem;
  }
  
  .course-benefits {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 3rem;
    text-align: center;
    max-width: none;
  }
  
  .section-header::before {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    top: -15px;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    padding-left: 0;
    text-align: center;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-left: 0;
    text-align: center;
    max-width: none;
  }
  
  /* Courses Tabs Responsive */
  .courses-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tab-button {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
    margin-bottom: 0;
  }
  
  .tab-button.active {
    border-bottom-color: var(--primary-color);
    background: rgba(22, 141, 135, 0.1);
  }
  
  /* Resources Responsive */
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .resource-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-download-resource {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
  
  /* Nueva sección de recursos independiente */
  .resources-section-main {
    padding: 4rem 0 3rem 0;
    margin-top: 2rem;
    background: rgba(10, 14, 39, 0.98) !important;
  }
  
  /* Quitar gradientes en móvil también */
  .resources-section-main::after {
    display: none !important;
  }
  
  .resources-section-main .section-header {
    margin-bottom: 1.5rem;
    margin-top: 0;
  }
  
  .resources-section-main .section-header h2 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .resources-section-main .section-header h2 i {
    font-size: 1.5rem;
  }
  
  .resources-section-main .section-subtitle {
    font-size: 0.95rem;
  }
  
  .resources-section-main .courses-grid {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  
  /* Reducir padding en móvil */
  .resources-section-main .course-card {
    padding: 0.8rem;
  }
  
  .cursos-section-courses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cursos-section-course-card {
    padding: 0.8rem;
  }
  
  .cursos-section-course-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .cursos-section-course-card p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .cursos-section-course-card .course-topics {
    padding: 0.5rem;
    margin: 0.5rem 0;
  }
  
  .cursos-section-course-card .topics-list li {
    font-size: 0.7rem;
  }
  
  .resources-section-main .course-header {
    margin-bottom: 0.5rem;
  }
  
  .resources-section-main .course-card h4 {
    margin-bottom: 0.4rem;
    font-size: 1rem;
    padding: 0;
    line-height: 1.3;
  }
  
  .resources-section-main .course-card p {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    padding: 0;
    line-height: 1.4;
  }
  
  .resources-section-main .course-meta {
    margin-bottom: 0.5rem;
    gap: 0.3rem;
    padding: 0;
  }
  
  .resources-section-main .meta-item {
    font-size: 0.7rem;
    gap: 0.25rem;
    padding: 0;
  }
  
  .resources-section-main .course-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .resources-section-main .btn-enroll {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    margin-top: 0.3rem;
  }
  
  .resources-section-main .section-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  .resources-section-main .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .topics-list {
    grid-template-columns: 1fr;
  }
  
  .hero-course {
    padding: 2rem;
    margin-bottom: 3rem;
  }
  
  .hero-course-title-row h3 {
    font-size: 2rem;
    margin-bottom: 0;
  }
  
  .hero-course-title-row {
    gap: 1.2rem;
  }
  
  .hero-course-icon {
    width: 85px;
    height: 85px;
  }
  
  .hero-course-icon i {
    font-size: 3.2rem;
  }
  
  .hero-course-description {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
  }
  
  .course-features {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .feature-item {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  
  .course-pricing {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .course-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-enroll-primary,
  .btn-info-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .course-testimonial {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .testimonial-content p {
    font-size: 1rem;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .course-card {
    padding: 1.2rem;
  }
  
  .course-header {
    margin-bottom: 0.8rem;
  }
  
  .course-icon {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
  
  .course-card h4 {
    font-size: 1.1rem;
  }
  
  .course-card p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  .course-meta {
    gap: 0.4rem;
    margin-bottom: 0.8rem;
  }
  
  .meta-item {
    font-size: 0.8rem;
  }
  
  .course-price .price {
    font-size: 1.6rem;
  }
  
  .course-benefits {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .course-benefits h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .benefit-item {
    padding: 1.2rem 0.8rem;
  }
  
  .benefit-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  
  .benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  
  .benefit-item p {
    font-size: 0.9rem;
  }
  
  .course-cta-section {
    padding: 1.5rem;
  }
  
  .cta-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  
  .cta-content p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 300px;
    padding: 1rem 1.5rem;
  }
  
  .urgency-text {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .section-header {
    margin-bottom: 2.5rem;
    text-align: center;
  }
  
  .section-header::before {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    top: -10px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    padding-left: 0;
    text-align: center;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin-left: 0;
    text-align: center;
  }
  
  .hero-course {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .hero-course-title-row {
    gap: 1rem;
  }
  
  .hero-course-icon {
    width: 70px;
    height: 70px;
  }
  
  .hero-course-icon i {
    font-size: 2.5rem;
  }
  
  .hero-course-title-row h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
  }
  
  .hero-course-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .course-features {
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-item {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
  
  .course-pricing {
    margin-bottom: 1.5rem;
  }
  
  .course-cta {
    gap: 0.8rem;
  }
  
  .course-testimonial {
    padding: 1.2rem;
    margin-top: 1.5rem;
  }
  
  .testimonial-content p {
    font-size: 0.95rem;
  }
  
  .courses-grid {
    gap: 1.2rem;
    margin-bottom: 2.5rem;
  }
  
  .course-card {
    padding: 1.5rem;
  }
  
  .cursos-section-courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .cursos-section-course-card {
    padding: 0.9rem;
  }
  
  .cursos-section-course-card h4 {
    font-size: 1rem;
  }
  
  .cursos-section-course-card p {
    font-size: 0.8rem;
  }
  
  .cursos-section-course-card .course-topics {
    padding: 0.5rem;
    margin: 0.5rem 0;
  }
  
  .cursos-section-course-card .topics-list li {
    font-size: 0.75rem;
  }
  
  .course-header {
    margin-bottom: 1rem;
  }
  
  .course-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
  
  .course-card h4 {
    font-size: 1.2rem;
  }
  
  .course-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .course-meta {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .meta-item {
    font-size: 0.8rem;
  }
  
  .course-price .price {
    font-size: 1.6rem;
  }
  
  .course-benefits {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .course-benefits h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .benefits-grid {
    gap: 1.2rem;
  }
  
  .benefit-item {
    padding: 1.2rem 0.8rem;
  }
  
  .benefit-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  
  .benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  
  .benefit-item p {
    font-size: 0.9rem;
  }
  
  .course-cta-section {
    padding: 1.5rem;
  }
  
  .cta-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  
  .cta-content p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .cta-buttons {
    gap: 0.8rem;
  }
  
  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .urgency-text {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* ===== EXAM SECTION ===== */
.exam-section {
  background: rgba(0, 212, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 212, 255, 0.4),
    0 0 40px rgba(0, 212, 255, 0.3),
    inset 0 0 20px rgba(0, 212, 255, 0.1);
  border: 2px solid rgba(0, 212, 255, 0.5);
  position: relative;
}

.exam-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.6), rgba(64, 224, 208, 0.4));
  z-index: -1;
  filter: blur(8px);
  opacity: 0.8;
  animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
  0%, 100% {
    opacity: 0.6;
    filter: blur(8px);
  }
  50% {
    opacity: 1;
    filter: blur(12px);
  }
}

.btn-open-exam-modal {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem auto 0;
  box-shadow: 0 4px 12px rgba(22, 141, 135, 0.2);
}

.btn-open-exam-modal:hover {
  background: var(--accent-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(22, 141, 135, 0.4);
}

/* ===== COMPACT FILE UPLOAD STYLES ===== */
.file-upload-compact {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px dashed #e2e8f0;
  margin: 1rem 0;
}

.upload-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.upload-header h5 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.upload-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.upload-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.file-input-wrapper {
  position: relative;
}

.btn-download-practice,
.btn-upload-file {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.btn-download-practice:hover,
.btn-upload-file:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 141, 135, 0.3);
}

.btn-download-practice {
  background: linear-gradient(135deg, #059669, #10b981);
}

.btn-download-practice:hover {
  background: linear-gradient(135deg, #047857, #059669);
}

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

.file-name {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.upload-status {
  margin-top: 0.5rem;
}

.uploading-message {
  color: #f59e0b;
  font-weight: 500;
  font-size: 0.9rem;
}

.success-message {
  color: #059669;
  font-weight: 500;
  font-size: 0.9rem;
}

.error-message {
  color: #dc2626;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .upload-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-download-practice,
  .btn-upload-file {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
  
  .file-upload-compact {
    padding: 1rem;
  }
}

/* ===== EXAM MODAL ===== */
.exam-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.exam-modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  width: 95%;
  max-width: 800px;
  max-height: 85vh;
  margin: auto;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9) translateY(50px);
  transition: all 0.3s ease;
}

.exam-modal.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

.modal-content {
  max-height: calc(85vh - 60px);
  overflow-y: auto;
  padding: 0;
}

/* ===== COMPACT MODAL STYLES ===== */
.exam-modal .exam-login {
  max-width: 100%;
  margin: 0;
  padding: 1rem;
}

.exam-modal .login-card {
  padding: 1.5rem;
  border-radius: 12px;
  margin: 0;
}

.exam-modal .login-header {
  margin-bottom: 1.5rem;
}

.exam-modal .login-header h4 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.exam-modal .login-header p {
  font-size: 0.95rem;
}

.exam-modal .student-info-section,
.exam-modal .login-credentials-section {
  margin-bottom: 1.2rem;
}

.exam-modal .student-info-section h5,
.exam-modal .login-credentials-section h5 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.exam-modal .form-row {
  gap: 1rem;
}

.exam-modal .form-group {
  margin-bottom: 1rem;
}

.exam-modal .form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.exam-modal .form-group input {
  padding: 0.7rem;
  font-size: 0.9rem;
}

.exam-modal .btn-login {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  margin-top: 1rem;
}

.exam-modal .login-info {
  margin-top: 1rem;
  padding: 1rem;
  font-size: 0.85rem;
}

.exam-modal .login-info p {
  margin-bottom: 0.5rem;
}

/* Exam Interface Compact */
.exam-modal .exam-interface {
  max-width: 100%;
  margin: 0;
  padding: 1rem;
}

.exam-modal .exam-progress {
  margin-bottom: 1.5rem;
}

.exam-modal .progress-text {
  font-size: 0.9rem;
}

.exam-modal .question-card {
  margin-bottom: 1.5rem;
}

.exam-modal .question-header {
  margin-bottom: 1rem;
}

.exam-modal .question-header h4 {
  font-size: 1.2rem;
}

.exam-modal .question-timer {
  font-size: 0.9rem;
}

.exam-modal .question-text {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.exam-modal .option-item {
  margin-bottom: 0.8rem;
  padding: 0.7rem;
}

.exam-modal .option-text {
  font-size: 0.95rem;
}

.exam-modal .exam-navigation {
  margin-top: 1.5rem;
  gap: 1rem;
}

.exam-modal .btn-nav,
.exam-modal .btn-finish {
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
}

/* Results Compact */
.exam-modal .exam-results {
  max-width: 100%;
  margin: 0;
  padding: 1rem;
}

.exam-modal .results-card {
  padding: 1.5rem;
  border-radius: 12px;
}

.exam-modal .results-header {
  margin-bottom: 1.5rem;
}

.exam-modal .score-circle {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.exam-modal .score-number {
  font-size: 1.8rem;
}

.exam-modal .score-label {
  font-size: 1rem;
}

.exam-modal .results-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.exam-modal .results-header p {
  font-size: 1rem;
}

.exam-modal .results-details {
  margin-bottom: 1.5rem;
}

.exam-modal .detail-item {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.exam-modal .certificate-section {
  margin-bottom: 1.5rem;
}

.exam-modal .certificate-section h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.exam-modal .certificate-section p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.exam-modal .certificate-info {
  margin-bottom: 1rem;
}

.exam-modal .certificate-info p {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.exam-modal .btn-download-certificate {
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
}

.exam-modal .exam-actions {
  gap: 1rem;
}

.exam-modal .btn-retake,
.exam-modal .btn-back-courses {
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
}

.exam-header {
  text-align: center;
  margin-bottom: 3rem;
}

.exam-header h3 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

.exam-header h3 i {
  color: #ffffff;
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
  animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(22, 141, 135, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(22, 141, 135, 0.8));
  }
}

@keyframes icon-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.exam-header p {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
}

/* Login Form */
.exam-login {
  max-width: 500px;
  margin: 0 auto;
}

.login-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid rgba(22, 141, 135, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h4 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.login-form input {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(22, 141, 135, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(22, 141, 135, 0.1);
}

/* Student Info Sections */
.student-info-section, .login-credentials-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(22, 141, 135, 0.05);
  border-radius: 12px;
  border: 2px solid rgba(22, 141, 135, 0.1);
}

.student-info-section h5, .login-credentials-section h5 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  padding: 1.2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 141, 135, 0.3);
}

.login-info {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(22, 141, 135, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.login-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.login-info code {
  background: rgba(22, 141, 135, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 600;
  color: var(--primary-color);
}

/* Exam Interface */
.exam-interface {
  max-width: 800px;
  margin: 0 auto;
}

.exam-progress {
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(22, 141, 135, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  width: 10%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
}

.exam-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.question-card {
  margin-bottom: 2rem;
}

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

.question-header h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
}

.question-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 53, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: var(--secondary-color);
  font-weight: 600;
}

.question-text {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 500;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(22, 141, 135, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-item:hover {
  border-color: var(--primary-color);
  background: rgba(22, 141, 135, 0.05);
}

.option-item input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
}

.option-item input[type="radio"]:checked + .option-text {
  color: var(--primary-color);
  font-weight: 600;
}

.option-text {
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.exam-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn-nav, .btn-finish {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav {
  background: rgba(22, 141, 135, 0.1);
  color: var(--primary-color);
  border: 2px solid rgba(22, 141, 135, 0.2);
}

.btn-nav:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
}

.btn-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-finish {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: white;
}

.btn-finish:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

/* Results */
.exam-results {
  max-width: 600px;
  margin: 0 auto;
}

.results-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--primary-color);
}

.results-header {
  margin-bottom: 2rem;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  box-shadow: 0 10px 30px rgba(22, 141, 135, 0.3);
}

.score-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.score-label {
  font-size: 1.2rem;
  font-weight: 600;
}

.results-header h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.results-details {
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(22, 141, 135, 0.05);
  border-radius: 8px;
}

.detail-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.certificate-section {
  background: rgba(22, 141, 135, 0.05);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 2px solid rgba(22, 141, 135, 0.1);
}

.certificate-section h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.certificate-info {
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(22, 141, 135, 0.1);
}

.certificate-info p {
  margin: 0.8rem 0;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.certificate-info i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.btn-download-certificate {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 auto;
}

.btn-download-certificate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 141, 135, 0.3);
}

.exam-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-retake, .btn-back-courses {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-retake {
  background: rgba(255, 107, 53, 0.1);
  color: var(--secondary-color);
  border: 2px solid rgba(255, 107, 53, 0.2);
}

.btn-retake:hover {
  background: var(--secondary-color);
  color: white;
}

.btn-back-courses {
  background: rgba(22, 141, 135, 0.1);
  color: var(--primary-color);
  border: 2px solid rgba(22, 141, 135, 0.2);
}

.btn-back-courses:hover {
  background: var(--primary-color);
  color: white;
}

/* Responsive Exam */
@media (max-width: 768px) {
  .exam-section {
    padding: 2rem;
  }
  
  .modal-container {
    width: 98%;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 0.8rem 1rem;
  }
  
  .modal-header h3 {
    font-size: 1.1rem;
  }
  
  .modal-close {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .exam-modal .exam-login,
  .exam-modal .exam-interface,
  .exam-modal .exam-results {
    padding: 0.8rem;
  }
  
  .exam-modal .login-card,
  .exam-modal .results-card {
    padding: 1.2rem;
  }
  
  .exam-modal .form-row {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .exam-modal .exam-navigation {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .exam-modal .exam-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .login-card {
    padding: 1.5rem;
  }
  
  .exam-content {
    padding: 1rem;
  }
  
  .question-header {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
  
  .btn-nav, .btn-finish {
    width: 100%;
    justify-content: center;
  }
  
  .results-card {
    padding: 1.5rem;
  }
  
  .btn-retake, .btn-back-courses {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .exam-section {
    padding: 1.5rem;
  }
  
  .login-card {
    padding: 1.5rem;
  }
  
  .exam-content {
    padding: 1rem;
  }
  
  .score-circle {
    width: 100px;
    height: 100px;
  }
  
  .score-number {
    font-size: 2rem;
  }
  
  .results-card {
    padding: 1.5rem;
  }
}

/* ===== ABOUT US SECTION ===== */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.story-timeline {
  position: relative;
  margin-bottom: 4rem;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 120px;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }

.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.2rem 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  font-size: 0.9rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.team-header {
  text-align: center;
  margin-bottom: 3rem;
}

.team-header h3 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.leader-profile {
  margin-bottom: 3rem;
}

.leader-info h4 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.leader-title {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.leader-description p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.leader-achievements {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--border-radius);
  border: 2px solid rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.achievement-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.achievement-item:hover i {
  color: white;
}

.achievement-item span {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.achievement-item {
  color: rgba(255, 255, 255, 0.9);
}

.company-values {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 2rem;
}

.company-values h4 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.value-item {
  text-align: center;
  padding: 1.2rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-tech);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.value-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(22, 141, 135, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.value-item:hover::before {
  opacity: 0.1;
}

.value-item i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  transition: all 0.3s ease;
}

.value-item:hover i {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-color);
}

.value-item h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.value-item p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  font-size: 0.8rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Responsive About Section */
@media (max-width: 768px) {
  .story-timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 80px;
  }
  
  .timeline-year {
    width: 60px;
    height: 50px;
    font-size: 0.9rem;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
  
  .timeline-content::before {
    left: -12px;
    border-right-width: 12px;
  }
  
  .team-section {
    padding: 2rem;
  }
  
  .leader-achievements {
    flex-direction: column;
    gap: 1rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .value-item {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .timeline-item {
    padding-left: 70px;
  }
  
  .timeline-year {
    width: 50px;
    height: 40px;
    font-size: 0.8rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .team-section {
    padding: 1.5rem;
  }
  
  .leader-info h4 {
    font-size: 1.5rem;
  }
  
  .value-item i {
    font-size: 2rem;
  }
}

/* ===== CONTACTO ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-tech);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.contact-item:hover {
  border: 1px solid rgba(22, 141, 135, 0.5);
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.contact-item:hover::before {
  opacity: 0.1;
}

.contact-item i {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.contact-item:hover i {
  transform: scale(1.15) rotate(10deg);
  box-shadow: var(--shadow-cyber);
  animation: hologram 1s ease-in-out infinite;
}

.contact-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-item p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-tech);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.contact-form:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px) scale(1.01);
  border: 1px solid rgba(5, 150, 105, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.contact-form:hover::before {
  opacity: 0.05;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(22, 141, 135, 0.3);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
}

.form-group select option {
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 0.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.submit-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.6s ease;
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-cyber);
  animation: cyberGlow 1s ease-in-out infinite alternate;
}

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

.form-status {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
}

/* ===== FOOTER DISRUPTIVO ===== */
.main-footer {
  background: var(--bg-dark);
  border-top: 2px solid var(--primary-color);
  padding: 3rem 0 4rem 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(64, 224, 208, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-section p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding-left: 0;
  display: inline-block;
}

.footer-section ul li a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.footer-section ul li a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-section ul li a:hover::before {
  opacity: 1;
  left: -15px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.8), 0 0 30px rgba(37, 99, 235, 0.6);
  }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}


/* ===== EFECTOS DE HOVER AVANZADOS ===== */
.service-card:hover .service-icon {
  animation: bounce 0.6s ease-in-out;
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
  background: var(--accent-color);
}

.tech-item:hover {
  animation: glow 1s ease-in-out infinite;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  background: var(--accent-color);
}

.benefit-card:hover .benefit-icon {
  animation: rotate 0.6s ease-in-out;
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
  background: var(--accent-color);
}

/* ===== ESTADOS DE CARGA ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ===== EFECTOS DE SCROLL ===== */
.animate-in {
  animation: slideInFromBottom 0.6s ease-out forwards;
}

/* ===== HEADER SCROLLED ===== */
.main-header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* ===== NAVEGACIÓN ACTIVA ===== */
.nav-links a.active {
  color: var(--primary-color);
  background: transparent;
  transform: none;
  box-shadow: none;
  border: none;
  font-weight: 600;
}

.nav-links a.active::after {
  width: 60%;
}

/* ===== ESTADOS DEL FORMULARIO ===== */
.form-status.success {
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--border-radius-sm);
}

.form-status.error {
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: var(--border-radius-sm);
}

.form-status.loading {
  border: 1px solid rgba(255, 165, 2, 0.3);
  border-radius: var(--border-radius-sm);
}

/* ===== CURSOR PERSONALIZADO ===== */
.custom-cursor {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: transform 0.1s ease;
}

/* ===== TOOLTIPS ===== */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-sm);
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ===== SCROLLBAR PERSONALIZADA DISRUPTIVA ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(64, 224, 208, 0.1) 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
  box-shadow: var(--shadow-md);
}

/* ===== SELECTION DISRUPTIVA ===== */
::selection {
  background: var(--primary-color);
  color: white;
  text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
  text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* ===== MENÚ MÓVIL DISRUPTIVO ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  margin-right: 0.5rem;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--primary-color);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--secondary-color);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-content {
  text-align: center;
  padding: 2rem;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease-out forwards;
}

.mobile-nav-links li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-links li:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-links li:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav-links li:nth-child(5) { animation-delay: 0.5s; }
.mobile-nav-links li:nth-child(6) { animation-delay: 0.6s; }

.mobile-nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 0;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: none;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  transform: none;
  box-shadow: none;
  border-bottom: 1px solid var(--primary-color);
}

.mobile-nav-links a.active {
  color: var(--primary-color);
}

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

/* ===== OPTIMIZACIONES MÓVIL - RENDIMIENTO ===== */
@media (max-width: 768px) {
  
  
  
  
  
  /* Reducir efectos hover en móvil */
  .service-card:hover,
  .course-card:hover,
  .contact-item:hover,
  .contact-form:hover,
  .value-item:hover,
  .benefits-benefit-card:hover {
    transform: none !important;
  }
  
  /* Reducir duración de transiciones en móvil */
  .service-card,
  .course-card,
  .contact-item,
  .value-item {
    transition-duration: 0.2s !important;
  }
  
  /* Asegurar que los videos de fondo se reproduzcan correctamente en móvil */
  .hero-background-video {
    pointer-events: none;
    /* Prevenir que se abra en pantalla completa */
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  
  /* Aplicar lo mismo a todos los videos de fondo en secciones */
  .section .hero-background-video {
    pointer-events: none;
  }
  .container {
    width: 95%;
    padding: 0 15px;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1rem;
    padding-right: 5rem; /* Espacio para las banderas */
    position: relative;
  }
  
  .branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1002;
    flex: 1;
    min-width: 0;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
    order: -1; /* Poner el hamburguesa antes del logo */
    z-index: 1003;
  }
  
  .navbar {
    display: none !important; /* Ocultar navbar en móvil */
  }
  
  /* Asegurar que las banderas estén visibles en el header móvil */
  .language-selector {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1002 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    margin-left: 0 !important;
  }
  
  .header-container .language-selector {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: 0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Si está dentro del navbar oculto, hacerlo visible */
  .navbar .language-selector {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Asegurar visibilidad en todo el header */
  .main-header .language-selector {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .lang-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .flag-icon {
    display: inline-block !important;
  }
  
  
  
  
  
  
  
  
  
  
  .services-grid,
  .technologies-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-card,
  .tech-category,
  .benefit-card {
    padding: 2rem;
  }
  
  .technologies-compact {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .tech-category-compact {
    padding: 1.2rem;
  }
  
  .tech-items-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  
  .tech-item-compact {
    padding: 0.8rem;
  }
  
  .tech-category-header-compact i {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .tech-category-header-compact h3 {
    font-size: 1.3rem;
    color: #FFFFFF;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  
  .tech-item-compact i {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }
  
  .tech-item-compact span {
    font-size: 0.85rem;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  /* Footer más compacto en móvil */
  .main-footer {
    padding: 1.5rem 0 0.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .footer-section {
    margin-bottom: 1rem;
  }
  
  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section h4::after {
    width: 30px;
    height: 2px;
    bottom: -6px;
  }
  
  .footer-logo {
    width: 100px;
    margin-bottom: 0.75rem;
  }
  
  .footer-section p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }
  
  .footer-section ul li {
    margin-bottom: 0.4rem;
  }
  
  .footer-section ul li a {
    font-size: 0.85rem;
  }
  
  .footer-bottom {
    padding-top: 0.75rem;
    font-size: 0.8rem;
  }
  
  .section-header {
    text-align: center;
    max-width: none;
  }
  
  .section-header::before {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    top: -15px;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
    padding-left: 0;
    text-align: center;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    margin-left: 0;
    text-align: center;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: 98%;
    padding: 0 10px;
  }
  
  /* Footer aún más compacto en pantallas muy pequeñas */
  .main-footer {
    padding: 1rem 0 0.5rem;
  }
  
  .footer-content {
    gap: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-section p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-section ul li a {
    font-size: 0.8rem;
  }
  
  .footer-bottom {
    padding-top: 0.5rem;
    font-size: 0.75rem;
  }
  
  
  
  
  .service-card,
  .tech-category,
  .benefit-card {
    padding: 1.5rem;
  }
  
  .technologies-compact {
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .tech-category-compact {
    padding: 1rem;
  }
  
  .tech-items-compact {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .tech-item-compact {
    padding: 0.6rem;
    gap: 0.6rem;
  }
  
  .tech-category-header-compact {
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
  }
  
  .tech-category-header-compact i {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  .tech-category-header-compact h3 {
    font-size: 1.2rem;
    color: #FFFFFF;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  
  .tech-item-compact i {
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }
  
  .tech-item-compact span {
    font-size: 0.8rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .section-header {
    text-align: center;
  }
  
  .section-header::before {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    top: -10px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
    padding-left: 0;
    text-align: center;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-left: 0;
    text-align: center;
  }
  
  .mobile-nav-links a {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
  }
  
  .logo-img {
    width: 100px;
    height: 38px;
  }
}

/* ===== UTILIDADES ===== */
.text-gradient {
  color: var(--primary-color);
}

.bg-gradient {
  background: var(--primary-color);
}

.shadow-glow {
  box-shadow: var(--shadow-lg);
}

.tech-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.fab-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  animation: pulse-whatsapp 2s infinite;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  background: #128c7e;
}

.fab-whatsapp i {
  transition: transform 0.3s ease;
}

.fab-whatsapp:hover i {
  transform: scale(1.1);
}

.chat-bubble {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #25d366;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid #25d366;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.fab-whatsapp:hover .chat-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-5px);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Responsive WhatsApp button */
@media (max-width: 768px) {
  .fab-whatsapp {
    bottom: 100px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 24px;
    z-index: 999;
  }
  
  .chat-bubble {
    right: 65px;
    font-size: 13px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .fab-whatsapp {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  
  .chat-bubble {
    right: 60px;
    font-size: 12px;
    padding: 5px 8px;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  .tech-tag {
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
  }
}

/* ===== SCROLL SUAVE ===== */
html {
  scroll-behavior: smooth;
  /* Mejorar scroll en móvil */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

/* ===== SECCIONES ACTIVAS ===== */
section {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  /* Mejorar scroll en móvil */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

section.active-section {
  display: block;
  opacity: 1;
  max-height: none; /* Cambiar de 5000px a none para mejor scroll */
  overflow: visible;
}

/* Mostrar la sección de inicio por defecto */
#inicio {
  display: block;
  opacity: 1;
  max-height: none;
  overflow: visible;
  visibility: visible;
}


/* ===== MEJORAS PARA SCROLL EN MÓVIL ===== */
@media (max-width: 768px) {
  /* Mejorar scroll en móvil */
  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
  }
  
  /* Asegurar que las secciones tengan scroll natural */
  .section {
    min-height: auto;
    padding: 4rem 0;
  }
  
  /* Asegurar que el contenido sea scrolleable */
  .container {
    overflow: visible;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  .tech-tag {
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
  }
}

/* ===== ESTILOS PARA SUBIDA DE ARCHIVOS ===== */
.file-upload-section {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 1rem 0;
  border: 2px dashed var(--primary-color);
}

.file-download-section,
.file-upload-section > div:not(.file-instructions) {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  border: 1px solid #e5e7eb;
}

.file-download-section h5,
.file-upload-section h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.file-download-section p,
.file-upload-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.btn-download-practice,
.btn-upload-file {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.btn-download-practice:hover,
.btn-upload-file:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-download-practice:active,
.btn-upload-file:active {
  transform: translateY(0);
}

.file-input-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.file-name {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
}

.upload-status {
  margin-top: 1rem;
  min-height: 2rem;
}

.success-message {
  color: var(--accent-color);
  background: rgba(5, 150, 105, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.error-message {
  color: var(--secondary-color);
  background: rgba(220, 38, 38, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.uploading-message {
  color: var(--warning-color);
  background: rgba(217, 119, 6, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--warning-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.file-instructions {
  background: rgba(22, 141, 135, 0.05);
  border: 1px solid rgba(22, 141, 135, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  margin-top: 1rem;
}

.file-instructions h6 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.file-instructions ul {
  list-style: none;
  padding: 0;
}

.file-instructions li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.file-instructions li:before {
  content: "✓";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Responsive para archivos */
@media (max-width: 768px) {
  .file-upload-section {
    padding: 1rem;
  }
  
  .file-download-section,
  .file-upload-section > div:not(.file-instructions) {
    padding: 1rem;
  }
  
  .file-input-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .btn-download-practice,
  .btn-upload-file {
    width: 100%;
    justify-content: center;
  }
}

/* ===== MINI NUBE — transferencia temporal de archivos ===== */
.nube-panel {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 1rem;
}

.nube-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.nube-title h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nube-title h3 i {
  color: var(--primary-color);
}

.nube-title p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  max-width: 46ch;
}

/* --- Código de sala --- */
.nube-room {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 240px;
}

.nube-room > label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nube-room-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nube-room-input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.55rem 0.75rem;
  text-align: center;
  text-transform: uppercase;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nube-room-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(22, 141, 135, 0.25);
}

.nube-room small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: 34ch;
}

.nube-icon-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nube-icon-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-1px);
}

.nube-icon-btn.nube-delete:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* --- Zona de arrastre --- */
.nube-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: rgba(0, 0, 0, 0.15);
}

.nube-dropzone:hover,
.nube-dropzone:focus-visible,
.nube-dropzone.dragover {
  border-color: var(--primary-color);
  background: rgba(22, 141, 135, 0.12);
  outline: none;
}

.nube-dropzone.dragover {
  transform: scale(1.01);
}

.nube-dropzone > i {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.nube-drop-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
}

.nube-drop-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  margin: 0;
}

/* --- Mensajes --- */
.nube-status {
  display: none;
  margin-top: 0.9rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.nube-status.visible {
  display: block;
}

.nube-status-error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fecaca;
}

.nube-status-info {
  background: rgba(22, 141, 135, 0.15);
  border: 1px solid rgba(22, 141, 135, 0.4);
  color: #ccfbf1;
}

/* --- Cola de subida --- */
.nube-queue:not(:empty) {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.nube-progress-item {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.nube-progress-item.nube-progress-error {
  border-color: rgba(220, 38, 38, 0.45);
}

.nube-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.nube-progress-name {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nube-progress-head .nube-icon-btn {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

.nube-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.nube-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nube-progress-error .nube-progress-fill {
  background: var(--secondary-color);
}

.nube-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
}

/* --- Listado de archivos --- */
.nube-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0.75rem 0;
}

.nube-list-header h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nube-list-header h4 i {
  color: var(--primary-color);
}

.nube-list-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nube-usage {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  white-space: nowrap;
}

.nube-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.nube-file {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nube-file:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(22, 141, 135, 0.5);
}

.nube-file-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(22, 141, 135, 0.18);
  color: var(--primary-color);
  font-size: 1rem;
}

.nube-file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nube-file-name {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nube-file-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.nube-file-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nube-empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.nube-empty i {
  margin-right: 0.4rem;
}

.nube-empty-error {
  color: #fecaca;
  border-color: rgba(220, 38, 38, 0.35);
}

.nube-footnote {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 1.25rem 0 0 0;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.nube-footnote i {
  color: var(--primary-color);
  margin-top: 0.15rem;
}

/* --- Scrollbar del listado --- */
.nube-file-list::-webkit-scrollbar {
  width: 6px;
}

.nube-file-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.nube-file-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.nube-file-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nube-panel {
    padding: 1.25rem;
  }

  .nube-header {
    flex-direction: column;
    gap: 1.25rem;
  }

  .nube-room {
    width: 100%;
    min-width: 0;
  }

  .nube-room small {
    max-width: none;
  }

  .nube-dropzone {
    padding: 1.75rem 1rem;
  }

  .nube-title h3 {
    font-size: 1.2rem;
  }

  .nube-list-header {
    flex-wrap: wrap;
  }

  .nube-file-list {
    max-height: none;
  }
}
