:root {
    --th-ink: #0f172a;
    --th-ink-soft: #334155;
    --th-muted: #64748b;
    --th-line: rgba(148, 163, 184, 0.24);
    --th-surface: #ffffff;
    --th-surface-soft: #f8fbff;
    --th-brand: #123b67;
    --th-brand-2: #245b95;
    --th-brand-3: #5f8fbe;
    --th-brand-4: #dce9f6;
    --th-accent: #9ec3e8;
    --th-success: #0f766e;
    --th-warning: #b45309;
    --th-danger: #b42318;
    --th-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    --th-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.05);
    --th-radius-xl: 1.6rem;
    --th-radius-lg: 1.1rem;
    --th-radius-md: 0.95rem;
    --th-navbar-bg: rgba(248, 251, 255, 0.62);
    --th-body-size: 15px;
    --th-title-1: clamp(2rem, 4vw, 3.1rem);
    --th-title-2: clamp(1.65rem, 2.7vw, 2.35rem);
    --th-title-3: 1.65rem;
    --th-text-lg: 1.02rem;
    --th-text-md: 0.94rem;
    --th-text-sm: 0.83rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: var(--th-ink);
    background:
        radial-gradient(circle at top left, rgba(95, 143, 190, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(158, 195, 232, 0.12), transparent 28%),
        linear-gradient(180deg, #f4f8fc 0%, #f8fbfd 26%, #eef4f9 100%);
    min-height: 100vh;
    letter-spacing: -0.01em;
    font-size: var(--th-body-size);
    line-height: 1.55;
}

.public-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.page-shell::before {
    content: "";
    position: fixed;
    inset: -15% auto auto -12%;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(95, 143, 190, 0.14), transparent 68%);
    pointer-events: none;
}

.section,
.section-panel,
.card-soft,
.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--th-radius-xl);
    box-shadow: var(--th-shadow);
    backdrop-filter: blur(18px);
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(18, 59, 103, 0.96), rgba(36, 91, 149, 0.9)),
        linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
    color: #fff;
    border-radius: 1.9rem;
    box-shadow: 0 32px 80px rgba(18, 59, 103, 0.22);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -5rem -6rem auto;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}

.hero-carousel {
    position: relative;
    min-height: 100%;
    border-radius: 1.6rem;
    overflow: hidden;
}

.hero-carousel-slides {
    position: relative;
    min-height: 25rem;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    position: relative;
}

.hero-carousel-slide .section-panel {
    min-height: 25rem;
}

.hero-carousel-flyer {
    min-height: 25rem;
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: var(--th-shadow);
}

.hero-carousel-flyer-link {
    position: relative;
    display: block;
    min-height: 25rem;
    color: #fff;
}

.hero-carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-carousel-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--th-brand);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-carousel-content {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1.5rem;
    z-index: 2;
    color: var(--th-ink);
    background: rgba(255, 255, 255, 0.45);
    /*border: 1px solid rgba(255, 255, 255, 0.82);*/
    border-radius: 1.3rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: none;
}

.hero-carousel-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(220, 233, 246, 0.9);
    color: var(--th-brand);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.hero-carousel-title {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
}

.hero-carousel-meta {
    color: var(--th-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.vacancy-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.vacancy-page main {
    flex: 1;
}

.vacancy-hero-card,
.vacancy-detail-card,
.vacancy-cta-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.7rem;
    box-shadow: var(--th-shadow);
    backdrop-filter: blur(18px);
}

.vacancy-hero-card {
    overflow: hidden;
}

.vacancy-media {
    position: relative;
    min-height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(220, 233, 246, 0.78));
}

.vacancy-media img {
    width: 100%;
    height: 100%;
    min-height: 24rem;
    object-fit: cover;
    display: block;
}

.vacancy-media-empty {
    min-height: 24rem;
    display: grid;
    place-items: center;
    padding: 2rem;
    color: var(--th-muted);
    font-weight: 600;
    text-align: center;
}

.vacancy-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.vacancy-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.56rem 0.9rem;
    border-radius: 999px;
    background: rgba(220, 233, 246, 0.68);
    color: var(--th-brand);
    font-size: 0.78rem;
    font-weight: 700;
}

.vacancy-meta-chip.is-success {
    background: rgba(217, 243, 238, 0.9);
    color: var(--th-success);
}

