/* assets/css/libro-detalle.css */

.book-detail-card {
    background-color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.book-detail-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start; /* Alinea los elementos al inicio para evitar estiramientos */
}

.book-cover {
    flex: 0 0 300px; /* Ancho fijo para la carátula */
    display: flex;
    justify-content: center;
    background-color: #f7fafc; /* Color de fondo para visualizar el contenedor */
    border-radius: 12px;
}

.book-cover-img {
    width: 100%;
    max-width: 20rem;
    height: auto;
    object-fit: contain; /* Asegura que la imagen mantenga su proporción sin estirarse */
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.book-info-container {
    flex: 1; /* Ocupa el resto del espacio disponible */
    display: flex;
    flex-direction: column;
}

.book-info {
    margin-bottom: 2rem;
}

.book-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.book-author {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.book-price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.book-price {
    font-size: 1.875rem;
    font-weight: bold;
    color: #4338ca;
}

.add-to-cart-btn {
    background-color: #4338ca;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
}

.add-to-cart-btn:hover {
    background-color: #312e81;
}

.book-sinopsis {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.section-content {
    color: #4b5563;
    line-height: 1.625;
}

.book-details {
    margin-top: 1.5rem;
}

.detail-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    list-style-position: inside;
}

.detail-list li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .book-detail-flex {
        flex-direction: column;
    }
    
    .book-cover {
        flex: 1;
    }
    
    .book-info-container {
        text-align: center;
    }
    
    .book-price-container {
        justify-content: center;
    }
    
    .book-sinopsis, .book-details {
        text-align: left;
    }
}
