/* ============================================================
   SelectIA · Plataforma de Selección — SIS VIDA S.A.S.
   Sistema de diseño v2 (contenido ancho 1400px)
   ============================================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --success: #22c55e;
    --success-dark: #16a34a;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --info: #06b6d4;
    --purple: #8b5cf6;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --page-max: 1400px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px -12px rgba(15, 23, 42, .18);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--primary); }

/* ---------- Layout ---------- */
.container {
    max-width: var(--page-max);
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.container-sm {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    max-width: var(--page-max);
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    animation: fadeInUp .5s ease both;
}

.page-head h1 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    line-height: 1.2;
}

.page-sub {
    color: var(--gray-500);
    font-size: .95rem;
    margin-top: .3rem;
}

.page-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

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

/* ---------- Navbar ---------- */
.navbar {
    background: var(--dark);
    padding: 0.9rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: var(--page-max);
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.navbar-brand {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.navbar-brand span { color: var(--primary); }

.navbar-nav {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-nav a {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    padding: .35rem 0;
    position: relative;
    transition: color 0.2s;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.navbar-nav a:hover,
.navbar-nav a.active { color: white; }

.navbar-nav a:hover::after,
.navbar-nav a.active::after { transform: scaleX(1); }

.navbar-nav .btn { padding: 0.5rem 1rem; border-radius: var(--radius-sm); }

.navbar-user {
    color: var(--gray-300);
    font-size: .85rem;
    white-space: nowrap;
}

.navbar-user strong { color: white; }

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 1.75rem 2rem;
    text-align: center;
    margin-top: auto;
    border-top: 3px solid var(--primary);
}

.footer-content {
    max-width: var(--page-max);
    margin: 0 auto;
}

.footer-brand {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-brand span { color: var(--primary); }

.footer-credits {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-credits strong { color: var(--gray-300); }

.footer-copyright {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: var(--success-dark); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-dark); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover { background: var(--primary); color: white; }

.btn-destructive,
.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.85rem; }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 500;
    font-size: .9rem;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ---------- Cards ---------- */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { box-shadow: var(--shadow-lg); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.card-subtitle { color: var(--gray-500); font-size: 0.9rem; }
.card-body { color: var(--gray-600); }

/* ---------- Stats (dashboard y admin) ---------- */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.stat-card.modern {
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--stat-color, var(--primary));
}

.stat-card.modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, var(--stat-soft, rgba(37,99,235,.1)), transparent 60%);
    pointer-events: none;
}

.stat-card.modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -10px var(--stat-glow, rgba(37, 99, 235, 0.18));
    border-color: var(--stat-color, var(--primary));
}

.stat-icon {
    font-size: 1.6rem;
    display: inline-flex;
    animation: floatY 3s ease-in-out infinite;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--stat-color, var(--primary));
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------- Perfil ---------- */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--dark), var(--gray-700));
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp .5s ease both;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: 0.28rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-secondary { background: var(--gray-200); color: var(--gray-600); }
.badge-success { background: #dcfce7; color: var(--success-dark); }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: var(--danger-dark); }
.badge-info { background: #cffafe; color: #0e7490; }
.badge-purple { background: #ede9fe; color: #6d28d9; }

/* ---------- Alerts ---------- */
.alert {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
    animation: fadeInUp .35s ease both;
}

.alert-success { background: #dcfce7; color: var(--success-dark); border-left-color: var(--success); }
.alert-danger { background: #fee2e2; color: var(--danger-dark); border-left-color: var(--danger); }
.alert-warning { background: #fef3c7; color: #b45309; border-left-color: var(--warning); }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border-left-color: var(--primary); }

/* ---------- Progress ---------- */
.progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--info));
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* ---------- Loading / estados ---------- */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--gray-500);
    background: white;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius);
}

.empty-state-icon { font-size: 3.2rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--gray-700); margin-bottom: .35rem; }
.empty-state p { max-width: 460px; margin: 0 auto 1rem; font-size: .92rem; }


/* ---------- Auth (login/registro dividido) ---------- */
.auth-hero {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
    color: white;
}

.auth-hero-content,
.auth-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 4rem;
}

.auth-hero-content { max-width: 56%; }

.auth-hero-content .navbar-brand { margin-bottom: 2.5rem; }

.auth-hero-content h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
}

.auth-hero-content h1 span { color: var(--primary); }

.auth-hero-content .lead {
    color: var(--gray-300);
    font-size: 1.02rem;
    max-width: 460px;
}

.auth-points {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-point {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: .92rem;
    color: var(--gray-300);
}

.auth-point strong { color: white; display: block; }

.auth-panel {
    background: var(--gray-100);
    align-items: center;
}

.auth-panel-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    animation: fadeInUp .5s ease both;
}

.auth-panel-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .35rem;
}

/* Legacy auth (respaldo) */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-800) 100%);
}

.auth-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.auth-card h1 { text-align: center; margin-bottom: 0.5rem; color: var(--gray-900); }

.auth-card .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--gray-500); font-size: .9rem; }

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Portada ---------- */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp .5s ease both;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-content h1 span { color: var(--primary); }

.hero-content p.lead {
    color: var(--gray-300);
    font-size: 1.05rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-badges strong {
    display: block;
    font-size: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero-badges small { color: var(--gray-400); font-size: .8rem; }

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(6px);
}

.hero-card h3 { font-size: 1.05rem; margin-bottom: 1.1rem; }

.hero-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---------- Ofertas ---------- */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
}

.offer-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    animation: fadeInUp .45s ease both;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.offer-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.offer-card .offer-company {
    color: var(--primary);
    font-size: .88rem;
    font-weight: 600;
}

.offer-card .offer-desc {
    color: var(--gray-600);
    font-size: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    font-size: .8rem;
    color: var(--gray-500);
}

.offer-card-footer {
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ---------- Tablas ---------- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

.table th {
    text-align: left;
    padding: .9rem 1.1rem;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.table td {
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}

.table tbody tr {
    transition: background .15s ease;
}

.table tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }

/* Consecutivos: Año y Fecha no deben comprimirse ni partirse */
#cons-tbody td:nth-child(5),
#cons-tbody td:nth-child(6) {
    white-space: nowrap;
    min-width: 76px;
}

