/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
    --primary-color: #2A2A72;
    --secondary-color: #009FFD;
    --accent-color: #FF0076;
    --easing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =========================================================
   ANIMACIONES DE ENTRADA EPICAS
   ========================================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@keyframes textReveal {
    from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
    to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f2f2f2;
    color: #333;
}

section {
    scroll-margin-top: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .whatsapp-float img {
    width: 35px;
    height: 35px;
  }

  .whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #25D366;
  }

/* =========================================================
   ANIMACIONES DE SECCIONES
   ========================================================= */
.section-title {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    font-size: 28px;
    color: var(--primary-color);
}

section.visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

.service-item {
    perspective: 1000px;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(30px) rotateX(15deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

section.visible .service-item {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* =========================================================
   EFECTOS DE HOVER MEJORADOS
   ========================================================= */
.service-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* =========================================================
   ANIMACIONES ESPECIALES
   ========================================================= */
@keyframes particle-pop {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

@keyframes wave-expand {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.click-wave {
    animation: wave-expand 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.particle {
    animation: particle-pop 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#mision, #vision {
    scroll-margin-top: 100px; /* Ajusta según la altura real de tu header */
  }

/* =========================================================
   EFECTOS DE PARTICULAS
   ========================================================= */
   @keyframes particle {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: particle 3s linear infinite;
}

/* =========================================================
   RESPONSIVE ADAPTACIONES
   ========================================================= */
@media (max-width: 768px) {
    .service-item {
        transform: none !important;
        backdrop-filter: none;
    }
    
    .empresa-item:hover {
        clip-path: none;
        transform: none;
    }
}