.vacancy-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.vacancy-summary {
    color: var(--th-muted);
    font-size: 0.98rem;
    max-width: 46rem;
}

.vacancy-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.vacancy-info-card {
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--th-shadow-soft);
}

.vacancy-info-card span {
    display: block;
    color: var(--th-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.38rem;
}

.vacancy-info-card strong {
    display: block;
    color: var(--th-ink);
    font-size: 1rem;
    font-weight: 700;
}

.vacancy-detail-card h2 {
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.vacancy-detail-copy {
    color: var(--th-ink-soft);
    white-space: pre-line;
}

.vacancy-cta-card {
    position: sticky;
    top: 6rem;
}

.vacancy-cta-message {
    min-height: 1.75rem;
}

.vacancy-link-inline {
    color: var(--th-brand-2);
    font-weight: 600;
}

.vacancy-link-inline:hover {
    color: var(--th-brand);
}

.hero-carousel-indicators {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hero-carousel-indicator {
    width: 0.6rem;
    height: 0.6rem;
    border: 0;
    border-radius: 999px;
    background: rgba(194, 194, 194, 0.42);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-carousel-indicator.active {
    background: #9f9f9f9c;
    transform: scale(1.15);
}

.topbar {
    margin: 1rem auto 0;
    width: min(1300px, calc(100% - 1.5rem));
    border-radius: 999px;
    background: var(--th-navbar-bg);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    padding-block: 0.15rem;
}

.topbar .container {
    flex-wrap: nowrap;
}

.brand-logo {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(18, 59, 103, 0.14));
}

.brand-lockup {
    line-height: 1.05;
}

.brand-lockup strong {
    display: block;
    color: var(--th-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.brand-lockup span {
    display: block;
    color: var(--th-muted);
    font-size: 0.73rem;
    font-weight: 500;
}

.navbar-toggler {
    border: 0;
    padding: 0.5rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(18, 59, 103, 0.08);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(36, 91, 149, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(18,59,103,0.84)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-pills .nav-link {
    position: relative;
    color: var(--th-muted);
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.nav-pills .nav-link::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.38rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--th-brand), var(--th-brand-3));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.nav-pills .nav-link:hover {
    color: var(--th-ink);
    background: rgba(255, 255, 255, 0.5);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: rgba(255, 255, 255, 0.68);
    color: var(--th-brand);
    box-shadow: inset 0 0 0 1px rgba(18, 59, 103, 0.06);
}

.nav-pills .nav-link:hover::after,
.nav-pills .nav-link.active::after,
.nav-pills .show > .nav-link::after {
    transform: scaleX(1);
}

.btn,
.btn-primary,
.btn-secondary,
.btn-brand,
.btn-ghost-light {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 0.92rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-brand:hover,
.btn-ghost-light:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--th-brand);
    --bs-btn-border-color: rgba(18, 59, 103, 0.18);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0d3257;
    --bs-btn-hover-border-color: rgba(13, 50, 87, 0.3);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #092540;
    --bs-btn-active-border-color: #092540;
    box-shadow: 0 12px 24px rgba(18, 59, 103, 0.18);
    padding: 0.74rem 1.18rem;
}

.btn-secondary {
    --bs-btn-color: var(--th-brand);
    --bs-btn-bg: rgba(255, 255, 255, 0.75);
    --bs-btn-border-color: rgba(18, 59, 103, 0.14);
    --bs-btn-hover-color: var(--th-brand);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.96);
    --bs-btn-hover-border-color: rgba(18, 59, 103, 0.22);
    --bs-btn-active-color: var(--th-brand);
    --bs-btn-active-bg: rgba(240, 247, 255, 0.98);
    --bs-btn-active-border-color: rgba(18, 59, 103, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    padding: 0.74rem 1.18rem;
}

.btn-applied {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--th-success);
    background: linear-gradient(180deg, rgba(217, 243, 238, 0.98), rgba(236, 252, 248, 0.98));
    border: 1px solid rgba(15, 118, 110, 0.16);
    box-shadow: none;
    cursor: default;
}

.btn-applied:hover {
    transform: none;
    color: var(--th-success);
    background: linear-gradient(180deg, rgba(217, 243, 238, 0.98), rgba(236, 252, 248, 0.98));
    border-color: rgba(15, 118, 110, 0.16);
}

.btn-applied:disabled,
.btn-applied.disabled {
    opacity: 1;
    color: var(--th-success);
    background: linear-gradient(180deg, rgba(217, 243, 238, 0.98), rgba(236, 252, 248, 0.98));
    border-color: rgba(15, 118, 110, 0.16);
}

.btn-ghost-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.btn-ghost-light:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.14);
}

.btn-light {
    --bs-btn-color: var(--th-brand);
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.18);
    --bs-btn-hover-color: var(--th-brand);
    --bs-btn-hover-bg: #f7fbff;
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.22);
    --bs-btn-active-color: var(--th-brand);
    --bs-btn-active-bg: #edf5fd;
    --bs-btn-active-border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 28px rgba(8, 27, 46, 0.12);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-pendiente { background: #fff4d6; color: var(--th-warning); }
.badge-en-revision { background: #dbeafe; color: #1d4ed8; }
.badge-seleccionado { background: #d9f3ee; color: var(--th-success); }
.badge-rechazado { background: #fee4e2; color: var(--th-danger); }

.metric-card {
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.12);
    padding: 1.35rem;
    height: 100%;
    box-shadow: var(--th-shadow-soft);
}

.metric-number {
    font-size: clamp(1.55rem, 3.4vw, 2.15rem);
    font-weight: 800;
    line-height: 1;
}

.job-card,
.admin-card,
.list-card {
    border-radius: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.94));
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-card:hover,
.admin-card:hover,
.list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.admin-flyer-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 1rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.96));
    box-shadow: var(--th-shadow-soft);
}