/* Columna "Ofertas aplicadas" en la pestaña Candidatos (admin) */
.candidate-offers {
    list-style: none;
    margin: .35rem 0 0;
    padding: 0;
    display: grid;
    gap: .2rem;
    max-width: 320px;
}
.candidate-offers li {
    font-size: .85rem;
    line-height: 1.35;
    background: #f1f5f9;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: .25rem .5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Detalle de oferta (modal legible) ---------- */
.offer-detail-box { max-width: 720px; }
.offer-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .9rem;
    border-bottom: 2px solid var(--gray-100);
}
.offer-detail-title {
    margin: 0 0 .25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.25;
}
.offer-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    margin: 1rem 0;
}
.offer-detail-item {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: .55rem .7rem;
}
.offer-detail-item small {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-500);
}
.offer-detail-item strong {
    font-size: .92rem;
    color: var(--gray-800);
    font-weight: 600;
    line-height: 1.35;
}
.offer-detail-icon { font-size: 1.15rem; line-height: 1.4; }
.offer-detail-section { margin-top: 1.1rem; }
.offer-detail-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .45rem;
}
.offer-detail-section p {
    color: var(--gray-700);
    line-height: 1.65;
    white-space: normal;
}
.offer-detail-list {
    margin: .25rem 0 0 1.1rem;
    padding: 0;
    display: grid;
    gap: .3rem;
    color: var(--gray-700);
    line-height: 1.55;
}
.offer-detail-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 640px) {
    .offer-detail-grid { grid-template-columns: 1fr; }
}

/* ---------- Toolbar (filtros) ---------- */
.toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp .4s ease both;
}

.toolbar .form-control {
    width: auto;
    min-width: 180px;
    padding: .55rem .9rem;
    font-size: .9rem;
}

.toolbar label { font-size: .85rem; color: var(--gray-600); font-weight: 500; }

/* ---------- Tabs ---------- */
.tabs {
    display: flex;
    gap: .25rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .4rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    animation: fadeInUp .4s ease both;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: .7rem 1.3rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .92rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    position: relative;
}

/* ---------- Modales ---------- */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop.open { display: flex; animation: fadeIn .2s ease both; }

.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: popIn .3s cubic-bezier(.34, 1.56, .64, 1) both;
}

.modal-box h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.5rem;
}

/* ---------- Módulo SST ---------- */
.sst-page-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.sst-header-actions {
    display: grid;
    justify-items: end;
    gap: .45rem;
    min-width: min(100%, 18rem);
}

.sst-active-label {
    max-width: 100%;
    color: var(--gray-500);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: right;
}

.sst-page-action-buttons {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: .6rem;
}

.sst-header-actions .btn {
    min-height: 44px;
    padding: .6rem 1rem;
    line-height: 1.2;
    white-space: nowrap;
}

.sst-refresh-button { min-width: 7.5rem; }

@media (max-width: 720px) {
    .sst-header-actions {
        width: 100%;
        justify-items: stretch;
    }

    .sst-active-label { text-align: left; }

    .sst-page-action-buttons {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .sst-header-actions .btn {
        width: 100%;
        min-width: 0;
        flex: none;
    }
}

.sst-table-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

/* Los estilos visuales de los formularios SST se definen al final de esta hoja,
   en la sección "Mejoras visuales de formularios SST". */

/* ---------- Indicador "en vivo" ---------- */
.live-dot {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--success-dark);
    background: #dcfce7;
    padding: .3rem .8rem;
    border-radius: 9999px;
}

.live-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ============================================================
   Infografía de Aplicaciones (panel admin)
   ============================================================ */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-chip {
    background: white;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--kpi-color, var(--primary));
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: fadeInUp .45s ease both;
}

.kpi-chip:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.kpi-icon {
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    animation: floatY 3s ease-in-out infinite;
}

.kpi-num {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--kpi-color, var(--gray-900));
    letter-spacing: -0.02em;
}

.kpi-label {
    font-size: .76rem;
    color: var(--gray-500);
    font-weight: 600;
}

/* ---------- Estado del proceso ---------- */
.funnel-step {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "label num"
        "track track";
    gap: .3rem 1rem;
    align-items: center;
    padding: .6rem .75rem;
    border-radius: var(--radius-sm);
    transition: background .2s ease;
    animation: fadeInUp .5s ease both;
}

.funnel-step:hover { background: var(--gray-100); }
.funnel-step.highlight { background: var(--primary-light); }
.funnel-step.highlight .f-label { color: var(--primary-dark); }

.f-label {
    grid-area: label;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray-700);
}

.f-icon { font-size: 1.05rem; line-height: 1; }

.f-num {
    grid-area: num;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gray-900);
    font-variant-numeric: tabular-nums;
}

.f-track {
    grid-area: track;
    height: 12px;
    background: var(--gray-100);
    border-radius: 9999px;
    overflow: hidden;
}

.f-fill {
    height: 100%;
    width: var(--bar-w, 0%);
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--f-color, var(--primary)), var(--f-color, var(--primary)));
    position: relative;
    overflow: hidden;
    animation: growBar .9s cubic-bezier(.22, 1, .36, 1) both;
}

.f-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
}

/* ---------- Donut ---------- */
.donut-wrap {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    animation: fadeInUp .5s ease both;
}

.donut-box {
    position: relative;
    width: 200px;
    flex-shrink: 0;
}

.donut-box svg {
    width: 100%;
    height: auto;
    display: block;
    animation: donutIn .8s ease both;
}

.donut-seg {
    fill: none;
    stroke-width: 26;
    stroke-linecap: butt;
    transition: opacity .2s;
}

/* ---------- Tarjetas de aplicación ---------- */
.app-viz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.app-viz-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    animation: fadeInUp .5s ease both;
}

.app-viz-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.avc-top {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.avc-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .02em;
}

.avc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avc-company {
    font-size: .82rem;
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    font-size: .78rem;
    color: var(--gray-500);
}

.avc-status {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .7rem;
    border-radius: 9999px;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}

.avc-mini-track {
    height: 8px;
    background: var(--gray-100);
    border-radius: 9999px;
    overflow: hidden;
}

.avc-mini-fill {
    height: 100%;
    width: var(--bar-w, 0%);
    border-radius: 9999px;
    animation: growBar .9s cubic-bezier(.22, 1, .36, 1) both;
}

.avc-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    flex-wrap: wrap;
}

.app-status-select {
    padding: .45rem .75rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-family: inherit;
    color: var(--gray-700);
    background: white;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    max-width: 190px;
}

/* ============================================================
   Pestaña Contratación — checklist animado
   (checks de tamaño FIJO: círculo 22px, svg 12px)
   ============================================================ */
.hire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    gap: 1.5rem;
}

.hire-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .3s ease;
    animation: fadeInUp .5s ease both;
}

.hire-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hire-card.hire-complete {
    border-color: var(--success);
    box-shadow: 0 0 0 1px var(--success), 0 10px 30px -12px rgba(34, 197, 94, .35);
}

.hire-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hire-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--info));
    color: white;
    font-weight: 800;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .02em;
}

.hire-card-info {
    flex: 1;
    min-width: 0;
}

.hire-candidate-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.25;
}

.hire-candidate-meta {
    font-size: .8rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .15rem;
}

.meta-dot { color: var(--gray-400); padding: 0 .35rem; }

.hire-pct-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: .45rem .8rem;
    border-radius: var(--radius-sm);
    font-variant-numeric: tabular-nums;
}

.hire-pct-badge.ok {
    color: var(--success-dark);
    background: #dcfce7;
}

.hire-progress {
    height: 10px;
    background: var(--gray-100);
    border-radius: 9999px;
    overflow: hidden;
}

