/* ==========================================================================
   CEAEM - Centro de Entrenamiento y Actualización en Emergencias Médicas
   Manual de Identidad + Experiencia Interactiva Vanguardista 2026
   ========================================================================== */

:root {
  /* Official Brand Colors */
  --ceaem-green: #449a46;
  --ceaem-green-hover: #378039;
  --ceaem-green-dark: #275c29;
  --ceaem-green-light: #ebf7ec;
  --ceaem-green-subtle: #f2faf3;

  /* Gradient Palette: Green to Purple */
  --ceaem-purple: #6d28d9;
  --ceaem-purple-dark: #581c87;
  --ceaem-purple-light: #f3e8ff;
  --ceaem-purple-hover: #7c3aed;

  --ceaem-red: #c10d19;
  --ceaem-navy: #2d396a;
  --ceaem-navy-dark: #1d2547;
  --ceaem-navy-light: #eef1f9;

  /* High-Tech Bioluminescent Accents */
  --ceaem-cyan: #00e5ff;
  --ceaem-cyan-glow: rgba(0, 229, 255, 0.4);

  /* Neutral tones */
  --ceaem-beige: #faf8f5;
  --ceaem-gold: #e1ba26;
  --ceaem-dark: #222220;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ceaem-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ceaem-green);
}

/* Heartbeat Button Animation */
@keyframes heartbeat {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(68, 154, 70, 0.6);
  }
  14% {
    transform: scale(1.04);
    box-shadow: 0 0 0 8px rgba(68, 154, 70, 0.3);
  }
  28% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(68, 154, 70, 0);
  }
  42% {
    transform: scale(1.03);
    box-shadow: 0 0 0 6px rgba(68, 154, 70, 0.2);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(68, 154, 70, 0);
  }
  100% {
    transform: scale(1);
  }
}

.animate-heartbeat {
  animation: heartbeat 2.2s infinite ease-in-out;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
  background: rgba(29, 37, 71, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Infinite Marquee Scroll */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Bioluminescent Glow & Counter Cards */
.biolum-border {
  position: relative;
  border: 1px solid rgba(68, 154, 70, 0.25);
  box-shadow: 0 10px 30px -10px rgba(68, 154, 70, 0.12);
}

.biolum-border:hover {
  border-color: var(--ceaem-green);
  box-shadow: 0 15px 35px -5px rgba(68, 154, 70, 0.25), 0 0 20px rgba(0, 229, 255, 0.15);
}

/* Anatomical Hotspots Pulse */
@keyframes hotspot-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(68, 154, 70, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 16px rgba(68, 154, 70, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(68, 154, 70, 0);
  }
}

.hotspot-point {
  animation: hotspot-pulse 2s infinite ease-in-out;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hotspot-point:hover {
  transform: scale(1.3);
}

.hotspot-point.active {
  background-color: var(--ceaem-cyan);
  box-shadow: 0 0 15px var(--ceaem-cyan);
}

/* Laser Scan Animation for Quiz */
@keyframes laser-scan {
  0% {
    top: 0%;
    opacity: 0.8;
  }
  50% {
    top: 96%;
    opacity: 1;
  }
  100% {
    top: 0%;
    opacity: 0.8;
  }
}

.laser-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ceaem-cyan), var(--ceaem-green), var(--ceaem-cyan), transparent);
  box-shadow: 0 0 15px var(--ceaem-cyan), 0 0 25px var(--ceaem-green);
  animation: laser-scan 2s infinite ease-in-out;
  pointer-events: none;
}

/* Certificate Cyber-Scan Ring */
@keyframes cyber-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cyber-ring {
  border: 3px dashed var(--ceaem-cyan);
  border-radius: 50%;
  animation: cyber-rotate 6s linear infinite;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.06);
}

/* Smooth Tab Transitions */
.tab-btn {
  transition: all 0.2s ease;
}

/* Course Card Hover Effects */
.course-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Blog Card Hover */
.blog-card {
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }
}