﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0,90,167,.14), transparent 35%),
        linear-gradient(135deg, #eef4fb 0%, #f8fbff 55%, #edf4fb 100%);
    color: #1f2f46;
}

.form-page {
    min-height: 100vh;
    padding: 35px 16px;
}

.form-container {
    max-width: 1180px;
    margin: 0 auto;
}

.form-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #003b71, #0064b7);
    color: #fff;
    border-radius: 28px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: 0 22px 45px rgba(0, 59, 113, .28);
    margin-bottom: 26px;
}

.form-header:before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}

.form-header:after {
    content: "";
    position: absolute;
    right: 120px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.logo-box,
.header-text {
    position: relative;
    z-index: 2;
}

.logo-box {
    width: 185px;
    min-width: 185px;
    height: 105px;
    background: #fff;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 12px 28px rgba(0,0,0,.16);
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.header-text h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.5px;
}

.header-text p {
    display: inline-block;
    margin: 14px 0 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 8px 14px;
}

.form-alert {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    border: 1px solid #dbe8f5;
    border-left: 7px solid #0064b7;
    border-radius: 20px;
    padding: 18px 22px;
    display: flex;
    gap: 14px;
    line-height: 1.65;
    box-shadow: 0 12px 32px rgba(21, 45, 80, .09);
    margin-bottom: 26px;
}

.form-alert i {
    color: #0064b7;
    font-size: 24px;
    margin-top: 3px;
}

/* CONTENEDOR PRINCIPAL PRO */
.form-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* SIDEBAR DE PASOS */
.form-steps {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    border: 1px solid #dde8f4;
    box-shadow: 0 12px 32px rgba(21, 45, 80, .09);
}

.steps-title {
    color: #003b71;
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 18px;
}

.step-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 12px;
    border-radius: 16px;
    margin-bottom: 8px;
    color: #526279;
    font-weight: 700;
    background: #f7faff;
    border: 1px solid transparent;
}

.step-item.active {
    background: #eaf4ff;
    color: #003b71;
    border-color: #cfe2f6;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: #fff;
    color: #0064b7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0,90,167,.12);
}

.step-item i {
    color: #0064b7;
}

/* CONTENIDO */
.form-content {
    min-width: 0;
}

.form-block {
    position: relative;
    background: rgba(255,255,255,.96);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #dde8f4;
    box-shadow: 0 14px 34px rgba(21, 45, 80, .09);
    overflow: hidden;
}

.form-block:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #003b71, #0072ce);
}

.block-title {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e4edf7;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.block-title i {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    background: linear-gradient(135deg, #e9f4ff, #f7fbff);
    color: #0064b7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: inset 0 0 0 1px #d7e8f8;
}

.block-title h2 {
    margin: 0;
    color: #003b71;
    font-size: 24px;
    font-weight: 900;
}

.block-title span {
    display: block;
    color: #708097;
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.form-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.field label {
    display: block;
    color: #1f2f46;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}

.input,
.textarea {
    width: 100%;
    border: 1px solid #cbd8e8;
    border-radius: 15px;
    padding: 14px 15px;
    font-size: 15px;
    color: #26364c;
    background: #fbfdff;
    outline: none;
    transition: all .2s ease;
}

.input:hover,
.textarea:hover {
    border-color: #aac4df;
}

.input:focus,
.textarea:focus {
    border-color: #0064b7;
    box-shadow: 0 0 0 5px rgba(0, 100, 183, .12);
    background: #fff;
}

.textarea {
    min-height: 160px;
    resize: vertical;
}

.field small {
    display: block;
    margin-top: 8px;
    color: #66758a;
    font-size: 13px;
}

.radio-list {
    color: #25364d;
    font-size: 15px;
    background: #f8fbff;
    border: 1px solid #dce8f5;
    border-radius: 15px;
    padding: 12px;
}

.radio-list input {
    margin-right: 6px;
}

.radio-list label {
    margin-right: 18px;
    font-weight: 700;
}

.help-text {
    background: linear-gradient(135deg, #f5f9ff, #ffffff);
    border: 1px dashed #b8cce4;
    color: #46576f;
    padding: 16px 18px;
    border-radius: 16px;
    margin: 0 0 20px;
    line-height: 1.6;
}

.upload-box {
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    border: 2px dashed #aac4df;
    border-radius: 22px;
    padding: 30px;
    text-align: center;
}

.upload-box i {
    font-size: 40px;
    color: #0064b7;
    margin-bottom: 10px;
}

.upload-box p {
    margin: 0 0 14px;
    color: #003b71;
    font-weight: 900;
    font-size: 17px;
}

.file-input {
    font-size: 14px;
    color: #25364d;
}

.check-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fbff;
    border-radius: 17px;
    padding: 18px;
    border: 1px solid #dce8f5;
}

.check-box label {
    font-size: 15px;
    line-height: 1.5;
    color: #2e3e55;
    font-weight: 700;
}

.form-actions {
    background: #fff;
    border: 1px solid #dde8f4;
    border-radius: 22px;
    padding: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 26px;
    margin-bottom: 20px;
    box-shadow: 0 12px 32px rgba(21, 45, 80, .08);
}

.btn-primary,
.btn-secondary {
    border: none;
    border-radius: 15px;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #005aa7, #0072ce);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 90, 167, .28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 90, 167, .35);
}

.btn-secondary {
    background: #eef4fb;
    color: #003b71;
}

.btn-secondary:hover {
    background: #dfeaf6;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .form-shell {
        grid-template-columns: 1fr;
    }

    .form-steps {
        position: static;
    }
}

@media (max-width: 760px) {
    .form-page {
        padding: 20px 12px;
    }

    .form-header {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
    }

    .header-text h1 {
        font-size: 26px;
    }

    .logo-box {
        width: 165px;
        min-width: 165px;
    }

    .form-grid,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeStep .25s ease;
}

@keyframes fadeStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.wizard-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.btn-final {
    display: none;
}
/* ===== PREGUNTAS NUEVAS ===== */

.question-field {
    margin-bottom: 22px;
}

.textarea-small {
    min-height: 90px;
}

/* lista de habilidades */
.check-list {
    background: #f8fbff;
    border: 1px solid #dce8f5;
    border-radius: 16px;
    padding: 14px;
    margin-top: 10px;
}

.check-list td {
    padding: 6px 16px 6px 0;
}

.check-list input {
    margin-right: 6px;
}

.check-list label {
    font-weight: 700;
    color: #2e3e55;
}

/* separación del texto de ayuda */
.field small {
    display: block;
    margin-top: 8px;
    color: #66758a;
    font-size: 13px;
}