.hire-progress-fill {
    height: 100%;
    width: var(--bar-w, 0%);
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--success), #4ade80);
    animation: growBar .9s cubic-bezier(.22, 1, .36, 1) both;
}

.hire-count {
    font-size: .78rem;
    color: var(--gray-500);
    font-weight: 600;
    margin-top: .5rem;
}

.hire-steps {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.hire-step {
    display: grid;
    /* check · rechazado · icono · etiqueta · fecha · acciones */
    grid-template-columns: 24px 24px 26px 1fr auto auto;
    align-items: center;
    gap: .65rem;
    padding: .5rem .6rem;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease;
    animation: fadeInUp .4s ease both;
}

.hire-step:hover {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

/* --- EL CHECK: tamaño fijo, nunca gigante --- */
.hire-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: white;
    color: white;                /* trazo invisible hasta 'done' */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    transition: background .25s ease, border-color .25s ease, transform .2s ease;
}

/* ---------- Timeline de etapas (mis aplicaciones) ---------- */
.stage-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 0;
}

.stage-step {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .55rem 0;
    position: relative;
}

.stage-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 26px;
    bottom: -6px;
    width: 2px;
    background: var(--gray-200);
}

.stage-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-200);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-size: .7rem;
    color: var(--gray-500);
}

.stage-step.done .stage-dot {
    background: var(--success);
    color: white;
}

.stage-step.current .stage-dot {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
}

.stage-label { font-size: .9rem; color: var(--gray-600); font-weight: 500; }
.stage-step.done .stage-label { color: var(--gray-800); }
.stage-step.current .stage-label { color: var(--primary-dark); font-weight: 700; }

/* Legacy timeline */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item { position: relative; padding-bottom: 1.5rem; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.completed::before {
    background: var(--success);
    box-shadow: 0 0 0 2px var(--success);
}

.timeline-date { font-size: 0.8rem; color: var(--gray-500); }

/* ---------- Pruebas: opciones de selección múltiple ---------- */
.take-options { display: flex; flex-direction: column; gap: .5rem; }

.take-option {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    line-height: 1.45;
}

.take-option:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.take-option input[type="radio"] { margin-top: .2rem; flex: 0 0 auto; }

.take-option.is-selected { border-color: var(--primary); background: #eef4ff; }

.take-option-text { display: block; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success-dark); }
.text-danger { color: var(--danger-dark); }
.text-warning { color: #b45309; }
.text-info { color: #0e7490; }

.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-4 { padding: 1.5rem; }

.lead { font-size: 1.02rem; color: var(--gray-600); }
.subtitle { color: var(--gray-500); font-size: .95rem; }

/* ---------- Keyframes compartidos ---------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.grow { flex: 1 1 auto; min-width: 200px; }

@keyframes popIn {
    0% { transform: scale(.55); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes growBar {
    from { width: 0; }
    to { width: var(--bar-w, 0%); }
}

@keyframes donutIn {
    from { opacity: 0; transform: rotate(-100deg) scale(.86); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

.anim-in { animation: fadeInUp .5s ease both; }
.anim-pop { animation: popIn .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.anim-delay-1 { animation-delay: .08s; }
.anim-delay-2 { animation-delay: .16s; }
.anim-delay-3 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .auth-hero { flex-direction: column-reverse; }
    .auth-hero-content, .auth-panel { max-width: 100%; padding: 2.5rem 2rem; }
    .auth-panel { flex: initial; }
}

@media (max-width: 900px) {
    .donut-wrap { flex-direction: column; text-align: center; }
    .donut-legend { width: 100%; }
    .lg-item { justify-content: center; }
    .hire-grid { grid-template-columns: 1fr; }
    .app-viz-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .page { padding: 1.5rem 1rem 3rem; }
    .container { padding: 1rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding: 2.5rem 1.5rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .page-head h1 { font-size: 1.5rem; }
    .navbar { padding: .8rem 1rem; }
    .navbar-inner { flex-direction: column; gap: .75rem; }
    .navbar-nav { justify-content: center; }
    .tab-btn { padding: .6rem .9rem; font-size: .85rem; }
    .funnel-step { grid-template-columns: 1fr auto; }
    .hire-step { grid-template-columns: 22px 22px 24px 1fr auto auto; gap: .5rem; }
    .hire-pct-badge { font-size: .9rem; padding: .35rem .6rem; }
    .avc-actions { flex-direction: column; align-items: stretch; }
    .app-status-select { max-width: 100%; }
    .cta-band { padding: 2rem 1.5rem; }
    .profile-hero { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .kpi-row { grid-template-columns: 1fr; }
    .offer-grid { grid-template-columns: 1fr; }
    .modal-box { padding: 1.5rem; }
}

.hire-check svg {
    display: block;
    width: 12px;
    height: 12px;
    overflow: visible;
}

.hire-check svg path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;        /* oculto */
    transition: stroke-dashoffset .35s ease .1s;
}

.hire-step:hover .hire-check {
    border-color: var(--gray-400);
    transform: scale(1.08);
}

.hire-step.done .hire-check {
    background: var(--success);
    border-color: var(--success);
    animation: popIn .35s cubic-bezier(.34, 1.56, .64, 1);
}

.hire-step.done .hire-check svg path {
    stroke-dashoffset: 0;        /* trazo dibujado */
}

/* --- EL RECHAZO: círculo rojo con X (mismo tamaño que el check) --- */
.hire-reject {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: white;
    color: white;                /* trazo invisible hasta 'rejected' */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    transition: background .25s ease, border-color .25s ease, transform .2s ease;
}

.hire-reject svg {
    display: block;
    width: 11px;
    height: 11px;
    overflow: visible;
}

.hire-step:hover .hire-reject {
    border-color: var(--gray-400);
    transform: scale(1.08);
}

.hire-step.rejected .hire-reject {
    background: var(--danger);
    border-color: var(--danger);
    animation: popIn .35s cubic-bezier(.34, 1.56, .64, 1);
}

.hire-step.rejected .hire-label {
    color: var(--danger);
    text-decoration: line-through;
}

.hire-step.rejected .hire-when {
    color: var(--danger);
    font-weight: 600;
}

.hire-icon {
    font-size: 1.05rem;
    line-height: 1;
    text-align: center;
}

.hire-label {
    font-size: .88rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: color .2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hire-step.done .hire-label {
    color: var(--gray-400);
    text-decoration: line-through;
}


/* ================================================================
   Hoja de vida del candidato (resume-card)
   ================================================================ */

.resume-card {
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.resume-header {
    background: var(--primary);
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.resume-header h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.resume-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: .88rem;
    margin-top: .2rem;
}

/* Forzar texto claro sobre el fondo azul del encabezado para que sea legible */
.resume-header .text-muted,
.resume-meta .text-muted,
.resume-meta .text-muted.small,
#resume-last-updated {
    color: rgba(255, 255, 255, 0.88);
}

.resume-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.resume-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.resume-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.resume-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
@media (max-width: 768px) {
    .resume-grid-2 { grid-template-columns: 1fr; }
}

.resume-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    transition: box-shadow .2s ease;
}

.resume-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-300);
}

