/* ===== ESTILOS GENERALES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
}

.container {
    max-width: 1200px;
}

/* ===== CARRUSEL DE LIBROS ===== */
#booksCarousel {
    max-height: 400px;
}

.carousel-item {
    height: 400px;
}

.carousel-item .row {
    height: 100%;
    margin: 0 20px;
}

.book-cover-carousel {
    max-height: 350px;
    max-width: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.book-placeholder {
    width: 250px;
    height: 350px;
    background: linear-gradient(145deg, #f1f3f4, #e8eaed);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Estilos eliminados: .book-card-result y variaciones no se usan en el template */

/* ===== BOTONES ===== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.reserve-single-btn {
    width: 100%;
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 0.5rem;
}

.reserve-single-btn:hover {
    background-color: #0056b3;
    border-color: #004085;
    color: white;
}

/* ===== SECCIÓN DE BÚSQUEDA ===== */
.search-section .input-group-lg .form-control {
    border-radius: 0 8px 8px 0;
    border: 2px solid #dee2e6;
    font-size: 1.1rem;
}

.search-section .input-group-lg .input-group-text {
    border-radius: 8px 0 0 8px;
    border: 2px solid #dee2e6;
    border-right: none;
}

.search-section .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ===== MENSAJES Y ALERTAS ===== */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
}

.alert-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

/* ===== FORMULARIO DE RESERVA ===== */
#reserve-form {
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 25px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

#reserve-form .form-label {
    font-weight: 600;
    color: #495057;
}

#reserve-form .form-control {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid #ddd;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
}

#reserve-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    background: white !important;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#altcha-widget {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px 0;
}

/* ===== ACORDEÓN DE BIBLIOTECAS ===== */
.accordion-button {
    font-weight: 600;
    background: #f8f9fa;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.accordion-button:not(.collapsed) {
    background: #e3f2fd;
    color: #1976d2;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .carousel-item {
        height: auto;
        min-height: 400px;
    }
    
    .carousel-item .row {
        margin: 0 10px;
    }
    
    .book-cover-carousel {
        max-height: 200px;
        max-width: 150px;
    }
    
    .book-placeholder {
        width: 150px;
        height: 200px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    
    #results .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .book-title {
        font-size: 1rem;
    }
    
    .carousel-item .card-body {
        padding: 1rem;
    }
    
    #reserve-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        border-radius: 50px;
        padding: 0.75rem 1.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
}

/* Animaciones eliminadas: se aplicaban a clases no utilizadas */

/* ===== EFECTOS DE HOVER EN BOTONES ===== */
.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* ===== CONTADOR DE SELECCIONADOS ===== */
#selected-count {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Estados eliminados: these availability indicators are not used in template */

/* Estilos de book covers eliminados: not used in current template */

/* Estilos duplicados eliminados y consolidados en la sección FORMULARIO DE RESERVA */