.admin-flyer-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.icon-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.icon-action-btn {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(18, 59, 103, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--th-brand);
    box-shadow: var(--th-shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.icon-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(36, 91, 149, 0.22);
    background: rgba(248, 251, 255, 0.98);
    color: var(--th-brand-2);
}

.icon-action-btn-primary {
    background: var(--th-brand);
    border-color: rgba(18, 59, 103, 0.18);
    color: #fff;
}

.icon-action-btn-primary:hover {
    background: #0d3257;
    color: #fff;
}

.icon-action-btn-warning {
    background: linear-gradient(180deg, #fff5d6, #fff0be);
    border-color: rgba(180, 131, 9, 0.18);
    color: #b7791f;
}

.icon-action-btn-warning:hover {
    background: linear-gradient(180deg, #fff1c2, #ffe89b);
    border-color: rgba(180, 131, 9, 0.24);
    color: #9a670f;
}

.icon-action-btn-danger {
    background: linear-gradient(180deg, #fee4e2, #fff1f0);
    border-color: rgba(180, 35, 24, 0.16);
    color: #c24135;
}

.icon-action-btn-danger:hover {
    background: linear-gradient(180deg, #ffd8d5, #ffe8e6);
    border-color: rgba(180, 35, 24, 0.22);
    color: #b42318;
}

.icon-action-btn svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vacancy-flyer-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: var(--th-shadow-soft);
}

.vacancy-flyer-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.96));
}

.vacancy-flyer-image {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: contain;
    transition: transform 0.28s ease;
}

.vacancy-flyer-trigger:hover .vacancy-flyer-image {
    transform: scale(1.02);
}

.vacancy-viewer-modal .modal-body {
    padding-top: 0.75rem;
}

.vacancy-viewer-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vacancy-viewer-stage {
    flex: 1;
    border-radius: 1.4rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(220, 233, 246, 0.78));
    box-shadow: var(--th-shadow-soft);
}

.vacancy-viewer-image {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: #fff;
}

.vacancy-viewer-nav {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--th-brand);
    box-shadow: var(--th-shadow-soft);
    font-size: 1.6rem;
    line-height: 1;
}

.vacancy-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.98);
}

.job-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--th-brand);
    background: linear-gradient(135deg, rgba(95, 143, 190, 0.18), rgba(220, 233, 246, 0.82));
    box-shadow: inset 0 0 0 1px rgba(18, 59, 103, 0.06);
}

.job-icon svg {
    width: 2rem;
    height: 2rem;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--th-ink);
    font-size: var(--th-title-2);
    line-height: 1.12;
}

.muted {
    color: var(--th-muted);
}

.section {
    display: none;
    padding: 1.75rem;
}

.section.active {
    display: block;
}

