/* ═══════════════════════════════════════════════════════════════
       PALETA OFICIAL DAVOS — Brand Book Septiembre 2023, página 14
       ════════════════════════════════════════════════════════════ */
:root {
    /* Logo Colors */
    --davos-blue: #009FDF;
    /* PANTONE 299 C  — Davos Blue */
    /* Corporate Colors */
    --corp-navy: #073663;
    /* PANTONE 654 C  — Corporate Navy */
    --corp-white: #FFFFFF;
    /* PANTONE White */
    --corp-grey: #C6C6C5;
    /* PANTONE Cool Grey 3 C */
    --corp-grey-light: #ececec;
    /* PANTONE Cool Grey 1 C */
    /* Secondary Colors */
    --sec-blue1: #71C5E8;
    /* PANTONE 297 C */
    --sec-blue2: #0C5896;
    /* PANTONE 7462 C */
    --sec-grey2: #9c9b9b;
    /* PANTONE Cool Grey 7 C */
    --sec-grey3: #575756;
    /* PANTONE Cool Grey 11 C */
    /* Accent Colors (use sparingly — max 25%) */
    --accent-orange: #E78201;
    /* PANTONE 144 C  — Accent Orange */
    --accent-yellow: #FFB500;
    /* PANTONE 7549 C — Accent Yellow */
    /* UI helpers */
    --bg-page: #F2F5F8;
    --bg-card: #FFFFFF;
    --font: 'Roboto Condensed', sans-serif;
}

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-page);
    color: var(--corp-navy);
    line-height: 1.6;
    /* Para usar como página standalone: */
    min-height: 100vh;

    align-items: flex-start;
    justify-content: center;

}

/* ── WRAPPER ── */
#dv-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(7, 54, 99, .12);
}

/* ════════════════════════════════════════════════════════════
       HEADER
    ════════════════════════════════════════════════════════════ */
.dv-accent-bar {
    height: 5px;
    background: var(--accent-orange);
}

.dv-header {
    background: linear-gradient(to bottom,
            #0B549A,
            var(--corp-navy));
    padding: 28px 36px 26px;
    position: relative;
    overflow: hidden;
}

/* Elementos gráficos geométricos del Brand Book */
.dv-header::before {
    content: '';
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: 186px;
    height: 153px;
    background: url('../img/image-diagnostico.webp') no-repeat center;
    background-size: contain;
    /* o cover */
    pointer-events: none;
}

.dv-header::after {
    content: '';
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 79px;
    height: 52px;
    background: url('../img/deco-diagnostico.svg') no-repeat center;
    background-size: contain;
    pointer-events: none;
}

/* Logo SVG */
.dv-logo-area {
    position: absolute;
    top: 20px;
    right: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 3;
}

.dv-logo-wordmark {
    font-size: 16px;
    font-weight: 700;
    color: var(--corp-white);
    letter-spacing: 5px;
    line-height: 1;
    margin-top: 5px;
}

.dv-logo-tagline {
    font-size: 7px;
    color: var(--sec-blue1);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 2px;
}

.dv-header-pretitle {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--sec-blue1);
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.dv-header-title {
    font-size: 23px;
    font-weight: 700;
    color: var(--corp-white);
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 8px;
    max-width: 460px;
    position: relative;
    z-index: 2;
}

.dv-header-title span {
    color: var(--davos-blue);
}

.dv-header-sub {
    font-size: 13px;
    font-weight: 300;
    color: var(--sec-blue1);
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* ════════════════════════════════════════════════════════════
       BODY WRAPPER
    ════════════════════════════════════════════════════════════ */
.dv-body {
    padding: 26px 36px;
}

/* ════════════════════════════════════════════════════════════
       BARRA DE PROGRESO
    ════════════════════════════════════════════════════════════ */
.dv-progress {
    margin-bottom: 22px;
}

.dv-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.dv-progress-dim {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dv-progress-count {
    font-size: 11px;
    color: var(--corp-grey);
    font-weight: 300;
}

.dv-progress-track {
    height: 4px;
    background: var(--corp-grey-light);
    border-radius: 99px;
    overflow: hidden;
}

.dv-progress-fill {
    height: 4px;
    border-radius: 99px;
    background: var(--davos-blue);
    transition: width .4s ease;
}

.dv-dim-strip {
    display: flex;
    gap: 5px;
    margin-top: 9px;
}

.dv-dim-seg {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: var(--corp-grey-light);
    transition: background .3s;
}

/* ════════════════════════════════════════════════════════════
       TARJETA DE PREGUNTA
    ════════════════════════════════════════════════════════════ */
.dv-qcard {
    background: var(--bg-card);
    border: 1px solid var(--corp-grey-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}

.dv-qcard-header {
    padding: 18px 24px 16px;
    border-left: 5px solid var(--davos-blue);
}

.dv-qcard-dim {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--davos-blue);
    margin-bottom: 8px;
}

.dv-qcard-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--corp-navy);
    line-height: 1.35;
    text-transform: uppercase;
}

