
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --dark: #11152b;
    --purple: #7457ed;
    --purple-light: #a18bff;
    --blue: #4e8bff;
    --background: #f6f7fc;
    --white: #ffffff;
    --text: #272b45;
    --muted: #81869e;
    --border: #e9eaf2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.hidden {
    display: none !important;
}

/* NAVEGACIÓN */

.navbar {
    height: 82px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 23px;
    font-weight: 800;
    text-decoration: none;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo-icon {
    background: var(--purple);
    color: white;
    padding: 6px 11px;
    border-radius: 10px;
}

.logo-light {
    color: var(--purple);
}

.navbar nav {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.navbar nav a:hover {
    color: var(--purple);
}

.nav-tag {
    background: #f0edff;
    color: var(--purple);
    border-radius: 30px;
    padding: 10px 17px;
    font-size: 12px;
    font-weight: 700;
}

/* INICIO */

.hero {
    min-height: 570px;
    padding: 75px 10%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    background:
        radial-gradient(circle at 85% 20%, #413c80 0%, transparent 30%),
        linear-gradient(120deg, #11152b, #242052);
    color: white;
    overflow: hidden;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--purple-light);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(40px, 5vw, 65px);
    line-height: 1.08;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #a48cff;
    display: block;
}

.hero-content > p {
    max-width: 560px;
    color: #c0c2d5;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 32px;
}

.btn-primary {
    background: linear-gradient(120deg, #8061f4, #5e7ef7);
    color: white;
    border-radius: 12px;
    padding: 16px 25px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px #7457ed45;
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 22px;
    font-size: 14px;
    font-weight: 700;
}

.btn-secondary:hover {
    background: #f0edff;
}

.hero-stats {
    display: flex;
    gap: 55px;
    margin-top: 55px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-stats strong {
    font-family: 'Outfit';
    font-size: 30px;
}

.hero-stats small {
    color: #aeb1c9;
}

/* TARJETA VISUAL */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-card {
    background: linear-gradient(145deg, #302d66, #252344);
    border: 1px solid #ffffff30;
    border-radius: 25px;
    padding: 35px;
    width: 330px;
    box-shadow: 0 25px 80px #00000050;
}

.visual-top {
    display: flex;
    justify-content: space-between;
    color: #d0c9ff;
    font-size: 13px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #54e3b2;
}

.visual-icon {
    margin: 35px 0 15px;
    color: #a995ff;
    font-size: 65px;
}

.visual-card h2 {
    font-family: 'Outfit';
    font-size: 27px;
    line-height: 1.3;
}

.visual-card p {
    color: #c0c0d6;
    margin: 15px 0 25px;
    line-height: 1.7;
}

.visual-bars div {
    height: 7px;
    border-radius: 10px;
    background: #ffffff20;
    margin: 12px 0;
    overflow: hidden;
}

.visual-bars span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #967cff, #4e8bff);
    border-radius: 10px;
}

.floating-icon {
    position: absolute;
    color: #b19cff;
    font-size: 40px;
}

.icon-one {
    top: -30px;
    right: 5px;
}

.icon-two {
    bottom: -25px;
    left: 0;
}

/* SECCIONES */

.instructions,
.quiz-section,
.results-section,
.about-section {
    padding: 80px 10%;
}

.section-heading,
.result-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2,
.about-section > h2 {
    font-family: 'Outfit';
    font-size: 35px;
    margin-bottom: 12px;
}

.section-heading p,
.result-heading p {
    color: var(--muted);
    line-height: 1.7;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.instruction-card {
    padding: 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 17px;
}

.instruction-card > span {
    color: var(--purple);
    font-weight: 800;
    font-size: 24px;
}

.instruction-card h3 {
    margin: 18px 0 12px;
}

.instruction-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.scale-guide {
    margin-top: 35px;
    padding: 25px;
    background: #efedff;
    border-radius: 16px;
}

.scale-guide h3 {
    margin-bottom: 20px;
}

.scale-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}

.start-action {
    text-align: center;
    margin-top: 35px;
}

/* EVALUACIÓN */

.quiz-section {
    max-width: 1100px;
    margin: auto;
    min-height: 650px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.quiz-header h2 {
    font-family: 'Outfit';
    font-size: 29px;
}

.question-counter {
    background: #ece9ff;
    color: var(--purple);
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
}

.progress-container {
    margin-bottom: 35px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.progress-info strong {
    color: var(--purple);
}

.progress-track {
    width: 100%;
    height: 9px;
    background: #e5e6f0;
    border-radius: 20px;
    overflow: hidden;
}

#barraProgreso {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7558ef, #5592ff);
    border-radius: 20px;
    transition: width 0.3s;
}

.question-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 45px;
    min-height: 360px;
    box-shadow: 0 10px 40px #25205208;
}

.question-category {
    color: var(--purple);
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.question-card h2 {
    font-family: 'Outfit';
    font-size: 28px;
    margin: 25px 0 12px;
    line-height: 1.4;
}

.question-help {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.answers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.answer-option {
    border: 1px solid var(--border);
    background: #fafaff;
    color: var(--text);
    padding: 17px 8px;
    border-radius: 13px;
    min-height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.answer-option strong {
    font-size: 22px;
    color: var(--purple);
}

.answer-option:hover {
    border-color: var(--purple);
    background: #f1eeff;
}

.answer-option.selected {
    border: 2px solid var(--purple);
    background: #eeeaff;
    box-shadow: 0 5px 15px #7457ed20;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.quiz-note {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 25px;
}

/* RESULTADOS */

.results-section {
    max-width: 1150px;
    margin: auto;
}

.result-heading h1 {
    font-family: 'Outfit';
    font-size: 42px;
    margin-bottom: 12px;
}

.main-result {
    background: linear-gradient(120deg, #282057, #7057df);
    color: white;
    border-radius: 22px;
    padding: 40px;
    margin-bottom: 25px;
}

.main-result > span {
    color: #d4caff;
    font-size: 13px;
}

.main-result h2 {
    font-family: 'Outfit';
    font-size: 35px;
    margin: 15px 0;
}

.main-result p {
    line-height: 1.8;
    color: #e3ddff;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

.result-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 22px;
}

.result-card h3 {
    font-family: 'Outfit';
    font-size: 21px;
    margin-bottom: 22px;
}

.area-result {
    margin-bottom: 22px;
}

.area-title {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 9px;
    font-weight: 700;
}

.area-bar {
    height: 9px;
    background: #ececf4;
    border-radius: 20px;
    overflow: hidden;
}

.area-fill {
    height: 100%;
    background: linear-gradient(90deg, #7558ef, #5592ff);
    border-radius: 20px;
}

#listaCarreras {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.career-item {
    padding: 20px;
    border: 1px solid var(--border);
    background: #fafaff;
    border-radius: 13px;
}

.career-item strong {
    display: block;
    margin-bottom: 10px;
    color: var(--purple);
}

.career-item p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

#analisisPersonal {
    line-height: 1.9;
    color: #62677e;
}

.disclaimer {
    background: #fff8e9;
    border: 1px solid #f3e5c4;
    padding: 23px;
    border-radius: 14px;
    line-height: 1.8;
    font-size: 13px;
    color: #6e6042;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* DIMENSIONES */

.about-section {
    text-align: center;
    background: white;
}

.dimension-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.dimension-grid div {
    padding: 25px;
    background: #f8f7ff;
    border-radius: 15px;
}

.dimension-grid strong {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: #7558ef;
    color: white;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-size: 21px;
    margin-bottom: 15px;
}

.dimension-grid h3 {
    margin-bottom: 8px;
}

.dimension-grid p {
    color: var(--muted);
    font-size: 13px;
}

/* PIE */

footer {
    background: var(--dark);
    color: white;
    padding: 45px 10%;
    text-align: center;
}

footer h3 {
    font-family: 'Outfit';
    font-size: 25px;
    margin-bottom: 12px;
}

footer p {
    color: #b9bad0;
    margin-bottom: 20px;
}

footer small {
    color: #8588a5;
}

/* IMPRESIÓN */

@media print {
    .navbar,
    .hero,
    .about-section,
    footer,
    .result-actions {
        display: none !important;
    }

    body {
        background: white;
    }

    .results-section {
        display: block !important;
        padding: 15px;
        max-width: none;
    }

    .result-card,
    .main-result {
        break-inside: avoid;
        box-shadow: none;
    }
}

/* CELULARES Y TABLETS */

@media(max-width: 800px) {
    .navbar {
        padding: 15px 5%;
        height: auto;
        flex-wrap: wrap;
        gap: 15px;
    }

    .navbar nav {
        gap: 15px;
    }

    .nav-tag {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 65px 7%;
        gap: 55px;
    }

    .hero-visual {
        padding: 10px;
    }

    .instruction-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .answers {
        grid-template-columns: repeat(2, 1fr);
    }

    .dimension-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .instructions,
    .quiz-section,
    .results-section,
    .about-section {
        padding: 55px 6%;
    }
}

@media(max-width: 480px) {
    .navbar nav a {
        font-size: 12px;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-stats strong {
        font-size: 25px;
    }

    .visual-card {
        width: 100%;
    }

    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .question-card {
        padding: 25px 18px;
    }

    .question-card h2 {
        font-size: 22px;
    }

    .answers {
        grid-template-columns: 1fr;
    }

    .answer-option {
        min-height: 65px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 20px;
    }

    #listaCarreras {
        grid-template-columns: 1fr;
    }

    .dimension-grid {
        grid-template-columns: 1fr;
    }

    .scale-items {
        flex-direction: column;
    }

    .result-heading h1 {
        font-size: 32px;
    }

    .main-result {
        padding: 27px;
    }

    .main-result h2 {
        font-size: 27px;
    }

    .result-actions {
        flex-direction: column;
    }
}
