.what-makes-different {
    padding: 80px 0;
    background: linear-gradient(135deg, #317DC3, #1a5a9e); /* Gradiente más moderno */
    position: relative;
    overflow: hidden;
}

/* Añadiendo un patrón sutil al fondo */
.what-makes-different::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.what-makes-different .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Actualizando los estilos para que el título y subtítulo tengan coherencia visual */
.what-makes-different .section-subtitle {
    font-size: 3rem; /* Mismo tamaño que el título principal para coherencia visual */
    color: #ffffff; /* Texto blanco para mejor contraste con el fondo azul */
    opacity: 0;
    font-weight: 900; /* Mismo peso que el título principal */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* Sombra para mejor legibilidad */
    margin-top: 0; /* Elimina espacio superior para acercarlo al título */
    animation: fadeInUp 1s forwards 0.3s; /* Animación mejorada */
}

.what-makes-different-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.what-makes-different-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff; /* Cambiado a blanco para mejor contraste con el fondo azul */
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.7s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Añadida sombra sutil para mejor legibilidad */
}

.what-makes-different-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
    perspective: 1000px; /* Añadiendo perspectiva para efectos 3D */
}

.what-makes-different-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px) rotateX(10deg);
    position: relative;
    overflow: hidden;
}

/* Efecto de partículas en hover */
.what-makes-different-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(0deg);
    opacity: 0;
    transition: opacity 0.5s ease, transform 1.5s ease;
    pointer-events: none;
}

.what-makes-different-item:hover::before {
    opacity: 1;
    transform: rotate(45deg);
}

.what-makes-different-item:nth-child(1) { animation: fadeInItem 0.8s forwards 0.9s; }
.what-makes-different-item:nth-child(2) { animation: fadeInItem 0.8s forwards 1.1s; }
.what-makes-different-item:nth-child(3) { animation: fadeInItem 0.8s forwards 1.3s; }
.what-makes-different-item:nth-child(4) { animation: fadeInItem 0.8s forwards 1.5s; }
.what-makes-different-item:nth-child(5) { animation: fadeInItem 0.8s forwards 1.7s; }
.what-makes-different-item:nth-child(6) { animation: fadeInItem 0.8s forwards 1.9s; }

.what-makes-different-item:hover {
    transform: translateY(-15px) scale(1.03) rotateX(0deg);
    box-shadow: 0 20px 40px rgba(225, 37, 27, 0.2);
    background: #ffffff;
}

.what-makes-different-item h3 {
    color: var(--e-global-color-text);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    transition: color 0.3s ease;
}

.what-makes-different-item:hover h3::before {
    opacity: 1;
    transform: scale(1);
}


.what-makes-different-item:hover h3::after {
    width: 100%;
}

.what-makes-different-item p {
    color: var(--e-global-color-46479ce);
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.what-makes-different-item:hover p {
    /* Removing the transform that causes the text to move down */
    transform: none;
}

/* Nuevas animaciones */
@keyframes fadeInItem {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(204, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .what-makes-different {
        padding: 60px 0;
    }

    .what-makes-different .section-subtitle {
        font-size: 1.5rem;
    }

    .what-makes-different-text {
        font-size: 1.1rem;
    }

    .what-makes-different-grid {
        grid-template-columns: 1fr;
    }

    .what-makes-different-item {
        padding: 25px;
    }

    .what-makes-different-item h3 {
        font-size: 1.6rem;
    }

    .what-makes-different-item p {
        font-size: 1rem;
    }
}