/* ═══════════════════════════════════════════════════════════
   TRAVEL BOX — animations.css
   ═══════════════════════════════════════════════════════════ */

/* ── KEYFRAMES ── */

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

@keyframes floatYSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-24px) rotate(3deg); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(203,169,108,0.2); }
  50%       { box-shadow: 0 0 50px rgba(203,169,108,0.5), 0 0 80px rgba(203,169,108,0.15); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

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

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

@keyframes borderGlow {
  0%, 100% { border-color: rgba(203,169,108,0.3); }
  50%       { border-color: rgba(203,169,108,0.7); }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) translateZ(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

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

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

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes revealWidth {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes particleFall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes hoverLift {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* ── ESTADOS INICIALES para GSAP ── */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  will-change: transform, opacity;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  will-change: transform, opacity;
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  will-change: transform, opacity;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  will-change: transform, opacity;
}
.reveal-fade {
  opacity: 0;
  will-change: opacity;
}

/* ── HERO ANIMACIONES ── */
.hero-title {
  animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-subtitle {
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero-tagline {
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}
.hero-ctas {
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}
.urgency-banner {
  animation: slideInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.scroll-indicator {
  animation: fadeScaleIn 1s ease 1.5s both;
}
.scroll-arrow {
  animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ── NAVBAR ── */
.navbar {
  animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

/* ── FLOATING (CSS mobile fallback) ── */
.float-anim { animation: floatY 4s ease-in-out infinite; }
.float-slow { animation: floatYSlow 6s ease-in-out infinite; }

/* ── URGENCY BADGE PULSE ── */
.urgency-banner {
  animation: slideInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both,
             borderGlow 3s ease-in-out 2s infinite;
}

/* ── ELITE CARD GLOW ── */
.plan-card.elite {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ── SHIMMER EFFECT en botones primarios ── */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-primary { position: relative; overflow: hidden; }
.btn-primary:hover::after { left: 100%; }

/* ── GOLD DIVIDER LINE ── */
.gold-divider {
  width: 60px; height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── PARALLAX MOBILE (CSS puro) ── */
@media (max-width: 768px) {
  .parallax-layer { transform: none !important; }
  .destino-bg     { transform: none !important; }
  .paquete-card:hover { transform: translateY(-4px); }
}

/* ── CURSOR PARTÍCULAS ── */
.cursor-particle {
  position: fixed;
  width: 4px; height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  animation: particleFade 0.8s ease forwards;
}
@keyframes particleFade {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(0) translateY(-30px); }
}

/* ── LOADING SPINNER ── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(203,169,108,0.2);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: rotateSlow 0.8s linear infinite;
}

/* ── STAT COUNTER ANIMATION ── */
.stat-number.counting {
  animation: countUp 0.5s ease forwards;
}

/* ── SECTION TRANSITIONS ── */
section {
  position: relative;
}

/* Divisor decorativo entre secciones */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203,169,108,0.2), transparent);
}

/* ── FORM STATES ── */
.form-group input:focus-within ~ .field-error,
.form-group select:focus-within ~ .field-error {
  animation: slideInUp 0.2s ease both;
}

/* ── MODAL ENTRANCE ── */
.modal-overlay.open .modal {
  animation: fadeScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── SUCCESS STATE ── */
.form-success {
  animation: fadeScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── PLAN CARD STAGGER (CSS) ── */
.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }
.plan-card:nth-child(4) { animation-delay: 0.4s; }

/* ── DESTINATION CARD HOVER ── */
.destino-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(203,169,108,0);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-smooth);
  pointer-events: none;
}
.destino-card:hover::after {
  border-color: rgba(203,169,108,0.4);
}

/* ── GOLD LINE UNDERLINE EFFECT ── */
.gold-underline {
  position: relative;
  display: inline-block;
}
.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  height: 2px;
  width: 0;
  background: var(--gradient-gold);
  transition: width 0.4s ease;
  border-radius: 2px;
}
.gold-underline:hover::after { width: 100%; }

/* ── WORLD LANDMARK WATERMARK ANIMATION ── */
.watermark-bg svg {
  animation: floatYSlow 8s ease-in-out infinite;
}
.watermark-bg svg:nth-child(2) { animation-delay: -2s; }
.watermark-bg svg:nth-child(3) { animation-delay: -4s; }
.watermark-bg svg:nth-child(4) { animation-delay: -6s; }
