/* ===== ANIMACIONES DR. VERDE ===== */

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Slide In Left */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0);     }
}

/* Typing effect */
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

/* Pulse green */
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,187,38,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(184,187,38,0); }
}

/* Scan line */
@keyframes scanLine {
  0%   { top: 0; }
  100% { top: 100%; }
}

/* Glitch */
@keyframes glitch {
  0%   { transform: translate(0); }
  20%  { transform: translate(-2px, 2px); }
  40%  { transform: translate(-2px, -2px); }
  60%  { transform: translate(2px, 2px); }
  80%  { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Rotate */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Classes de animación */
.animate-fade    { animation: fadeIn 0.4s ease forwards; }
.animate-slide   { animation: slideInLeft 0.4s ease forwards; }
.animate-float   { animation: float 3s ease-in-out infinite; }
.animate-pulse   { animation: pulseGreen 2s infinite; }
.animate-spin    { animation: spin 1s linear infinite; }

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* Typing text */
.typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--green);
  animation: typing 2s steps(40) forwards,
             blink 0.8s infinite;
}

/* Terminal scan effect */
.terminal-scan {
  position: relative;
  overflow: hidden;
}

.terminal-scan::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(184,187,38,0.15);
  animation: scanLine 3s linear infinite;
}

/* Page transition */
.page-enter {
  animation: fadeIn 0.3s ease forwards;
}

/* Loading dots */
.loading-dots::after {
  content: '';
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}