/* ============================================
   SISTEMA DE ANIMACIONES LAWTECH PREMIUM
   ============================================ */

/* Variables de animación */
:root {
  --animation-duration-fast: 0.3s;
  --animation-duration-normal: 0.6s;
  --animation-duration-slow: 1s;
  --animation-easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --animation-easing-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --animation-easing-premium: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Performance optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for smooth animations */
.hover-lift,
.hover-glow,
.magnetic,
.card,
.button--primary,
.button--ghost {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Scroll Reveal Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

@keyframes slideInBlur {
  from {
    opacity: 0;
    transform: translateX(-30px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(2deg);
  }
  66% {
    transform: translateY(10px) rotate(-2deg);
  }
}

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

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Clases de animación */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s var(--animation-easing-smooth);
}

.animate-on-scroll.animated {
  opacity: 1;
}

/* Simplificar animaciones en desktop */
@media (min-width: 1024px) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  .animate-on-scroll.animated {
    opacity: 1 !important;
  }
  
  .animate-fade-up,
  .animate-fade-down,
  .animate-fade-left,
  .animate-fade-right,
  .animate-scale-in,
  .animate-slide-blur,
  .animate-rotate-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .animate-stagger > *,
  .animate-stagger-enhanced > * {
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }
  
  .section-parallax,
  .bg-gradient-animated,
  .section-wave,
  .text-shine,
  .reveal-on-scroll {
    animation: none !important;
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s var(--animation-easing-smooth) forwards;
}

.animate-fade-down {
  animation: fadeInDown 0.8s var(--animation-easing-smooth) forwards;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s var(--animation-easing-smooth) forwards;
}

.animate-fade-right {
  animation: fadeInRight 0.8s var(--animation-easing-smooth) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s var(--animation-easing-elastic) forwards;
}

.animate-slide-blur {
  animation: slideInBlur 1s var(--animation-easing-smooth) forwards;
}

.animate-rotate-in {
  animation: rotateIn 0.8s var(--animation-easing-bounce) forwards;
}

/* Stagger animations para listas */
.animate-stagger > * {
  opacity: 0;
  animation: fadeInUp 0.6s var(--animation-easing-smooth) forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* Efectos de hover avanzados */
.hover-lift {
  transition: all 0.4s var(--animation-easing-smooth);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px -20px rgba(30, 58, 95, 0.3);
}

.hover-glow {
  position: relative;
  transition: all 0.4s var(--animation-easing-smooth);
}

.hover-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--animation-easing-smooth), height 0.6s var(--animation-easing-smooth);
  z-index: -1;
}

.hover-glow:hover::before {
  width: 300px;
  height: 300px;
}

.hover-shimmer {
  position: relative;
  overflow: hidden;
}

.hover-shimmer::after {
  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 var(--animation-easing-smooth);
}

.hover-shimmer:hover::after {
  left: 100%;
}

/* Efectos de glassmorphism animados */
.glass-morph {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s var(--animation-easing-smooth);
}

.glass-morph:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.1);
}

/* Parallax effect */
.parallax-slow {
  transition: transform 0.3s ease-out;
}

.parallax-medium {
  transition: transform 0.2s ease-out;
}

.parallax-fast {
  transition: transform 0.1s ease-out;
}

/* Loading states */
@keyframes skeleton {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(30, 58, 95, 0.1) 0%,
    rgba(30, 58, 95, 0.15) 50%,
    rgba(30, 58, 95, 0.1) 100%
  );
  background-size: 200px 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}

/* Ripple effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s var(--animation-easing-smooth);
  pointer-events: none;
}

/* Magnetic effect */
.magnetic {
  transition: transform 0.3s var(--animation-easing-smooth);
}

/* Gradient text animation */
@keyframes gradientText {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--color-navy) 0%,
    var(--color-sand) 50%,
    var(--color-navy) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 3s ease infinite;
}

