/* ==========================================================================
   AEPsiUNCAus - Expo Carreras 2026
   Estilos de la Pantalla de Resultados Vocacionales
   Inspirado en la paleta cromática multicolor del logo oficial de AEPsiUNCAus
   ========================================================================== */

.results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

/* Tarjeta Hero de Resultado Principal con Halo Multicolor */
.results-hero-card {
    background: linear-gradient(145deg, rgba(26, 35, 54, 0.95) 0%, rgba(13, 18, 30, 0.98) 100%);
    border-radius: var(--radius-xl);
    padding: 30px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.results-hero-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-xl) + 2px);
    background: var(--logo-conic-glow);
    z-index: -1;
    opacity: 0.65;
    filter: blur(8px);
    animation: rotateResultsGlow 14s linear infinite;
}

@keyframes rotateResultsGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.results-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(236, 72, 153, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(236, 72, 153, 0.45);
    color: #ffffff;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.25);
}

.results-hero-title {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.results-hero-title span {
    background: var(--logo-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.results-hero-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Caja de Reflexión Vocacional (Enfoque Bohoslavsky / Rascovan) */
.reflection-box {
    background: rgba(15, 23, 42, 0.6);
    border-left: 3px solid var(--logo-magenta);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 14px 18px;
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.55;
    text-align: left;
    margin-top: 18px;
}

.reflection-box strong {
    color: #ffffff;
    font-weight: 700;
}

/* ==========================================================================
   Desglose de Afinidades por Áreas
   ========================================================================== */
.affinity-section {
    background: linear-gradient(145deg, rgba(26, 35, 54, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.area-score-item {
    margin-bottom: 16px;
}

.area-score-item:last-child {
    margin-bottom: 0;
}

.area-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.area-score-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.area-score-percent {
    font-size: 0.92rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.area-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.area-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s var(--ease-smooth);
    position: relative;
    box-shadow: 0 0 12px currentColor;
}

/* ==========================================================================
   Catálogo de Carreras UNCAUS Recomendadas
   ========================================================================== */
.careers-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Pestañas de Filtro */
.career-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.career-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    white-space: nowrap;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--logo-magenta) 0%, var(--logo-purple) 50%, var(--logo-blue) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

/* Grilla de Carreras */
.career-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.career-card {
    background: linear-gradient(145deg, rgba(26, 35, 54, 0.8) 0%, rgba(15, 23, 42, 0.85) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.career-card:hover {
    border-color: rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(236, 72, 153, 0.15);
}

.career-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.career-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.career-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.career-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}

.career-duration {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Badges de Modalidad y Afinidad */
.career-badges-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.affinity-match-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.affinity-match-badge.high {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.affinity-match-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.affinity-match-badge.low {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dual-synergy-badge {
    padding: 3px 8px;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #f472b6;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modalidad-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.modalidad-badge.presencial {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
}

.modalidad-badge.distancia {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.35);
}

.career-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.55;
}

.career-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.career-sede {
    font-size: 0.76rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.career-link-btn {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--logo-cyan);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.career-link-btn:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   Botonera de Acción Final
   ========================================================================== */
.results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-restart {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

/* ==========================================================================
   Ajustes Responsivos para la Pantalla de Resultados
   ========================================================================== */
@media (max-width: 480px) {
    .results-wrapper {
        gap: 16px;
    }

    .results-hero-card {
        padding: 20px 16px;
    }

    .results-hero-title {
        font-size: 1.45rem;
    }

    .results-hero-desc {
        font-size: 0.88rem;
    }

    .reflection-box {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    .affinity-section {
        padding: 18px 14px;
    }

    .career-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 7px 12px;
        font-size: 0.76rem;
        flex-shrink: 0;
    }

    .career-card {
        padding: 14px 12px;
    }

    .career-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .career-badges-group {
        width: 100%;
        justify-content: flex-start;
    }

    .career-name {
        font-size: 0.98rem;
    }

    .career-desc {
        font-size: 0.84rem;
    }

    .career-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

