/* ==========================================================================
   Reclutafy — Portal del candidato
   ========================================================================== */

.rfy-portal { background: var(--rfy-bg); min-height: 60vh; }

.rfy-portal__hero {
    background: var(--rfy-bg);
    padding: 60px 0 40px;
    border-bottom: 2px solid var(--rfy-ink);
}
.rfy-portal__hero h1 {
    font-size: clamp(28px, 3.5vw, 42px);
    margin: 4px 0 12px;
    color: var(--rfy-ink);
}
.rfy-portal__eyebrow {
    display: inline-block;
    background: var(--rfy-bg-alt);
    color: var(--rfy-accent);
    padding: 4px 12px;
    border: 1.5px solid var(--rfy-accent);
    border-radius: 4px;
    font-family: var(--rfy-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.rfy-portal__lead {
    color: var(--rfy-muted);
    font-size: var(--rfy-fs-lg);
    max-width: 640px;
    margin: 0;
}

.rfy-portal__content {
    padding: 40px var(--rfy-gutter) 80px;
    display: grid;
    gap: 24px;
    max-width: 900px;
}

/* Pipeline visual */
.rfy-pipeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    background: var(--rfy-white);
    border: 1px solid var(--rfy-line);
    border-radius: var(--rfy-radius-lg);
    padding: 26px 20px;
    position: relative;
}
.rfy-pipeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    text-align: center;
}
.rfy-pipeline__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 55%;
    right: -45%;
    height: 3px;
    background: var(--rfy-line);
    z-index: 0;
}
.rfy-pipeline__step--done:not(:last-child)::after,
.rfy-pipeline__step--current:not(:last-child)::after {
    background: var(--rfy-primary-light);
}
.rfy-pipeline__dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--rfy-white);
    border: 2px solid var(--rfy-line-2);
    color: var(--rfy-muted);
    font-weight: 700;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
    position: relative;
}
.rfy-pipeline__step--done .rfy-pipeline__dot { color: #fff; }
.rfy-pipeline__step--current .rfy-pipeline__dot {
    color: #fff;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15);
    transform: scale(1.1);
}
.rfy-pipeline__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--rfy-muted);
}
.rfy-pipeline__step--current .rfy-pipeline__label { color: var(--rfy-primary); }
.rfy-pipeline__step--done .rfy-pipeline__label { color: var(--rfy-ink); }

/* Banners */
.rfy-portal__banner {
    padding: 14px 18px;
    border-radius: var(--rfy-radius);
    font-size: 14px;
    line-height: 1.55;
}
.rfy-portal__banner--warn { background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; }
.rfy-portal__banner--success { background: #ecfdf5; border: 1px solid #86efac; color: #065f46; }
.rfy-portal__banner strong { display: inline; margin-right: 4px; }

/* Panel */
.rfy-portal__panel {
    background: var(--rfy-white);
    border: 1px solid var(--rfy-line);
    border-radius: var(--rfy-radius-lg);
    padding: 26px 30px;
}
.rfy-portal__panel h2 {
    font-size: 22px;
    margin: 0 0 10px;
    color: var(--rfy-primary);
}
.rfy-portal__panel h3 {
    font-size: 17px;
    margin: 0 0 8px;
    color: var(--rfy-primary);
}
.rfy-portal__panel p {
    color: var(--rfy-muted);
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.65;
}
.rfy-portal__panel--action {
    border-left: 4px solid var(--rfy-primary);
}
.rfy-portal__panel--muted {
    background: var(--rfy-bg-alt);
    border-style: dashed;
}

/* Lista de pruebas */
.rfy-test-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.rfy-test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--rfy-bg);
    border: 1px solid var(--rfy-line);
    border-radius: var(--rfy-radius);
    transition: box-shadow 0.15s, border-color 0.15s;
}
.rfy-test-item:hover {
    border-color: var(--rfy-primary-light);
    box-shadow: var(--rfy-shadow-sm);
}
.rfy-test-item h3 { margin: 0; font-size: 15.5px; color: var(--rfy-ink); }
.rfy-test-item p  { margin: 3px 0 0; font-size: 13px; color: var(--rfy-muted); }
.rfy-test-item--done {
    background: var(--rfy-bg-alt);
    opacity: 0.9;
}
.rfy-test-item .rfy-btn { flex-shrink: 0; }

/* Mensaje de error del portal */
.rfy-portal__msg { padding: 40px 30px; background: var(--rfy-white); border-radius: var(--rfy-radius-lg); border: 1px solid var(--rfy-line); }
.rfy-portal__msg h1 { font-size: 24px; margin-bottom: 12px; }
.rfy-portal__msg--warn h1 { color: var(--rfy-danger); }

/* Responsive */
@media (max-width: 700px) {
    .rfy-pipeline { grid-template-columns: repeat(3, 1fr); gap: 20px 4px; }
    .rfy-pipeline__step:nth-child(3n)::after { display: none; }
    .rfy-test-item { flex-direction: column; align-items: flex-start; }
    .rfy-test-item .rfy-btn { width: 100%; }
}
