/* =========================================================
   WorkAtRTS - Global styles
   ========================================================= */

:root {
    --rts-primary: #089ACF;
    --rts-primary-light: #6EC1E4;
    --rts-primary-dark: #233C6E;
    --rts-secondary: #2166A9;
    --rts-accent: #EB820F;
    --rts-accent-dark: #C96F09;
    --rts-text: #54595F;
    --rts-text-light: #7A7A7A;
    --rts-black: #000000;
    --rts-background: #F8F8F8;
    --rts-background-alt: #F2F2F2;
    --rts-white: #FFFFFF;
    --rts-border: #E5E7EB;
    --rts-success: #2E9D62;
    --rts-radius-sm: 6px;
    --rts-radius: 10px;
    --rts-radius-lg: 16px;
    --rts-shadow: 0 6px 24px rgba(35, 60, 110, 0.10);
    --rts-shadow-hover: 0 10px 30px rgba(35, 60, 110, 0.16);
}

/* =========================================================
   Widget de perfil de usuario
   ========================================================= */
.rts-profile-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--rts-border);
    border-radius: var(--rts-radius-lg);
    padding: 16px;
    box-shadow: var(--rts-shadow);
    max-width: 280px;
    flex-shrink: 0;
}

.rts-profile-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rts-primary-dark), var(--rts-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.rts-profile-name {
    font-weight: 700;
    color: var(--rts-primary-dark);
    margin: 0;
}

.rts-profile-detail {
    color: var(--rts-text-light);
    font-size: .85rem;
    margin: 0;
}



/* =========================================================
   Reset 
   ========================================================= */

html {
    min-height: 100%;
    scrollbar-gutter: stable;
    overflow-x: hidden; /* respaldo para navegadores viejos */
    overflow-x: clip; /* no crea contenedor de scroll: deja funcionar el sticky */
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--rts-text);
    background: var(--rts-background);
    overflow-x: hidden; /* respaldo para navegadores viejos */
    overflow-x: clip;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--rts-secondary);
    text-decoration: none;
}

    a:hover {
        color: var(--rts-primary);
    }

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--rts-primary-dark);
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}

p {
    line-height: 1.6;
}


/* =========================================================
   layout global
   ========================================================= */

.rts-text-black {
    color: #1a1a1a !important;
}

.rts-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rts-main {
    flex: 1;
}

.rts-container {
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
}

.rts-page {
    padding: 42px 0 60px;
}


/* =========================================================
   header
   ========================================================= */

.rts-header {
    background: linear-gradient(110deg, #233C6E 0%, #2166A9 55%, #089ACF 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.rts-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.rts-brand {
    display: flex;
    flex-direction: column;
    color: white;
}

    .rts-brand:hover {
        color: white;
    }

.rts-brand-name {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

    .rts-brand-name span {
        color: var(--rts-accent);
    }

.rts-brand-subtitle {
    font-size: .75rem;
    opacity: .85;
}

/* Menú hamburguesa (solo visible en móvil) — implementado con el
   "checkbox hack" para que funcione sin JavaScript ni interactividad
   de Blazor, ya que MainLayout se usa también en páginas estáticas. */
.rts-nav-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rts-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    cursor: pointer;
}

    .rts-nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }

.rts-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

    .rts-nav a {
        color: rgba(255, 255, 255, .92);
        font-weight: 500;
    }

        .rts-nav a:hover {
            color: white;
        }

.rts-nav-cta {
    padding: 10px 18px;
    background: var(--rts-accent);
    border-radius: var(--rts-radius-sm);
    color: white !important;
    font-weight: 600;
    transition: .2s ease;
}

    .rts-nav-cta:hover {
        transform: translateY(-1px);
        filter: brightness(1.05);
    }


/* =========================================================
   headers de página
   ========================================================= */

.rts-page-header {
    margin-bottom: 30px;
}

    .rts-page-header h1 {
        margin-bottom: 8px;
    }

    .rts-page-header p {
        margin: 0;
        color: var(--rts-text-light);
        font-size: 1.05rem;
    }


/* =========================================================
   cards
   ========================================================= */

.rts-card {
    background: var(--rts-white);
    border: 1px solid var(--rts-border);
    border-radius: var(--rts-radius-lg);
    padding: 24px;
    box-shadow: var(--rts-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .rts-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--rts-shadow-hover);
    }


/* =========================================================
   forms
   ========================================================= */

.rts-form-card {
    /* container query: el grid de campos reacciona al ancho real de
       la tarjeta, no solo al del viewport — así nunca se desborda
       aunque la tarjeta quede comprimida en anchos intermedios. */
    container-type: inline-size;
    container-name: rts-form;
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    background: white;
    padding: 34px 40px 32px;
    border: 1px solid var(--rts-border);
    border-top: 4px solid var(--rts-accent);
    border-radius: var(--rts-radius-lg);
    box-shadow: var(--rts-shadow-hover);
    box-sizing: border-box;
}

    .rts-form-card .rts-page-header {
        margin-bottom: 22px;
    }

