/* FINSA — perfil del candidato.
   Este archivo solo estiliza #sec-perfil para no contaminar el listado de vacantes. */

.careers-candidate-page #sec-perfil {
    --profile-navy: var(--candidate-navy, #071e3d);
    --profile-cyan: var(--candidate-cyan, #00a3e0);
    --profile-muted: var(--candidate-muted, #64748b);
    --profile-border: var(--candidate-border, #e2e8f0);
    --profile-surface: #ffffff;
    --profile-soft: #f8fafc;
    --profile-cyan-soft: #eefaff;
}

.careers-candidate-page #sec-perfil .candidate-profile-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.careers-candidate-page #sec-perfil .candidate-profile-heading h1 {
    margin: 0 0 8px;
    color: var(--profile-navy);
    font-size: clamp(1.65rem, 3vw, 2rem);
    line-height: 1.15;
}

.careers-candidate-page #sec-perfil .candidate-profile-heading p {
    margin: 0;
    max-width: 680px;
    color: var(--profile-muted);
    font-size: .93rem;
    line-height: 1.55;
}

.careers-candidate-page #sec-perfil .candidate-profile__eyebrow,
.careers-candidate-page #sec-perfil .candidate-profile-section__kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--profile-cyan);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   Control de simulación: solo se renderiza en modo prototype.
   --------------------------------------------------------- */
.careers-candidate-page #sec-perfil .candidate-profile-demo-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--profile-border);
    border-radius: 10px;
    background: var(--profile-surface);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.careers-candidate-page #sec-perfil .candidate-profile-demo-switch button {
    border: 0;
    border-radius: 7px;
    padding: 8px 11px;
    background: transparent;
    color: var(--profile-muted);
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.careers-candidate-page #sec-perfil .candidate-profile-demo-switch button.is-active {
    background: var(--profile-navy);
    color: #fff;
}

/* ---------------------------------------------------------
   Login / Registro
   --------------------------------------------------------- */
.careers-candidate-page #sec-perfil .candidate-auth {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    overflow: hidden;
    min-height: 560px;
    border: 1px solid var(--profile-border);
    border-radius: 18px;
    background: var(--profile-surface);
    box-shadow: 0 12px 34px rgba(7, 30, 61, .06);
}

.careers-candidate-page #sec-perfil .candidate-auth__intro {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 56px);
    background: var(--profile-navy);
    color: #fff;
}

.careers-candidate-page #sec-perfil .candidate-auth__intro::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 250px;
    height: 250px;
    border: 44px solid rgba(0, 163, 224, .16);
    border-radius: 50%;
}

.careers-candidate-page #sec-perfil .candidate-auth__intro .candidate-profile__eyebrow {
    color: #77d6f5;
}

.careers-candidate-page #sec-perfil .candidate-auth__intro h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    max-width: 420px;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.15;
}

.careers-candidate-page #sec-perfil .candidate-auth__intro > p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 430px;
    color: #c8d7e8;
    line-height: 1.65;
}

.careers-candidate-page #sec-perfil .candidate-auth__benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.careers-candidate-page #sec-perfil .candidate-auth__benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e4edf7;
    font-size: .9rem;
}

.careers-candidate-page #sec-perfil .candidate-auth__benefits svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    color: var(--profile-cyan);
}

.careers-candidate-page #sec-perfil .candidate-auth__panel {
    width: min(100%, 620px);
    margin: auto;
    padding: clamp(26px, 5vw, 54px);
}

.careers-candidate-page #sec-perfil .candidate-auth__switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 30px;
    padding: 4px;
    border: 1px solid var(--profile-border);
    border-radius: 11px;
    background: var(--profile-soft);
}

.careers-candidate-page #sec-perfil .candidate-auth__switch-button {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: transparent;
    color: var(--profile-muted);
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}

.careers-candidate-page #sec-perfil .candidate-auth__switch-button.is-active {
    background: #fff;
    color: var(--profile-navy);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
}

.careers-candidate-page #sec-perfil .candidate-auth__heading {
    margin-bottom: 24px;
}

.careers-candidate-page #sec-perfil .candidate-auth__heading h3 {
    margin: 0 0 7px;
    color: var(--profile-navy);
    font-size: 1.22rem;
}