.resume-item-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
}

.resume-item-icon {
    font-size: 1.1rem;
}

.resume-item-label {
    font-weight: 500;
    color: var(--gray-600);
}

.resume-actions {
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.resume-actions .btn {
    white-space: nowrap;
}

/* Badges de verificación */
#resume-verified-badge {
    background: var(--success) !important;
    color: #fff !important;
    border: none;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

#resume-not-verified-badge {
    background: var(--warning) !important;
    color: #fff !important;
    border: none;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

@media (max-width: 720px) {
    .resume-header { flex-direction: column; }
    .resume-grid { grid-template-columns: 1fr; }
}

.hire-when {
    font-size: .72rem;
    color: var(--gray-400);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.app-status-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.app-status-select.changed { border-color: var(--warning); }

.donut-seg:hover { opacity: .8; }

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.donut-center b {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
}

.donut-center span {
    font-size: .74rem;
    color: var(--gray-500);
    font-weight: 600;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1;
    min-width: 0;
}

.lg-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    color: var(--gray-600);
    animation: fadeInLeft .45s ease both;
}

.lg-item b {
    color: var(--gray-900);
    min-width: 1.4rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.lg-swatch {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--gray-800);
    background: var(--gray-100);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.4);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.tab-content { display: none; }
.tab-content[style*="block"] { display: block; }

.tab-in { animation: fadeInUp .4s ease both; }

.tab-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.tab-section-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-icon { font-size: 1.3rem; }

.tab-section-count {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 600;
    padding: .25rem .75rem;
    border-radius: 9999px;
}

.hero-steps li { display: flex; gap: .9rem; align-items: flex-start; }

.hero-steps .n {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-steps strong { display: block; font-size: .95rem; }
.hero-steps small { color: var(--gray-400); font-size: .8rem; }

.features { margin-bottom: 2.5rem; }

.features-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 1.9rem;
    margin-bottom: .75rem;
    display: inline-block;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--gray-900); }
.feature-card p { color: var(--gray-500); font-size: .9rem; }

.cta-band {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-inner h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.cta-inner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.5rem; }
/* Skeleton shimmer */
.shimmer-block {
    height: 64px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--info));
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.profile-hero h2 { font-size: 1.35rem; font-weight: 700; }
.profile-hero p { color: var(--gray-300); font-size: .9rem; }

textarea.form-control { resize: vertical; min-height: 110px; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8 0 1.4 1.4 0 6 5.2 10.6 0 12 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }


/* ================================================================
   @media print — Hoja de vida lista para imprimir / exportar PDF
   ================================================================ */

@media print {
    /* Ocultar todo lo que no sea la hoja de vida */
    body > *:not(.page) { display: none !important; }

    .page {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .page-head,
    .profile-hero,
    .profile-avatar,
    #alert-container,
    .card:not(.resume-card),
    .resume-card > .resume-actions,
    .resume-card .resume-meta,
    .resume-card .section-title .d-flex.gap-2.mb-1,
    .form-check-label,
    .form-check-input,
    .form-control,
    .form-control-sm,
    .resume-item input,
    .resume-item textarea {
        /* Los inputs se reemplazan por sus valores en bloques debajo */
    }

    /* Mostrar solo el recuadro */
    .resume-card {
        border: 2px solid #2563eb !important;
        box-shadow: none !important;
        border-radius: 4px !important;
        page-break-inside: avoid;
        padding: 0 !important;
    }

    .resume-card > .resume-header {
        background: #2563eb !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        padding: 1rem 1.25rem !important;
        border-radius: 0 !important;
    }

    .resume-card > .resume-header h3 {
        font-size: 1.2rem !important;
    }

    .resume-section {
        padding: 0.75rem 1.25rem !important;
        border-bottom: 1px solid #cbd5e1 !important;
    }

    .resume-section:last-of-type {
        border-bottom: none !important;
    }

    .section-title {
        font-size: 1rem !important;
        margin-bottom: .5rem !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding-bottom: .3rem !important;
    }

    .resume-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: .5rem !important;
    }

    .resume-item {
        background: #f8fafc !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 3px !important;
        padding: .6rem !important;
        page-break-inside: avoid;
    }

    .resume-item input,
    .resume-item textarea {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        font-size: .8rem !important;
        font-family: 'Inter', sans-serif !important;
        color: #0f172a !important;
        resize: none !important;
        width: 100% !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .resume-item input::placeholder,
    .resume-item textarea::placeholder {
        color: #94a3b8 !important;
    }

    .resume-item label.form-label,
    .resume-item .form-label {
        display: none !important;
    }

    .resume-item-head {
        display: none !important;
    }

    .resume-item .form-group {
        margin-bottom: .25rem !important;
    }

    .form-group small {
        display: none !important;
    }

    /* Declaración de veracidad */
    #verification-statement {
        border: 1px solid #cbd5e1 !important;
        border-radius: 3px !important;
        padding: .6rem !important;
        font-size: .85rem !important;
        min-height: 80px !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #verification-statement::placeholder {
        color: #94a3b8 !important;
    }

    .resume-item .form-check {
        display: none !important;
    }

    .resume-meta {
        display: none !important;
    }

    #btn-print-resume {
        display: none !important;
    }

    #footer {
        display: none !important;
    }

    @page {
        margin: 1.5cm;
        size: A4 portrait;
    }
}


/* ---------- Contratación: acciones por paso (info + comentarios) ---------- */

.hire-step-actions {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}

.hire-info-btn,
.hire-comments-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    padding: 0;
    line-height: 1;
}

.hire-info-btn:hover,
.hire-comments-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    transform: scale(1.08);
}

.hire-info-btn:active,
.hire-comments-btn:active {
    transform: scale(.96);
}

.hire-info-btn.hire-info-has {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Campo en modo consulta (facilitador): solo lectura, sin edición */
.form-control.readonly-field {
    background: var(--gray-100);
    color: #475569;
    cursor: default;
    border-style: dashed;
}

.form-control.readonly-field:focus {
    border-color: var(--gray-300);
    box-shadow: none;
}

.hire-cmt-count {
    font-size: .7rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary);
    color: white;
    border-radius: 999px;
    padding: 0 .3rem;
    line-height: 1.3;
    min-width: 16px;
    text-align: center;
}

/* Historial de comentarios dentro del popover */

.hire-comment-item {
    border-left: 3px solid var(--primary);
    padding-left: .6rem;
    margin-bottom: .5rem;
}

.hire-comment-item .comment-author {
    font-weight: 600;
    color: var(--primary);
    font-size: .82rem;
}

.hire-comment-item .comment-role {
    font-size: .7rem;
    padding: .1rem .4rem;
    border-radius: 999px;
    margin-left: .4rem;
}

.hire-comment-item .comment-role.administrador { background: var(--info); color: white; }
.hire-comment-item .comment-role.facilitador { background: var(--warning); color: white; }