.rts-form-group {
    min-width: 0;
    margin-bottom: 14px;
}

    .rts-form-group label {
        display: block;
        margin-bottom: 6px;
        color: #30343B;
        font-weight: 600;
    }

.rts-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

@container rts-form (max-width: 440px) {
    .rts-form-row {
        grid-template-columns: 1fr;
    }
}

/* Input con icono — mismo lenguaje visual que .rts-login-input,
   generalizado para reutilizarse en cualquier formulario. */
.rts-input-icon {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 12px;
    background: var(--rts-white);
    border: 1px solid #C9CDD3;
    border-radius: var(--rts-radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .rts-input-icon:focus-within {
        border-color: var(--rts-primary);
        box-shadow: 0 0 0 3px rgba(8, 154, 207, .13);
    }

    .rts-input-icon svg {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        margin-right: 10px;
        color: var(--rts-text-light);
    }

    .rts-input-icon input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        min-height: 44px;
        padding: 10px 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

        .rts-input-icon input:focus {
            border: 0;
            box-shadow: none;
        }

        .rts-input-icon input::placeholder {
            color: var(--rts-text-light);
            opacity: .55;
        }

@media (max-width: 640px) {
    .rts-form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Login / Registro: panel de foto del equipo a pantalla
   completa (sin recortes raros, object-fit se encarga de
   llenar el panel sin importar el ancho) + formulario limpio
   sobre fondo blanco al lado.
   ========================================================= */

.rts-auth-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    /* Fijo y suficientemente alto para el formulario más largo
       (Registro, 4 campos) — así la foto no cambia de tamaño entre
       Login y Registro; antes crecía con el contenido de cada página. */
    min-height: 840px;
    background: white;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -42px;
    margin-bottom: -60px;
}

.rts-auth-hero-photo {
    position: relative;
    overflow: hidden;
    background: #0a1e3f;
}

    .rts-auth-hero-photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 28%;
    }

.rts-auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(33, 102, 169, .35) 0%, rgba(10, 30, 63, .4) 35%, rgba(10, 30, 63, .94) 100%);
}

.rts-auth-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 56px;
}

.rts-auth-hero-eyebrow {
    color: var(--rts-accent);
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    margin: 0 0 12px;
}

.rts-auth-hero-content h1 {
    color: white;
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 14px;
    max-width: 480px;
}

    .rts-auth-hero-content h1 span {
        color: var(--rts-accent);
    }

.rts-auth-hero-sub {
    color: rgba(255, 255, 255, .82);
    font-size: 1.02rem;
    max-width: 440px;
    margin: 0 0 32px;
}

.rts-auth-hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.rts-auth-hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rts-auth-hero-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: var(--rts-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rts-auth-hero-feature-icon svg {
        width: 18px;
        height: 18px;
    }

.rts-auth-hero-feature h3 {
    margin: 0 0 2px;
    font-size: .95rem;
    color: white;
}

.rts-auth-hero-feature p {
    margin: 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .72);
}

.rts-auth-hero-form {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 48px min(48px, 4vw);
    background: linear-gradient(160deg, #f7f9fd 0%, #eef2fb 100%);
    overflow: hidden;
}

    .rts-auth-hero-form::before {
        content: "";
        position: absolute;
        top: -90px;
        right: -90px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(33, 102, 169, .12), transparent 70%);
        pointer-events: none;
    }

    .rts-auth-hero-form::after {
        content: "";
        position: absolute;
        bottom: -50px;
        left: -50px;
        width: 220px;
        height: 220px;
        background-image: radial-gradient(rgba(33, 102, 169, .22) 1.5px, transparent 1.5px);
        background-size: 16px 16px;
        -webkit-mask-image: radial-gradient(circle at bottom left, black 0%, transparent 70%);
        mask-image: radial-gradient(circle at bottom left, black 0%, transparent 70%);
        pointer-events: none;
    }

.rts-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--rts-text-light);
    font-size: .8rem;
}

    .rts-auth-divider::before,
    .rts-auth-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--rts-border);
    }

@media (max-width: 960px) {
    .rts-auth-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .rts-auth-hero-photo {
        min-height: 320px;
    }

    .rts-auth-hero-content {
        padding: 32px 24px;
    }

    .rts-auth-hero-content h1 {
        font-size: 1.9rem;
        max-width: none;
    }

    .rts-auth-hero-sub {
        max-width: none;
    }

    .rts-auth-hero-stats {
        gap: 24px;
    }

    .rts-auth-hero-form {
        padding: 32px 20px 48px;
    }
}

/* Botón de mostrar/ocultar contraseña */
.rts-has-toggle {
    position: relative;
    padding-right: 40px;
}

.rts-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    background: none;
    border: none;
    color: var(--rts-text-light);
    cursor: pointer;
}

    .rts-password-toggle svg {
        width: 18px;
        height: 18px;
    }

    .rts-password-toggle:hover {
        color: var(--rts-primary);
        transform: translateY(-50%);
    }