.careers-candidate-page #sec-perfil .candidate-auth__heading p {
    margin: 0;
    color: var(--profile-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.careers-candidate-page #sec-perfil .candidate-auth__form {
    display: grid;
    gap: 17px;
}

.careers-candidate-page #sec-perfil .candidate-auth__form[hidden] {
    display: none !important;
}

.careers-candidate-page #sec-perfil .candidate-auth__grid,
.careers-candidate-page #sec-perfil .candidate-inline-editor__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* ---------------------------------------------------------
   Inputs compartidos
   --------------------------------------------------------- */
.careers-candidate-page #sec-perfil .candidate-field {
    display: grid;
    gap: 7px;
    color: var(--profile-navy);
    font-size: .82rem;
    font-weight: 700;
}

.careers-candidate-page #sec-perfil .candidate-field input,
.careers-candidate-page #sec-perfil .candidate-field textarea {
    width: 100%;
    border: 1px solid var(--profile-border);
    border-radius: 9px;
    padding: 11px 12px;
    outline: 0;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.careers-candidate-page #sec-perfil .candidate-field textarea {
    resize: vertical;
    line-height: 1.55;
}

.careers-candidate-page #sec-perfil .candidate-field input:focus,
.careers-candidate-page #sec-perfil .candidate-field textarea:focus {
    border-color: var(--profile-cyan);
    box-shadow: 0 0 0 3px rgba(0, 163, 224, .11);
}

.careers-candidate-page #sec-perfil .candidate-field__control {
    position: relative;
}

.careers-candidate-page #sec-perfil .candidate-field__control > svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.careers-candidate-page #sec-perfil .candidate-field__control input {
    padding-left: 40px;
}

/* =========================================================
   Password
   ========================================================= */

.careers-candidate-page
#sec-perfil
.candidate-password {
    position: relative;
}

.careers-candidate-page
#sec-perfil
.candidate-password input {
    width: 100%;
    padding-right: 46px;
}

.careers-candidate-page
#sec-perfil
.candidate-password__toggle {
    position: absolute;
    top: 50%;
    right: 10px;

    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: var(--profile-muted);

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color .18s ease,
        background-color .18s ease;
}

.careers-candidate-page
#sec-perfil
.candidate-password__toggle:hover {
    color: var(--profile-cyan);
    background: var(--profile-cyan-soft);
}

.careers-candidate-page
#sec-perfil
.candidate-password__toggle:focus-visible {
    outline: 2px solid var(--profile-cyan);
    outline-offset: 1px;
}

.careers-candidate-page
#sec-perfil
.candidate-password__toggle svg {
    width: 18px;
    height: 18px;
}

/* Recuperar contraseña */
.careers-candidate-page
#sec-perfil
.candidate-auth__password-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: -7px;
}

/* quitar los estilos propios de link y hacer que el botón parezca enlace  */
.careers-candidate-page
#sec-perfil
.candidate-auth__forgot-link {
    border: 0;
    padding: 0;

    background: transparent;

    color: #007aa7;

    font: inherit;
    font-size: .8rem;
    font-weight: 700;

    cursor: pointer;
}

.careers-candidate-page
#sec-perfil
.candidate-auth__forgot-link:hover {
    color: var(--profile-cyan);
    text-decoration: underline;
}

/* Para regresar */
.careers-candidate-page
#sec-perfil
.candidate-auth__back {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 24px;
    padding: 0;

    border: 0;

    background: transparent;

    color: var(--profile-muted);

    font: inherit;
    font-size: .8rem;
    font-weight: 700;

    cursor: pointer;
}

.careers-candidate-page
#sec-perfil
.candidate-auth__back:hover {
    color: var(--profile-cyan);
}

.careers-candidate-page
#sec-perfil
.candidate-auth__back svg {
    width: 16px;
    height: 16px;
}

.careers-candidate-page
#sec-perfil
.candidate-auth__forgot-link {
    color: #007aa7;

    font-size: .8rem;
    font-weight: 700;

    text-decoration: none;
}

.careers-candidate-page
#sec-perfil
.candidate-auth__forgot-link:hover {
    color: var(--profile-cyan);
    text-decoration: underline;
}

