/* ====== Test Vocacional UNCa ====== */

.tvu-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a202c;
}

/* Steps */
.tvu-step { display: none; animation: tvuIn 0.35s ease; }
.tvu-step.active { display: block; }
@keyframes tvuIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ── PASO 1: Intro ── */
.tvu-intro { text-align: center; padding: 2rem 1rem 1.5rem; }
.tvu-logo  { font-size: 3.5rem; margin-bottom: 0.75rem; line-height: 1; }
.tvu-intro h2 { font-size: 1.9rem; margin: 0 0 0.75rem; color: #1a202c; }
.tvu-intro p  { color: #555; font-size: 1rem; max-width: 480px; margin: 0 auto 1.25rem; line-height: 1.6; }

.tvu-features { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.tvu-features span { background: #f0f4ff; padding: 0.35rem 1rem; border-radius: 20px; font-size: 0.85rem; color: #4a5568; }

/* Form datos */
.tvu-form-datos { max-width: 400px; margin: 0 auto; }
.tvu-field { margin-bottom: 1.25rem; }
.tvu-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: #374151; }
.tvu-field input {
    width: 100%; padding: 0.8rem 1rem; border: 2px solid #e2e8f0;
    border-radius: 10px; font-size: 1rem; box-sizing: border-box;
    transition: border-color 0.2s;
}
.tvu-field input:focus { outline: none; border-color: #3B82F6; }
.tvu-field-error { display: block; font-size: 0.8rem; color: #e53e3e; margin-top: 0.3rem; min-height: 1em; }

/* Buttons */
.tvu-btn {
    padding: 0.85rem 1.75rem; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
    display: inline-block;
}
.tvu-btn-primary  { background: #3B82F6; color: #fff; width: 100%; }
.tvu-btn-primary:hover  { background: #2563EB; }
.tvu-btn-primary:disabled { background: #93C5FD; cursor: not-allowed; }
.tvu-btn-secondary { background: #F1F5F9; color: #475569; }
.tvu-btn-secondary:hover { background: #E2E8F0; }

/* ── PASO 2: Preguntas ── */
.tvu-progress-wrap { margin-bottom: 1.75rem; }
.tvu-bloque-tag {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: #3B82F6; margin-bottom: 0.5rem;
}
.tvu-progress-bar {
    background: #E2E8F0; border-radius: 10px; height: 8px; overflow: hidden;
}
.tvu-progress-fill {
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    height: 100%; border-radius: 10px; transition: width 0.4s ease;
}
.tvu-progress-label { font-size: 0.82rem; color: #64748B; text-align: right; margin-top: 0.35rem; }

/* Pregunta card */
.tvu-pregunta-card {
    background: #fff; border-radius: 16px; padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08); margin-bottom: 1.5rem;
}
.tvu-pregunta-texto { font-size: 1.15rem; font-weight: 700; color: #1a202c; margin: 0 0 1.5rem; line-height: 1.45; }
.tvu-opciones { display: flex; flex-direction: column; gap: 0.7rem; }

.tvu-opcion {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.9rem 1.1rem; border: 2px solid #E2E8F0;
    border-radius: 12px; cursor: pointer; transition: all 0.18s;
    user-select: none;
}
.tvu-opcion:hover    { border-color: #3B82F6; background: #EFF6FF; }
.tvu-opcion.selected { border-color: #3B82F6; background: #EFF6FF; }

.tvu-opcion-letra {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: #E2E8F0; display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 700; color: #64748B;
}
.tvu-opcion.selected .tvu-opcion-letra { background: #3B82F6; color: #fff; }
.tvu-opcion-texto { font-size: 0.95rem; color: #374151; line-height: 1.4; }

/* Nav botones */
.tvu-nav-buttons { display: flex; gap: 0.75rem; }
.tvu-nav-buttons #tvu-prev { flex: 0 0 auto; width: auto; }
.tvu-nav-buttons #tvu-next { flex: 1; }

/* ── PASO 3: Resultado ── */
.tvu-loading { text-align: center; padding: 4rem 2rem; }
.tvu-spinner {
    width: 50px; height: 50px; border: 4px solid #E2E8F0;
    border-top-color: #3B82F6; border-radius: 50%;
    animation: tvuSpin 0.75s linear infinite; margin: 0 auto 1rem;
}
@keyframes tvuSpin { to { transform: rotate(360deg); } }
.tvu-loading p { color: #64748B; font-size: 1rem; }

/* Resultado card */
.tvu-resultado-card { border-radius: 20px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.13); }

.tvu-resultado-header {
    background: var(--tvu-color, #3B82F6); color: #fff;
    padding: 2.5rem 2rem; text-align: center;
}
.tvu-resultado-icono  { font-size: 4rem; line-height: 1; margin-bottom: 0.5rem; }
.tvu-resultado-etiq   { font-size: 0.82rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.1em; }
.tvu-resultado-titulo { font-size: 2rem; margin: 0.25rem 0 1rem; font-weight: 800; }
.tvu-resultado-desc   { font-size: 0.97rem; opacity: 0.95; max-width: 500px; margin: 0 auto; line-height: 1.65; }

/* Carreras */
.tvu-carreras { padding: 2rem; background: #fff; }
.tvu-carreras h3 { font-size: 1rem; color: #1a202c; margin: 0 0 1.25rem; text-align: center; font-weight: 700; }
.tvu-carreras-lista { display: flex; flex-direction: column; gap: 0.75rem; }

.tvu-carrera-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem; background: #F8FAFC; border-radius: 12px;
    border-left: 5px solid var(--tvu-color, #3B82F6);
}
.tvu-carrera-medalla { font-size: 1.6rem; flex-shrink: 0; }
.tvu-carrera-nombre  { font-weight: 700; color: #1a202c; font-size: 0.95rem; }
.tvu-carrera-detalle { font-size: 0.78rem; color: #64748B; margin-top: 0.2rem; }

/* Compartir */
.tvu-share { padding: 1.5rem 2rem; background: #F8FAFC; border-top: 1px solid #E2E8F0; text-align: center; }
.tvu-share p { font-weight: 700; color: #374151; margin: 0 0 1rem; font-size: 0.95rem; }
.tvu-share-btns { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

.tvu-share-btn {
    padding: 0.55rem 1.1rem; border-radius: 8px; border: none;
    font-size: 0.82rem; font-weight: 700; cursor: pointer;
    text-decoration: none; display: inline-block; transition: opacity 0.2s;
}
.tvu-share-btn:hover { opacity: 0.82; }
.tvu-share-wa   { background: #25D366; color: #fff; }
.tvu-share-fb   { background: #1877F2; color: #fff; }
.tvu-share-x    { background: #000;    color: #fff; }
.tvu-share-copy { background: #E2E8F0; color: #374151; }

/* Retry */
.tvu-retry { padding: 1.5rem 2rem; text-align: center; background: #fff; border-top: 1px solid #F1F5F9; }
.tvu-retry .tvu-btn { width: auto; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 520px) {
    .tvu-pregunta-card { padding: 1.25rem; }
    .tvu-resultado-titulo { font-size: 1.5rem; }
    .tvu-resultado-header, .tvu-carreras, .tvu-share, .tvu-retry { padding: 1.25rem; }
    .tvu-features { gap: 0.5rem; }
}