input,
textarea,
select,
.form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--rts-text);
    background: white;
    border: 1px solid #C9CDD3;
    border-radius: var(--rts-radius-sm);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

    input:focus,
    textarea:focus,
    select:focus,
    .form-control:focus {
        border-color: var(--rts-primary);
        box-shadow: 0 0 0 3px rgba(8, 154, 207, .13);
    }


/* =========================================================
   botones
   ========================================================= */

button,
.rts-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--rts-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

    button:hover,
    .rts-button:hover {
        transform: translateY(-1px);
    }

.rts-button-primary {
    background: var(--rts-primary);
    color: white;
}

    .rts-button-primary:hover {
        color: white;
        filter: brightness(.96);
    }

.rts-button-accent {
    background: var(--rts-accent);
    color: white;
}

    .rts-button-accent:hover {
        color: white;
        box-shadow: 0 5px 15px rgba(235, 130, 15, .25);
    }

.rts-button-secondary {
    background: var(--rts-primary-dark);
    color: white;
}

.rts-button-block {
    width: 100%;
}


/* =========================================================
   Activación de cuenta
   ========================================================= */


.rts-activation-subtitle {
    text-align: center;
    color: var(--rts-text-light);
    margin-bottom: 24px;
}

.rts-activation-card {
    width: min(420px, 100%);
    margin: 0 auto;
    background: white;
    border: 1px solid var(--rts-border);
    border-radius: var(--rts-radius-lg);
    box-shadow: var(--rts-shadow);
    padding: 40px 32px 32px;
    text-align: center;
}

.rts-id-badge {
    position: relative;
    width: 200px;
    margin: 20px auto 28px;
    background: var(--rts-white);
    border: 1px solid var(--rts-border);
    border-radius: var(--rts-radius);
    box-shadow: var(--rts-shadow);
    padding: 36px 16px 16px;
}

.rts-id-badge-clip {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rts-text-light);
}

    .rts-id-badge-clip::after {
        content: "";
        position: absolute;
        top: 8px;
        left: 3px;
        width: 4px;
        height: 22px;
        background: var(--rts-text-light);
    }

.rts-id-badge-photo {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--rts-primary-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rts-id-badge-photo svg {
        width: 32px;
        height: 32px;
    }

.rts-id-badge-label {
    font-weight: 700;
    color: var(--rts-primary-dark);
    margin: 0 0 6px;
}

.rts-id-badge-name {
    font-size: .85rem;
    color: var(--rts-text-light);
    margin: 0;
}

.rts-text-light-center {
    text-align: center;
    color: var(--rts-text-light);
}

.rts-countdown {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 24px auto;
}

.rts-countdown-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rts-countdown-track {
    fill: none;
    stroke: var(--rts-background-alt);
    stroke-width: 10;
}

.rts-countdown-progress {
    fill: none;
    stroke: var(--rts-accent);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    transition: stroke-dashoffset 1s linear;
}

.rts-countdown-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rts-countdown-caption {
    font-size: .65rem;
    color: var(--rts-text-light);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.rts-countdown-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rts-primary-dark);
}

.rts-countdown-check {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2F9E68;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rts-countdown-check svg {
        width: 12px;
        height: 12px;
    }
/* =========================================================
   listas / vacantes
   ========================================================= */



.rts-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.rts-hero-text {
    flex: 1;
    min-width: 280px;
}

    .rts-hero-text h1 {
        margin-bottom: 14px;
    }

    .rts-hero-text p {
        color: var(--rts-text-light);
        font-size: 1.1rem;
    }

.vacancy-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(8, 154, 207, 0.14), rgba(33, 102, 169, 0.14));
    color: var(--rts-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
}

    .vacancy-card-icon svg {
        width: 22px;
        height: 22px;
    }

.vacancy-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.vacancy-card {
    background: white !important;
    border: 1px solid var(--rts-border) !important;
    border-top: 3px solid var(--rts-accent) !important;
    border-radius: var(--rts-radius-lg) !important;
    padding: 24px !important;
    box-shadow: var(--rts-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .vacancy-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--rts-shadow-hover);
    }

    .vacancy-card h3 {
        color: var(--rts-primary-dark);
        margin-top: 0;
    }

    .vacancy-card strong {
        color: #30343B;
    }

    .vacancy-card .rts-location {
        color: var(--rts-text-light);
        font-size: .9rem;
        margin: 0;
    }

    .vacancy-card .rts-salary {
        display: inline-block;
        background: rgba(235, 130, 15, 0.1);
        color: var(--rts-accent-dark);
        font-weight: 700;
        padding: 4px 12px;
        border-radius: 999px;
        margin: 4px 0 0;
        width: fit-content;
    }

    .vacancy-card > a {
        display: inline-flex;
        justify-content: center;
        margin-top: auto;
        padding: 10px 18px;
        background: var(--rts-accent);
        color: white;
        border-radius: var(--rts-radius-sm);
        font-weight: 600;
    }

        .vacancy-card > a:hover {
            color: white;
            filter: brightness(1.05);
        }