.careers-candidate-page #sec-perfil .candidate-profile__primary-button,
.careers-candidate-page #sec-perfil .candidate-profile__secondary-button,
.careers-candidate-page #sec-perfil .candidate-profile__ghost-button,
.careers-candidate-page #sec-perfil .candidate-profile__edit-button,
.careers-candidate-page #sec-perfil .candidate-profile__edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    font: inherit;
    font-size: .84rem;
    font-weight: 750;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.careers-candidate-page #sec-perfil .candidate-profile__primary-button {
    min-height: 43px;
    border: 1px solid var(--profile-cyan);
    padding: 10px 16px;
    background: var(--profile-cyan);
    color: #fff;
}

.careers-candidate-page #sec-perfil .candidate-profile__primary-button:hover {
    background: #0089bc;
    border-color: #0089bc;
}

.careers-candidate-page #sec-perfil .candidate-profile__primary-button--compact {
    min-height: 38px;
    padding: 8px 13px;
}

.careers-candidate-page #sec-perfil .candidate-profile__secondary-button {
    min-height: 38px;
    border: 1px solid var(--profile-border);
    padding: 8px 13px;
    background: #fff;
    color: var(--profile-navy);
}

.careers-candidate-page #sec-perfil .candidate-profile__ghost-button,
.careers-candidate-page #sec-perfil .candidate-profile__edit-button {
    border: 1px solid #b8e9f8;
    padding: 8px 11px;
    background: var(--profile-cyan-soft);
    color: #007aa7;
}

.careers-candidate-page #sec-perfil .candidate-profile__edit-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid var(--profile-border);
    background: #fff;
    color: var(--profile-muted);
}

.careers-candidate-page #sec-perfil button svg {
    width: 16px;
    height: 16px;
}

.careers-candidate-page #sec-perfil .candidate-auth__status,
.careers-candidate-page #sec-perfil .candidate-cv__status {
    min-height: 18px;
    margin: 0;
    color: var(--profile-muted);
    font-size: .78rem;
}

/* ---------------------------------------------------------
   Perfil autenticado
   --------------------------------------------------------- */
.careers-candidate-page #sec-perfil .candidate-profile-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.careers-candidate-page #sec-perfil .candidate-profile-sidebar {
    position: static;
    align-self: start;
}

.careers-candidate-page #sec-perfil .candidate-profile-sidebar__inner {
    overflow: hidden;
    border: 1px solid var(--profile-border);
    border-radius: 16px;
    padding: 30px 24px 24px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(7, 30, 61, .045);
}

.careers-candidate-page #sec-perfil .candidate-avatar {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 18px;
}

.careers-candidate-page #sec-perfil .candidate-avatar img,
.careers-candidate-page #sec-perfil .candidate-avatar__fallback {
    width: 100%;
    height: 100%;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--profile-border), 0 8px 24px rgba(7, 30, 61, .1);
}

.careers-candidate-page #sec-perfil .candidate-avatar img {
    display: block;
    object-fit: cover;
}

.careers-candidate-page #sec-perfil .candidate-avatar img[hidden],
.careers-candidate-page #sec-perfil .candidate-avatar__fallback[hidden] {
    display: none !important;
}

.careers-candidate-page #sec-perfil .candidate-avatar__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e7f7fd, #cceefa);
    color: var(--profile-navy);
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: .02em;
}

.careers-candidate-page #sec-perfil .candidate-avatar__upload {
    position: absolute;
    right: 3px;
    bottom: 5px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--profile-cyan);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(0, 163, 224, .28);
}

.careers-candidate-page #sec-perfil .candidate-avatar__upload svg {
    width: 16px;
    height: 16px;
}

.careers-candidate-page
#sec-perfil
.candidate-profile-sidebar__session {
    display: grid;
    gap: 8px;
}

.careers-candidate-page
#sec-perfil
.candidate-profile-sidebar__session form {
    display: grid;
    gap: 8px;
}

