#containercolashformacion{
    max-width: 100% !important;
    background-color: var(--color-cardbluelight);
    border-radius: 25px 25px 0px 0px;
}

.libros-container .container {
    background: var(--color-cardbluelight);
    border-radius: 10px;
    padding: 3rem;
    max-width: 1100px;
    margin: 0 auto; /* Centra el contenedor horizooontalmente */
    height: 625px;
}

.titulo-desktop{
    color: var(--color-text-blackandwhite);
    font-family: Outfit;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
}
.card-title-1 {
    position: absolute;
    width: 100%;
    padding: 8px !important;
    /* margin: 0 !important; */
    z-index: 1;
    font-size: 0.9rem;
    text-align: left;
    display: flex;
    flex-direction: inherit;
    top: 8rem;
    color: #FEFEFE;
    font-family: Outfit;
    font-weight: bold;
    font-size: 18px;
    right: 25px;
}
.title-line {
    padding-left: 15px;
    line-height: 1.2;
}
.title-line2 {
    padding-right: 30px;
    line-height: 1.2;
}
.card-title-2{
    position: absolute;
    width: 100%;
    padding: 8px !important;
    /* margin: 0 !important; */
    z-index: 1;
    font-size: 0.9rem;
    text-align: left;
    display: flex;
    flex-direction: inherit;
    top: 8rem;
    color: #FEFEFE;
    font-family: Outfit;
    font-weight: bold;
    font-size: 18px;
    right: 9px;
}
.card-title-3 {
    position: absolute;
    width: 100%;
    padding: 8px !important;
    z-index: 1;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 7.6rem;
    color: #FEFEFE;
    font-family: Outfit;
    font-weight: bold;
    font-size: 18px;
    right: 20px;
}
.title-content-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line-3 {
    display: block;
    align-self: flex-start;
}
.line-2 {
    display: block;
    align-self: flex-start;
}
.card-title-4 {
    position: absolute;
    width: 100%;
    padding: 8px !important;
    z-index: 1;
    font-size: 18px;
    text-align: center;
    top: 7.6rem;
    color: #FEFEFE;
    font-family: Outfit;
    font-weight: bold;
    left: 15px;
}

.title-content-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line-4 {
    display: block;
    align-self: flex-start;
}

.card-img-top {
    object-fit: cover;
    border-radius: 15px;
    margin: 0 !important;
    padding: 0 !important;
}

.card {
    background-color: transparent;
    border-radius: 15px;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border: none;
}

.texto-desktop{
    font-family: Outfit;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: var(--Body-Large-Line-Height, 24px); /* 133.333% */
    letter-spacing: 0.5px;
    margin-top: 15px;
}

.tabletSwiper::after{
    background: none !important;
}