.dv-qcard-why {
    margin: 0 24px 16px;
    padding: 10px 14px;
    background: #EEF7FD;
    border-left: 3px solid var(--davos-blue);
    font-size: 12px;
    font-weight: 300;
    color: var(--sec-blue2);
    line-height: 1.65;
}

.dv-qcard-why strong {
    color: var(--davos-blue);
    font-weight: 700;
}

/* ── OPCIONES ── */
.dv-options {
    padding: 0 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dv-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    border: 1.5px solid var(--corp-grey-light);
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-card);
    text-align: left;
    width: 100%;
    font-family: var(--font);
    transition: border-color .12s, background .12s;
}

.dv-option:hover {
    border-color: var(--davos-blue);
    background: #F5FBFF;
}

.dv-option.selected {
    border-color: var(--davos-blue);
    background: #EEF7FD;
}

.dv-option-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--corp-grey-light);
    color: var(--corp-grey);
    transition: all .12s;
    font-family: var(--font);
}

.dv-option.selected .dv-option-badge {
    background: var(--davos-blue);
    color: var(--corp-white);
}

.dv-option-body {
    flex: 1;
}

.dv-option-level {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
}

.dv-option-text {
    font-size: 13px;
    color: var(--corp-navy);
    line-height: 1.45;
    font-weight: 400;
}

/* ════════════════════════════════════════════════════════════
       NAVEGACIÓN / BOTONES
    ════════════════════════════════════════════════════════════ */
.dv-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dv-btn {
    padding: 13px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font);
    transition: background .2s, color .2s;
}

.dv-btn-primary {
    background: var(--corp-navy);
    color: var(--corp-white);
}

.dv-btn-primary:hover {
    background: var(--davos-blue);
}

.dv-btn-primary:disabled {
    background: var(--corp-grey-light);
    color: var(--corp-grey);
    cursor: not-allowed;
}

.dv-btn-ghost {
    background: transparent;
    color: var(--corp-grey);
    border: 1px solid var(--corp-grey-light);
}

.dv-btn-ghost:hover {
    border-color: var(--corp-navy);
    color: var(--corp-navy);
}

/* ════════════════════════════════════════════════════════════
       PANTALLA INTRO
    ════════════════════════════════════════════════════════════ */
.dv-intro-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--corp-navy);
    line-height: 1.75;
    margin-bottom: 18px;
}

.dv-intro-desc strong {
    font-weight: 700;
}

.dv-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 16px 0;
}

.dv-intro-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 7px;
    border: 1.5px solid var(--corp-grey-light);
    background: var(--bg-page);
}

