        :root {
            --corporate-blue: #1b2631;
            --accent-blue: #2e86c1;
            --border-gray: #d5dbdb;
            --light-bg: #f8f9f9;
            --text-dark: #212f3d;
        }

        body {
            background-color: #ebeef0;
            font-family: 'Segoe UI', Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }

        .logo-container-main {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }

        .form-container {
            max-width: 800px;
            margin: 0 auto;
            background: #ffffff;
            padding: 40px;
            border-radius: 4px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            border-top: 5px solid var(--corporate-blue);
        }

        .form-header {
            text-align: left;
            margin-bottom: 30px;
            border-bottom: 1px solid var(--border-gray);
            padding-bottom: 5px;
        }

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

        .header-text {
            flex-grow: 1;
            text-align: center;
        }

        .header-text h2 {
            color: var(--corporate-blue);
            font-size: 1.5rem;
            margin: 0;
            font-weight: 700;
        }

        .badge-hoja {
            color: var(--accent-blue);
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: block;
        }

        .header-subtitle {
            font-size: 0.9rem;
            color: #566573;
            margin-top: 10px;
        }

        .form-section {
            margin-bottom: 35px;
            border: none;
        }

        .form-section legend {
            width: 100%;
            border-bottom: 1px solid var(--corporate-blue);
            color: var(--corporate-blue);
            font-size: 1rem;
            font-weight: 700;
            padding-bottom: 5px;
            margin-bottom: 20px;
            text-transform: uppercase;
        }

        .form-group { margin-bottom: 15px; }

        label {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text-dark);
            text-transform: uppercase;
            margin-bottom: 6px;
            display: block;
        }

        
        input, select, textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--border-gray);
            border-radius: 3px;
            font-size: 0.9rem;
            background-color: var(--light-bg);
            box-sizing: border-box;
        }

        .row { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
        .col-md-4 { flex: 1; min-width: 150px; }
        .col-md-8 { flex: 2; min-width: 250px; }

        /* Radio Cards */
        .radio-card-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .radio-card {
            border: 1px solid var(--border-gray);
            padding: 12px;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            background: var(--light-bg);
        }

        .radio-card input { width: auto; margin-right: 10px; }

        .card-title { font-weight: 700; font-size: 0.85rem; color: var(--corporate-blue); }
        .card-content p { font-size: 0.7rem; margin: 0; color: #566573; }

        /* Aviso Institucional */
        .aviso-institucional-container {
            border-left: 6px solid #263238;
            background: #fff;
            margin: 25px 0;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        .aviso-header-formal {
            background: #eceff1;
            padding: 10px 20px;
            font-weight: 700;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .aviso-cuerpo-formal { padding: 20px; }
        .aviso-footer-alerta {
            background: #fdf2f2;
            color: #b71c1c;
            padding: 12px;
            font-size: 0.85rem;
            display: flex;
            gap: 10px;
        }
        .aviso-footer-alerta {
            display: flex;
            align-items: center;      /* centra verticalmente */
            gap: 6px;                 /* espacio entre icono y texto */
            }

            .aviso-footer-alerta p {
            margin: 0;                /* quita el margen por defecto del <p> */
        }

        /* Firma */
        
      /* --- ESTILOS DE LA SECCIÓN --- */
    .signature-section {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 20px;
        background-color: #f9f9f9;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .signature-upload-wrapper {
        position: relative;
        width: 100%;
        max-width: 400px;
        margin: 10px 0;
    }

    .file-input-hidden { display: none; }

    .signature-dropzone {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        padding: 30px;
        background: white;
        cursor: pointer;
        transition: all 0.3s ease;
        min-height: 150px;
        text-align: center;
        width: 100%;
    }

    .signature-dropzone:hover {
        border-color: #3b82f6;
        background-color: #eff6ff;
    }

    /* Estado cuando ya está aplicada */
    .signature-fixed {
        border: 1px solid #10b981 !important;
        background-color: #f0fdf4 !important;
        pointer-events: none; /* Bloquea clics accidentales */
    }

    .upload-content i {
        font-size: 2.5rem;
        color: #3b82f6;
        margin-bottom: 10px;
    }

    .main-text { font-weight: 600; color: #334155; margin: 5px 0; }
    .sub-text { font-size: 0.85rem; color: #64748b; }

    /* --- VISTA PREVIA FINAL --- */
    .preview-container {
        position: relative;
        width: 100%;
        max-width: 250px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Estilo de la X roja */
    .btn-delete-x {
        position: absolute;
        top: -10px;   /* Ajusta para que sobresalga un poco */
        right: -10px; /* Ajusta para que sobresalga un poco */
        background-color: #ef4444; /* Rojo vibrante */
        color: white;
        border: 2px solid white; /* Borde blanco para que resalte */
        width: 28px;
        height: 28px;
        border-radius: 50%; /* Círculo perfecto */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        transition: all 0.2s ease;
        padding: 0;
        z-index: 10;
        pointer-events: auto; /* Asegura que sea clickable */
    }

    .btn-delete-x:hover {
        background-color: #dc2626; /* Rojo más oscuro al pasar el mouse */
        transform: scale(1.1); /* Efecto de agrandado */
    }

    .btn-delete-x i {
        font-size: 20px;
        line-height: 1;
        font-weight: bold;
    }

    #imgFinalView {
        max-width: 100%;
        max-height: 120px;
        display: block;
    }
    #imgFinalView {
        max-width: 100%;
        max-height: 120px;
        object-fit: contain;
        border-radius: 4px;
        padding: 5px;
        border-bottom: 1px solid #ccc;
    }

    .badge-success {
        color: #10b981;
        font-size: 0.85rem;
        font-weight: 700;
        margin-top: 10px;
    }

    .btn-remove {
        position: absolute;
        top: -15px;
        right: -15px;
        background: #ef4444;
        color: white;
        border: none;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        transition: transform 0.2s;
        pointer-events: auto; /* Permite click aunque el padre esté bloqueado */
    }

    /* --- ESTILOS DEL MODAL (VENTANA FLOTANTE) --- */
  /* --- CSS DEL MODAL --- */
    .modal-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(15, 23, 42, 0.9); z-index: 10000;
        display: flex; justify-content: center; align-items: center; backdrop-filter: blur(4px);
    }
    .modal-card { background: white; border-radius: 16px; width: 95%; max-width: 500px; overflow: hidden; }
    .modal-header { padding: 15px; border-bottom: 1px solid #eee; text-align: center; }
    .modal-body { padding: 10px; background: #f1f5f9; }
    .cropper-wrapper { max-height: 350px; overflow: hidden; }

    .modal-footer { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
    .footer-group { display: flex; gap: 10px; }
    
    .btn-modal { padding: 12px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .btn-rotate { background: #3b82f6; color: white; width: 100%; }
    .btn-save { background: #10b981; color: white; flex: 2; }
    .btn-cancel { background: #e2e8f0; color: #475569; flex: 1; }

        /* Botones */
        .button-container {
        max-width: 500px;
        margin: 20px auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Botón Principal: Registrar */
    .btn-action {
        padding: 14px 20px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        text-transform: uppercase;
        width: 100%;
    }

    .btn-corporate {
        background-color: #004a99; /* Azul Corporativo */
        color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .btn-corporate:hover {
        background-color: #003366;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    /* Fila de Exportación (Word y PDF) */
    .export-row {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
        gap: 10px;
    }

    .btn-outline {
        background-color: transparent;
        border: 2px solid #dee2e6;
        color: #495057;
        font-size: 13px;
    }

    .btn-outline:hover {
        background-color: #f8f9fa;
        border-color: #adb5bd;
    }

    /* Color específico para PDF */
    .btn-pdf {
        color: #dc3545 !important;
        border-color: #dc3545 !important;
    }

    .btn-pdf:hover {
        background-color: #fff5f5 !important;
        border-color: #a71d2a !important;
    }



    .opcion-check {
        display: flex;
        align-items: flex-start; /* Alinea al inicio por si el texto es largo */
        margin-bottom: 15px;
        cursor: pointer;
    }

    .opcion-check:last-child {
        margin-bottom: 0;
    }

    .check-uniforme {
        width: 18px;
        height: 18px;
        margin-top: 3px;
        margin-right: 12px;
        cursor: pointer;
        accent-color: #0d6efd; /* Color azul profesional para el check */
    }

    .label-declaracion {
        font-size: 14px;
        color: #495057;
        line-height: 1.5;
        cursor: pointer;
        user-select: none;
    }

    .link-politica {
        color: #0d6efd;
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid transparent;
        transition: all 0.2s;
    }

    .link-politica:hover {
        border-bottom: 1px solid #0d6efd;
        color: #0a58ca;
    }
    