﻿

/* Estilos mejorados para la sección de firma digital */

/* Mejorar el aspecto general de la sección */
.firma-section {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

    /* Título más destacado */
    .firma-section h4 {
        color: #2c3e50;
        border-bottom: 2px solid #3498db;
        padding-bottom: 10px;
        margin-bottom: 20px;
        font-weight: 600;
    }

    /* Estilos para la descripción */
    .firma-section p {
        color: #6c757d;
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

/* Contenedor de firma responsivo */
.firma-container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 20px;
    border: 2px dashed #ced4da;
    border-radius: 6px;
    background-color: #fff;
    padding: 10px;
    transition: border-color 0.3s ease;
}

    .firma-container:hover {
        border-color: #3498db;
    }

/* Canvas responsivo */
#signaturePad {
    width: 100% !important;
    height: 150px !important;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    touch-action: none;
    cursor: crosshair;
    background-color: white;
}

/* Botón de limpiar firma mejorado */
.btn-limpiar-firma {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

    .btn-limpiar-firma:hover {
        background-color: #5a6268;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .btn-limpiar-firma i {
        font-size: 1rem;
    }

/* Sección de documentos */
.documentos-section {
    margin-top: 30px;
}

    .documentos-section h4 {
        color: #2c3e50;
        margin-bottom: 20px;
        font-weight: 600;
    }

/* Inputs de archivos mejorados */
.custom-file-input {
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    transition: border-color 0.2s ease;
}

    .custom-file-input:hover {
        border-color: #3498db;
    }

/* Vista previa de documentos */
.documento-preview {
    padding: 10px;
    background-color: #e9f7fe;
    border-radius: 5px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .documento-preview i {
        font-size: 1.5rem;
        color: #3498db;
    }

/* Checkbox de acuerdo */
.form-check-acuerdo {
    margin-top: 20px;
    padding: 15px;
    background-color: #f1f8ff;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

    .form-check-acuerdo label {
        font-weight: 500;
        margin-left: 8px;
    }

/* Estilos responsivos */
@media (max-width: 768px) {
    .firma-container {
        padding: 5px;
    }

    #signaturePad {
        height: 150px !important;
    }

    .btn-limpiar-firma {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #signaturePad {
        height: 120px !important;
    }
}

/* Mejora específica para la fecha */
.fecha-field {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px 15px;
    width: 100%;
    max-width: 200px;
    font-weight: 500;
}

/* Animación para mejorar experiencia */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.firma-container, .documento-preview {
    animation: fadeIn 0.3s ease-out;
}