.dv-intro-pill-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.dv-intro-pill-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--corp-navy);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dv-intro-stats {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.dv-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dv-stat-icon {
    font-size: 20px;
}

.dv-stat-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dv-stat-sub {
    font-size: 11px;
    color: var(--corp-grey);
    font-weight: 300;
}

.dv-notice {
    background: #FFF5E6;
    border-left: 4px solid var(--accent-orange);
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 300;
    color: #5A3200;
    line-height: 1.65;
    margin: 16px 0;
}

.dv-notice strong {
    color: var(--accent-orange);
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════
       PANTALLA RESULTADO
    ════════════════════════════════════════════════════════════ */
.dv-result-hero {
    background: var(--corp-navy);
    padding: 32px 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dv-result-hero::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 36px solid rgba(0, 159, 223, .15);
}

.dv-result-hero::after {
    content: '';
    position: absolute;
    left: 20px;
    bottom: -30px;
    width: 90px;
    height: 90px;
    background: rgba(0, 159, 223, .08);
    transform: rotate(45deg);
}

.dv-result-emoji {
    font-size: 40px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.dv-result-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.dv-result-pct {
    font-size: 58px;
    font-weight: 700;
    color: var(--corp-white);
    line-height: 1;
    position: relative;
    z-index: 2;
}

.dv-result-pct-label {
    font-size: 10px;
    color: var(--sec-blue1);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 5px;
    position: relative;
    z-index: 2;
}

.dv-result-pts {
    font-size: 11px;
    color: rgba(255, 255, 255, .35);
    margin-top: 3px;
    position: relative;
    z-index: 2;
}

.dv-result-body {
    padding: 24px 36px;
}

.dv-result-message {
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1.5px solid;
}

.dv-result-message h3 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 9px;
    line-height: 1.3;
}

.dv-result-message p {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--corp-navy);
}

/* Barras de dimensión */
.dv-bars-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--corp-grey);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.dv-bar-row {
    margin-bottom: 12px;
}

.dv-bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.dv-bar-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dv-bar-pct {
    font-size: 12px;
    font-weight: 700;
}

.dv-bar-track {
    height: 5px;
    background: var(--corp-grey-light);
    border-radius: 99px;
    overflow: hidden;
}

.dv-bar-fill {
    height: 5px;
    border-radius: 99px;
    transition: width .8s ease;
}

/* Caja de áreas débiles */
.dv-weak-box {
    background: #FFF5E6;
    border: 1.5px solid var(--accent-orange);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 18px 0;
}

.dv-weak-box h4 {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 13px;
}

.dv-weak-item {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #FFE4B5;
}

.dv-weak-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.dv-weak-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.dv-weak-desc {
    font-size: 12px;
    font-weight: 300;
    color: #5A3200;
    line-height: 1.6;
}

/* CTA final */
.dv-cta-box {
    background: var(--corp-navy);
    border-radius: 8px;
    padding: 22px 26px;
    text-align: center;
    margin: 0 0 14px;
}

.dv-cta-box p {
    font-size: 12px;
    color: var(--sec-blue1);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 13px;
}

.dv-cta-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.dv-cta-contact {
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
    font-weight: 300;
}

.dv-restart-btn {
    width: 100%;
    padding: 13px;
    background: transparent;
    color: var(--corp-grey);
    border: 1px solid var(--corp-grey-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font);
    transition: all .2s;
}

.dv-restart-btn:hover {
    border-color: var(--corp-navy);
    color: var(--corp-navy);
}

/* ── ANIMACIÓN ENTRADA ── */
.dv-fade {
    animation: dvFadeUp .22s ease both;
}

@keyframes dvFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {

    .dv-body,
    .dv-result-body {
        padding: 20px 20px;
    }

    .dv-header {
        padding: 22px 20px 20px;
    }

    .dv-header-title {
        font-size: 18px;
    }

    .dv-logo-area {
        top: 16px;
        right: 16px;
    }

    .dv-intro-grid {
        grid-template-columns: 1fr;
    }

    .dv-options {
        padding: 0 16px 16px;
    }

    .dv-qcard-header {
        padding: 14px 16px 12px;
    }

    .dv-qcard-why {
        margin: 0 16px 14px;
    }

    .dv-result-hero {
        padding: 24px 20px 22px;
    }

    .dv-result-pct {
        font-size: 44px;
    }

    .dv-header::before {
        content: '';
        position: absolute;
        right: 0px;
        top: 10px;
        width: 90px;
        height: 90px;
        background: url('../img/logo-movil.png') no-repeat center;
        background-size: contain;
        /* o cover */
        pointer-events: none;
    }
}



.dv-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transition: .35s;
}

.dv-modal.show {
    opacity: 1;
    visibility: visible;
}

.dv-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);

    transform: translateY(20px);
    transition: .35s;
}

.dv-modal.show .dv-modal-content {
    transform: translateY(0);
}

.dv-modal h2 {
    margin-bottom: 15px;
    color: #073663;
    font-size: 30px;
    line-height: normal;
}

.dv-modal p {
    margin-bottom: 30px;
    line-height: 1.6;
}

.dv-modal-btn {
    display: inline-block;
    background: #073663;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.dv-modal-btn:hover {
    background: #009FDF;
}

.dv-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
}