.item-list {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.table-shell {
    border-radius: 1.3rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--th-shadow-soft);
}

.th-accordion {
    display: grid;
    gap: 1rem;
}

.th-accordion-item {
    border: 0;
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--th-shadow-soft);
}

.th-accordion-button {
    background: rgba(248, 251, 255, 0.96);
    box-shadow: none;
    padding: 1rem 1.15rem;
}

.th-accordion-button:not(.collapsed) {
    background: rgba(248, 251, 255, 0.98);
    color: inherit;
    box-shadow: none;
}

.th-accordion-button:focus {
    box-shadow: 0 0 0 0.18rem rgba(36, 91, 149, 0.08);
}

.th-accordion-button::after {
    transform: scale(0.9);
}

.th-accordion-heading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.th-accordion-heading .badge-soft {
    white-space: nowrap;
}

.postulaciones-group-list {
    display: grid;
    gap: 1rem;
}

.postulacion-admin-card {
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: none;
}

.postulacion-admin-summary {
    min-width: 0;
    flex: 1 1 320px;
}

.postulacion-admin-actions {
    flex: 1 1 360px;
    max-width: 420px;
}

.table-shell thead {
    background: linear-gradient(180deg, rgba(18, 59, 103, 0.98), rgba(18, 59, 103, 0.92));
    color: #fff;
}

.table > :not(caption) > * > * {
    padding: 1rem 1.15rem;
    border-bottom-color: rgba(148, 163, 184, 0.14);
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(220, 233, 246, 0.18);
}

.th-empty {
    border: 1px dashed rgba(100, 116, 139, 0.24);
    background: rgba(255, 255, 255, 0.84);
    border-radius: var(--th-radius-lg);
    padding: 2.4rem;
    text-align: center;
    color: var(--th-muted);
}

.modal-panel {
    border: 0;
    border-radius: 1.55rem;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.input,
.form-control,
.form-select {
    border-radius: 1rem;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.78rem 0.92rem;
    color: var(--th-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    font-size: 0.94rem;
}

.input::placeholder,
.form-control::placeholder {
    color: #94a3b8;
}

.input:focus,
.form-control:focus,
.form-select:focus {
    border-color: rgba(36, 91, 149, 0.48);
    box-shadow: 0 0 0 0.25rem rgba(36, 91, 149, 0.1), 0 10px 20px rgba(36, 91, 149, 0.06);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(460px, 100%);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.8rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.auth-card .brand-logo {
    width: 2rem;
    height: 2rem;
}

.admin-header {
    background: linear-gradient(135deg, #102f50, #245b95);
    color: #fff;
    border-radius: 1.45rem;
    box-shadow: 0 24px 56px rgba(18, 59, 103, 0.18);
}

.tab-btn {
    border: 0;
    background: transparent;
    color: var(--th-muted);
    font-weight: 600;
    padding: 0.95rem 1rem;
    border-bottom: 3px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.tab-btn.active {
    color: var(--th-brand);
    border-bottom-color: var(--th-brand-3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: currentColor;
}

.section-kicker {
    color: var(--th-brand-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel .badge.text-bg-light {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.surface-muted {
    background: rgba(248, 251, 255, 0.68);
}

.form-label {
    color: var(--th-ink-soft);
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
}

.form-text,
.form-check-label {
    color: var(--th-muted);
}

.alert {
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--th-shadow-soft);
}

.account-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(18, 59, 103, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--th-ink);
    padding: 0.35rem 0.45rem 0.35rem 0.35rem;
    box-shadow: var(--th-shadow-soft);
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.account-menu-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(36, 91, 149, 0.24);
    background: rgba(255, 255, 255, 0.96);
}

.account-menu-name {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--th-ink-soft);
}

.account-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: var(--th-brand);
    background: rgba(220, 233, 246, 0.7);
    font-size: 1rem;
    line-height: 1;
}

.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--th-brand-4), #f8fbff);
    color: var(--th-brand);
}

.account-avatar img,
.account-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.account-avatar-sm {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
}

.account-avatar-lg {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.35rem;
    box-shadow: var(--th-shadow-soft);
}

.account-offcanvas {
    border: 0;
    background:
        radial-gradient(circle at top left, rgba(95, 143, 190, 0.18), transparent 32%),
        rgba(248, 251, 255, 0.98);
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.14);
}

.account-dropdown-menu {
    min-width: 18rem;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--th-shadow);
    backdrop-filter: blur(18px);
}

.account-dropdown-action {
    border-radius: 0.9rem;
    padding: 0.75rem 0.9rem;
    color: var(--th-ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-dropdown-action:hover {
    color: var(--th-brand);
    background: rgba(220, 233, 246, 0.72);
}

.account-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--th-shadow-soft);
}

.account-nav-list {
    display: grid;
    gap: 0.45rem;
}

.account-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    background: transparent;
    color: var(--th-ink-soft);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.account-nav-item:hover,
.account-nav-item.active {
    background: rgba(220, 233, 246, 0.72);
    color: var(--th-brand);
    transform: translateX(2px);
}

.admin-dashboard-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 1rem auto 1rem 1rem;
    width: 15rem;
    flex-direction: column;
    padding: 0.85rem;
    border-radius: 1.25rem;
    background: rgba(248, 251, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--th-shadow);
    backdrop-filter: blur(18px) saturate(140%);
    z-index: 20;
}