.careers-candidate-page
#sec-perfil
.candidate-profile__logout-button {
    width: 100%;
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 9px 14px;

    border: 1px solid #fecaca;
    border-radius: 9px;

    background: #fff;
    color: #b42318;

    font: inherit;
    font-size: .82rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.careers-candidate-page
#sec-perfil
.candidate-profile__logout-button:hover {
    border-color: #fca5a5;
    background: #fff5f5;
}

.careers-candidate-page
#sec-perfil
.candidate-profile__logout-button:disabled {
    opacity: .6;
    cursor: wait;
}

.careers-candidate-page
#sec-perfil
.candidate-profile__logout-button svg {
    width: 16px;
    height: 16px;
}

.careers-candidate-page
#sec-perfil
.candidate-profile__logout-status {
    min-height: 16px;

    margin: 0;

    color: var(--profile-muted);

    font-size: .74rem;
    text-align: center;
}

/* Estados vacios de laborales y educacion */
.careers-candidate-page
#sec-perfil
.candidate-profile-empty {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 18px 0;
    padding: 18px;

    border: 1px dashed var(--profile-border);
    border-radius: 11px;

    background: var(--profile-soft);
}

.careers-candidate-page
#sec-perfil
.candidate-profile-empty > svg {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    padding: 7px;

    border-radius: 9px;

    background: var(--profile-cyan-soft);
    color: var(--profile-cyan);
}

.careers-candidate-page
#sec-perfil
.candidate-profile-empty strong {
    display: block;

    margin-bottom: 3px;

    color: var(--profile-navy);

    font-size: .86rem;
}

.careers-candidate-page
#sec-perfil
.candidate-profile-empty p {
    margin: 0;

    color: var(--profile-muted);

    font-size: .8rem;
    line-height: 1.5;
}

/* fin estados vacios*/

.careers-candidate-page #sec-perfil .candidate-profile-sidebar__identity {
    text-align: center;
}

.careers-candidate-page #sec-perfil .candidate-profile-sidebar__identity h2 {
    margin: 0 0 7px;
    color: var(--profile-navy);
    font-size: 1.18rem;
    line-height: 1.25;
}

.careers-candidate-page #sec-perfil .candidate-profile-sidebar__identity p {
    margin: 0;
    color: var(--profile-muted);
    font-size: .86rem;
    line-height: 1.5;
}

.careers-candidate-page #sec-perfil .candidate-profile-sidebar__divider {
    height: 1px;
    margin: 24px 0;
    background: var(--profile-border);
}

.careers-candidate-page #sec-perfil .candidate-cv__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.careers-candidate-page #sec-perfil .candidate-cv__heading > svg {
    width: 22px;
    height: 22px;
    color: var(--profile-cyan);
}

.careers-candidate-page #sec-perfil .candidate-cv__label {
    display: block;
    margin-bottom: 2px;
    color: var(--profile-muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.careers-candidate-page #sec-perfil .candidate-cv__heading strong {
    color: var(--profile-navy);
    font-size: .88rem;
}

.careers-candidate-page #sec-perfil .candidate-cv__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 126px;
    padding: 18px;
    border: 1.5px dashed #9edff4;
    border-radius: 11px;
    background: #f7fdff;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.careers-candidate-page #sec-perfil .candidate-cv__dropzone.is-dragging {
    border-color: var(--profile-cyan);
    background: #eaf9ff;
}

.careers-candidate-page #sec-perfil .candidate-cv__dropzone > svg {
    width: 25px;
    height: 25px;
    margin-bottom: 8px;
    color: var(--profile-cyan);
}

#vacancies-filter-page #sec-perfil .candidate-cv__dropzone.is-uploading {
    pointer-events: none;
    opacity: .65;
}

#vacancies-filter-page #sec-perfil .candidate-cv__loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#vacancies-filter-page #sec-perfil .candidate-cv__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: candidate-cv-spin .7s linear infinite;
}

@keyframes candidate-cv-spin {
    to {
        transform: rotate(360deg);
    }
}

.careers-candidate-page #sec-perfil .candidate-cv__action {
    color: var(--profile-navy);
    font-size: .82rem;
    font-weight: 750;
}

.careers-candidate-page #sec-perfil .candidate-cv__dropzone small {
    margin-top: 4px;
    color: var(--profile-muted);
    font-size: .72rem;
}

.careers-candidate-page #sec-perfil .candidate-cv__file {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    min-width: 0;
    color: var(--profile-muted);
    font-size: .77rem;
}

.careers-candidate-page #sec-perfil .candidate-cv__file svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.careers-candidate-page #sec-perfil .candidate-cv__file span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* El contenido del perfil participa en el scroll general de la pagina. */
.careers-candidate-page #sec-perfil .candidate-profile-content {
    display: grid;
    gap: 18px;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.careers-candidate-page #sec-perfil .candidate-profile-section {
    border: 1px solid var(--profile-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(7, 30, 61, .035);
}

