/* NESAGAVIRIA - Aliados */
/* ================= ALIADOS (index) ================= */
/* Verde traslúcido sobre imagen de la sección (mismo criterio que .services) */
.aliados {
    padding: 28px 0 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(
            rgba(0, 169, 122, 0.5),
            rgba(0, 138, 102, 0.5)
        ),
        url(../../images/aliados.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.aliados__head {
    margin: 0 auto 4px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    /* Panel de lectura: oscurece un poco el fondo y desenfoca la foto detrás del texto */
    padding: clamp(14px, 2.8vw, 22px) clamp(16px, 3vw, 28px);
    border-radius: 14px;
    background: rgba(6, 28, 22, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.aliados__head h2 {
    text-align: center;
}

.aliados h2 {
    font-size: clamp(18px, 3vw, 26px);
    margin-bottom: 6px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 3px rgba(0, 0, 0, 0.65),
        0 3px 14px rgba(0, 0, 0, 0.45);
}

.aliados__intro {
    width: 100%;
    max-width: none;
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.78;
    letter-spacing: 0.034em;
    word-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.98);
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.75),
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 10px rgba(0, 0, 0, 0.35);
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.aliados__text {
    width: 100%;
    max-width: none;
    margin: 0 0 8px;
    text-align: justify;
    text-align-last: center;
}

.aliados__text p {
    font-size: 16px;
    line-height: 1.82;
    letter-spacing: 0.03em;
    word-spacing: 0.062em;
    color: rgba(255, 255, 255, 0.97);
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.75),
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 10px rgba(0, 0, 0, 0.35);
    margin: 0;
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.aliados__tagline {
    font-size: 1.125rem;
    line-height: 1.64;
    letter-spacing: 0.032em;
    word-spacing: 0.058em;
    font-weight: 600;
    color: #ffffff;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 10px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
    -webkit-hyphens: auto;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .aliados__head {
        background: rgba(6, 28, 22, 0.78);
    }
}

/* Franja de logos a todo el ancho del viewport (texto sigue en .container) */
.aliados__grid-wrap {
    width: 100%;
    margin-top: 12px;
    padding-inline: clamp(10px, 2.5vw, 28px);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.aliados__grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
    gap: 8px;
    margin: 0;
}

@media (min-width: 480px) {
    .aliados__grid {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    }
}

@media (min-width: 900px) {
    .aliados__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.aliados__card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 10px 12px;
    background: var(--color-white);
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal), transform var(--transition-fast);
}

.aliados__card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.aliados__logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 44px;
    height: auto;
    object-fit: contain;
}

/* Logo muy horizontal: un poco más grande solo para Sura */
.aliados__logo--sura {
    max-height: 54px;
    max-width: min(100%, 200px);
}

@media (max-width: 767px) {
    .aliados {
        padding: 22px 0 28px;
    }

    .aliados__grid-wrap {
        margin-top: 10px;
    }
}