.admin-sidebar .brand-logo {
    width: 2rem;
    height: 2rem;
}

.admin-sidebar .brand-lockup strong {
    font-size: 0.78rem;
}

.admin-sidebar .brand-lockup span {
    font-size: 0.64rem;
}

.admin-sidebar-profile {
    gap: 0.7rem;
    padding: 0.68rem;
    border-radius: 1rem;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(148, 163, 184, 0.16);
}

.admin-sidebar-profile .fw-bold {
    font-size: 0.82rem;
    line-height: 1.2;
}

.admin-sidebar-avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
}

.admin-sidebar-sections {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.admin-sidebar-group {
    display: grid;
    gap: 0.38rem;
}

.admin-sidebar-label {
    padding: 0 0.55rem;
    color: #7b8ca3;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-sidebar .account-nav-list {
    gap: 0.18rem;
}

.admin-sidebar .account-nav-item {
    position: relative;
    min-height: 2.15rem;
    border-radius: 0.72rem;
    padding: 0.48rem 0.62rem 0.48rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #516176;
}

.admin-sidebar .account-nav-item::before {
    content: "";
    position: absolute;
    left: 0.32rem;
    top: 50%;
    width: 3px;
    height: 1rem;
    border-radius: 999px;
    background: transparent;
    transform: translateY(-50%);
}

.admin-sidebar .account-nav-item:hover {
    background: rgba(220, 233, 246, 0.42);
    color: var(--th-brand);
    transform: none;
}

.admin-sidebar .account-nav-item.active {
    background: rgba(220, 233, 246, 0.5);
    color: var(--th-brand);
    transform: none;
}

.admin-sidebar .account-nav-item.active::before {
    background: var(--th-brand-2);
}

.admin-sidebar-footer {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-sidebar-footer .btn {
    padding: 0.58rem 0.85rem;
    font-size: 0.82rem;
}

.admin-main {
    padding: 1rem;
}

@media (min-width: 992px) {
    .admin-main {
        margin-left: 17rem;
        padding: 1rem 2rem 2rem 0;
    }

    .admin-main .admin-header,
    .admin-main .section-panel {
        max-width: 1500px;
    }
}

.wizard-progress {
    display: grid;
    gap: 1rem;
}

.wizard-progress-bar {
    position: relative;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(220, 233, 246, 0.85);
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--th-brand), var(--th-brand-3));
    transition: width 0.28s ease;
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--th-ink-soft);
    text-align: left;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.wizard-step:not(:disabled):hover {
    transform: translateY(-1px);
    border-color: rgba(36, 91, 149, 0.24);
    box-shadow: var(--th-shadow-soft);
}

.wizard-step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 233, 246, 0.92);
    color: var(--th-brand);
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.wizard-step-label {
    font-size: 0.86rem;
    font-weight: 600;
}

.wizard-step.active {
    border-color: rgba(36, 91, 149, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.96));
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.wizard-step.active .wizard-step-number,
.wizard-step.is-completed .wizard-step-number {
    background: linear-gradient(135deg, var(--th-brand), var(--th-brand-3));
    color: #fff;
}