.careers-candidate-page #sec-perfil .candidate-profile-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf2f7;
}

.careers-candidate-page #sec-perfil .candidate-profile-section__header h2 {
    margin: 0;
    color: var(--profile-navy);
    font-size: 1.02rem;
}

.careers-candidate-page #sec-perfil .candidate-profile-section__body {
    padding: 22px;
}

.careers-candidate-page #sec-perfil .candidate-profile-summary {
    margin: 0;
    color: #475569;
    font-size: .9rem;
    line-height: 1.72;
}

.careers-candidate-page #sec-perfil .candidate-profile-list {
    padding: 2px 22px 8px;
}

.careers-candidate-page #sec-perfil .candidate-profile-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid #edf2f7;
}

.careers-candidate-page #sec-perfil .candidate-profile-item:last-child {
    border-bottom: 0;
}

.careers-candidate-page #sec-perfil .candidate-profile-item__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--profile-cyan-soft);
    color: #0083b3;
}

.careers-candidate-page #sec-perfil .candidate-profile-item__icon svg {
    width: 19px;
    height: 19px;
}

.careers-candidate-page #sec-perfil .candidate-profile-item__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.careers-candidate-page #sec-perfil .candidate-profile-item h3 {
    margin: 0 0 4px;
    color: var(--profile-navy);
    font-size: .95rem;
}

.careers-candidate-page #sec-perfil .candidate-profile-item__subtitle,
.careers-candidate-page #sec-perfil .candidate-profile-item__period,
.careers-candidate-page #sec-perfil .candidate-profile-item__description {
    margin: 0;
}

.careers-candidate-page #sec-perfil .candidate-profile-item__subtitle {
    color: #334155;
    font-size: .84rem;
    font-weight: 650;
}

.careers-candidate-page #sec-perfil .candidate-profile-item__period {
    margin-top: 7px;
    color: #94a3b8;
    font-size: .77rem;
    font-weight: 650;
}

.careers-candidate-page #sec-perfil .candidate-profile-item__description {
    margin-top: 9px;
    color: var(--profile-muted);
    font-size: .84rem;
    line-height: 1.6;
}

.careers-candidate-page #sec-perfil .candidate-inline-editor {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d9eef7;
    border-radius: 11px;
    background: #f8fdff;
}

.careers-candidate-page #sec-perfil .candidate-inline-editor[hidden] {
    display: none !important;
}

.careers-candidate-page #sec-perfil .candidate-inline-editor__actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.careers-candidate-page #sec-perfil .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .careers-candidate-page #sec-perfil .candidate-profile-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .careers-candidate-page #sec-perfil .candidate-auth {
        grid-template-columns: 1fr;
    }

    .careers-candidate-page #sec-perfil .candidate-auth__intro {
        min-height: auto;
    }

    .careers-candidate-page #sec-perfil .candidate-profile-layout {
        grid-template-columns: 1fr;
    }

    .careers-candidate-page #sec-perfil .candidate-profile-sidebar {
        position: static;
    }

    .careers-candidate-page #sec-perfil .candidate-profile-content {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 560px) {
    .careers-candidate-page #sec-perfil .candidate-auth__intro,
    .careers-candidate-page #sec-perfil .candidate-auth__panel {
        padding: 24px 20px;
    }

    .careers-candidate-page #sec-perfil .candidate-auth__grid,
    .careers-candidate-page #sec-perfil .candidate-inline-editor__grid {
        grid-template-columns: 1fr;
    }

    .careers-candidate-page #sec-perfil .candidate-profile-sidebar__inner {
        padding: 24px 18px;
    }

    .careers-candidate-page #sec-perfil .candidate-profile-section__header,
    .careers-candidate-page #sec-perfil .candidate-profile-section__body,
    .careers-candidate-page #sec-perfil .candidate-profile-list {
        padding-left: 16px;
        padding-right: 16px;
    }

    .careers-candidate-page #sec-perfil .candidate-profile-section__header--list {
        align-items: flex-start;
    }

    .careers-candidate-page #sec-perfil .candidate-profile-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 11px;
    }

    .careers-candidate-page #sec-perfil .candidate-profile-item__icon {
        width: 34px;
        height: 34px;
    }

    .careers-candidate-page #sec-perfil .candidate-inline-editor__actions {
        flex-direction: column-reverse;
    }

    .careers-candidate-page #sec-perfil .candidate-inline-editor__actions button {
        width: 100%;
    }
}

