/* ==========================================================
   BOLSA-TRABAJO.CSS
   Torrent Pharma México — Carreras Profesionales
   Depende de: general.css
   ========================================================== */


/* ----------------------------------------------------------
   HERO — Imagen de fondo fotográfica con título superpuesto
   ---------------------------------------------------------- */

.inv-hero {
    background-image: url('../images/bolsa-trabajo.webp');
}

/* ----------------------------------------------------------
   INTRO
   ---------------------------------------------------------- */

.bt-intro {
    background-color: var(--color-white);
    padding-bottom: 30px;
}

.bt-intro__text {
    font-size: 0.92rem;
    color: var(--color-text-dark);
    line-height: 1.85;
    margin-bottom: 16px;
}

.bt-intro__text:last-child {
    margin-bottom: 0;
}

.bt-intro__text--highlight {
    margin-top: 8px;
}


/* ----------------------------------------------------------
   BANNER VACANTES
   ---------------------------------------------------------- */

.bt-banner {
    position: relative;
    background-color: var(--color-primary);
    padding: 22px 0;
    overflow: hidden;
}

.bt-banner__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

/* Forma decorativa redondeada a la derecha — consistente con prod-category__banner-deco */
.bt-banner__deco {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.bt-banner__deco::before {
    content: '';
    position: absolute;
    right: 60px;
    top: -20px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}


/* ----------------------------------------------------------
   SECCIÓN DE VACANTES
   ---------------------------------------------------------- */

.bt-vacantes {
    background-color: var(--color-blue-light);
    padding-top: 40px;
    padding-bottom: 60px;
}

.bt-vacantes__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* ----------------------------------------------------------
   CARD DE VACANTE
   ---------------------------------------------------------- */

.bt-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bt-card:hover {
    box-shadow: 0 6px 20px rgba(41, 38, 98, 0.1);
    transform: translateY(-2px);
}

/* Fila principal: info + botones */
.bt-card__main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px;
}

/* Bloque de información textual */
.bt-card__info {
    flex: 1;
    min-width: 0;
}

.bt-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.bt-card__area {
    font-size: 0.82rem;
    color: var(--color-gray-medium);
    margin-bottom: 14px;
}

/* Pills / Tags */
.bt-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-tag {
    display: inline-block;
    background-color: var(--color-lila);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.3;
}

/* Columna de botones */
.bt-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

/* Botones de acción */
.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition-smooth);
    min-width: 160px;
}

/* Botón "Ver más información" — fondo lila medio */
.bt-btn--info {
    background-color: var(--color-lila);
    color: var(--color-white);
}

.bt-btn--info:hover {
    background-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 38, 98, 0.25);
}

/* Estado activo: cuando el detalle está abierto */
.bt-btn--info.is-active {
    background-color: var(--color-primary);
}

/* Botón "Ver en LinkedIn" — fondo azul oscuro primario */
.bt-btn--linkedin {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.bt-btn--linkedin:hover {
    background-color: #1a1940;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 38, 98, 0.3);
}


/* ----------------------------------------------------------
   DETALLE EXPANDIBLE
   ---------------------------------------------------------- */

.bt-card__detail {
    border-top: 1px solid var(--color-blue-light);
    background-color: var(--color-white-light);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

/* Cuando [hidden] es quitado por JS, el contenedor se expande */
.bt-card__detail:not([hidden]) {
    max-height: 600px;
    padding: 22px 24px;
}

.bt-card__detail-heading {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bt-card__detail-text {
    font-size: 0.88rem;
    color: var(--color-text-dark);
    line-height: 1.75;
}


/* ----------------------------------------------------------
   ESTADO VACÍO
   ---------------------------------------------------------- */

.bt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--color-gray-medium);
    text-align: center;
}

.bt-empty svg {
    opacity: 0.4;
}

.bt-empty p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.bt-empty[hidden] {
    display: none;
}


/* ----------------------------------------------------------
   RESPONSIVE — TABLET (768px)
   ---------------------------------------------------------- */

@media (min-width: 768px) {

    .bt-intro__text {
        font-size: 0.95rem;
    }

    .bt-banner__title {
        font-size: 2rem;
    }

    /* La card pasa a fila: info a la izquierda, botones a la derecha */
    .bt-card__main {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .bt-card__actions {
        align-items: flex-end;
    }

    .bt-tag {
        font-size: 0.75rem;
    }
}


/* ----------------------------------------------------------
   RESPONSIVE — DESKTOP (992px)
   ---------------------------------------------------------- */

@media (min-width: 992px) {
 
    .bt-intro__text {
        font-size: 1rem;
        line-height: 1.9;
    }

    .bt-banner {
        padding: 28px 0;
    }

    .bt-banner__title {
        font-size: 2.4rem;
    }

    .bt-banner__deco {
        width: 300px;
        height: 160px;
    }

    .bt-card__main {
        padding: 26px 32px;
        gap: 32px;
    }

    .bt-card__detail:not([hidden]) {
        padding: 26px 32px;
    }

    .bt-card__title {
        font-size: 1.3rem;
    }

    .bt-btn {
        font-size: 0.82rem;
        padding: 11px 24px;
        min-width: 180px;
    }
}


/* ----------------------------------------------------------
   RESPONSIVE — LARGE DESKTOP (1200px)
   ---------------------------------------------------------- */

@media (min-width: 1200px) {

    .bt-banner__title {
        font-size: 2.6rem;
    }

    .bt-card__title {
        font-size: 1.4rem;
    }

    .bt-tag {
        font-size: 0.78rem;
        padding: 6px 14px;
    }
}
