@import url('https://fonts.googleapis.com/css2?family=Baskervville+SC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC:ital,wght@0,400;0,700;1,400&display=swap');

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: url('../imagenes/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
}

.container {
    background-color: #FFFFFF; /* Blanco para el contenido */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 450px; /* Altura fija para las imágenes */
    object-fit: cover; /* Ajuste de imagen */
}

.baskervville-sc-regular {
    font-family: "Baskervville SC", serif;
    
    font-style: normal;
    font-size: 122px;
}

.bona-nova-sc-bold {
    font-family: "Bona Nova SC", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 70px;
}

.hero {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden; /* Asegúrate de que el contenido no se desborde */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imagenes/imagenBienvenida.jpeg'); 
    background-size: cover;
    background-position: center;
    filter: blur(8px); 
    transition: filter 0.5s ease; /* Transición para el desenfoque */
    z-index: 0; /* Asegúrate de que el pseudo-elemento esté detrás del contenido */
}

.hero:hover::before {
    filter: blur(0px); /* Eliminar el desenfoque al pasar el ratón */
}

.overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurecer la imagen de fondo */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: left;
    padding: 20px;
    z-index: 1; /* Asegúrate de que el contenido esté por encima del pseudo-elemento */
    transition: background 0.5s ease; /* Transición para el fondo */
}

.hero:hover .overlay {
    background: rgba(0, 0, 0, 0); /* Hacer el fondo transparente al pasar el ratón */
}

.overlay h1 {
    font-size: 48px;
    margin: 0;
}

.overlay p {
    font-size: 24px;
    margin: 10px 0 0 0;
}


.carousel-item img {
    height: 400px;
    width: 400px;
    object-fit: cover;
}

.back-book {
    margin: 0;
    padding: 0;
    height: 70vh;
    background: url('../imagenes/ecosistema-fondo.png') no-repeat center center fixed;
    background-size: cover;
}

.book-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.book-container img {
    margin-right: 20px;
}

.book-description {
    width: 400px; /* Ancho específico */
    height: auto; /* Alto específico */
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Centrar el contenido */
    margin-top: 20px;
}

.titulo-libro {
    justify-content: center; 
    align-items: center;   
}

.header-container {
    padding: 20px;
}

.logo-empresa {
    height: 170px;
    margin-right: 100px;
    margin-left: 40px;
}



/* Media Queries para Responsividad */

@media (max-width: 1200px) {
    .baskervville-sc-regular {
        font-size: 70px;
    }

    .bona-nova-sc-bold {
        font-size: 60px;
    }

    .card-img-top {
        height: 350px;
    }

    .carousel-item img {
        height: 350px;
        width: 350px;
    }

    .book-description {
        width: 350px;
        font-size: 13px;
    }
    .logo-empresa {
        height: 120px;
        margin-right: 100px;
    }

    .overlay h1 {
        font-size: 40px;
    }

    .overlay p {
        font-size: 20px;
    }


}


@media (max-width: 992px) {
    .baskervville-sc-regular {
        font-size: 60px;
    }

    .bona-nova-sc-bold {
        font-size: 50px;
    }

    .card-img-top {
        height: 300px;
    }

    .carousel-item img {
        height: 300px;
        width: 300px;
    }

    .book-description {
        width: 300px;
        font-size: 12px;
    }
    .logo-empresa {
        height: 150px;
        width: 120px;
        margin-right: 50px;
    }

    .overlay h1 {
        font-size: 32px;
    }

    .overlay p {
        font-size: 18px;
    }


}

@media (max-width: 768px) {

    .bona-nova-sc-bold {
        font-size: 40px;
    }

    .card-img-top {
        height: 250px;
    }

    .carousel-item img {
        height: 250px;
        width: 250px;
    }

    .book-container {
        flex-direction: column;
        align-items: center;
    }

    .book-description {
        width: 250px;
        font-size: 11px;
    }
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-empresa {
        height: 150px;
        margin-left: 10px;
        margin-right: 40px;
    }

    .baskervville-sc-regular {
        font-size: 40px;
    }
    .overlay h1 {
        font-size: 17px;
    }

    .overlay p {
        font-size: 16px;
    }



}

@media (max-width: 576px) {

    .bona-nova-sc-bold {
        font-size: 30px;
    }

    .card-img-top {
        height: 200px;
    }

    .carousel-item img {
        height: 200px;
        width: 200px;
    }

    .book-description {
        width: 300px;
        font-size: 0.6rem;
        top: 251px;
        height: 250px;
    }
    .logo-empresa {
        height: 80px;
        width: 70px;
        margin-right: 10px;
        margin-left: 1px;
    }

    .baskervville-sc-regular {
        font-size: 27px;
        margin-right: 4px;
    }
    .overlay h1 {
        font-size: 14px;
    }

    .overlay p {
        font-size: 15px;
    }
    .video-position{
        width: 100%;
    }

}






