body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* ========================================
   MODALES DE IMÁGENES - ESTILOS UNIFICADOS
   ======================================== */

/* Modal de imagen responsivo */

.modal-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 85vh;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Imagen principal del modal */

#imagenModalSrc,
#modalImage,
.modal-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

/* Modal extra grande para imágenes */

.modal-xl.image-modal {
    max-width: 95vw;
}

/* Modal grande para imágenes */

.modal-lg.image-modal {
    max-width: 85vw;
}

/* Modal medio para imágenes */

.modal-image-md {
    max-width: 70vw;
}

/* Contenedor del modal para imágenes */

.modal-content.image-modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

/* Header del modal de imagen */

.modal-header.image-modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Body del modal sin padding para imágenes */

.modal-body.image-modal-body {
    padding: 0;
    background-color: #fff;
}

/* Footer del modal de imagen */

.modal-footer.image-modal-footer {
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Spinner de carga */

.image-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Estados de la imagen */

.image-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-loaded {
    opacity: 1;
}

/* Miniaturas clicables */

.img-thumbnail.clickable,
.catalog-img.clickable,
.catalog-image.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.img-thumbnail.clickable:hover,
.catalog-img.clickable:hover,
.catalog-image.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}

/* Responsive adjustments */
@media (width <= 768px) {
    .modal-xl.image-modal,
    .modal-lg.image-modal {
        max-width: 98vw;
        margin: 0.5rem;
    }
    
    #imagenModalSrc,
    #modalImage,
    .modal-image {
        max-height: 70vh;
    }
    
    .modal-image-container {
        max-height: 75vh;
    }
}

@media (width <= 576px) {
    .modal-xl.image-modal,
    .modal-lg.image-modal {
        max-width: 100vw;
        margin: 0;
    }
    
    #imagenModalSrc,
    #modalImage,
    .modal-image {
        max-height: 60vh;
    }
    
    .modal-image-container {
        max-height: 65vh;
    }
}

.navbar {
    background-color: #004080 !important;
    padding: 1rem;
    color: white;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-weight: bold;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.nav-links a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    font-size: 1rem;
}

.nav-links a:hover {
    text-decoration: underline;
}

.container {
    padding: 2rem;
}

h1 {
    color: #004080;
}

.button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    margin: 1rem 0;
    cursor: pointer;
}

.button:hover {
    background-color: #06c;
}

/* ========================================
   BOTÓN PERSONALIZADO DE LOGIN
   ======================================== */

/* Botón personalizado para login */

.btn-custom-login {
    background-color: #fff !important;
    border: 2px solid #fff !important;
    color: #0d6efd !important;
    font-weight: 700 !important;
    padding: 15px 35px !important;
    font-size: 1.2rem !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 15px rgb(0 0 0 / 20%) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.btn-custom-login:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #0856d6 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgb(0 0 0 / 25%) !important;
}

.btn-custom-login:focus {
    background-color: #fff !important;
    border-color: #fff !important;
    color: #0d6efd !important;
    box-shadow: 0 6px 15px rgb(0 0 0 / 20%), 0 0 0 3px rgb(13 110 253 / 25%) !important;
}

.navbar.navbar-expand-lg.navbar-dark.bg-dark.mb-4 {
    background-color: #004080 !important;
}