/* ===================================================================
   Página: Oportunidades (Trabaja con Nosotros)
   Cargado solo en page-oportunidades.php (ver dc_oportunidades_assets)
   =================================================================== */

.dc-highlight {
    background: var(--dc-red, #EB0028);
    color: #fff;
    padding: .1em .35em;
    display: inline-block;
}

/* ---------------------------------------------------------------
   HERO
   --------------------------------------------------------------- */
.dc-oport-hero {
    background-color: var(--dc-red, #EB0028);
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    z-index: 1;
    /* Alto mínimo + flex para centrar el título verticalmente.
       padding-top despeja el header transparente y fijo (Porto);
       el resto del alto lo centra el flexbox. */
    min-height: 60vh;
    padding: 160px 0 3rem;
    display: flex;
    align-items: center;
}
.dc-oport-hero .container {
    width: 100%;
}
.dc-oport-hero__title {
    color: #fff !important;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}
.dc-oport-hero__subtitle {
    color: #fff !important;
    font-size: 1.15rem;
    max-width: 720px;
    opacity: .95;
    margin: 0;
}

/* ---------------------------------------------------------------
   ¿POR QUÉ TRABAJAR CON NOSOTROS?
   --------------------------------------------------------------- */
.dc-oport-porque {
    padding: 5rem 0;
}
.dc-oport-section-title {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.dc-oport-porque__img {
    width: 100%;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.dc-oport-accordion__item {
    border-bottom: 1px solid #e0e0e0;
}
.dc-oport-accordion__toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    color: #222;
}
/* El tema trae estilos por defecto de :hover/:focus/:active para
   <button> (fondo oscuro, texto casi invisible). Se anulan aquí para
   que el toggle del acordeón mantenga siempre el mismo look. */
.dc-oport-accordion__toggle,
.dc-oport-accordion__toggle:hover,
.dc-oport-accordion__toggle:focus,
.dc-oport-accordion__toggle:focus-visible,
.dc-oport-accordion__toggle:active,
.dc-oport-accordion__toggle.is-open {
    background: none !important;
    background-color: transparent !important;
    color: #222 !important;
    box-shadow: none !important;
    outline: none !important;
}
.dc-oport-accordion__icon {
    width: 14px;
    height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex-shrink: 0;
}
.dc-oport-accordion__toggle.is-open .dc-oport-accordion__icon {
    transform: rotate(225deg);
}
.dc-oport-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.dc-oport-accordion__body-inner {
    padding-bottom: 1.5rem;
    color: #444;
    line-height: 1.6;
}
.dc-oport-accordion__body-inner p {
    margin-bottom: 1rem;
}
.dc-oport-accordion__body-inner p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------------
   NUESTRAS ÁREAS PROFESIONALES
   --------------------------------------------------------------- */
.dc-oport-areas {
    padding: 4rem 0;
    background: #f7f7f7;
}
.dc-oport-areas__title {
    text-align: center;
    color: var(--dc-red, #EB0028);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    text-transform: uppercase;
    margin-bottom: 3rem;
}
/* Las flechas ahora son hermanas del track dentro de un flex row
   (ya no van position:absolute encima de las tarjetas): así nunca
   se superponen y quedan centradas verticalmente por align-items. */
.dc-oport-areas__wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.dc-oport-areas__track {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    flex: 1 1 auto;
    min-width: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.dc-oport-areas__track::-webkit-scrollbar {
    display: none;
}
.dc-oport-area-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.dc-oport-area-item__img {
    display: block;
    width: 240px;
    height: 150px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #fff;
    background-repeat: no-repeat;
    border: 1px solid #e5e5e5;
}
.dc-oport-areas__nav {
    position: static;
    flex-shrink: 0;
    box-sizing: border-box !important;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: var(--dc-red, #EB0028);
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s ease;
}
/* El carácter de flecha (←/→) no queda ópticamente centrado dentro
   del círculo por el propio dibujo del glifo en la fuente — se
   sube un poco quitándole aire de abajo al área de contenido. */
.dc-oport-areas__nav {
    padding-bottom: 4px !important;
}
.dc-oport-areas__nav:hover {
    opacity: .85;
}

/* ---------------------------------------------------------------
   ¿ERES ESTUDIANTE O RECIÉN GRADUADO?
   --------------------------------------------------------------- */
.dc-oport-estudiante {
    padding: 5rem 0;
    text-align: center;
}
.dc-oport-estudiante__title {
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 3rem);
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.dc-oport-estudiante__subtitle {
    max-width: 720px;
    margin: 0 auto 3rem;
    color: #444;
    font-size: 1.1rem;
}
.dc-oport-programas {
    justify-content: center;
}
.dc-oport-programa {
    margin-bottom: 1.5rem;
}
.dc-oport-programa__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.dc-oport-programa__btn {
    display: inline-block;
    border: 2px solid var(--dc-red, #EB0028);
    color: var(--dc-red, #EB0028);
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    padding: .9rem 2.5rem;
    border-radius: 50px;
    transition: background .2s ease, color .2s ease;
}
.dc-oport-programa__btn:hover {
    background: var(--dc-red, #EB0028);
    color: #fff;
}

/* ---------------------------------------------------------------
   CTA FINAL — OPORTUNIDADES LABORALES
   --------------------------------------------------------------- */
.dc-oport-cta {
    position: relative;
    min-height: 480px;
    background-color: #222;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dc-oport-cta__inner {
    text-align: center;
    padding: 2rem;
}
.dc-oport-cta__title {
    margin-bottom: 2rem;
}
.dc-oport-cta__title span {
    background: var(--dc-red, #EB0028);
    color: #fff;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 4.5rem);
    text-transform: uppercase;
    padding: .3em .6em;
    display: inline-block;
    line-height: 1.2;
}
.dc-oport-cta__btn {
    display: inline-block;
    background: var(--dc-red, #EB0028);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    transition: opacity .2s ease;
}
.dc-oport-cta__btn:hover {
    opacity: .85;
    color: #fff;
}

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 991px) {
    .dc-oport-porque__col {
        margin-bottom: 2.5rem;
    }
}

/* Padding lateral garantizado en mobile/tablet.
   No depende del padding que el tema le dé (o no) a .container en
   estos breakpoints — así el contenido nunca queda pegado al borde
   de la pantalla, pase lo que pase con los estilos globales. */
@media (max-width: 768px) {
    .dc-oport-hero .container,
    .dc-oport-porque.container,
    .dc-oport-estudiante.container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 576px) {
    .dc-oport-hero {
        min-height: 50vh;
    }
    .dc-oport-areas__wrap {
        gap: .75rem;
        padding: 0 .75rem;
    }
    .dc-oport-areas__track {
        gap: 1.75rem;
    }
    .dc-oport-areas__nav {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    /* CTA final: en pantallas angostas el título centrado (grande,
       en 2 líneas) queda encima de las caras de la foto de fondo.
       Se baja todo el bloque al pie de la sección y se reduce el
       tamaño de título/botón para que ocupe menos alto. */
    .dc-oport-cta {
        align-items: flex-end;
    }
    .dc-oport-cta__inner {
        padding: 1.5rem 1.25rem 2.5rem;
    }
    .dc-oport-cta__title {
        margin-bottom: 1rem;
    }
    .dc-oport-cta__title span {
        font-size: 1.5rem;
        padding: .25em .5em;
    }
    .dc-oport-cta__btn {
        padding: .75rem 2rem;
        font-size: .95rem;
    }
}