/* Animaciones para los Pilares Corporativos */

/* Ocultar inicialmente los iconos */
.feature1 .col-4 {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

/* Animación de entrada - Fade In + Scale Up */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Clase cuando el elemento es visible */
.feature1 .col-4.animate-in {
    animation: fadeInScale 0.8s ease-out forwards;
}

/* Retraso escalonado para cada icono */
.feature1 .col-4:nth-child(2).animate-in {
    animation-delay: 0.2s;
}

.feature1 .col-4:nth-child(3).animate-in {
    animation-delay: 0.4s;
}

.feature1 .col-4:nth-child(4).animate-in {
    animation-delay: 0.6s;
}

/* Animación continua - Float suave */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature1 .col-4.animate-in header.second {
    animation: float 3s ease-in-out infinite;
}

/* Retrasos diferentes para efecto de onda */
.feature1 .col-4:nth-child(2).animate-in header.second {
    animation: float 3s ease-in-out infinite 0.3s;
}

.feature1 .col-4:nth-child(3).animate-in header.second {
    animation: float 3s ease-in-out infinite 0.6s;
}

.feature1 .col-4:nth-child(4).animate-in header.second {
    animation: float 3s ease-in-out infinite 0.9s;
}

/* Animación específica: Bombilla - Pulso como encendido */
@keyframes lightbulbPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
        text-shadow: 0 0 10px rgba(255, 193, 7, 0);
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.3);
        text-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
    }
}

.feature1 .fa-lightbulb {
    color: #ffc107;
    transition: all 0.3s ease;
}

.feature1 .col-4:hover .fa-lightbulb {
    animation: lightbulbPulse 1s ease-in-out;
}

/* Animación específica: Hoja - Balanceo como viento */
@keyframes leafSway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(8deg);
    }
}

.feature1 .fa-leaf {
    color: #4caf50;
    transition: all 0.3s ease;
}

.feature1 .col-4:hover .fa-leaf {
    animation: leafSway 1s ease-in-out;
}

/* Animación específica: Apretón de manos - Shake horizontal */
@keyframes handshake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.feature1 .fa-handshake {
    color: #2196f3;
    transition: all 0.3s ease;
}

.feature1 .col-4:hover .fa-handshake {
    animation: handshake 0.8s ease-in-out;
}

/* Efecto de hover general en el contenedor */
.feature1 .col-4 section {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature1 .col-4:hover section {
    transform: translateY(-5px);
}

/* Efecto de resplandor en el icono al hover */
.feature1 header.second:before {
    transition: all 0.3s ease;
}

.feature1 .col-4:hover header.second:before {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* Animación de título al hover */
.feature1 header.second h3 {
    transition: all 0.3s ease;
}

.feature1 .col-4:hover header.second h3 {
    color: #e44c65;
    transform: scale(1.05);
}

/* Animación del texto descriptivo */
.feature1 header.second p {
    transition: all 0.3s ease;
}

.feature1 .col-4:hover header.second p {
    color: #333;
    font-weight: 500;
}

/* Efecto de brillo suave continuo en los iconos */
@keyframes subtleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(228, 76, 101, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(228, 76, 101, 0.5));
    }
}

.feature1 .col-4.animate-in header.second:before {
    animation: subtleGlow 4s ease-in-out infinite;
}

/* Diferentes colores de brillo para cada icono */
.feature1 .col-4:nth-child(2).animate-in header.second:before {
    animation: subtleGlow-yellow 4s ease-in-out infinite;
}

@keyframes subtleGlow-yellow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.5));
    }
}

.feature1 .col-4:nth-child(3).animate-in header.second:before {
    animation: subtleGlow-green 4s ease-in-out infinite;
}

@keyframes subtleGlow-green {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.5));
    }
}

.feature1 .col-4:nth-child(4).animate-in header.second:before {
    animation: subtleGlow-blue 4s ease-in-out infinite;
}

@keyframes subtleGlow-blue {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(33, 150, 243, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(33, 150, 243, 0.5));
    }
}

/* Responsive - Reducir animaciones en móviles */
@media screen and (max-width: 768px) {
    .feature1 .col-4.animate-in header.second {
        animation: float 4s ease-in-out infinite;
    }
    
    .feature1 .col-4:hover section {
        transform: translateY(-3px);
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-5px);
        }
    }
}

/* Optimización de rendimiento */
.feature1 .col-4,
.feature1 header.second,
.feature1 header.second:before {
    will-change: transform;
}
