
@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 {
    min-height: 100vh; /* Ocupa al menos el 100% de la altura del viewport */
    display: flex; /* Usamos flexbox para asegurar que los elementos se alineen correctamente */
    flex-direction: column; /* Asegura que el contenido fluya en columnas */
    background-color: #FFFFFF; /* Color de fondo */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra opcional */
}

.card-img-top {
    height: 450px;
    object-fit: cover;
}

.baskervville-sc-regular {
    font-family: "Baskervville SC", serif;
    font-weight: 300;
    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: 50vh;
    overflow: hidden;
}

.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;
    z-index: 0;
}

.hero:hover::before {
    filter: blur(0px);
}

.overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: left;
    padding: 20px;
    z-index: 1;
    transition: background 0.5s ease;
}

.hero:hover .overlay {
    background: rgba(0, 0, 0, 0);
}

.carousel-item img {
    height: 400px;
    width: 400px;
    object-fit: cover;
}

.back-book {
    margin: 0;
    padding: 0;
    height: auto;
    background-size: cover;
}

.book-container {
    display: flex;
    align-items: flex-start;
}

.book-container img {
    margin-right: 20px;
}

.book-description {
    width: 500px;
    height: 300px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    top: 28px;
    right: 60px;
}

.button-container {
    display: flex;
    margin-top: 20px;
}
.btn-success {
    font-size: 1.2rem;
    padding: 10px 20px;
}

.titulo-libro {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.imagen-position{
    top: 20px;
    left: 250px;
    height: 450px; 
    width: 350px;
}

.header-container {
    padding: 20px;
}

.logo-empresa {
    height: 170px;
    margin-right: 100px;
    margin-left: 40px;
}

@media (max-width: 1200px) {
    .baskervville-sc-regular {
        font-size: 70px;
    }

    .back-book {
        height: 400px;
    }
    .logo-empresa {
        height: 170px;
        margin-left: 70px;
    }
    .imagen-position{
        top: 20px;
        left: 150px;
        height: 370px; 
        width: auto;
    }
    .book-description {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 992px) {
    .baskervville-sc-regular {
        font-size: 60px;
    }

    .back-book {
        height: 350px;
    }
    .logo-empresa {
        height: 150px;
        width: 120px;
        margin-right: 50px;
    }
    .imagen-position{
        top: 20px;
        left: 150px;
        height: 270px; 
        width: auto;
    }
    .book-description {
        width: 200px;
        height: 300px;
        font-size: 0.7rem;
    }
    .btn-success {
        font-size: 0.7rem;
        padding: 5px 10px;
        bottom: 40px;
        right: 265px;
        height: 40px;
    }

}

@media (max-width: 768px) {
    .baskervville-sc-regular {
        font-size: 40px;
    }

    .back-book {
        height: 350px;
    }
    .logo-empresa {
        height: 150px;
        margin-left: 10px;
        margin-right: 40px;
    }
    .imagen-position{
        top: 20px;
        left: 40px;
        height: 270px; 
        width: auto;
    }
    .book-description {
        width: 200px;
        height: 250px;
        font-size: 0.6rem;
        right: 10px;
    }
    .btn-success {
        font-size: 0.7rem;
        padding: 1px 10px;
        bottom: 5px;
        left: 1px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .baskervville-sc-regular {
        font-size: 40px;
        margin-right: 15px;
        margin-left: 35px;
    }

    .back-book {
        height: 350px;
    }
    .logo-empresa {
        height: 150px;
        margin-left: 30px;
        margin-top: 0px;

    }
    .imagen-position{
        top: 20px;
        left: 69px;
        height: 218px; 
        width: auto;
    }
    .book-description {
        width: 200px;
        height: 250px;
        font-size: 0.6rem;
        right: 10px;
    }
    .btn-success {
        font-size: 1rem;
        padding: 2px 10px;
        height: 50px;
        width: 200px;
    }
}










