/* Estilos mejorados para las tarjetas de características */
.about-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px auto 60px;
    position: relative;
    z-index: 1;
    padding: 0;
    max-width: 1200px;
}

.feature-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 0;
    transform: translateY(0);
    margin: 0;
    min-height: 400px;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-blue);
}

.feature-header {
    text-align: center;
    padding: 30px 20px 15px;
    position: relative;
    background-color: #f9f9f9;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.feature-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 10s ease-in-out infinite;
    z-index: -1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--primary-blue);
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.feature-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-text {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.feature-footer {
    margin-top: auto;
    text-align: center;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.feature-btn:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 196, 0.3);
}

.feature-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.feature-btn:hover i {
    transform: translateX(5px);
}

/* Animación para la forma del icono */
@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Animaciones de entrada */
.feature-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.3s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 992px) {
    .about-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-card {
        width: 300px;
        margin: 0 10px 20px;
    }
    
    .feature-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin: 15px auto;
    }
    
    .feature-icon i {
        font-size: 1.8rem;
    }
    
    .feature-title {
        font-size: 1.6rem;
    }
    
    .feature-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .about-features {
        flex-direction: column;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-card {
        width: 90%;
        max-width: 350px;
        margin-bottom: 25px;
    }
}

/* Clases específicas para los iconos */
.icon-eco .feature-icon-bg {
    background: #4CAF50;
}

.icon-eco .feature-icon i {
    color: #4CAF50;
}

.icon-cert .feature-icon-bg {
    background: #FFC107;
}

.icon-cert .feature-icon i {
    color: #FFC107;
}

.icon-service .feature-icon-bg {
    background: #2196F3;
}

.icon-service .feature-icon i {
    color: #2196F3;
}
