﻿body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container-fluid{
    padding-left : 1% !important;
    padding-right : 1% !important;
}

.libro-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin: 2rem auto;
    overflow: hidden;
}

.libro-header {
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: auto !important;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 22px;
}

    .back-button:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateX(-5px);
    }
        

.libro-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.libro-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.libro-info h2 {
    color: #0a58ca;
    margin-bottom: 0.5rem;
}

.libro-author {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.libro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .meta-item i {
        color: #0d6efd;
    }

.libro-description {
    line-height: 1.6;
    margin-bottom: 2rem;
}

.libro-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0a58ca;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.libro-buttons {
    margin-top: 1.5rem;
}

.libro-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

    .libro-btn:hover {
        background-color: #0a58ca;
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

.resenas-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.resenas-stats .card {
    transition: transform 0.3s;
}

    .resenas-stats .card:hover {
        transform: translateY(-5px);
    }

.resena-item {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.resena-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.resena-calificacion {
    color: #fd7e14;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #6c757d;
    text-decoration: none;
}

    .btn-volver:hover {
        color: #0d6efd;
    }

@media (max-width: 992px) {
    .libro-body {
        grid-template-columns: 1fr;
    }

    .libro-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .libro-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .libro-header {
        padding: 1rem;
    }

    .libro-body {
        padding: 1.5rem;
    }

    .libro-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .libro-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

