/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

/* Estilos comunes para alertas */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.alert.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert.success {
    background-color: #efe;
    color: #3a3;
    border: 1px solid #cfc;
}

/* Estilos para formularios */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group.half {
    flex: 1;
}

/* Botones */
button {
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Logo */
.logo-placeholder {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 48px;
    margin-bottom: 10px;
}

.logo-placeholder h2 {
    color: #333;
    margin-bottom: 5px;
}

.logo-placeholder p {
    color: #666;
    font-size: 14px;
}

/* Estilos para modal de imagen ampliada */
.modal-imagen-ampliada {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-imagen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-imagen-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-imagen-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges para modal pendeintes*/
.badge-urgencia, .badge-estado {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 10px;
}

.badge-urgencia.urgencia-baja {
    background: #d4edda;
    color: #155724;
}

.badge-urgencia.urgencia-media {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-urgencia.urgencia-alta {
    background: #fff3cd;
    color: #856404;
}

.badge-urgencia.urgencia-urgente {
    background: #f8d7da;
    color: #721c24;
}

.badge-estado.estado-pendiente {
    background: #f8d7da;
    color: #721c24;
}

.badge-estado.estado-en_proceso {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-estado.estado-completada {
    background: #d4edda;
    color: #155724;
}
/* Añadir al final de css/style.css */

/* Estilos para modal de imagen ampliada */
.modal-imagen-ampliada {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.95) !important;
    z-index: 10000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.modal-imagen-content {
    position: relative !important;
    max-width: 90% !important;
    max-height: 90% !important;
}

.modal-imagen-content img {
    max-width: 100% !important;
    max-height: 90vh !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5) !important;
}

.modal-imagen-close {
    position: absolute !important;
    top: -40px !important;
    right: -40px !important;
    background: #e74c3c !important;
    color: white !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s ease !important;
}

.modal-imagen-close:hover {
    background: #c0392b !important;
}

/* Prevenir scroll cuando hay modal abierto */
body.modal-open {
    overflow: hidden;
}
/* Clase para cuando hay modal abierto */
body.modal-open {
    overflow: hidden;
}

/* Overlay del modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Contenido del modal */
.modal {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header del modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f8f9fa;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: rotate(90deg);
}

/* Body del modal */
.modal-body {
    padding: 30px;
}

/* Modal de imagen ampliada */
.modal-imagen-ampliada {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-imagen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-imagen-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.modal-imagen-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-imagen-close:hover {
    background: #c0392b;
}