/* Estilos específicos de la tarjeta del libro. */
.cursos_inscripcion {
    position: relative;
    /* 👈 para que los hijos absolute se posicionen dentro */
    width: 100%;
    margin: 0 auto;
    height: auto!important;
    /* altura total del bloque */
    margin-inline: 20px;
    border: 3px solid #f8f8f8;
    border-radius: 30px;
    padding-bottom: 20px;

}

.cursos_inscripcion_datos_div1 {
    position: relative;
    color: #333333;
    top: 55%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    padding-left: 40px;
    gap: 20px;
}

.cursos_inscripcion_inscribirme {
    position: absolute;
    left: 0;
    width: 100%;
    height: 52%!important;
    background-color: #f5f5f5;
    border-radius: 30px;
    z-index: 3;
}

.cursos_inscripcion_datos_div1  {
    padding-inline: 40px;
    
}

.cursos_menu_wrapper {
    padding-inline: 40px;
}

.cursos_inscripcion_datos_div1 span {
    font-size: 16px;
    font-weight: normal!important;
    font-family: "Raleway", sans-serif;
    text-align: justify;
    color: rgb(108, 108, 108);
    
}

.plazas_disponibles span {
    font-size: 18px;
    font-weight: normal!important;
    font-family: "Conthrax", sans-serif;
    text-align: justify;
    color: rgb(108, 108, 108);
}

/* Tarjeta de compra del libro ------------------------------------------------ */
.book-product-card {
    box-sizing: border-box;
}

.book-product-card__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.book-product-card__purchase {
    display: flex;
    flex: 0 1 45%;
    min-width: 0;
    flex-direction: column;
    gap: 20px;
}

.book-product-card .book-product-card__price {
    display: block;
    color: #545454;
    font-family: "Raleway", sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.15;
}

.book-product-card__form,
.book-product-card__form .buttons {
    width: 100%;
    margin: 0;
}

.book-product-card .book-product-card__button {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 18px;
    font-size: 17px;
    line-height: 1.15;
}

.book-product-card__title {
    flex: 0 1 50%;
    min-width: 0;
    padding-right: 10px;
    text-align: right;
}

.book-product-card .book-product-card__title span {
    display: block;
    color: #123352;
    font-family: "Raleway", sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.book-product-card__description {
    margin-top: 24px;
    padding-inline: 40px;
    color: #6c6c6c;
    font-family: "Raleway", sans-serif;
    font-size: .95rem;
    line-height: 1.8;
    text-align: left;
}

.book-product-card__description p {
    margin-bottom: 12px;
}

.book-product-card__description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .book-product-card {
        width: 100%;
        max-width: 420px;
        margin-inline: auto !important;
        border-width: 2px;
        border-radius: 28px;
        padding-bottom: 24px;
    }

    .book-product-card__header {
        display: grid;
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        align-items: start;
        gap: 16px;
        padding: 26px 22px 0;
    }

    .book-product-card__purchase,
    .book-product-card__title {
        width: auto;
        min-width: 0;
    }

    .book-product-card__purchase {
        gap: 20px;
    }

    .book-product-card .book-product-card__price {
        font-size: clamp(30px, 8vw, 35px);
    }

    .book-product-card .book-product-card__button {
        min-height: 40px;
        padding-inline: 10px;
        font-size: 14px;
        white-space: nowrap;
    }

    .book-product-card__title {
        padding-right: 0;
    }

    .book-product-card .book-product-card__title span {
        font-size: clamp(20px, 6vw, 24px);
        line-height: 1.2;
    }

    .book-product-card__description {
        margin-top: 26px;
        padding-inline: 22px;
        font-size: .95rem;
        line-height: 1.75;
    }
}

@media (max-width: 360px) {
    .book-product-card__header {
        grid-template-columns: 1fr;
    }

    .book-product-card__title {
        text-align: left;
    }
}