.hire-comment-item .comment-time {
    font-size: .7rem;
    color: var(--gray-400);
    margin-left: .5rem;
}

.hire-comment-item .comment-text {
    font-size: .82rem;
    color: var(--gray-700);
    margin-top: .2rem;
    line-height: 1.4;
}

/* Remover spinners innecesarios del textarea para que no flote */

textarea.form-control { resize: vertical; }

/* ---------- Contratación: carpeta de documentos por paso (🗂️) ---------- */

.hire-docs-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    padding: 0;
    line-height: 1;
}

.hire-docs-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    transform: scale(1.08);
}

.hire-docs-btn:active { transform: scale(.96); }

.hire-docs-btn.hire-docs-has {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Dentro del botón activo (fondo azul) el contador va en blanco para no perderse */
.hire-docs-btn.hire-docs-has .hire-doc-count {
    background: white;
    color: var(--primary);
}

.hire-doc-count {
    font-size: .7rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border-radius: 999px;
    padding: 0 .3rem;
    line-height: 1.3;
    min-width: 16px;
    text-align: center;
    margin-left: 2px;
}

/* Lista de documentos dentro del popover */

.hire-doc-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .5rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: .4rem;
    background: white;
    transition: border-color .15s ease, background .15s ease;
}

.hire-doc-item:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.hire-doc-icon { font-size: 1.1rem; flex-shrink: 0; }

.hire-doc-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.hire-doc-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hire-doc-name:hover { text-decoration: underline; }

.hire-doc-subtext {
    font-size: .72rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hire-doc-actions {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    flex-shrink: 0;
}

.hire-doc-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    padding: 0;
    line-height: 1;
}

.hire-doc-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    transform: scale(1.08);
}

.hire-doc-btn.danger:hover {
    background: #fee2e2;
    border-color: var(--danger, #dc2626);
}

/* Popover de info/comentarios: scroll suave */

.modal-box { scroll-behavior: smooth; }

@media (max-width: 480px) {
    .hire-step-actions { gap: .25rem; }
    .hire-info-btn,
    .hire-comments-btn,
    .hire-docs-btn { width: 22px; height: 22px; font-size: .78rem; }
    .hire-check,
    .hire-reject { width: 20px; height: 20px; }
}

/* ---------- Accesibilidad ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Contratación: responsables por ítem (👥) ---------- */

.hire-assign-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    padding: 0;
    line-height: 1;
    position: relative;
}

.hire-assign-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    transform: scale(1.08);
}

.hire-assign-btn.hire-assign-has { border-color: var(--primary); }

.hire-assign-count {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: .65rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border-radius: 999px;
    padding: 0 .25rem;
    min-width: 14px;
    line-height: 1.3;
    text-align: center;
}

/* Chips de responsables: fila propia dentro del grid del ítem */
.hire-assignees {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
    margin-top: .35rem;
}

.hire-assignee-chip {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-size: .72rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: #475569;
    border-radius: 999px;
    padding: .1rem .5rem;
    white-space: nowrap;
}

.hire-assignees-empty {
    font-size: .72rem;
    color: var(--warning, #d97706);
    font-weight: 600;
}

.hire-step-highlight {
    background: var(--gray-100);
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* Selector de responsables (popover 👥) */

.hire-assignees-current {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    align-items: center;
}

.assignee-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: .35rem;
}

.assignee-row {
    display: grid;
    grid-template-columns: 20px 1fr auto auto;
    align-items: center;
    gap: .5rem;
    padding: .35rem .4rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: .85rem;
}

.assignee-row:hover { background: var(--gray-100); }

.assignee-row .assignee-name { font-weight: 600; color: #1e293b; }

.assignee-row .assignee-email {
    font-size: .72rem;
    color: var(--gray-400);
}

.assignee-row .assignee-check { cursor: pointer; }
.assignee-row .assignee-check:disabled { cursor: not-allowed; }

@media (max-width: 480px) {
    .hire-assign-btn { width: 22px; height: 22px; font-size: .78rem; }
    .assignee-row { grid-template-columns: 20px 1fr auto; }
    .assignee-row .assignee-email { display: none; }
}

/* ---------- Centro de notificaciones: campana 🔔 ---------- */

.nav-notif { position: relative; }

.nav-bell {
    position: relative;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    padding: .35rem .4rem;
    border-radius: 8px;
    transition: background .15s ease;
}

.nav-bell:hover { background: rgba(255, 255, 255, .18); }

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    font-size: .65rem;
    font-weight: 700;
    color: white;
    background: var(--danger, #dc2626);
    border-radius: 999px;
    padding: 0 .25rem;
    line-height: 1.4;
    text-align: center;
}

.notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    width: 340px;
    max-width: 92vw;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    z-index: 60;
    overflow: hidden;
    text-align: left;
}

/* El atributo hidden debe ganar a display del panel */
.notif-panel[hidden] { display: none; }

.notif-panel-head,
.notif-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem .75rem;
    background: var(--gray-100);
    font-size: .8rem;
}

.notif-panel-foot { background: white; border-top: 1px solid var(--gray-200); }

.notif-panel-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: .5rem;
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}

.notif-item:hover { background: var(--gray-100); }
.notif-item.unread { background: rgba(37, 99, 235, .06); }

.notif-item-icon { font-size: 1rem; line-height: 1.2; }

