.features {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff20" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.section-title {
    color: #1565C0;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1565C0, #64B5F6);
    border-radius: 2px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.feature-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: #64B5F6;
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1565C0, #64B5F6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    color: white;
    position: relative;
    transition: all 0.4s ease;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border: 2px dashed #1565C0;
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.feature-item:hover .feature-icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, #64B5F6, #1565C0);
}

.feature-item h3 {
    color: #1565C0;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.feature-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #64B5F6;
    border-radius: 2px;
}

.feature-item p {
    color: #546E7A;
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
    transition: color 0.3s ease;
}

.feature-item:hover p {
    color: #1565C0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animación de entrada */
.feature-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.4s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-container {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
}
