/* ========== Especialidades Section ========== */

.ortoer-especialidades {
    background: #ffffff;
    padding: 60px 0;
}

.ortoer-especialidades__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logos */
.ortoer-especialidades__logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ortoer-especialidades__logo {
    width: 0;
    flex: 1 1 0%;
    object-fit: contain;
    padding: 0 16px;
}

.ortoer-especialidades__logo--issste {
    height: 90px;
}

.ortoer-especialidades__logo--buap {
    height: 220px;
}

.ortoer-especialidades__logo--cmot {
    height: 280px;
}

/* Title */
.ortoer-especialidades__title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #0d1b2e;
    margin: 40px 0;
    line-height: 110%;
}

/* Cards grid */
.ortoer-especialidades__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ortoer-especialidades__card {
    background: transparent;
    border: 1px solid #021526;
    border-radius: 20px;
    padding: 24px;
}

.ortoer-especialidades__card-icon {
    margin-bottom: 16px;
}

.ortoer-especialidades__card-icon svg {
    width: 92px;
    height: auto;
}

.ortoer-especialidades__card-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #0d1b2e;
    margin: 0 0 12px 0;
}

.ortoer-especialidades__card-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    color: #163048;
    line-height: 160%;
    margin: 0;
}

/* ========== Tablet ≤768px ========== */
@media (max-width: 768px) {
    .ortoer-especialidades {
        padding: 40px 0;
    }

    /* Logos: ISSSTE top center, BUAP left + CMOT right */
    .ortoer-especialidades__logo {
        width: auto;
        max-width: 100%;
        flex: none;
        padding: 0;
    }

    .ortoer-especialidades__logos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 16px;
        align-items: center;
        justify-items: center;
    }

    .ortoer-especialidades__logo--issste {
        grid-row: 1;
        grid-column: 1 / -1;
        height: 80px;
        justify-self: center;
    }

    .ortoer-especialidades__logo--buap {
        grid-row: 2;
        grid-column: 1;
        height: auto;
        width: 100%;
        justify-self: start;
    }

    .ortoer-especialidades__logo--cmot {
        grid-row: 2;
        grid-column: 2;
        height: auto;
        width: 100%;
        justify-self: end;
    }

    .ortoer-especialidades__title {
        font-size: 48px;
        line-height: 100%;
        margin: 32px 0;
    }

    .ortoer-especialidades__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ortoer-especialidades__card {
        padding: 12px;
    }

    .ortoer-especialidades__card-title {
        font-size: 16px;
    }

    .ortoer-especialidades__card-icon svg {
        width: 40px;
    }

    .ortoer-especialidades__card-text {
        font-size: 11px;
    }
}

/* ========== Small mobile ≤480px ========== */
@media (max-width: 480px) {
    .ortoer-especialidades {
        padding: 32px 0;
    }

    .ortoer-especialidades__container {
        padding: 0 16px;
    }

    .ortoer-especialidades__logos {
        gap: 12px;
    }

    .ortoer-especialidades__grid {
        gap: 12px;
    }

    .ortoer-especialidades__card {
        padding: 16px;
    }

    .ortoer-especialidades__card-icon svg {
        width: 56px;
    }
}