.notif-item-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.notif-item-title { font-size: .82rem; font-weight: 600; color: #1e293b; }

.notif-item-msg {
    font-size: .76rem;
    color: var(--gray-500);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-item-when { font-size: .7rem; color: var(--gray-400); }

.notif-empty {
    padding: 1rem .75rem;
    font-size: .8rem;
    color: var(--gray-500);
    text-align: center;
}

.notif-link {
    background: transparent;
    border: 0;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.notif-link:hover { text-decoration: underline; }

/* ---------- Página del centro de notificaciones ---------- */

.notif-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.notif-card {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: .75rem;
    align-items: start;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: .85rem 1rem;
}

.notif-card.unread { border-left: 4px solid var(--primary); }

.notif-card-icon { font-size: 1.3rem; line-height: 1; }

.notif-card-body { min-width: 0; }

.notif-card-top {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.notif-card-msg {
    font-size: .85rem;
    color: var(--gray-700);
    margin: .25rem 0 0;
}

.notif-card-meta {
    font-size: .72rem;
    color: var(--gray-400);
    margin-top: .3rem;
}

.notif-card-actions {
    display: inline-flex;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .notif-panel { right: -1rem; width: 300px; }
    .notif-card { grid-template-columns: 26px 1fr; }
    .notif-card-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ================================================================
   📱 Mejora móvil global (teléfonos y tabletas pequeñas)
   Bloque aditivo: solo reglas dentro de media queries + clamp().
   Reversible borrando este bloque. No toca backend ni lógica JS.
   ================================================================ */

/* ---------- Base anti-desbordamiento (todos los viewports) ---------- */
img, table, iframe, video, pre, code { max-width: 100%; }

.table td,
.table th,
.offer-card h3,
.hire-candidate-name,
.notif-item-title,
.notif-card-msg {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ---------- Tipografía fluida (Fase C) ---------- */
.page-head h1 { font-size: clamp(1.35rem, 1.1rem + 2vw, 1.9rem); }
.auth-hero-content h1 { font-size: clamp(1.5rem, 1.2rem + 2.4vw, 2.1rem); }
.auth-panel-card h1 { font-size: clamp(1.2rem, 1.05rem + 1.4vw, 1.5rem); }
.hero-content h1 { font-size: clamp(1.5rem, 1.2rem + 2.6vw, 2.5rem); }
.modal-box h2 { font-size: clamp(1.1rem, 1rem + 1.2vw, 1.3rem); }

/* ---------- Botón hamburguesa (Fase A.1 · oculto en escritorio) ---------- */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .35);
    color: white;
    font-size: 1.25rem;
    line-height: 1;
    padding: .35rem .6rem;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle:hover { background: rgba(255, 255, 255, .15); }

/* ---------- Grillas sin scroll horizontal residual (Fase B.3) ---------- */
.hire-grid { grid-template-columns: repeat(auto-fill, minmax(min(430px, 100%), 1fr)); }
.offer-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }

@media (max-width: 900px) {
    /* Login/registro apilado antes (tabletas pequeñas) — Fase C.7 */
    .auth-hero { flex-direction: column-reverse; min-height: auto; }
    .auth-hero-content, .auth-panel { max-width: 100%; padding: 2rem 1.5rem; }
    .auth-panel { flex: initial; }
    .auth-hero-content .lead { max-width: 100%; }
}

@media (max-width: 720px) {
    /* ---------- Navbar con menú desplegable (Fase A.1) ---------- */
    .navbar-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: .6rem;
    }
    .navbar-brand { font-size: 1.15rem; flex: 1; min-width: 0; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .navbar-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        background: rgba(255, 255, 255, .06);
        border-radius: var(--radius-sm);
        padding: .5rem;
        max-height: 60vh;
        overflow-y: auto;
    }
    .navbar-inner.nav-open .navbar-nav { display: flex; }
    .navbar-nav li { width: 100%; }
    .navbar-nav a {
        display: block;
        padding: .6rem .75rem;
        border-radius: 6px;
        font-size: 1rem;
    }
    .navbar-nav a:hover { background: rgba(255, 255, 255, .1); }
    .navbar-nav a::after { display: none; }
    .navbar-nav .btn { width: 100%; margin-top: .25rem; }
    .nav-notif { width: 100%; }
    .nav-bell { font-size: 1.2rem; padding: .5rem .6rem; }

    /* ---------- Toolbar a ancho completo (Fase B.4) ---------- */
    .toolbar .form-control { flex: 1 1 200px; min-width: 0; width: 100%; }
    .toolbar .btn { flex: 1 1 auto; }

    /* ---------- Page head apilado ---------- */
    .page-head { flex-direction: column; align-items: stretch; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1 1 auto; }

    /* ---------- Cards y héroes ---------- */
    .offer-card, .hire-card { padding: 1.1rem 1rem; }
    .hire-card-head { flex-wrap: wrap; }
    .profile-hero { flex-direction: column; text-align: center; }
    .stat-card.modern:hover { transform: none; }

    /* ---------- Modales seguros con teclado móvil (Fase B.6) ---------- */
    .modal-backdrop { padding: .75rem; }
    .modal-box { margin: 0 .25rem; max-height: 92dvh; }
    .modal-actions { flex-direction: column-reverse; align-items: stretch; }
    .modal-actions .btn { width: 100%; }
}

/* __MOBILE_480__ */
@media (max-width: 480px) {
    /* Ítem de contratación a 2 filas táctiles (Fase A.2) */
    .hire-step {
        grid-template-columns: 30px 30px 1fr;
        grid-template-areas:
            "check reject label"
            "meta meta actions";
        row-gap: .45rem;
        padding: .6rem .55rem;
    }
    .hire-step .hire-check { grid-area: check; width: 30px; height: 30px; }
    .hire-step .hire-reject { grid-area: reject; width: 30px; height: 30px; }
    .hire-step > span:nth-child(3) { grid-area: label; }
    .hire-step > span:nth-child(4) { grid-area: meta; font-size: .75rem; }
    .hire-step-actions { grid-area: actions; justify-content: flex-end; gap: .4rem; }
    .hire-info-btn,
    .hire-comments-btn,
    .hire-docs-btn,
    .hire-assign-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: .9rem;
    }

    /* Panel de notificaciones anclado al viewport (Fase B.5) */
    .nav-notif { position: static; }
    .notif-panel {
        position: fixed;
        top: 64px;
        left: .75rem;
        right: .75rem;
        width: auto;
        max-width: none;
        max-height: 70dvh;
        display: flex;
        flex-direction: column;
    }
    .notif-panel-list { max-height: none; overflow-y: auto; }

    /* Formularios y botones a ancho completo */
    .auth-panel-card { padding: 1.5rem 1.25rem; }
    .form-control { font-size: 16px; }
    .btn { white-space: normal; text-align: center; }
    .page-actions .btn, .toolbar .btn { min-height: 44px; }

    /* Tablas: celdas más compactas */
    .table th, .table td { padding: .6rem .7rem; font-size: .85rem; }

    /* Footer */
    .footer { padding: 1.25rem 1rem; }
    .footer-copyright { font-size: .75rem; }
}


/* ==================== Aviso de confidencialidad (ciberseguridad) ====================
   Barra fija visible en TODAS las paginas (inyectada por main.js -> initPage).
   z-index por debajo de los modales (1000) para no estorbar sus acciones. */
.confidentiality-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .45rem .9rem;
    background: #0f172a;
    color: #e2e8f0;
    border-top: 2px solid #1d4ed8;
    font-size: .78rem;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(15, 23, 42, .35);
}
.confidentiality-banner strong {
    color: #93c5fd;
    letter-spacing: .04em;
}
.confidentiality-banner-icon {
    flex-shrink: 0;
}
body {
    padding-bottom: 52px; /* deja ver el banner fijo sin tapar el footer */
}
@media (max-width: 720px) {
    .confidentiality-banner {
        font-size: .66rem;
        padding: .4rem .55rem;
        gap: .35rem;
    }
    body {
        padding-bottom: 78px;
    }
}


/* ================================================================
   Mejoras visuales de formularios SST
   ================================================================ */
.sst-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
}

.sst-form-section {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fbfdff;
}

.sst-form-section:last-child { margin-bottom: 0; }

.sst-form-section-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .9rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--gray-200);
}

.sst-form-section-head h3 {
    margin: 0;
    color: var(--gray-800);
    font-size: .88rem;
    font-weight: 750;
    letter-spacing: .01em;
}

.sst-form-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 auto;
    border-radius: .5rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: .95rem;
}

