/* Namespace Blindado: Todas las clases comienzan con mk-pillars */

.mk-pillars-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mk-pillars-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: #f8f9ff;
}

.mk-pillars__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mk-pillars__item {
    padding: 2.5rem 2rem;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.mk-pillars__item:hover {
    border-color: #006481;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.mk-pillars__icon-wrap {
    font-size: 3rem;
    color: #006481;
    margin-bottom: 1.5rem;
}

.mk-pillars__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0b1c30;
}

.mk-pillars__desc {
    font-size: 1rem;
    color: #565e74;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .mk-pillars__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        /* Esto asegura que los ítems se alineen de forma centrada en el grid */
        justify-items: center; 
    }

    .mk-pillars__item:nth-child(3) {
        grid-column: span 2;
        /* Quitamos el max-width para que herede el tamaño natural */
        width: 100%; 
        /* Limitamos el ancho a la mitad del contenedor para que coincida 
           con el tamaño visual de las de arriba, 
           pero permitiendo que sea flexible */
        max-width: 480px; 
    }
}