/* =========================================================
   detalle de vacante
   ========================================================= */

.vacancy-detail {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--rts-radius-lg);
    border-top: 3px solid var(--rts-accent);
    box-shadow: var(--rts-shadow);
    padding: 36px 40px 44px;
}

.vacancy-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0;
}

    .vacancy-detail-header h1 {
        margin-bottom: 0;
    }

.rts-salary-pill {
    display: inline-block;
    background: var(--rts-accent);
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: var(--rts-radius-sm);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 20px 0 28px;
    box-shadow: var(--rts-shadow);
}

.vacancy-detail-header .rts-button-accent {
    color: #ffffff !important;
}

.vacancy-detail p {
    line-height: 1.7;
}

.vacancy-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rts-border);
}

    .vacancy-requirements h3 {
        color: var(--rts-primary-dark);
    }

@media (max-width: 640px) {
    .vacancy-detail {
        padding: 26px 22px 32px;
    }
}

    .vacancy-requirements ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .vacancy-requirements li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
        line-height: 1.5;
    }

        .vacancy-requirements li::before {
            content: "";
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            margin-top: 2px;
            border-radius: 50%;
            background-color: #2F9E68;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.485 1.929a1 1 0 0 1 .143 1.407l-7 8.5a1 1 0 0 1-1.514.038l-3.5-3.75a1 1 0 1 1 1.472-1.354l2.694 2.887 6.29-7.635a1 1 0 0 1 1.415-.093z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 11px 11px;
        }