.sst-form-section-count {
    margin-left: auto;
    color: var(--gray-400);
    font-size: .72rem;
    white-space: nowrap;
}

.sst-field-wide { grid-column: 1 / -1; }
.sst-form-group { margin-bottom: 0; min-width: 0; }

.sst-form-label {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    margin-bottom: .4rem;
    color: var(--gray-700);
    font-size: .82rem;
    font-weight: 650;
}

.sst-required-mark { color: var(--danger); font-weight: 800; }

.sst-form-control {
    min-height: 44px;
    background: white;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.sst-modal-box {
    display: flex;
    flex-direction: column;
    max-width: 960px;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
}

.sst-modal-header {
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.sst-modal-eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: var(--primary);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.sst-modal-header .card-title { margin-bottom: .2rem; }

.sst-modal-subtitle {
    margin: 0;
    color: var(--gray-500);
    font-size: .82rem;
}

.sst-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 50%;
}

#sst-modal-body,
#sst-workspace-modal-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#sst-modal-body {
    padding: 1.25rem 1.5rem 0;
}

#sst-workspace-modal-body {
    padding: 1.25rem 1.5rem 1rem;
}

.sst-form-intro {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.sst-form-intro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    border-radius: .7rem;
    background: white;
    box-shadow: var(--shadow-sm);
    font-size: 1.35rem;
}

.sst-form-intro strong { display: block; color: var(--gray-800); font-size: .88rem; }

.sst-form-intro p {
    margin: .15rem 0 0;
    color: var(--gray-600);
    font-size: .78rem;
    line-height: 1.45;
}

.sst-required-legend {
    margin-left: auto;
    color: var(--gray-500);
    font-size: .72rem;
    white-space: nowrap;
}

.sst-required-legend span { color: var(--danger); font-weight: 800; }
.sst-form-sections { min-width: 0; }

.sst-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem -1.5rem 0;
    padding: .9rem 1.5rem 1.1rem;
    border-top: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -5px 14px rgba(15, 23, 42, .04);
}

.sst-form-actions-hint { color: var(--gray-500); font-size: .75rem; }

.sst-form-action-buttons { display: flex; align-items: center; gap: .65rem; }
.sst-form-action-buttons .btn { min-height: 42px; }

.sst-submit-button.is-loading { opacity: .72; cursor: wait; }

.sst-readonly-note {
    display: none;
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: .9rem;
}

@media (max-width: 720px) {
    .sst-modal-box { max-height: 94vh; }
    .sst-modal-header { padding: 1rem; }
    #sst-modal-body { padding: 1rem 1rem 0; }
    .sst-form-grid { grid-template-columns: 1fr; gap: .85rem; }
    .sst-field-wide { grid-column: auto; }
    .sst-form-intro { align-items: flex-start; flex-wrap: wrap; }
    .sst-required-legend { width: 100%; margin-left: 3.3rem; }
    .sst-form-actions { align-items: stretch; flex-direction: column; margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
    .sst-form-action-buttons { flex-direction: column-reverse; }
    .sst-form-action-buttons .btn { width: 100%; }
}


textarea.sst-form-control { min-height: 88px; resize: vertical; }

.sst-json-control {
    min-height: 150px;
    background: #f8fafc;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .82rem;
    line-height: 1.5;
}

.sst-form-control:hover { border-color: var(--gray-300); }

.sst-form-control:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.sst-form-control.is-invalid,
.sst-form-group--error .sst-form-control {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .11);
}

.sst-field-help {
    display: block;
    margin-top: .4rem;
    color: var(--gray-500);
    font-size: .75rem;
    line-height: 1.4;
}

.sst-field-error {
    display: block;
    margin-top: .4rem;
    color: var(--danger-dark);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
}

.sst-field-error[hidden], .sst-form-alert[hidden] { display: none; }

.sst-form-alert {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-sm);
    background: #fff1f2;
    color: var(--danger-dark);
    font-size: .85rem;
    font-weight: 600;
}



/* ============================================================
   Relaciones Laborales · módulo independiente
   ============================================================ */