/* Smooth page transitions */
.page-transition {
  animation: fadeInUp 0.6s var(--animation-easing-smooth);
}

/* Card flip effect */
@keyframes flip {
  from {
    transform: rotateY(0);
  }
  to {
    transform: rotateY(180deg);
  }
}

.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(5deg);
}

/* Glitch effect (subtle) */
@keyframes glitch {
  0%, 100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

.glitch-effect {
  animation: glitch 0.3s infinite;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   MEJORAS ADICIONALES PARA LANDING PAGE
   ============================================ */

/* Contador animado */
.stat-counter {
  transition: all 0.3s ease;
}

/* Cursor personalizado */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-sand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor.cursor-expand {
  width: 40px;
  height: 40px;
  border-color: var(--color-primary);
  background: rgba(212, 165, 116, 0.1);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), var(--color-sand));
  z-index: 9998;
  transition: width 0.1s ease;
  box-shadow: 0 2px 10px rgba(212, 165, 116, 0.5);
}

/* Partículas flotantes */
.floating-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(212, 165, 116, 0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(20px, -30px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translate(-15px, -50px) scale(0.8);
    opacity: 0.3;
  }
  75% {
    transform: translate(30px, -20px) scale(1.1);
    opacity: 0.5;
  }
}

/* Animación de entrada para elementos */
.animate-in {
  animation: slideInFade 0.6s ease-out forwards;
}

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

/* Efecto de brillo en tarjetas */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

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

/* Efecto de zoom suave en imágenes */
.card img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover img {
  transform: scale(1.05);
}

/* Animación de pulso para elementos importantes */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(212, 165, 116, 0);
  }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Efecto de gradiente animado en texto */
@keyframes gradient-text {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-sand),
    var(--color-primary)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-text 3s ease infinite;
}

/* Efecto de tilt en tarjetas (3D) */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Animación de entrada escalonada mejorada */
.animate-stagger-enhanced > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-stagger-enhanced.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.animate-stagger-enhanced > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger-enhanced > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger-enhanced > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger-enhanced > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger-enhanced > *:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger-enhanced > *:nth-child(6) { transition-delay: 0.6s; }

/* Efecto de tilt 3D mejorado */
.card-3d-tilt {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-3d-tilt:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateZ(10px);
}

/* Efecto de zoom suave con overlay */
.card-zoom-overlay {
  position: relative;
  overflow: hidden;
}

