* {
    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;
}

/* ==================== ESTILOS DE LOGIN ==================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 0.5s ease;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* ==================== ESTILOS PRINCIPALES ==================== */
.container {
    max-width: 1400px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
}

header h1 {
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 8px;
}

.user-name {
    font-weight: bold;
    font-size: 16px;
}

.role-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Estadísticas */
.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.stat-card {
    background: rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.3);
}

.stat-card strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

/* Layout principal */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 25px;
}

/* Tarjetas */
.card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    font-size: 20px;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Botón principal */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Botón de guardar */
.btn-save {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Opciones de entrada */
.input-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-secondary.active {
    background: #667eea;
}

/* Secciones de formulario */
.form-section {
    transition: all 0.3s ease;
}

/* Input de archivo */
.file-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
}

.file-input:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

/* Vista previa de datos */
.preview-data {
    margin-top: 20px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
    animation: fadeIn 0.3s ease;
}

.preview-data h4 {
    margin-bottom: 15px;
    color: #1976d2;
    font-size: 16px;
}

.preview-content {
    font-size: 14px;
}

/* Datos extraídos */
.extracted-data {
    margin-bottom: 15px;
}

.data-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.data-row label {
    font-weight: bold;
    min-width: 140px;
    color: #495057;
    font-size: 14px;
}

.editable-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: white;
}

.editable-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.success {
    color: #28a745;
    font-size: 12px;
    margin-left: 10px;
    font-weight: bold;
}

.warning {
    color: #ffc107;
    font-size: 12px;
    margin-left: 10px;
    font-weight: bold;
}

