:root {
    --azul-1: #0b3d84;
    --azul-2: #0a4f9d;
    --azul-texto: #17395e;
    --azul-titulo: #143e7a;
    --gris-borde: #c7d2df;
    --gris-linea: #d8e0ea;
    --blanco-card: rgba(242, 246, 250, 0.92);
    --naranja-1: #f59b15;
    --naranja-2: #f27c00;
    --sombra: 0 10px 28px rgba(0, 0, 0, 0.18);
    --radio: 12px;
    --radio-sm: 8px;
    --alto-touch: 48px;
    --transicion: 0.18s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--azul-texto);
    background: #CED3E5;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* =========================
   CONTENIDO
========================= */
.page {
    width: 100%;
    min-height: calc(100vh - 94px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 36px;
}

.evaluation-card {
    width: 100%;
    max-width: 760px;
    background: var(--blanco-card);
    border: 1px solid rgba(193, 205, 219, 0.95);
    border-radius: 14px;
    box-shadow: var(--sombra);
    padding: 34px 42px 28px;
    backdrop-filter: blur(2px);
}

.evaluation-card__header {
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--gris-linea);
}

.evaluation-card__subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--azul-titulo);
    margin-bottom: 8px;
}

.evaluation-card__name {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--azul-titulo);
}

.evaluation-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul-titulo);
}

.form-group input[type="text"] {
    width: 100%;
    height: var(--alto-touch);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio-sm);
    background: #ffffff;
    padding: 0 14px;
    font-size: 16px;
    color: #29486b;
    outline: none;
    transition: border-color var(--transicion), box-shadow var(--transicion), transform var(--transicion);
}

.form-group input[type="text"]:focus {
    border-color: #d98f17;
    box-shadow: 0 0 0 4px rgba(217, 143, 23, 0.12);
}

/* ===== SELECT BONITO ===== */
.form-group--select {
    position: relative;
}

.select-shell {
    position: relative;
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    border: 1px solid #cfd8e4;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 10px rgba(16, 45, 85, 0.06);
    overflow: hidden;
    transition: border-color var(--transicion), box-shadow var(--transicion), transform var(--transicion);
}

.select-shell:hover {
    border-color: #b9c9dc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 6px 14px rgba(16, 45, 85, 0.09);
}

.select-shell:focus-within {
    border-color: #d98f17;
    box-shadow:
        0 0 0 4px rgba(217, 143, 23, 0.12),
        0 8px 18px rgba(16, 45, 85, 0.10);
    transform: translateY(-1px);
}

.select-shell select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 56px;
    border: none;
    background: transparent;
    padding: 0 56px 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #17395e;
    outline: none;
    cursor: pointer;
    line-height: 1.2;
}

.select-shell select::-ms-expand {
    display: none;
}

.select-shell__icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #edf3f8 0%, #dce7f1 100%);
    color: #355e91;
    font-size: 20px;
    font-weight: 700;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.field-helper {
    margin-top: 8px;
    padding-left: 2px;
    font-size: 0.92rem;
    color: #5c7593;
    font-weight: 600;
    line-height: 1.35;
}

.select-shell select option {
    font-size: 16px;
    font-weight: 600;
    color: #17395e;
    background: #ffffff;
}

.form-actions {
    padding-top: 6px;
}

#btnIniciaEvaluacion {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(180deg, var(--naranja-1) 0%, var(--naranja-2) 100%);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: filter var(--transicion), transform var(--transicion);
}

#btnIniciaEvaluacion:hover {
    filter: brightness(1.03);
}

#btnIniciaEvaluacion:active {
    transform: translateY(1px);
}

/* =========================
   TABLET
========================= */
@media (max-width: 1024px) {
    .topbar__inner {
        grid-template-columns: 150px 1fr 96px;
    }

    .topbar__title h1 {
        font-size: 1.6rem;
    }

    .page {
        padding: 22px 14px 28px;
    }

    .evaluation-card {
        max-width: 680px;
        padding: 28px 28px 24px;
    }

    .evaluation-card__name {
        font-size: 1.75rem;
    }
}

/* =========================
   TABLET PEQUEÑA / MÓVIL
========================= */
@media (max-width: 680px) {
    .topbar__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 8px;
        padding: 12px;
    }

    .topbar__logo--left,
    .topbar__logo--right {
        justify-content: center;
    }

    .topbar__logo--left img {
        max-height: 42px;
    }

    .topbar__logo--right img {
        max-height: 48px;
    }

    .topbar__title h1 {
        font-size: 1.2rem;
    }

    .page {
        min-height: auto;
        align-items: flex-start;
        padding: 18px 12px 24px;
    }

    .evaluation-card {
        padding: 22px 16px 20px;
        border-radius: 12px;
    }

    .evaluation-card__subtitle {
        font-size: 1rem;
    }

    .evaluation-card__name {
        font-size: 1.4rem;
    }

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

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group select,
    .form-group input[type="text"] {
        height: 46px;
        font-size: 0.98rem;
    }

    #btnIniciaEvaluacion {
        height: 50px;
        font-size: 1.05rem;
    }
}