/* =========================================================
   Test de Aptitud Vocacional — estilos públicos
   Alineado a la identidad de eligetucarrera.site:
   azul institucional + acento naranja + tipografía Poppins
   ========================================================= */

:root {
    --bg: #F5F8FC;
    --surface: #FFFFFF;
    --ink: #16284D;
    --ink-soft: #5B6472;
    --border: #E3E8F0;

    --blue: #1D5FE0;
    --blue-dark: #0B2F7A;

    --accent: #E8A33D;
    --accent-dark: #C77F1F;

    --r: #5B7B9C;
    --i: #6B5B95;
    --a: #C2568A;
    --s: #3F9C8B;
    --e: #E8A33D;
    --c: #4C7A5E;

    --radius: 12px;
    --shadow: 0 4px 20px rgba(15, 40, 90, 0.07);
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--ink-soft); margin: 0 0 1em; }

a { color: var(--blue); }

.mono { font-family: var(--font-body); }

.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header del sitio ---------- */
.site-header {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
}

.brand svg { width: 28px; height: 28px; }

.site-header nav a {
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    color: var(--blue);
}

/* ---------- Hero / landing (degradado azul, como eligetucarrera.site) ---------- */
.hero {
    position: relative;
    padding: 64px 0 96px;
    text-align: center;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    overflow: hidden;
}

.hero h1, .hero p.lead, .hero .eyebrow {
    color: #FFFFFF;
}

.hero .eyebrow {
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 10px;
    display: block;
}

.hero p.lead {
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 1.08rem;
    opacity: .92;
}

.hero-hex {
    width: 200px;
    height: auto;
    margin: 0 auto 28px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.15));
}

/* Divisor ondulado hacia la seccion siguiente */
.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 60px;
    display: block;
}

.trait-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 8px;
}

.trait-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    font-size: .82rem;
    font-weight: 500;
    color: #fff;
}

.trait-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .98rem;
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn-primary {
    background: var(--accent);
    color: #2A1B06;
    box-shadow: 0 6px 16px rgba(232, 163, 61, .35);
}

.btn-primary:hover { transform: translateY(-1px); opacity: .96; }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 6px 16px rgba(29, 95, 224, .28);
}

.btn-secondary:hover { transform: translateY(-1px); opacity: .96; }

.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Tarjetas / formularios ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.form-group { margin-bottom: 20px; }

label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--bg);
}

input:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--surface);
}

.form-hint { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; padding-left: 4px; }

.error-box {
    background: #FBEAEA;
    border: 1px solid #E9B4B4;
    color: #8A2E2E;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: .9rem;
    margin-bottom: 20px;
}

/* ---------- Barra de progreso segmentada (6 tramos RIASEC) ---------- */
.progress-hex {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.progress-hex .segment {
    flex: 1;
    height: 7px;
    border-radius: 4px;
    background: var(--border);
    overflow: hidden;
    position: relative;
}

.progress-hex .segment i {
    display: block;
    height: 100%;
    width: 0%;
    transition: width .2s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 28px;
}

/* ---------- Preguntas / escala Likert ---------- */
.pregunta {
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
    transition: background .2s ease;
}

.pregunta:first-child { padding-top: 0; }

.pregunta.incompleta {
    background: #FDF1F1;
    border: 2px solid #D64545;
    border-left: 6px solid #D64545;
    border-radius: var(--radius);
    padding: 20px 16px;
    margin: 0 -16px;
}

.pregunta .num {
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    color: var(--blue);
    display: block;
    margin-bottom: 6px;
}

.pregunta .texto {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.escala {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.escala label {
    flex: 1;
    margin: 0;
    text-align: center;
    cursor: pointer;
}

.escala input[type="radio"] { display: none; }

.escala .opcion {
    display: block;
    padding: 12px 4px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: .78rem;
    color: var(--ink-soft);
    font-weight: 600;
    transition: all .12s ease;
}

.escala input[type="radio"]:checked + .opcion {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.escala-caption {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--ink-soft);
    margin-top: 6px;
}

.sticky-submit {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--bg) 60%, transparent);
    padding: 24px 0 16px;
    margin-top: 12px;
}

/* ---------- Resultados ---------- */
.resultado-header { text-align: center; padding: 40px 0 12px; }

.resultado-header .eyebrow {
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.perfil-codigo {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--blue);
    margin: 8px 0;
}

.chart-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 20px;
    margin: 24px 0 32px;
}

.chart-canvas-wrap {
    position: relative;
    height: 420px;
}

.trait-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.trait-bar-row .trait-name {
    width: 120px;
    flex-shrink: 0;
    font-size: .86rem;
    font-weight: 600;
}

.trait-bar-row .bar-track {
    flex: 1;
    height: 10px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.trait-bar-row .bar-fill { height: 100%; border-radius: 6px; }

.trait-bar-row .trait-pct {
    width: 42px;
    text-align: right;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .8rem;
    color: var(--ink-soft);
}

.carreras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0 40px;
}

.carrera-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px;
}

.carrera-card h4 { margin-bottom: 6px; font-size: 1.02rem; color: var(--ink); }
.carrera-card p { font-size: .86rem; margin-bottom: 10px; }
.carrera-card a.ver-mas { font-size: .82rem; font-weight: 600; color: var(--blue); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--ink-soft);
    font-size: .82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
    .escala { gap: 4px; }
    .escala .opcion { padding: 10px 2px; font-size: .68rem; }
    .card { padding: 22px; }
    .trait-bar-row .trait-name { width: 88px; font-size: .78rem; }
    .chart-canvas-wrap { height: 320px; }
    .hero { padding: 48px 0 80px; }
}
