@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #081B3A;
    --surface: #0E2A52;
    --surface-2: #123362;
    --line: #1E4178;
    --text: #EAF0FB;
    --muted: #9AAED4;
    --amber: #3D7BFF;
    --amber-dim: #15264D;
    --teal: #5BA8FF;
    --radius: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(45, 212, 191, 0.07), transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(61, 123, 255, 0.08), transparent 50%),
        linear-gradient(180deg, #081B3A 0%, #061530 100%);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    line-height: 1.5;

    background-image: url("../img/fondiu1.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* grid texture overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* HEADER */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.brand .mark {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--amber), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Space Grotesk';
    color: #0B1220;
    font-size: 14px;
}

.brand .name {
    font-family: 'Space Grotesk';
    font-weight: 600;
    font-size: 30px;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}

/* HERO */
.hero {
    display: none;
}

.hero.active {
    display: block;
}

.eyebrow {
    font-family: 'Space Grotesk';
    font-size: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--teal);
}

h1 {
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

h1 span {
    color: var(--amber);
}

.lead {
    color: var(--muted);
    font-size: 17px;
    max-width: 700px;
    margin-bottom: 36px;
    text-align: justify;
}

.dial-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.dial-preview .d {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
}

.dial-preview .d .num {
    font-family: 'Space Grotesk';
    font-weight: 700;
    color: var(--amber);
    font-size: 18px;
}

.dial-preview .d .lbl {
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.3;
}

.cta-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--amber), #5B95FF);
    color: #F5F8FF;
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 15px;
    padding: 16px 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(61, 123, 255, 0.3);
    transition: transform .15s ease, box-shadow .15s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(61, 123, 255, 0.4);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-sub {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

.gate-field {
    margin-bottom: 24px;
    max-width: 420px;
}

.gate-field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 7px;
}

.gate-field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-family: 'Inter';
    font-size: 15px;
}

.gate-field input:focus {
    outline: none;
    border-color: var(--teal);
}

.cta-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* PROGRESS */
.progress-shell {
    display: none;
    margin-bottom: 30px;
}

.progress-shell.active {
    display: block;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.progress-dim {
    font-family: 'Space Grotesk';
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
}

.progress-count {
    font-size: 12.5px;
    color: var(--muted);
}

.progress-track {
    height: 4px;
    background: var(--surface-2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--amber));
    border-radius: 4px;
    transition: width .35s ease;
}

/* QUESTION CARD */
.q-card {
    display: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 28px;
    animation: fade .35s ease;
}

.q-card.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.q-num {
    font-family: 'Space Grotesk';
    color: var(--amber);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.q-text {
    font-family: 'Space Grotesk';
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 26px;
}

.scale {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.scale label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    background: var(--surface-2);
    transition: border-color .15s, background .15s;
}

.scale label:hover {
    border-color: var(--teal);
}

.scale label.checked {
    border-color: var(--amber);
    background: var(--amber-dim);
}

.scale input {
    accent-color: var(--amber);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.scale .opt-score {
    font-family: 'Space Grotesk';
    font-weight: 700;
    color: var(--amber);
    min-width: 18px;
}

.scale .opt-text {
    font-size: 14.5px;
    color: var(--text);
}

.scale-caption {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--muted);
    padding: 0 2px;
    margin-bottom: 24px;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.btn {
    appearance: none;
    border: 1px solid var(--line);
    cursor: pointer;
    background: transparent;
    color: var(--text);
    font-family: 'Inter';
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 9px;
}

.btn.primary {
    background: var(--amber);
    color: #F5F8FF;
    border: none;
}

.btn.primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    border-color: var(--teal);
}

.btn.primary:hover:not(:disabled) {
    filter: brightness(1.08);
}

/* LEAD FORM */
.lead-form {
    display: none;
}

.lead-form.active {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 28px;
    animation: fade .35s ease;
}

.lead-form h2 {
    font-family: 'Space Grotesk';
    font-size: 24px;
    margin-bottom: 8px;
}

.lead-form p.sub {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 24px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-family: 'Inter';
    font-size: 14.5px;
}

.field input:focus {
    outline: none;
    border-color: var(--teal);
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12.5px;
    color: var(--muted);
    margin: 18px 0 24px;
}

.consent input {
    margin-top: 3px;
    accent-color: var(--amber);
}

/* RESULTS */
.results {
    display: none;
}

.results.active {
    display: block;
    animation: fade .4s ease;
}

.res-header {
    text-align: center;
    margin-bottom: 30px;
}

.res-header .eyebrow {
    justify-content: center;
}

.res-header .eyebrow::before {
    display: none;
}

.score-hero {
    text-align: center;
    margin-bottom: 36px;
}

.score-big {
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 72px;
    line-height: 1;
    color: var(--amber);
}

.score-big span {
    font-size: 28px;
    color: var(--muted);
}

.score-level {
    font-family: 'Space Grotesk';
    font-weight: 600;
    font-size: 17px;
    margin-top: 8px;
}

.score-weighted {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
}

.score-weighted b {
    color: var(--teal);
    font-family: 'Space Grotesk';
}

.level-table {
    display: flex;
    gap: 4px;
    margin: 24px 0 34px;
    flex-wrap: wrap;
}

.level-pill {
    flex: 1;
    min-width: 58px;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 10.5px;
    color: var(--muted);
}

.level-pill .rng {
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 12px;
    color: var(--text);
    display: block;
}

.level-pill.active {
    border-color: var(--amber);
    background: var(--amber-dim);
    color: var(--amber);
}

.level-pill.active .rng {
    color: var(--amber);
}

.wheel-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

#radar {
    max-width: 100%;
    height: auto;
}

.dim-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.dim-row {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 18px;
}

.dim-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dim-row-top .name {
    font-family: 'Space Grotesk';
    font-weight: 600;
    font-size: 14px;
}

.dim-row-top .val {
    font-family: 'Space Grotesk';
    font-weight: 700;
    color: var(--amber);
    font-size: 14px;
}

.bar-track {
    height: 6px;
    background: var(--surface-2);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--teal), var(--amber));
}

.insight-box {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--amber);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text);
}

.insight-box b {
    color: var(--amber);
}

footer {
    text-align: center;
    margin-top: 50px;
    font-size: 12px;
    color: var(--muted);
}

footer a {
    color: var(--teal);
    text-decoration: none;
}


/*.name1 {
    display: flex;
    align-items: center;
    gap: 10px; 
    font-size: 80px;
    font-weight: bold;
}*/

.logo {
    width: 80px;
    /* Ajusta el tamaño según necesites */
    height: auto;
}