.card-zoom-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(30, 58, 95, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.card-zoom-overlay:hover::before {
  opacity: 1;
}

.card-zoom-overlay > * {
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-zoom-overlay:hover > * {
  transform: scale(1.02);
}

/* Efecto de brillo en texto */
@keyframes text-shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.text-shine {
  background: linear-gradient(
    90deg,
    var(--color-heading) 0%,
    var(--color-sand) 50%,
    var(--color-heading) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shine 3s linear infinite;
}

/* Efecto de ondas en secciones */
.section-wave {
  position: relative;
  overflow: hidden;
}

.section-wave::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.05) 0%, transparent 70%);
  animation: wave-expand 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wave-expand {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

/* Efecto de partículas en hover */
.card-particles {
  position: relative;
  overflow: hidden;
}

.card-particles::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.card-particles:hover::after {
  width: 400px;
  height: 400px;
  opacity: 1;
}

/* Animación de entrada desde diferentes direcciones */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

.animate-slide-left {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

.animate-slide-bottom {
  animation: slideInFromBottom 0.8s ease-out forwards;
}

/* Efecto de glassmorphism mejorado */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(30, 58, 95, 0.1);
  transition: all 0.4s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 48px 0 rgba(30, 58, 95, 0.15);
  transform: translateY(-4px);
}

/* Efecto de gradiente animado en fondo */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.bg-gradient-animated {
  background: linear-gradient(
    -45deg,
    rgba(30, 58, 95, 0.05),
    rgba(212, 165, 116, 0.05),
    rgba(30, 58, 95, 0.05),
    rgba(212, 165, 116, 0.05)
  );
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

/* Efecto de hover con borde que se dibuja */
.border-draw {
  position: relative;
}

.border-draw::before,
.border-draw::after {
  content: '';
  position: absolute;
  background: var(--color-sand);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.border-draw::before {
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
}

.border-draw::after {
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
}

.border-draw:hover::before {
  width: 100%;
}

.border-draw:hover::after {
  width: 100%;
}

/* Efecto de hover con sombra animada */
.shadow-grow {
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.shadow-grow:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 60px -12px rgba(30, 58, 95, 0.25),
    0 0 0 1px rgba(212, 165, 116, 0.1),
    0 0 40px rgba(212, 165, 116, 0.1);
}

/* Animación de rotación suave */
@keyframes gentle-rotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

.gentle-rotate {
  animation: gentle-rotate 6s ease-in-out infinite;
}

/* Efecto de hover con escala y brillo */
.scale-glow {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.scale-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-sand), var(--color-primary));
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  transition: opacity 0.4s ease;
}

.scale-glow:hover {
  transform: scale(1.05);
}

.scale-glow:hover::before {
  opacity: 0.6;
}

/* Efecto de hover con efecto de neón sutil */
.neon-glow {
  transition: all 0.4s ease;
}

.neon-glow:hover {
  box-shadow: 
    0 0 10px rgba(212, 165, 116, 0.3),
    0 0 20px rgba(212, 165, 116, 0.2),
    0 0 30px rgba(212, 165, 116, 0.1);
  border-color: rgba(212, 165, 116, 0.5);
}

/* Animación de fade in con blur */
@keyframes fadeInBlur {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.fade-in-blur {
  animation: fadeInBlur 0.8s ease-out forwards;
}

/* Tooltips personalizados */
.custom-tooltip {
  position: fixed;
  background: rgba(30, 58, 95, 0.95);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-tooltip::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(30, 58, 95, 0.95);
}

.custom-tooltip.tooltip-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto de highlight al hacer scroll */
.scroll-highlight {
  animation: highlight-pulse 2s ease-out;
}

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(212, 165, 116, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 165, 116, 0);
  }
}

/* Animaciones de reveal mejoradas */
.reveal-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade-up {
  transform: translateY(40px);
}

.reveal-fade-down {
  transform: translateY(-40px);
}

.reveal-fade-left {
  transform: translateX(-40px);
}

.reveal-fade-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.9);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Efecto de typing */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid;
  animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--color-sand);
  }
}

/* Efecto de hover con rotación suave */
.hover-rotate {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-rotate:hover {
  transform: rotate(2deg) scale(1.02);
}

/* Efecto de hover con efecto de onda */
.wave-effect {
  position: relative;
  overflow: hidden;
}

.wave-effect::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.wave-effect:hover::before {
  width: 300px;
  height: 300px;
}

/* Animación de entrada con bounce */
@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.bounce-in {
  animation: bounce-in 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Efecto de hover con efecto de luz */
.light-effect {
  position: relative;
  overflow: hidden;
}

.light-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.light-effect:hover::after {
  opacity: 1;
}

/* Efecto de hover con efecto de vidrio */
.glass-hover {
  transition: all 0.4s ease;
}

.glass-hover:hover {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.15);
}

/* Efecto de hover con borde animado */
.card-border-animate {
  position: relative;
  overflow: hidden;
}

.card-border-animate::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--color-primary), var(--color-sand)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-border-animate:hover::after {
  opacity: 1;
}

/* Efecto de ondas en botones */
.button-wave {
  position: relative;
  overflow: hidden;
}

.button-wave::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.button-wave:hover::before {
  width: 300px;
  height: 300px;
}

/* Animación de carga para secciones */
@keyframes section-load {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-loading {
  animation: section-load 0.8s ease-out;
}
