.oportunidades {
    padding: 34px 2.5% 38px;
    background: #ffffff;
}

.oportunidades-header {
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
}

.oportunidades-header span {
    display: block;
    color: var(--azul-cefil);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.oportunidades-header h2 {
    margin: 8px 0 0;
    color: #163b79;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.05;
    letter-spacing: -1px;
}

.oportunidades-header p {
    display: none;
}

.oportunidades-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.oportunidad {
    position: relative;
    display: block;
    height: 290px;
    overflow: hidden;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    isolation: isolate;
}

.oportunidad img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.oportunidad::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 15%,
        rgba(0, 0, 0, 0.18) 45%,
        rgba(0, 0, 0, 0.72) 100%
    );
    content: "";
}

.oportunidad:hover img {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.38;
    transition: opacity 0.35s ease;
}

.oportunidad:hover .overlay {
    opacity: 0.25;
}

.azul {
    background: #004ea8;
}

.celeste {
    background: #00a4d6;
}

.violeta {
    background: #5d2ea6;
}

.verde {
    background: #278b45;
}

.rojo {
    background: #b81454;
}

.contenido {
    position: absolute;
    right: 17px;
    bottom: 16px;
    left: 17px;
    z-index: 5;
}

.contenido h3 {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.12;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.contenido p {
    margin-bottom: 13px;
    font-size: 13px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.flecha {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #222222;
    background: #ffffff;
    font-size: 19px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.oportunidad:hover .flecha {
    transform: translateX(6px);
}

.oportunidad-enlaces {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.oportunidad-enlaces a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.22);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(3px);
    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.oportunidad-enlaces a:hover {
    color: #163b79;
    background: #ffffff;
    transform: translateY(-2px);
}

.oportunidad-enlaces a span {
    font-size: 15px;
}

@media (max-width: 1200px) {
    .oportunidades {
        padding: 36px 3% 42px;
    }

    .oportunidades-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .oportunidad {
        height: 280px;
    }
}

@media (max-width: 800px) {
    .oportunidades {
        overflow: hidden;
        padding: 34px 0 44px;
    }

    .oportunidades-header {
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .oportunidades-header h2 {
        font-size: 34px;
    }

    .oportunidades-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding: 0 20px 10px;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .oportunidades-grid::-webkit-scrollbar {
        display: none;
    }

    .oportunidad {
        height: 330px;
        flex: 0 0 82vw;
        border-radius: 18px;
        scroll-snap-align: center;
    }

    .contenido {
        right: 22px;
        bottom: 22px;
        left: 22px;
    }

    .contenido h3 {
        font-size: 26px;
        line-height: 1.08;
    }

    .contenido p {
        margin-top: 7px;
        margin-bottom: 18px;
        font-size: 16px;
    }

    .flecha {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .oportunidad-enlaces {
        gap: 9px;
        margin-top: 17px;
    }

    .oportunidad-enlaces a {
        min-height: 43px;
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .oportunidades {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .oportunidades-header h2 {
        font-size: 30px;
    }

    .oportunidades-grid {
        padding-right: 16px;
        padding-left: 16px;
    }

    .oportunidad {
        height: 315px;
        flex-basis: 86vw;
    }

    .contenido h3 {
        font-size: 24px;
    }

    .contenido p {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .oportunidad-enlaces {
        flex-direction: column;
        align-items: flex-start;
    }
}