@media (max-width: 640px) {
    .vacancy-requirements {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   alertas
   ========================================================= */

.rts-alert {
    padding: 14px 16px;
    border-radius: var(--rts-radius);
    margin-bottom: 18px;
}

.rts-alert-error {
    color: #9B1C1C;
    background: #FDECEC;
    border: 1px solid #FACCCC;
}

.rts-alert-success {
    color: #146C43;
    background: #EAF8F0;
    border: 1px solid #BFE7CF;
}


/* =========================================================
   Footer
   ========================================================= */

.rts-footer {
    margin-top: auto;
    background: #0a1e3f;
}

.rts-footer-inner {
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, .68);
    font-size: .9rem;
}

.rts-footer-links {
    display: flex;
    gap: 20px;
}

    .rts-footer-links a {
        color: rgba(255, 255, 255, .85);
    }

        .rts-footer-links a:hover {
            color: white;
        }


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {

    .rts-container {
        width: min(100% - 28px, 1400px);
    }

    .rts-header-inner {
        position: relative;
        min-height: auto;
        padding: 14px 0;
        flex-wrap: nowrap;
    }

    .rts-nav-toggle {
        display: flex;
    }

    .rts-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: auto;
        max-height: 0;
        overflow: hidden;
        background: linear-gradient(180deg, #1c3560 0%, #2166A9 100%);
        box-shadow: 0 16px 28px rgba(0, 0, 0, .22);
        transition: max-height .25s ease;
    }

        .rts-nav a:not(.rts-nav-cta) {
            display: block;
            padding: 14px 20px;
            border-top: 1px solid rgba(255, 255, 255, .14);
        }

        .rts-nav form {
            border-top: 1px solid rgba(255, 255, 255, .14);
        }

            .rts-nav form button {
                width: 100%;
                text-align: left;
                background: none;
                padding: 14px 20px;
                min-height: 0;
                border-radius: 0;
                color: white;
                font-weight: 500;
            }

        .rts-nav-cta {
            display: flex;
            justify-content: center;
            text-align: center;
            white-space: normal;
            margin: 14px 20px;
        }

    .rts-nav-toggle-checkbox:checked ~ .rts-nav {
        max-height: 420px;
    }

    .rts-nav-toggle-checkbox:checked ~ .rts-nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .rts-nav-toggle-checkbox:checked ~ .rts-nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .rts-nav-toggle-checkbox:checked ~ .rts-nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .rts-page {
        padding-top: 28px;
    }

    .rts-form-card {
        padding: 22px;
    }

    .rts-footer-inner {
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   Inicio de sesion
   ========================================================= */

.rts-login-card {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    min-width: 0;
    margin: 0 auto;
    padding: 34px 36px 30px;
    background: var(--rts-white);
    border: 1px solid var(--rts-border);
    border-top: 4px solid var(--rts-accent);
    border-radius: var(--rts-radius-lg);
    box-shadow: var(--rts-shadow-hover);
}

.rts-login-header {
    margin-bottom: 24px;
    text-align: left;
}

    .rts-login-header h1 {
        margin: 0 0 12px;
        color: var(--rts-primary-dark);
        font-size: clamp(2.25rem, 4vw, 3rem);
        line-height: 1.15;
    }

    .rts-login-header p {
        margin: 0;
        color: var(--rts-text-light);
        font-size: 1.05rem;
    }

.rts-login-group {
    margin-bottom: 24px;
}

    .rts-login-group label {
        display: block;
        margin-bottom: 6px;
        color: #30343B;
        font-weight: 600;
    }

.rts-login-input {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 10px;
    background: var(--rts-white);
    border: 1px solid #7A7A7A;
    border-radius: var(--rts-radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .rts-login-input:focus-within {
        border-color: #7A7A7A;
        box-shadow: 0 0 0 3px rgba(122, 122, 122, .13);
    }

    .rts-login-input img {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        margin-right: 8px;
        object-fit: contain;
        opacity: .72;
    }

    .rts-login-input input,
    .rts-login-input input:focus {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        min-height: 44px;
        padding: 10px 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

        .rts-login-input input::placeholder {
            color: var(--rts-text-light);
            opacity: .45;
        }

        .rts-login-input input.valid.modified:not([type="checkbox"]),
        .rts-login-input input.invalid {
            outline: none !important;
        }

        .rts-login-input input:-webkit-autofill,
        .rts-login-input input:-webkit-autofill:hover,
        .rts-login-input input:-webkit-autofill:focus,
        .rts-login-input input:-webkit-autofill:active {
            -webkit-text-fill-color: var(--rts-text) !important;
            -webkit-box-shadow: 0 0 0 1000px var(--rts-white) inset !important;
            box-shadow: 0 0 0 1000px var(--rts-white) inset !important;
            caret-color: var(--rts-text);
        }

.rts-login-forgot-row {
    margin-top: -12px;
    margin-bottom: 12px;
    text-align: right;
}

    .rts-login-forgot-row a {
        color: var(--rts-primary);
        font-size: .8rem;
        text-decoration: underline;
    }

.rts-login-submit {
    display: flex;
    width: 210px;
    margin: 0 auto;
    font-weight: 400;
}

.rts-login-register {
    margin: 16px 0 0;
    color: var(--rts-primary-dark);
    text-align: center;
}

    .rts-login-register a {
        color: var(--rts-primary);
        text-decoration: underline;
    }

.rts-login-card .rts-alert {
    margin: 18px 0 0;
}

@media (max-width: 640px) {
    .rts-login-card {
        margin-top: 18px;
        padding: 24px 20px;
    }

    .rts-login-header h1 {
        font-size: 2.25rem;
    }

    .rts-login-submit {
        width: 100%;
    }
}


/* =========================================================
   Modal para aplicar a una vacante
   ========================================================= */

.rts-apply-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
}

.rts-apply-modal {
    position: relative;
    width: min(440px, 100%);
    padding: 28px 32px 32px;
    background: var(--rts-white);
    border-radius: var(--rts-radius-lg);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
    text-align: left;
}

    .rts-apply-modal h2 {
        margin: 0 0 18px;
        color: var(--rts-primary-dark);
        font-size: 1.5rem;
        line-height: 1.2;
        text-align: center;
    }

    .rts-apply-modal p {
        margin: 0 0 14px;
        line-height: 1.5;
        color: var(--rts-text);
    }

    .rts-apply-modal ul {
        margin: 0 0 18px;
        padding-left: 20px;
    }

    .rts-apply-modal li {
        margin-bottom: 6px;
        line-height: 1.45;
        color: var(--rts-text);
    }

.rts-apply-hint {
    color: var(--rts-text-light);
    font-size: .85rem;
    margin: 0 0 16px;
}

.rts-apply-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 14px;
}

    .rts-apply-confirm-actions .rts-apply-submit {
        flex: 1 1 auto;
    }

    .rts-apply-confirm-actions .rts-button:not(.rts-apply-submit) {
        flex: 0 0 auto;
        background: var(--rts-background-alt);
        color: var(--rts-primary-dark);
    }

.rts-apply-modal .rts-link-button {
    display: block;
    text-align: center;
    margin: 2px auto 0;
    color: var(--rts-primary);
}

.rts-apply-auth-message {
    text-align: center;
}

.rts-apply-modal-close {
    position: absolute;
    top: -13px;
    right: -13px;
    width: 26px;
    height: 26px;
    min-height: 0;
    padding: 0;
    background: var(--rts-accent);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

    .rts-apply-modal-close img {
        display: none;
    }

    .rts-apply-modal-close::before,
    .rts-apply-modal-close::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 13px;
        height: 2px;
        background: var(--rts-white);
        border-radius: 2px;
    }

    .rts-apply-modal-close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .rts-apply-modal-close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .rts-apply-modal-close:disabled {
        cursor: not-allowed;
        opacity: .65;
        transform: none;
    }

.rts-apply-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rts-apply-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 112px;
    min-height: 145px;
    margin: 0 auto 30px;
    padding: 10px 8px;
    background: var(--rts-white);
    border: 2px dashed #7A7A7A;
    border-radius: var(--rts-radius);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

    .rts-apply-dropzone:hover {
        border-color: var(--rts-primary);
        transform: translateY(-1px);
    }

.rts-apply-file-input:focus-visible + .rts-apply-dropzone {
    border-color: var(--rts-primary);
    box-shadow: 0 0 0 3px rgba(8, 154, 207, .16);
}

.rts-apply-dropzone.is-disabled {
    cursor: not-allowed;
    opacity: .65;
    transform: none;
}

.rts-apply-upload-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.rts-apply-document-icon {
    width: 58px;
    height: 58px;
    margin-top: 5px;
    object-fit: contain;
}

.rts-apply-file-name {
    display: block;
    width: 100%;
    margin-top: 7px;
    overflow: hidden;
    color: var(--rts-text);
    font-size: .7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rts-apply-submit {
    width: 100%;
    min-height: 46px;
    font-weight: 400;
}

    .rts-apply-submit:disabled {
        background: var(--rts-background-alt);
        color: var(--rts-text-light);
        cursor: not-allowed;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }

.rts-apply-result {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: var(--rts-radius-sm);
    font-size: .85rem;
    line-height: 1.35;
}

    .rts-apply-result.is-success {
        color: #146C43;
        background: #EAF8F0;
        border: 1px solid #BFE7CF;
    }

    .rts-apply-result.is-error {
        color: #9B1C1C;
        background: #FDECEC;
        border: 1px solid #FACCCC;
    }

.rts-apply-auth-message p {
    margin: 0 0 18px;
    color: var(--rts-text);
}

.rts-apply-auth-message .rts-button {
    width: 100%;
}

.rts-cv-preview-modal {
    position: relative;
    width: 80vw;
    height: 85vh;
    max-width: 900px;
    background: white;
}

.rts-cv-preview-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.rts-cv-preview-modal .rts-apply-modal-close {
    z-index: 10;
}

.rts-link-button {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.rts-applied-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #2e9e6c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rts-ai-match-row {
    margin: 24px 0;
    text-align: center;
}

.rts-ai-match-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #a855f7, #f5a623);
    background-size: 200% 200%;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: rts-ai-gradient 4s ease infinite;
}

    .rts-ai-match-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(99, 102, 241, 0.45);
    }

    .rts-ai-match-button:disabled {
        opacity: 0.7;
        cursor: default;
    }

.rts-ai-match-icon {
    width: 20px;
    height: 20px;
}

@keyframes rts-ai-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.rts-ai-match-active {
    color: #0a1e3f;
    font-weight: 500;
}

.rts-ai-match-error {
    color: #c0392b;
    margin-top: 8px;
}

.rts-ai-match-tag {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

@media (max-width: 420px) {
    .rts-apply-modal-backdrop {
        padding: 18px;
    }

    .rts-apply-modal {
        padding-right: 22px;
        padding-left: 22px;
    }

    .rts-apply-modal-close {
        top: -10px;
        right: -8px;
    }

    .rts-apply-confirm-actions {
        flex-direction: column;
    }

        .rts-apply-confirm-actions .rts-button {
            width: 100%;
        }
}
.rts-cover {
    position: relative;
    background: linear-gradient(115deg, #1c3560 0%, #2166A9 55%, #089ACF 100%);
    height: 260px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -42px;
}

    .rts-cover::after {
        content: "";
        position: absolute;
        top: -70px;
        right: 6%;
        width: 260px;
        height: 260px;
        background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 72%);
        border-radius: 50%;
        pointer-events: none;
    }

.rts-cover-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.25) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 100%);
    mask-image: linear-gradient(180deg, black 0%, transparent 100%);
}

.rts-cover-text {
    position: relative;
    z-index: 1;
    padding-top: 30px;
    max-width: 540px;
}

.rts-cover-eyebrow {
    color: #f5a623;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin: 0 0 8px;
}

.rts-cover-text h1 {
    color: white;
    font-size: 1.9rem;
    margin: 0 0 8px;
}

.rts-cover-text p {
    color: rgba(255, 255, 255, .85);
    margin: 0;
    font-size: .98rem;
}

.rts-profile-block {
    position: relative;
    margin-top: -64px;
    padding-bottom: 20px;
}

.rts-profile-row {
    display: flex;
    align-items: flex-end;
    gap: 22px;
}

.rts-profile-info {
    flex: 1;
    background: white;
    border-radius: var(--rts-radius);
    padding: 14px 22px;
    box-shadow: var(--rts-shadow);
}

    .rts-profile-info h1 {
        font-size: 1.6rem;
        color: var(--rts-primary-dark);
        margin: 0;
    }

    .rts-profile-info .role {
        color: var(--rts-text-light);
        font-size: .95rem;
        margin-top: 3px;
    }

.rts-profile-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.rts-badge {
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .rts-badge.status {
        background: #E9F7EF;
        color: var(--rts-success);
    }

.rts-cv-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

    .rts-cv-actions button {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: auto;
    }

        .rts-cv-actions button svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

    .rts-cv-actions .rts-btn-accent {
        background: var(--rts-accent) !important;
        color: white !important;
        border: none !important;
    }

        .rts-cv-actions .rts-btn-accent:hover:not(:disabled) {
            background: var(--rts-accent-dark) !important;
        }

        .rts-cv-actions .rts-btn-accent:disabled {
            background: var(--rts-background-alt) !important;
            color: var(--rts-text-light) !important;
            cursor: not-allowed;
        }

    .rts-cv-actions .rts-btn-outline {
        background: white !important;
        border: 1.5px solid var(--rts-border) !important;
        color: var(--rts-primary-dark) !important;
    }

        .rts-cv-actions .rts-btn-outline:hover {
            border-color: var(--rts-primary) !important;
            color: var(--rts-primary) !important;
            background: #F0F8FC !important;
        }

.rts-save-row .rts-btn-accent {
    background: var(--rts-accent) !important;
    color: white !important;
    border: none !important;
}

    .rts-save-row .rts-btn-accent:hover:not(:disabled) {
        background: var(--rts-accent-dark) !important;
    }
.rts-avatar-ring {
    position: relative;
    width: 128px;
    height: 128px;
    flex-shrink: 0;
}

    .rts-avatar-ring svg {
        position: absolute;
        inset: 0;
        transform: rotate(-90deg);
    }

    .rts-avatar-ring .track {
        fill: none;
        stroke: #E5EAF0;
        stroke-width: 6;
    }

    .rts-avatar-ring .fill {
        fill: none;
        stroke: var(--rts-accent);
        stroke-width: 6;
        stroke-linecap: round;
        stroke-dasharray: 345;
    }

.rts-avatar {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: white;
    border: 4px solid white;
    box-shadow: var(--rts-shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rts-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--rts-primary-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2.1rem;
}

.rts-progress-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: white;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rts-shadow);
    font-size: .68rem;
    font-weight: 800;
    color: var(--rts-accent-dark);
}

.rts-profile-info {
    flex: 1;
    background: white;
    border-radius: var(--rts-radius);
    padding: 14px 22px;
    box-shadow: var(--rts-shadow);
}

    .rts-profile-info h1 {
        font-size: 1.6rem;
        color: var(--rts-primary-dark);
        margin: 0;
    }

    .rts-profile-info .role {
        color: var(--rts-text-light);
        font-size: .95rem;
        margin-top: 3px;
    }

.rts-profile-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.rts-badge {
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .rts-badge.status {
        background: #E9F7EF;
        color: var(--rts-success);
    }

.rts-quickstats {
    display: flex;
    background: white;
    border-radius: var(--rts-radius-lg);
    box-shadow: var(--rts-shadow);
    padding: 22px 10px;
    margin: 26px 0;
}

.rts-quickstat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

    .rts-quickstat + .rts-quickstat {
        border-left: 1px solid var(--rts-border);
    }

    .rts-quickstat .qicon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--rts-background-alt);
        color: var(--rts-primary);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .rts-quickstat .qicon svg {
            width: 18px;
            height: 18px;
        }

    .rts-quickstat .qnum {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--rts-primary-dark);
    }

    .rts-quickstat .qlabel {
        font-size: .78rem;
        color: var(--rts-text-light);
    }

