/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Colores personalizados */
.text-purple {
    color: #6f42c1 !important;
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: white;
}

.hero-section {
    background: linear-gradient(135deg, #ea667c 0%, #764ba2 100%);
    color: white;
}

.hero-section h1,
.hero-section p {
    color: white;
}

/* Cards de protocolos */
.protocolo-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.protocolo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.protocolo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-body {
    display: flex;
    flex-direction: column;
}

.btn-protocolo {
    margin-top: auto;
}

/* Modal de protocolo */
.protocolo-content h3 {
    color: #0d6efd;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
}

.protocolo-content h4 {
    color: #495057;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.protocolo-content ul {
    margin-left: 1.5rem;
}

.protocolo-content .alert {
    margin: 1rem 0;
}

.risk-table {
    margin: 1rem 0;
}

.risk-high {
    background-color: #f8d7da;
}

.risk-medium {
    background-color: #fff3cd;
}

.risk-low {
    background-color: #d1e7dd;
}

/* Estilos de impresión */
@media print {
    .modal-header,
    .modal-footer,
    nav,
    footer {
        display: none !important;
    }
    
    .modal-body {
        padding: 0;
    }
}

/* Imágenes clickeables */
.clickable-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Modal de imagen */
#imagenModal .modal-content {
    background-color: rgba(0, 0, 0, 0.95);
}

#imagenModal .modal-body {
    max-height: 85vh;
    overflow: auto;
}

#imagenModal img {
    max-height: 85vh;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .protocolo-icon {
        font-size: 2rem;
    }
    
    #imagenModal img {
        max-height: 70vh;
    }
}