/* Filtros */
.filtros {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input,
.filter-select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Lista de órdenes */
.ordenes-list {
    max-height: 600px;
    overflow-y: auto;
}

.orden-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.orden-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.orden-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.orden-numero {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
}

.orden-estado {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.estado-pendiente { 
    background: #ffc107; 
    color: #000; 
}

.estado-en-autorizacion { 
    background: #17a2b8; 
    color: #fff; 
}

.estado-aprobada { 
    background: #28a745; 
    color: #fff; 
}

.estado-rechazada { 
    background: #dc3545; 
    color: #fff; 
}

.orden-detalles {
    font-size: 14px;
    color: #666;
}

.orden-detalles div {
    margin-bottom: 5px;
}

.orden-detalles a {
    color: #667eea;
    text-decoration: none;
}

.orden-detalles a:hover {
    text-decoration: underline;
}

/* Loading y no results */
.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 14px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 25px;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    max-height: 85%;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close:hover {
    color: #000;
}

/* ==================== TRAZO DE AUTORIZACIÓN ==================== */
.trazo-container {
    margin-top: 20px;
}

.paso-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ddd;
    transition: all 0.3s;
}

.paso-activo {
    border-left-color: #17a2b8;
    background: #e3f2fd;
    animation: pulse 1s;
}

.paso-aprobado {
    border-left-color: #28a745;
    background: #d4edda;
}

.paso-rechazado {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.paso-cancelado {
    border-left-color: #6c757d;
    background: #e9ecef;
    opacity: 0.7;
}

.paso-info {
    flex: 1;
}

.paso-nivel {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.paso-usuario {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.paso-fecha {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.paso-estado {
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
}

.paso-comentario {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    font-size: 14px;
    border-left: 3px solid #667eea;
}

/* Acciones de autorización */
.acciones-autorizacion {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.comentario-box textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    font-family: inherit;
    resize: vertical;
    font-size: 14px;
}

.comentario-box textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn-aprobar, .btn-rechazar {
    padding: 8px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-aprobar {
    background: #28a745;
    color: white;
}

.btn-aprobar:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-rechazar {
    background: #dc3545;
    color: white;
}

.btn-rechazar:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Historial */
.historial-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    border-radius: 6px;
}

.historial-item strong {
    color: #667eea;
}

.historial-item small {
    color: #999;
}

.historial-item em {
    color: #666;
    font-size: 13px;
}

/* ==================== ANIMACIONES ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(23, 162, 184, 0); }
    100% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-logout {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .filtros {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .stat-card {
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }
    
    .input-options {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
    }
    
    .data-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-row label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .editable-field {
        width: 100%;
    }
    
    .success, .warning {
        margin-left: 0;
        margin-top: 5px;
    }
    
    header h1 {
        font-size: 20px;
    }
}

/* ==================== SCROLLBAR PERSONALIZADA ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==================== UTILIDADES ==================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.highlight {
    background: #fff3cd;
    padding: 2px 5px;
    border-radius: 3px;
}


/* Modal para visor de PDF */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

.pdf-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    top: 5%;
}

.pdf-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: white;
}

.close-pdf {
    position: absolute;
    top: 10px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close-pdf:hover {
    color: #dc3545;
}

.pdf-title {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.btn-descargar-pdf {
    position: absolute;
    top: 10px;
    right: 100px;
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 2001;
    transition: all 0.3s;
}

.btn-descargar-pdf:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Estilos para la firma digital */
.firma-container {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    border-left: 4px solid #28a745;
    animation: fadeIn 0.5s;
}

.firma-container h4 {
    color: #2e7d32;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.firma-imagen {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.firma-detalles {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 5px;
    font-size: 13px;
}

.firma-detalles p {
    margin: 5px 0;
}

.firma-verificacion {
    margin-top: 10px;
    text-align: center;
    color: #2e7d32;
    font-size: 12px;
}

.firma-paso {
    margin-top: 10px;
    padding: 8px;
    background: #e8f5e9;
    border-radius: 5px;
    border-left: 3px solid #4caf50;
}

.firma-paso summary {
    cursor: pointer;
    color: #2e7d32;
    font-size: 12px;
}

.firma-paso summary:hover {
    text-decoration: underline;
}

/* Animación para la firma */
@keyframes firmar {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.firma-container {
    animation: firmar 0.5s ease;
}

/* Estilos para filtros */
.filtros {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    min-width: 150px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-limpiar {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-limpiar:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Estilos para la firma digital */
.firma-container {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    border-left: 4px solid #28a745;
    animation: fadeIn 0.5s;
}

.firma-container h4 {
    color: #2e7d32;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.firma-imagen {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.firma-detalles {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 5px;
    font-size: 13px;
}

.firma-detalles p {
    margin: 5px 0;
}

.firma-verificacion {
    margin-top: 10px;
    text-align: center;
    color: #2e7d32;
    font-size: 12px;
}

.firma-paso {
    margin-top: 10px;
    padding: 8px;
    background: #e8f5e9;
    border-radius: 5px;
    border-left: 3px solid #4caf50;
}

.firma-paso summary {
    cursor: pointer;
    color: #2e7d32;
    font-size: 12px;
}

.firma-paso summary:hover {
    text-decoration: underline;
}

/* Modal para visor de PDF */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

.pdf-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    top: 5%;
}

.pdf-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: white;
}

.close-pdf {
    position: absolute;
    top: 10px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close-pdf:hover {
    color: #dc3545;
}

.pdf-title {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.btn-descargar-pdf {
    position: absolute;
    top: 10px;
    right: 100px;
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 2001;
    transition: all 0.3s;
}

.btn-descargar-pdf:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes firmar {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.firma-container {
    animation: firmar 0.5s ease;
}

/* Responsive para filtros */
@media (max-width: 768px) {
    .filtros {
        flex-direction: column;
    }
    
    .search-input,
    .filter-select,
    .btn-limpiar {
        width: 100%;
    }
}

/* Estilos adicionales para el detalle */
.salta-info {
    margin-top: 8px;
    padding: 5px 10px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

.rol-alternativo-info {
    margin-top: 5px;
    padding: 5px 10px;
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
    border-radius: 4px;
}

.rol-alternativo-info small {
    color: #1565c0;
}

.rol-autorizo {
    color: #4caf50;
    font-weight: bold;
}

.detalles {
    color: #666;
    font-style: italic;
}

.orden-estado {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.estado-pendiente {
    background: #ffc107;
    color: #000;
}

.estado-en-autorizacion {
    background: #17a2b8;
    color: #fff;
}

.estado-aprobada {
    background: #28a745;
    color: #fff;
}

.estado-rechazada {
    background: #dc3545;
    color: #fff;
}

/* Estilos para firmas */
.firma-paso {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 5px;
    border-left: 3px solid #4caf50;
}

.firma-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.firma-rol {
    color: #2e7d32;
    font-size: 11px;
    background: #c8e6c9;
    padding: 2px 8px;
    border-radius: 12px;
}

.firma-contenido {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    font-size: 12px;
    font-family: monospace;
    white-space: pre-wrap;
}

.firma-paso details summary {
    cursor: pointer;
    color: #2e7d32;
    font-size: 12px;
}

.firma-paso details summary:hover {
    text-decoration: underline;
}
/* Estilos para las firmas */
.firma-final-container {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    border: 1px solid #4caf50;
}

.firma-final-container h3 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.firma-paso-container {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 3px solid #4caf50;
}

.firma-paso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.firma-autor {
    font-size: 12px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 12px;
}

.firma-paso-contenido {
    font-size: 12px;
}

.sin-firma {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.firma-verificacion {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    color: #666;
}