.labor-hero { background: linear-gradient(135deg, #172554 0%, #1e3a8a 55%, #312e81 100%); color: #fff; border-radius: 20px; padding: 1.6rem 1.8rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-lg); }
.labor-hero h2 { color: #fff; margin: 0 0 .35rem; font-size: 1.5rem; }
.labor-hero p { color: #dbeafe; margin: 0; max-width: 880px; }
.labor-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.labor-kpi { background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow-sm); }
.labor-kpi strong { display: block; font-size: 1.55rem; color: var(--gray-900); }
.labor-kpi span { color: var(--gray-500); font-size: .82rem; }
.labor-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 1.25rem; align-items: start; }
.labor-table td, .labor-table th { vertical-align: middle; }
.labor-status { display: inline-flex; padding: .25rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #e0e7ff; color: #3730a3; }
.labor-status--warning { background: #fef3c7; color: #92400e; }
.labor-status--danger { background: #fee2e2; color: #991b1b; }
.labor-status--success { background: #dcfce7; color: #166534; }
.labor-timeline { list-style: none; margin: 0; padding: 0; }
.labor-timeline li { position: relative; padding: 0 0 1rem 1.25rem; border-left: 2px solid var(--gray-200); }
.labor-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.labor-timeline li::before { content: ''; position: absolute; left: -6px; top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.labor-timeline strong { display: block; color: var(--gray-800); font-size: .9rem; }
.labor-timeline small { color: var(--gray-500); }
.labor-empty { padding: 2rem 1rem; text-align: center; color: var(--gray-500); }
.labor-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.labor-detail-grid dt { color: var(--gray-500); font-size: .78rem; }
.labor-detail-grid dd { margin: 0 0 .5rem; color: var(--gray-800); font-weight: 600; }
.labor-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.labor-alert { border-left: 4px solid #f59e0b; background: #fffbeb; padding: .7rem .85rem; border-radius: 8px; color: #78350f; font-size: .88rem; }
.labor-modal-wide { max-width: 900px; }
.labor-modal-body { max-height: min(72vh, 760px); overflow-y: auto; }
.labor-chip { display: inline-block; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: .2rem .5rem; margin: .15rem; font-size: .76rem; }
@media (max-width: 1100px) { .labor-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .labor-grid { grid-template-columns: 1fr; } }
.labor-description { color: var(--gray-700); line-height: 1.55; margin: .8rem 0 0; }
.labor-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.labor-detail-header h3 { margin: 0 0 .25rem; color: var(--gray-900); }
.labor-detail-header p { margin: 0; color: var(--gray-600); display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.labor-detail-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.labor-detail-tabs section { border: 1px solid var(--gray-200); border-radius: 12px; padding: .9rem; background: #fbfdff; }
.labor-detail-tabs h3 { margin: 0 0 .7rem; font-size: .95rem; color: var(--gray-800); }
.labor-list { display: flex; flex-direction: column; gap: .55rem; }
.labor-list-item { display: flex; align-items: center; justify-content: space-between; gap: .7rem; border: 1px solid var(--gray-200); border-radius: 9px; padding: .65rem; background: white; }
.labor-list-item small { color: var(--gray-500); }
.labor-decision { border-left: 4px solid #2563eb; background: #eff6ff; border-radius: 8px; padding: .75rem; }
.labor-decision strong { display: block; color: #1e3a8a; margin-bottom: .3rem; }
.labor-decision p { margin: 0 0 .35rem; }
.labor-decision small { color: #475569; }
.labor-form .form-group { margin-bottom: .75rem; }
.labor-form textarea { min-height: 78px; resize: vertical; }
.labor-table-wrap { overflow-x: auto; }
@media (max-width: 680px) {
  .labor-detail-header, .labor-list-item { flex-direction: column; align-items: stretch; }
  .labor-detail-tabs { grid-template-columns: 1fr; }
}

.sst-axis-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.sst-axis-nav-loading { grid-column: 1 / -1; color: var(--gray-500); padding: 1rem; }
.sst-axis-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.sst-axis-card:hover, .sst-axis-card.active { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 .65rem 1.4rem rgba(15, 23, 42, .14); }
.sst-axis-card.active { background: linear-gradient(135deg, #eff6ff, #fff); }
.sst-axis-card-main { flex: 1; border: 0; background: transparent; color: inherit; padding: 1rem; text-align: left; cursor: pointer; }
.sst-axis-card-main:focus-visible, .sst-axis-card-create:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: -3px; }
.sst-axis-card-icon { font-size: 1.65rem; display: block; margin-bottom: .45rem; }
.sst-axis-card-title { display: block; font-weight: 750; color: var(--gray-900); }
.sst-axis-card-description { display: block; color: var(--gray-500); font-size: .78rem; margin-top: .3rem; line-height: 1.35; }
.sst-axis-card-create { border: 0; border-top: 1px solid var(--gray-200); background: rgba(239, 246, 255, .72); color: var(--primary-dark); padding: .65rem 1rem; font-size: .8rem; font-weight: 750; text-align: left; cursor: pointer; }
.sst-axis-card-create:hover { background: var(--primary-light); }
.sst-axis-content { min-height: 180px; }
.sst-axis-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.sst-axis-header h2 { margin: 0; color: var(--gray-900); }
.sst-axis-header p { margin: .3rem 0 0; color: var(--gray-500); }
.sst-axis-create-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .65rem; }
.sst-axis-create-option { display: flex; align-items: flex-start; gap: .65rem; width: 100%; border: 1px solid var(--gray-200); border-radius: var(--radius); background: white; padding: .8rem; color: var(--gray-800); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.sst-axis-create-option:hover { border-color: var(--primary); background: #eff6ff; transform: translateY(-1px); }
.sst-axis-create-option-icon { font-size: 1.35rem; line-height: 1.2; }
.sst-axis-create-option strong, .sst-axis-create-option small { display: block; }
.sst-axis-create-option small { margin-top: .2rem; color: var(--gray-500); line-height: 1.35; }
.sst-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: .85rem; }
.sst-item-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem; background: white; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .7rem; }
.sst-item-card:hover { border-color: #93c5fd; box-shadow: 0 .45rem 1rem rgba(15, 23, 42, .08); }
.sst-item-card-top { display: flex; align-items: flex-start; gap: .7rem; }
.sst-item-icon { font-size: 1.55rem; line-height: 1; }
.sst-item-card h3 { margin: 0; font-size: 1rem; color: var(--gray-900); }
.sst-item-card p { margin: .15rem 0 0; font-size: .8rem; color: var(--gray-500); line-height: 1.4; }
.sst-item-card-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; }
.sst-item-card-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.sst-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .22rem .55rem; font-size: .7rem; font-weight: 700; background: #e0f2fe; color: #075985; }
.sst-badge-success { background: #dcfce7; color: #166534; }
.sst-badge-warning { background: #fef3c7; color: #92400e; }
.sst-folder-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: 1rem; }
.sst-folder-panel, .sst-folder-content { border: 1px solid var(--gray-200); border-radius: var(--radius); background: white; padding: 1rem; }
.sst-folder-panel h3, .sst-folder-content h3 { margin: 0 0 .7rem; font-size: 1rem; }
.sst-folder-tree { display: flex; flex-direction: column; gap: .25rem; max-height: 360px; overflow: auto; }
.sst-folder-row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; border-radius: .45rem; padding: .48rem .55rem; }
.sst-folder-row:hover, .sst-folder-row.active { background: #eff6ff; color: #1d4ed8; }
.sst-folder-row-main { border: 0; background: transparent; text-align: left; flex: 1; cursor: pointer; color: inherit; padding: 0; }
.sst-folder-count { color: var(--gray-500); font-size: .72rem; }
.sst-folder-empty { color: var(--gray-500); font-size: .8rem; padding: .8rem 0; }

.sst-folder-content table td { vertical-align: middle; }
.sst-url-link { color: #1d4ed8; text-decoration: none; font-weight: 600; }
.sst-url-link:hover { text-decoration: underline; }
.sst-workspace-modal-box { max-width: 760px; }
.sst-workspace-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.sst-workspace-form-field { display: flex; flex-direction: column; gap: .3rem; }
.sst-workspace-form-field.wide { grid-column: 1 / -1; }
.sst-workspace-form-field label { font-size: .8rem; font-weight: 700; color: var(--gray-700); }
.sst-workspace-form-field input, .sst-workspace-form-field select, .sst-workspace-form-field textarea { width: 100%; border: 1px solid var(--gray-300); border-radius: .45rem; padding: .55rem .65rem; font: inherit; }
.sst-workspace-form-field textarea { min-height: 92px; resize: vertical; }
.sst-workspace-file-box { margin: 1rem 0; padding: .85rem; border: 1px dashed #93c5fd; border-radius: var(--radius); background: #f8fbff; }
.sst-workspace-file-box input { width: 100%; }
.sst-workspace-attachments { margin-top: .8rem; display: flex; flex-direction: column; gap: .35rem; }
.sst-attachment-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .55rem; border: 1px solid var(--gray-200); border-radius: .45rem; font-size: .8rem; }
.sst-history-list { display: flex; flex-direction: column; gap: .55rem; max-height: 55vh; overflow: auto; }
.sst-history-entry { border-left: 3px solid #60a5fa; background: #f8fbff; padding: .65rem .8rem; border-radius: .35rem; }
.sst-history-entry strong { display: block; color: var(--gray-800); }
.sst-history-entry small { color: var(--gray-500); }
.sst-workspace-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; }
.sst-empty-state { text-align: center; padding: 2rem 1rem; color: var(--gray-500); }
@media (max-width: 900px) { .sst-axis-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sst-folder-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .sst-axis-nav { grid-template-columns: 1fr; } .sst-workspace-form-grid { grid-template-columns: 1fr; } .sst-workspace-form-field.wide { grid-column: auto; } .sst-axis-header { flex-direction: column; } }