.wizard-step.is-locked {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.wizard-pane {
    display: none;
}

.wizard-pane.active {
    display: block;
}

.profile-status-banner {
    border-radius: 1.15rem;
    padding: 1rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    box-shadow: var(--th-shadow-soft);
}

.profile-status-success {
    color: #0f5132;
    background: linear-gradient(180deg, rgba(217, 243, 238, 0.95), rgba(236, 252, 248, 0.98));
    border-color: rgba(15, 118, 110, 0.14);
}

.profile-status-danger {
    color: #b42318;
    background: linear-gradient(180deg, #fdecea, #fff5f4);
    border-color: #f5c2c7;
}

.profile-status-info {
    color: #123b67;
    background: linear-gradient(180deg, rgba(220, 233, 246, 0.96), rgba(244, 249, 255, 0.98));
    border-color: rgba(36, 91, 149, 0.16);
}

.profile-status-banner a {
    color: var(--th-brand);
    font-weight: 700;
    text-decoration: none;
}

.profile-status-banner a:hover {
    color: var(--th-brand-2);
    text-decoration: underline;
}

.wizard-hint {
    border-radius: 1rem;
    background: rgba(248, 251, 255, 0.84);
    border: 1px solid rgba(220, 233, 246, 0.92);
    color: var(--th-muted);
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
}

.profile-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 1.5rem;
    border: 1px dashed rgba(100, 116, 139, 0.24);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.88), rgba(237, 244, 251, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--th-muted);
    font-size: 0.82rem;
    box-shadow: var(--th-shadow-soft);
}

.profile-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-photo {
    width: 96px;
    height: 96px;
    border-radius: 1.25rem;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--th-shadow-soft);
}

.public-footer {
    padding: 1.1rem 0 1.4rem;
    color: #7b8ca3;
    font-size: 0.78rem;
    text-align: center;
}

.public-footer a {
    color: inherit;
    transition: color 0.2s ease;
}

.public-footer a:hover {
    color: var(--th-brand-2);
}

.display-5 {
    font-size: var(--th-title-1);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.h2 {
    font-size: var(--th-title-2);
}

.h3 {
    font-size: var(--th-title-3);
}

.h4,
.h5 {
    line-height: 1.2;
}

.h4 {
    font-size: 1.22rem;
}

.h5 {
    font-size: 1.02rem;
}

.lead {
    font-size: var(--th-text-lg);
    line-height: 1.65;
}

.container.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.section-panel.p-4,
.section-panel.p-lg-5,
.auth-card.p-4,
.auth-card.p-lg-5 {
    --bs-gutter-x: 1rem;
}

.small,
small {
    font-size: var(--th-text-sm);
}

@media (max-width: 767.98px) {
    .hero-carousel-content {
        left: 0.8rem;
        right: 0.8rem;
        bottom: 0.8rem;
        padding: 1rem;
    }

    .hero-carousel-status-badge {
        top: 0.8rem;
        right: 0.8rem;
    }

    .vacancy-info-grid {
        grid-template-columns: 1fr;
    }

    .vacancy-media img,
    .vacancy-media-empty {
        min-height: 18rem;
    }

    .vacancy-viewer-shell {
        gap: 0.6rem;
    }

    .vacancy-flyer-frame {
        min-height: 250px;
        padding: 0.75rem;
    }

    .vacancy-flyer-image {
        height: 230px;
    }

    .vacancy-viewer-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.35rem;
    }

    .topbar {
        width: calc(100% - 1rem);
        margin-top: 0.5rem;
        border-radius: 1.25rem;
    }

    .topbar .container {
        min-height: 3.5rem;
    }

    .nav-pills {
        gap: 0.5rem;
    }

    .brand-logo {
        width: 2.25rem;
        height: 2.25rem;
    }

    .brand-lockup strong {
        font-size: 0.84rem;
    }

    .brand-lockup span {
        font-size: 0.68rem;
    }

    .hero-panel {
        border-radius: 1.3rem;
    }

    .hero-carousel-slides,
    .hero-carousel-slide .section-panel,
    .hero-carousel-flyer,
    .hero-carousel-flyer-link {
        min-height: 20rem;
    }

    .section {
        padding: 1rem;
    }

    .wizard-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-menu-name {
        display: none;
    }

    .account-menu-btn {
        gap: 0.35rem;
        padding: 0.35rem;
    }

    .account-avatar-sm {
        display: none;
    }

    .account-menu-icon {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.15rem;
    }
}