/* =========================================================
   FIXES DE INTEGRACIÓN — perfil / subheader / edición local
   ========================================================= */

/*
 * El header legacy y el subheader pueden cambiar de altura en responsive.
 * Sus alturas se miden en public_layout.php; se mantiene un fallback CSS.
 */
.careers-candidate-page #sec-perfil {
    --profile-sticky-top: calc(var(--careers-topbar-height, 69px) + var(--careers-subheader-height, 52px) + 24px);
    position: relative;
}

/* El topBar y subheader siguen sticky, pero las columnas del perfil NO.
   El scroll pertenece exclusivamente al documento. */
.careers-candidate-page #sec-perfil .candidate-profile-sidebar,
.careers-candidate-page #sec-perfil .candidate-profile-content {
    position: static;
    top: auto;
    align-self: start;
}

/* Evita que las cards creen una capa visual sobre el subheader. */
.careers-candidate-page #sec-perfil .candidate-profile-layout,
.careers-candidate-page #sec-perfil .candidate-profile-section {
    position: relative;
    z-index: 0;
}

/* Estado de edición de los items de experiencia/formación. */
.careers-candidate-page #sec-perfil
.candidate-profile-item.is-editing
.candidate-profile-item__topline,
.careers-candidate-page #sec-perfil
.candidate-profile-item.is-editing
.candidate-profile-item__period,
.careers-candidate-page #sec-perfil
.candidate-profile-item.is-editing
.candidate-profile-item__description {
    display: none;
}

/* Mejora visual para botones realmente interactivos. */
.careers-candidate-page #sec-perfil
.candidate-profile__edit-button:hover,
.careers-candidate-page #sec-perfil
.candidate-profile__edit-icon:hover,
.careers-candidate-page #sec-perfil
.candidate-profile__ghost-button:hover {
    border-color: var(--profile-cyan);
    color: var(--profile-navy);
}

.careers-candidate-page #sec-perfil button:focus-visible,
.careers-candidate-page #sec-perfil label[for="candidate-photo-input"]:focus-visible {
    outline: 2px solid var(--profile-cyan);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .careers-candidate-page #sec-perfil .candidate-profile-sidebar,
    .careers-candidate-page #sec-perfil .candidate-profile-content {
        position: static;
        top: auto;
    }

    .careers-candidate-page #sec-perfil .candidate-profile-content {
        max-height: none;
        overflow: visible;
    }
}

/* =========================================================
   SIDEBAR — identidad, contacto y datos demográficos
   ========================================================= */

.careers-candidate-page #sec-perfil .candidate-profile-sidebar__inner {
    height: auto;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
}

.careers-candidate-page #sec-perfil .candidate-profile-sidebar__identity {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding-left: 34px;
}

.careers-candidate-page #sec-perfil .candidate-profile-sidebar__identity-copy {
    min-width: 0;
    text-align: center;
}

.careers-candidate-page #sec-perfil .candidate-profile-sidebar__identity-copy h2,
.careers-candidate-page #sec-perfil .candidate-profile-sidebar__identity-copy p {
    overflow-wrap: anywhere;
}

.careers-candidate-page #sec-perfil .candidate-profile-sidebar__edit {
    position: absolute;
    top: -5px;
    right: 0;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-section,
.careers-candidate-page #sec-perfil .candidate-sidebar-editor {
    min-width: 0;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-section__heading,
.careers-candidate-page #sec-perfil .candidate-sidebar-editor__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-section__heading strong,
.careers-candidate-page #sec-perfil .candidate-sidebar-editor__heading strong {
    color: var(--profile-navy);
    font-size: .88rem;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-section__heading > svg,
.careers-candidate-page #sec-perfil .candidate-sidebar-editor__heading > svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--profile-cyan);
}