.contenido .btn {
    background: #3FA9F5;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

/* -- Estilos comunes para los libros -- */
.libro {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move; /* Indica que el elemento es movible */
}

.libro img {
    width: 176px;
    height: 200px;
    border-radius: 17px;
    /*padding: 24px;*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Contenedor de libros en vista desktop */
.desktop-books-container {
    height: 450px;
    position: relative;
}

/* Posiciones específicas para cada libro en vista desktop */
.libro1 {
    position: absolute;
    top: 1rem;
    left: 2rem;
    display: flex;
    justify-content: center;
    width: 176px;
    height: 200px;
    border-radius: 20px;
}

.libro2 {
    position: absolute;
    top: 3.7rem;
    right: 6rem;
    display: flex;
    justify-content: center;
}

.libro3 {
    position: absolute;
    bottom: 0.5rem;
    left: 2rem;
    display: flex;
    justify-content: center;
}

.libro4 {
    position: absolute;
    top: 18rem;
    right: 6rem;
    display: flex;
    justify-content: center;
}

/* Estilos para evitar que las imágenes se junten entre 990px y 1100px */
@media (min-width: 990px) and (max-width: 1100px) {
    .desktop-books-container {
        height: 480px;
    }
    .libro1 {
        top: 1rem;
        left: 1rem;
    }
    .libro2 {
        top: 5rem;
        right: 8rem;
    }
    .libro3 {
        bottom: 4rem;
        left: 1rem;
        top: 8rem;
    }
    .libro4 {
        bottom: 1rem;
        right: 8rem;
        top: 13rem;
    }
}

/* Estilos para vista tablet y móvil */
.contenido {
    text-align: center;
}

@media (min-width: 992px) {
    .contenido {
        text-align: left;
        padding-left: 11rem;
    }
}

/* Estilos para vista tablet */
.books-tablet {
    padding: 20px 0;
    max-width: 100%;
}

/* .books-tablet .d-flex {
    gap: 10px;
    padding: 0 20px;
} */

/* Ocultar scrollbar pero mantener funcionalidad */
.overflow-auto {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.overflow-auto::-webkit-scrollbar {
    display: none;
}

@media (min-width: 900px) { /* Cambiado a 900px exactamente */
    .d-lg-block {
        display: block !important;
    }
    
    .d-lg-none {
        display: none !important;
    }

    .d-md-block {
        display: none !important;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .contenido {
        text-align: left;
        padding: 5rem 4rem 5rem 5rem;
    }

    .text-lg-start {
        text-align: left !important;
    }

    .mb-lg-0 {
        margin-bottom: 0 !important;
    }
}

/* Ajustar el contenedor principal para mantener la altura */
.libros-container .container {
    background: var(--color-cardbluelight);
    border-radius: 10px;
    padding: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    height: 625px;
}

/* Ajustar las posiciones de los libros para pantallas más pequeñas */
@media (min-width: 900px) and (max-width: 991px) {
    .desktop-books-container {
        height: 480px;
    }

    .libro1 {
        top: 3rem;
        left: 0rem;
    }

    .libro2 {
        top: 5.7rem;
        right: 2.6rem;
    }

    .libro3 {
        bottom: 0.5rem;
        left: 0rem;
    }

    .libro4 {
        top: 19.5rem;
        right: 2.6rem;
    }
}

/* Ajustar la visualización en tablet solo para pantallas menores a 905px 
@media (max-width: 904px) {
    .d-md-block {
        display: block !important;
    }

    .d-lg-block {
        display: none !important;
    }
}
*/
/* Estilos para el carousel en tablet */
@media (min-width: 600px) and (max-width: 899px) {

    .tablet-carousel-container {
        overflow: hidden;
        position: relative;
        margin: 0 -10px; /* Compensar el padding de los libros */
    }

    .tablet-carousel-flex {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: fit-content;
        will-change: transform;
        transform: translateX(0);
    }

     /*.books-tablet .libro {
        flex: 0 0 auto;
        width: calc(25% - 20px); 25% para mostrar 4 libros, -20px para el margen 
        padding: 0 10px;
        min-width: 180px; /* Asegura un tamaño mínimo
    } */

    .books-tablet .card {
        width: 152px;
        height: 200px;
        cursor: pointer;
    }

    .books-tablet .card-img-top {
        width: 152px;
        height: 200px;
        object-fit: cover;
    }
    .contenido{
        padding: 1rem 6rem 0rem 6rem;
    }
    .card-title-3{
        position: absolute;
        width: 100%;
        padding: 8px !important;
        z-index: 1;
        font-size: 0.9rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        top: 6.6rem;
        color: #FEFEFE;
        font-family: Outfit;
        font-weight: bold;
        font-size: 16px;
        right: 20px;
    }
    .card-title-1,
    .card-title-2,
    .card-title-4 {
        position: absolute;
        width: 100%;
        padding: 8px !important;
        z-index: 1;
        font-size: 0.9rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        top: 7.6rem;
        color: #FEFEFE;
        font-family: Outfit;
        font-weight: bold;
        font-size: 16px;
        right: 20px;
    }
    .title-content-1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 15px;
    }
    
    .line-1 {
        display: block;
        align-self: flex-start;
    }
    .title-content-2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 15px;
    }
    
    .line-2 {
        display: block;
        align-self: flex-start;
    }
    .title-content-3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 30px;
    }
    
    .line-3 {
        display: block;
        align-self: flex-start;
    }
    .title-content-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 60px;
    }
    
    .line-4 {
        display: block;
        align-self: flex-start;
    }
}

/* Ocultar completamente la vista móvil en tablet */
@media (min-width: 600px) {
    .mobile-view {
        display: none !important;
    }
}

/* Mostrar solo la vista móvil por debajo de 600px */

.mobile-item img{
    width: 152px !important;
    height: 200px !important;
    border-radius: 17px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;

}
/* Estilos específicos para móvil */
@media (max-width: 599px) {
    .books-tablet {
        display: none !important;
    }
    
    .mobile-view {
        display: block !important;
        width: 100%;
        padding: 0 !important;
    }

    /* Ajustes para el carousel móvil */
    .mobile-view .carousel-item {
        padding: 0;
    }

    .mobile-view .d-flex {
        justify-content: center !important;
        gap: 5px;
        margin: 0 auto;
        padding: 0;
    }

    .mobile-view .libro {
        width: 152px;
        height: 200px;
        padding: 0 !important;
        margin: 0 !important;
    }

    .mobile-view .card {
        width: 152px;
        height: 200px;
        margin: 0;
        padding: 0;
    }

    .mobile-view .card-img-top {
        width: 152px !important;
        height: 200px !important;
        object-fit: cover;
        gap: 16px; /* Espacio entre los libros */
        border-radius: 15px;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card-title-3{
        position: absolute;
        width: 100%;
        padding: 8px !important;
        z-index: 1;
        font-size: 0.9rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        top: 6.6rem;
        color: #FEFEFE;
        font-family: Outfit;
        font-weight: bold;
        font-size: 16px;
        right: 20px;
    }
    .card-title-1,
    .card-title-2,
    .card-title-4 {
        position: absolute;
        width: 100%;
        padding: 8px !important;
        z-index: 1;
        font-size: 0.9rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        top: 7.6rem;
        color: #FEFEFE;
        font-family: Outfit;
        font-weight: bold;
        font-size: 16px;
        right: 20px;
    }
    .title-content-1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 17px;
    }
    
    .line-1 {
        display: block;
        align-self: flex-start;
    }
    .title-content-2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 15px;
    }
    
    .line-2 {
        display: block;
        align-self: flex-start;
    }
    .title-content-3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 30px;
    }
    
    .line-3 {
        display: block;
        align-self: flex-start;
    }
    .title-content-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 60px;
    }
    
    .line-4 {
        display: block;
        align-self: flex-start;
    }
    /* Ajustes del contenedor */
    .libros-container .container {
        padding: 2rem 1rem;
        height: 564px;
    }

    /* Ajustes del contenido */
    .contenido {
        padding: 0 1rem;
    }

    .titulo-desktop {
        font-size: 28px;
        padding-top: 52px;
    }
}