/* Portal de Empleo — diseño alineado con morfincleaning.com */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #003663;
    --primary-light: #005091;
    --accent: #0067ff;
    --accent-hover: #0056d6;
    /* acento secundario (celeste, reemplaza el amarillo de la marca) */
    --sunny: #38bdf8;
    --sunny-hover: #0ea5e9;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- HEADER --- */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; object-fit: contain; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary { background: var(--accent); color: var(--bg-white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sunny { background: var(--sunny); color: var(--primary); }
.btn-sunny:hover { background: var(--sunny-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

.btn-block { width: 100%; text-align: center; padding: 13px; font-size: 1rem; }

/* --- HERO (landing) --- */
.hero-careers {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 72px 24px;
    text-align: center;
}

.hero-careers h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    max-width: 760px;
    margin: 0 auto 16px;
}

.hero-careers h1 span { color: var(--sunny); }

.hero-careers p {
    max-width: 620px;
    margin: 0 auto 32px;
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.benefits {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.benefit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.benefit-card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.benefit-card h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 8px; }
.benefit-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- MAIN / CARDS --- */
.page-main { flex: 1; width: 100%; }

.card-wrap {
    max-width: 560px;
    margin: 48px auto;
    padding: 0 20px;
}

.card-wrap.wide { max-width: 760px; }

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 36px;
}

.card h1 {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.card .subtitle { color: var(--text-muted); margin-bottom: 26px; font-size: 0.97rem; }

/* --- FORMS --- */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

label .req { color: #dc2626; }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="date"], select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.97rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 103, 255, 0.12);
}

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

.hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checks label { display: flex; align-items: center; gap: 7px; font-weight: 500; margin: 0; }

.form-footer { margin-top: 22px; text-align: center; color: var(--text-muted); font-size: 0.93rem; }
.form-footer a { color: var(--accent); font-weight: 700; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* honeypot: oculto para humanos */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --- FLASH --- */
.flash-stack { max-width: 760px; margin: 18px auto -22px; padding: 0 20px; }
.flash {
    padding: 13px 17px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid transparent;
}
.flash.success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash.danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash.warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* --- ESTADO / STATUS --- */
.status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 26px;
    font-weight: 600;
}
.status-banner.s-INCOMPLETA { background: #fffbeb; color: #92400e; }
.status-banner.s-RECIBIDA { background: #eff6ff; color: #1e40af; }
.status-banner.s-EN_REVISION { background: #eff6ff; color: #1e40af; }
.status-banner.s-ENTREVISTA { background: #f5f3ff; color: #5b21b6; }
.status-banner.s-APROBADA { background: #ecfdf5; color: #065f46; }
.status-banner.s-RECHAZADA { background: #fef2f2; color: #991b1b; }
.status-banner .dot { font-size: 1.6rem; line-height: 1; }

.steps { display: flex; gap: 0; margin: 8px 0 30px; }
.step { flex: 1; text-align: center; position: relative; padding-top: 26px; }
.step::before {
    content: '';
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--border-color);
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.step::after {
    content: '';
    position: absolute; top: 7px; left: 50%;
    width: 100%; height: 3px;
    background: var(--border-color);
    z-index: 1;
}
.step:last-child::after { display: none; }
.step.done::before, .step.done::after { background: var(--accent); }
.step.current::before { background: var(--sunny); box-shadow: 0 0 0 4px rgba(56,189,248,0.35); }
.step span { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.step.done span, .step.current span { color: var(--primary); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 24px;
    margin-top: 8px;
}
.info-item { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.info-item .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.info-item .v { font-size: 0.98rem; font-weight: 600; color: var(--text-dark); overflow-wrap: anywhere; }

.actions-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* --- FOOTER --- */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 22px 24px;
    font-size: 0.88rem;
    margin-top: 48px;
}
.site-footer a { color: var(--sunny); text-decoration: none; }

@media (max-width: 640px) {
    .card { padding: 26px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .steps { flex-wrap: wrap; }
    .step { min-width: 33%; margin-bottom: 14px; }
}
