    /* ── RESET & BASE ─────────────────────────────────── */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --blue:       #0055A4;
            --blue-dark:  #003d7a;
            --blue-light: #e0f0ff;
            --green:      #16a34a;
            --green-light:#dcfce7;
            --red:        #dc2626;
            --red-light:  #fee2e2;
            --gray-50:    #f8fafc;
            --gray-100:   #f1f5f9;
            --gray-200:   #e2e8f0;
            --gray-400:   #94a3b8;
            --gray-600:   #475569;
            --gray-800:   #1e293b;
            --radius:     12px;
            --shadow:     0 4px 24px rgba(0,0,0,0.08);
            --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background: linear-gradient(135deg, #f0f4f8 0%, #e8f0fe 100%);
            min-height: 100vh;
            padding: 0;
            color: var(--gray-800);
        }

        /* ── PANTALLA INICIAL (LOADING / ERROR / EXPIRADO) ── */
        #screen-loading,
        #screen-error,
        #screen-success {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 40px 20px;
            text-align: center;
        }

        #screen-loading { display: flex; }
        #screen-error   { display: none; }
        #screen-success { display: none; }
        #screen-form    { display: none; opacity: 0; transition: opacity 0.5s ease; }
        #screen-form.visible { opacity: 1; }

        .screen-icon {
            font-size: 64px;
            margin-bottom: 24px;
            animation: bounceIn 0.6s ease;
        }

        .screen-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--gray-800);
            margin-bottom: 12px;
        }

        .screen-subtitle {
            font-size: 15px;
            color: var(--gray-600);
            max-width: 400px;
            line-height: 1.6;
        }

        /* ── SPINNER ─────────────────────────────────────── */
        .loader-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        .loader-ring {
            width: 72px;
            height: 72px;
            border: 6px solid var(--gray-200);
            border-top-color: var(--blue);
            border-radius: 50%;
            animation: spin 0.9s linear infinite;
        }

        .loader-text {
            font-size: 16px;
            font-weight: 600;
            color: var(--gray-600);
            animation: pulse 1.5s ease-in-out infinite;
        }

        /* ── LAYOUT FORMULARIO ────────────────────────────── */
        .form-wrapper {
            max-width: 680px;
            margin: 0 auto;
            padding: 24px 16px 60px;
        }

        /* ── HEADER CARD ─────────────────────────────────── */
        .header-card {
            background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
            border-radius: var(--radius) var(--radius) 0 0;
            padding: 36px 32px 28px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header-card::before {
            content: '';
            position: absolute;
            top: -40px; right: -40px;
            width: 160px; height: 160px;
            background: rgba(255,255,255,0.06);
            border-radius: 50%;
        }

        .header-card::after {
            content: '';
            position: absolute;
            bottom: -30px; left: -20px;
            width: 100px; height: 100px;
            background: rgba(255,255,255,0.04);
            border-radius: 50%;
        }

        .logo-container {
            margin-bottom: 16px;
            position: relative;
            z-index: 1;
        }

        .logo-container img {
            max-width: 160px;
            max-height: 60px;
            object-fit: contain;
            filter: brightness(0) invert(1);
        }

        .logo-fallback {
            font-size: 28px;
            font-weight: 800;
            color: white;
            letter-spacing: -0.5px;
        }
		
		.logos-row {
			display: flex;
			align-items: center;
			justify-content: center;
			gap: 0;
			margin-bottom: 20px;
			position: relative;
			z-index: 1;
		}

		.logo-box {
			background: white;
			border-radius: 10px;
			padding: 10px 20px;
			display: flex;
			align-items: center;
			justify-content: center;
			min-width: 120px;
			min-height: 56px;
		}

		.logo-box img {
			max-width: 140px;
			max-height: 52px;
			object-fit: contain;
			display: block;
		}

		.logos-divider {
			width: 1px;
			height: 40px;
			background: rgba(255,255,255,0.3);
			margin: 0 4px;
		}

		.logo-fallback {
			font-size: 22px;
			font-weight: 800;
			color: var(--blue-dark);
		}

        .header-convocatoria {
            position: relative;
            z-index: 1;
        }

        .header-convocatoria h1 {
            font-size: 20px;
            font-weight: 700;
            color: white;
            margin-bottom: 6px;
        }

        .header-convocatoria p {
            font-size: 13px;
            color: rgba(255,255,255,0.75);
            letter-spacing: 0.5px;
        }

        /* ── BODY CARD ───────────────────────────────────── */
        .body-card {
            background: white;
            border-radius: 0 0 var(--radius) var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        /* ── SECCIONES ───────────────────────────────────── */
        .form-section {
            padding: 28px 32px;
            border-bottom: 1px solid var(--gray-100);
        }

        .form-section:last-child { border-bottom: none; }

        .section-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--blue);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title i { font-size: 14px; }

        /* ── CAMPO COLAPSABLE ────────────────────────────── */
        .field-item {
            margin-bottom: 12px;
            border: 2px solid var(--gray-200);
            border-radius: 10px;
            overflow: hidden;
            transition: border-color var(--transition), box-shadow var(--transition);
        }

        .field-item:focus-within {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(0,85,164,0.1);
        }

        .field-item.filled {
            border-color: var(--green);
            background: var(--green-light);
        }

        .field-item.has-error {
            border-color: var(--red);
            background: var(--red-light);
        }

        .field-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            cursor: pointer;
            user-select: none;
            background: transparent;
            transition: background var(--transition);
            gap: 12px;
        }

        .field-item.filled .field-header { background: transparent; }

        .field-label-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }

        .field-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: var(--blue-light);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background var(--transition);
        }

        .field-item.filled .field-icon { background: var(--green-light); }
        .field-icon i { color: var(--blue); font-size: 13px; }
        .field-item.filled .field-icon i { color: var(--green); }

        .field-label-text {
            flex: 1;
            min-width: 0;
        }

        .field-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-800);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .field-label .req { color: var(--red); }

        .field-preview {
            font-size: 12px;
            color: var(--green);
            font-weight: 600;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 300px;
            opacity: 0;
            transform: translateY(-4px);
            transition: opacity 0.25s, transform 0.25s;
        }

        .field-item.filled .field-preview { opacity: 1; transform: translateY(0); }

        .field-status {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .check-icon {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--green);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            opacity: 0;
            transform: scale(0.5);
            transition: opacity 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
        }

        .field-item.filled .check-icon { opacity: 1; transform: scale(1); }

        .chevron {
            color: var(--gray-400);
            font-size: 12px;
            transition: transform var(--transition);
            flex-shrink: 0;
        }

        .field-item.collapsed .chevron { transform: rotate(-90deg); }

        /* ── CAMPO BODY (colapsable) ─────────────────────── */
        .field-body {
            overflow: hidden;
            max-height: 500px;
            transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1),
                        padding 0.3s ease;
            padding: 0 16px 16px;
        }

        .field-item.collapsed .field-body {
            max-height: 0;
            padding: 0;
        }

        /* ── INPUTS ──────────────────────────────────────── */
        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            padding: 11px 14px;
            border: 2px solid var(--gray-200);
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            background: var(--gray-50);
            color: var(--gray-800);
            transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
            appearance: none;
            -webkit-appearance: none;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--blue);
            background: white;
            box-shadow: 0 0 0 3px rgba(0,85,164,0.1);
        }

        .form-input.input-filled,
        .form-select.input-filled {
            border-color: var(--green);
            background: white;
            color: var(--green);
            font-weight: 600;
        }

        .form-select {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 36px;
        }

        .form-select:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Radio / Checkbox opciones */
        .options-grid {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .option-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border: 2px solid var(--gray-200);
            border-radius: 8px;
            cursor: pointer;
            transition: all var(--transition);
            background: var(--gray-50);
        }

        .option-item:hover { border-color: var(--blue); background: var(--blue-light); }

        .option-item input[type="radio"],
        .option-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--blue);
            cursor: pointer;
            flex-shrink: 0;
        }

        .option-item.selected {
            border-color: var(--green);
            background: var(--green-light);
        }

        .option-item.selected span { color: var(--green); font-weight: 600; }

        .option-item span { font-size: 14px; color: var(--gray-800); transition: color var(--transition); }

        /* ── GRID 2 COLUMNAS ─────────────────────────────── */
        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        @media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

        /* ── CV UPLOAD ───────────────────────────────────── */
        .cv-upload-zone {
            border: 2px dashed var(--gray-200);
            border-radius: 10px;
            padding: 28px 20px;
            text-align: center;
            cursor: pointer;
            transition: all var(--transition);
            background: var(--gray-50);
            position: relative;
        }

        .cv-upload-zone:hover,
        .cv-upload-zone.dragover {
            border-color: var(--blue);
            background: var(--blue-light);
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0,85,164,0.12);
        }

        .cv-upload-zone.uploaded {
            border-color: var(--green);
            background: var(--green-light);
        }

        .cv-upload-zone input[type="file"] {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            width: 100%;
            height: 100%;
        }

        .cv-upload-icon {
            font-size: 36px;
            color: var(--blue);
            margin-bottom: 12px;
            transition: all var(--transition);
            display: block;
        }

        .cv-upload-zone.uploaded .cv-upload-icon { color: var(--green); }

        .cv-upload-zone:hover .cv-upload-icon,
        .cv-upload-zone.dragover .cv-upload-icon {
            transform: translateY(-4px) scale(1.1);
        }

        .cv-upload-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--gray-800);
            margin-bottom: 4px;
        }

        .cv-upload-subtitle {
            font-size: 12px;
            color: var(--gray-400);
        }

        .cv-file-name {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
            font-size: 13px;
            font-weight: 600;
            color: var(--green);
        }

        .cv-upload-zone.uploaded .cv-file-name { display: flex; }

        /* Animación de subida */
        .cv-progress {
            display: none;
            height: 4px;
            background: var(--gray-200);
            border-radius: 2px;
            margin-top: 12px;
            overflow: hidden;
        }

        .cv-progress.active { display: block; }

        .cv-progress-bar {
            height: 100%;
            background: var(--blue);
            border-radius: 2px;
            width: 0;
            transition: width 0.4s ease;
        }

        /* ── BOTÓN ENVIAR ────────────────────────────────── */
        .submit-section {
            padding: 28px 32px 32px;
        }

        .btn-submit {
            width: 100%;
            padding: 18px;
            background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 17px;
            font-weight: 700;
            cursor: pointer;
            transition: all var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
            letter-spacing: 0.3px;
        }

        .btn-submit::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
            opacity: 0;
            transition: opacity var(--transition);
        }

        .btn-submit:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,85,164,0.35);
        }

        .btn-submit:hover:not(:disabled)::before { opacity: 1; }
        .btn-submit:active:not(:disabled) { transform: translateY(0); }

        .btn-submit:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .btn-submit .spinner-btn {
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,0.4);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            display: none;
        }

        .btn-submit.loading .spinner-btn { display: block; }
        .btn-submit.loading .btn-text { display: none; }

        /* ── TOAST / ALERT INLINE ────────────────────────── */
        .alert-box {
            display: none;
            padding: 14px 18px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            margin: 0 32px 16px;
            align-items: center;
            gap: 10px;
            animation: slideDown 0.3s ease;
        }

        .alert-box.show { display: flex; }
        .alert-error   { background: var(--red-light); color: var(--red); border-left: 4px solid var(--red); }
        .alert-success { background: var(--green-light); color: var(--green); border-left: 4px solid var(--green); }

        /* ── PANTALLA ÉXITO ──────────────────────────────── */
        .success-card {
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 48px 36px;
            max-width: 480px;
            width: 100%;
            text-align: center;
            animation: bounceIn 0.6s cubic-bezier(0.34,1.56,0.64,1);
        }

        .success-checkmark {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--green-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            font-size: 36px;
            animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
        }

        .success-title {
            font-size: 24px;
            font-weight: 800;
            color: var(--gray-800);
            margin-bottom: 12px;
        }

        .success-subtitle {
            font-size: 15px;
            color: var(--gray-600);
            line-height: 1.6;
        }

        .success-confetti {
            font-size: 28px;
            letter-spacing: 4px;
            margin-top: 20px;
            animation: float 2s ease-in-out infinite;
        }

        /* ── ANIMACIONES ─────────────────────────────────── */
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        @keyframes bounceIn {
            0%   { opacity: 0; transform: scale(0.8) translateY(20px); }
            60%  { transform: scale(1.02) translateY(-4px); }
            100% { opacity: 1; transform: scale(1) translateY(0); }
        }

        @keyframes popIn {
            0%   { opacity: 0; transform: scale(0); }
            70%  { transform: scale(1.15); }
            100% { opacity: 1; transform: scale(1); }
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-8px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-6px); }
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(16px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .animate-in {
            animation: fadeInUp 0.4s ease both;
        }

        /* ── FOOTER ──────────────────────────────────────── */
        .page-footer {
            text-align: center;
            padding: 20px;
            font-size: 12px;
            color: var(--gray-400);
        }

        .page-footer strong { color: var(--gray-600); }

        /* ── RESPONSIVE ──────────────────────────────────── */
        @media (max-width: 600px) {
            .form-section { padding: 20px 16px; }
            .submit-section { padding: 20px 16px 24px; }
            .header-card { padding: 28px 20px 22px; }
            .alert-box { margin: 0 16px 16px; }
        }