.rts-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 22px;
    padding-bottom: 60px;
}

.rts-panel {
    background: white;
    border-radius: var(--rts-radius-lg);
    box-shadow: var(--rts-shadow);
    padding: 26px;
}

.rts-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

    .rts-panel-title .picon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--rts-primary-dark), var(--rts-secondary));
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .rts-panel-title .picon svg {
            width: 17px;
            height: 17px;
        }

    .rts-panel-title h2 {
        font-size: 1.15rem;
        margin: 0;
        color: var(--rts-primary-dark);
    }

.rts-card-hint {
    color: var(--rts-text-light);
    font-size: .85rem;
    font-style: italic;
    margin: 0 0 18px;
}

.rts-dropzone-wrap {
    position: relative;
    margin-bottom: 16px;
}

.rts-dropzone {
    border: 1.5px dashed var(--rts-border);
    border-radius: var(--rts-radius);
    padding: 26px 16px;
    text-align: center;
    background: var(--rts-background);
    font-size: .88rem;
}

.rts-dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--rts-shadow);
    color: var(--rts-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

    .rts-dropzone-icon svg {
        width: 20px;
        height: 20px;
    }

.rts-dropzone strong {
    color: var(--rts-primary-dark);
}

.rts-dropzone .hint {
    color: var(--rts-text-light);
    font-size: .8rem;
    margin-top: 6px;
}

.rts-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.rts-field {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

    .rts-field .ficon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--rts-background-alt);
        color: var(--rts-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-top: 2px;
    }

        .rts-field .ficon svg {
            width: 17px;
            height: 17px;
        }

.rts-field-body {
    flex: 1;
}

    .rts-field-body label {
        display: block;
        font-weight: 700;
        color: var(--rts-primary-dark);
        margin-bottom: 6px;
        font-size: .88rem;
    }

.rts-save-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

/* Mi perfil en móvil: el header de perfil, las estadísticas rápidas
   y el grid de paneles (CV + datos) eran de 2 columnas fijas sin
   ningún ajuste — se apilan aquí para que quepan sin desbordarse. */
@media (max-width: 700px) {
    .rts-profile-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .rts-profile-info {
        width: 100%;
    }

    .rts-profile-badges {
        justify-content: center;
    }

    .rts-quickstats {
        flex-direction: column;
        gap: 18px;
    }

        .rts-quickstat + .rts-quickstat {
            border-left: none;
            border-top: 1px solid var(--rts-border);
            padding-top: 18px;
        }

    .rts-grid {
        grid-template-columns: 1fr;
    }

    .rts-cv-actions {
        flex-direction: column;
    }
}

.rts-vacantes-hero {
    position: relative;
    background: linear-gradient(115deg, #1c3560 0%, #2166A9 55%, #089ACF 100%);
    overflow: hidden;
    padding: 15px 0 40px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -42px;
    margin-bottom: 40px;
}

.rts-vacantes-hero-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.25) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}