.careers-candidate-page #sec-perfil .candidate-sidebar-info-list {
    display: grid;
    gap: 6px;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-info-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 8px;
    border-radius: 10px;
    transition: background-color .18s ease;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-info-item:hover {
    background: var(--profile-soft);
}

.careers-candidate-page #sec-perfil .candidate-sidebar-info-item__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--profile-cyan-soft);
    color: var(--profile-cyan);
}

.careers-candidate-page #sec-perfil .candidate-sidebar-info-item__icon svg {
    width: 17px;
    height: 17px;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-info-item__content {
    min-width: 0;
    padding-top: 1px;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-info-item__label {
    display: block;
    margin-bottom: 2px;
    color: var(--profile-muted);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-info-item__value {
    display: block;
    color: var(--profile-navy);
    font-size: .79rem;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-editor {
    display: grid;
    gap: 13px;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-editor[hidden],
.careers-candidate-page #sec-perfil [data-sidebar-profile-view][hidden] {
    display: none !important;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-editor .candidate-field {
    gap: 5px;
    font-size: .76rem;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-editor .candidate-field input {
    padding: 9px 10px;
    font-size: .82rem;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-editor__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 3px;
}

.careers-candidate-page #sec-perfil .candidate-sidebar-editor__actions button {
    width: 100%;
}

@media (max-width: 900px) {
    .careers-candidate-page #sec-perfil .candidate-profile-sidebar__inner {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 560px) {
    .careers-candidate-page #sec-perfil .candidate-sidebar-info-item {
        padding-left: 4px;
        padding-right: 4px;
    }
}

.careers-candidate-page
#sec-perfil
.candidate-item-current {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    width: fit-content;

    color: var(--profile-navy);

    font-size: .82rem;
    font-weight: 650;

    cursor: pointer;
}


.careers-candidate-page
#sec-perfil
.candidate-item-current input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color:
        var(--profile-cyan);

    cursor: pointer;
}

/* Botones Tarjetas Experiencia y Educacion*/
.careers-candidate-page
#sec-perfil
.candidate-profile-item__actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    flex: 0 0 auto;
}

.careers-candidate-page
#sec-perfil
.candidate-profile__delete-icon {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff;
}


.careers-candidate-page
#sec-perfil
.candidate-profile__delete-icon:hover {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fef2f2;
}

.careers-candidate-page
#sec-perfil
.candidate-avatar.is-uploading
.candidate-avatar__upload {
    pointer-events: none;
    opacity: .6;
}


.careers-candidate-page
#sec-perfil
.candidate-avatar__loading {
    position: absolute;
    z-index: 3;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(7, 30, 61, .48);

    backdrop-filter:
        blur(1px);
}


.careers-candidate-page
#sec-perfil
.candidate-avatar__loading[hidden] {
    display: none !important;
}


.careers-candidate-page
#sec-perfil
.candidate-avatar__spinner {
    width: 30px;
    height: 30px;

    border:
        3px solid
        rgba(255, 255, 255, .45);

    border-top-color:
        #fff;

    border-radius:
        50%;

    animation:
        candidate-avatar-spin
        .7s
        linear
        infinite;
}


.careers-candidate-page
#sec-perfil
.candidate-avatar__status {
    min-height: 18px;

    margin:
        -8px
        0
        18px;

    color:
        var(--profile-muted);

    font-size:
        .76rem;

    line-height:
        1.4;

    text-align:
        center;
}


@keyframes candidate-avatar-spin {

    to {
        transform:
            rotate(360deg);
    }
}

/** Mensajes err llamativos */
#vacancies-filter-page #sec-perfil .candidate-auth__status {
    display: none;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

/* Efecto Aura / Resplandor cuando el error está activo */
#vacancies-filter-page #sec-perfil .candidate-auth__status:not(:empty) {
    display: block;
    /* El "aura" se logra con un box-shadow amplio y de baja opacidad (color rojo de alerta) */
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.35), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    animation: shakeAndPulse 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeAndPulse {
    0% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(6px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
    90% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

/* En todas las resoluciones, las columnas del perfil se desplazan
   con la pagina; la navegacion sticky queda en careers-candidate-tabs.css. */

@media (max-width: 900px) {
    .careers-candidate-page #sec-perfil .candidate-profile-sidebar__inner {
        max-height: none;
        overflow: visible;
        scrollbar-gutter: auto;
    }
}