.rts-vacantes-hero .rts-hero-row {
    position: relative;
    margin-bottom: 32px;
}

.rts-vacantes-hero .rts-hero-text h1 {
    color: white;
}

.rts-vacantes-hero .rts-hero-text p {
    color: rgba(255, 255, 255, .85);
}

/* Globo decorativo: ocupa el lugar del widget de perfil cuando el
   visitante no ha iniciado sesión. */
.rts-vacantes-globe {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

    .rts-vacantes-globe-icon {
        width: 100px;
        height: 100px;
        color: rgba(255, 255, 255, .35);
    }

.rts-vacantes-badge {
    position: absolute;
    top: -6px;
    right: -70px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #0a1e3f;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(10, 30, 63, .3);
    white-space: nowrap;
}

    .rts-vacantes-badge svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        color: #2166A9;
    }

/* Barra de búsqueda */
.rts-vacantes-search {
    position: relative;
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: var(--rts-radius-lg);
    box-shadow: 0 16px 40px rgba(10, 30, 63, .25);
    padding: 8px;
    gap: 4px;
}

.rts-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 8px 14px;
    color: var(--rts-text);
}

    .rts-search-field svg {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        color: var(--rts-text-light);
    }

    .rts-search-field input,
    .rts-search-field select {
        flex: 1;
        width: 100%;
        min-height: 0;
        border: none;
        padding: 0;
        background: transparent;
        font-size: .95rem;
        color: var(--rts-text);
    }

        .rts-search-field input:focus,
        .rts-search-field select:focus {
            border: none;
            box-shadow: none;
            outline: none;
        }

.rts-search-field-select {
    flex: 0 0 220px;
}

.rts-search-divider {
    width: 1px;
    background: var(--rts-border);
    margin: 8px 0;
}

.rts-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 0 26px;
    background: var(--rts-accent);
    color: white;
    border-radius: var(--rts-radius);
    font-weight: 700;
}

    .rts-search-submit svg {
        width: 18px;
        height: 18px;
    }

    .rts-search-submit:hover {
        filter: brightness(1.05);
    }

/* Pills de filtro rápido */
.rts-vacantes-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.rts-pill {
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: white;
    font-size: .85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .25);
    min-height: 0;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

    .rts-pill:hover {
        background: rgba(255, 255, 255, .22);
    }

    .rts-pill.is-active {
        background: var(--rts-accent);
        border-color: var(--rts-accent);
        color: white;
    }

/* Barra de resultados: conteo + orden + limpiar filtros */
.rts-vacantes-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.rts-results-count {
    margin: 0;
    color: var(--rts-text);
}

    .rts-results-count strong {
        color: var(--rts-primary-dark);
    }

.rts-results-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.rts-sort-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--rts-text-light);
}

    .rts-sort-label select {
        min-height: 36px;
        padding: 4px 10px;
        font-size: .88rem;
    }

.rts-category-tag {
    display: inline-block;
    background: var(--rts-background-alt);
    color: var(--rts-text-light);
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    width: fit-content;
}

@media (max-width: 760px) {
    .rts-vacantes-search {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .rts-search-field-select {
        flex: 1 1 auto;
    }

    .rts-search-divider {
        display: none;
    }

    .rts-search-submit {
        padding: 12px;
    }

    .rts-vacantes-globe {
        display: none;
    }
}

.rts-my-applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.rts-status-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    margin-top: 8px;
}

.rts-status-en_proceso {
    background: #eef2ff;
    color: #4338ca;
}

.rts-status-en_revision {
    background: #fffbeb;
    color: #92400e;
}

.rts-status-aceptado {
    background: #ecfdf5;
    color: #047857;
}

.rts-status-descalificado {
    background: #fef2f2;
    color: #b91c1c;
}

.rts-ai-match-none {
    text-align: center;
    padding: 48px 16px;
    color: #0a1e3f;
    font-size: 1.05rem;
}

.rts-ai-match-showall {
    text-align: center;
    margin: 32px 0;
}