
:root{
    --v9-cyan:#69e3d1;
    --v9-violet:#7a62ff;
    --v9-gold:#e6bd69;
    --v9-rose:#ff9bad;
    --v9-panel:rgba(16,28,61,.78);
    --v9-panel-strong:rgba(12,22,51,.94);
}

.v9-command-deck{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:8px 18px;
    padding:14px 4px;
    align-items:start;
}
.v9-command{
    position:relative;
    display:flex;
    min-width:0;
    padding:12px 4px 12px 46px;
    align-items:center;
    color:var(--mp-text,#f6f8ff);
    text-decoration:none;
    font-weight:850;
    line-height:1.25;
}
.v9-command::after{
    content:"";
    position:absolute;
    left:46px;
    right:4px;
    bottom:5px;
    height:2px;
    border-radius:99px;
    background:linear-gradient(90deg,var(--v9-violet),transparent);
    opacity:.38;
    transform:scaleX(.22);
    transform-origin:left;
    transition:.2s ease;
}
.v9-command:hover::after,
.v9-command:focus-visible::after{
    opacity:1;
    transform:scaleX(1);
}
.v9-command__icon{
    position:absolute;
    left:3px;
    display:grid;
    width:34px;
    height:34px;
    place-items:center;
    border:1px solid rgba(255,255,255,.14);
    border-radius:50%;
    background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.18),rgba(109,86,245,.14));
    box-shadow:0 9px 26px rgba(0,0,0,.26);
}
.v9-command small{
    display:block;
    margin-top:3px;
    color:var(--mp-soft,#aeb7d1);
    font-size:10px;
    font-weight:650;
}
.v9-process-grid,
.v9-instrument-grid,
.v9-directory-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.v9-process-card,
.v9-instrument-card,
.v9-directory-card{
    position:relative;
    display:flex;
    min-width:0;
    min-height:230px;
    padding:20px;
    flex-direction:column;
    overflow:hidden;
    border:1px solid rgba(154,173,224,.24);
    border-radius:22px;
    background:
        radial-gradient(circle at 100% 0,rgba(122,98,255,.16),transparent 13rem),
        linear-gradient(145deg,rgba(21,36,78,.94),rgba(12,22,51,.9));
    box-shadow:0 18px 50px rgba(0,0,0,.18);
}
.v9-process-card::before,
.v9-instrument-card::before{
    content:"";
    position:absolute;
    inset:auto -40px -72px auto;
    width:150px;
    height:150px;
    border:1px solid rgba(230,189,105,.24);
    border-radius:50%;
}
.v9-process-card h3,
.v9-instrument-card h3,
.v9-directory-card h3{
    margin:8px 0;
    font-size:clamp(20px,1.45vw,28px);
    line-height:1.12;
}
.v9-process-card p,
.v9-instrument-card p,
.v9-directory-card p{
    color:var(--mp-soft,#aeb7d1);
    line-height:1.58;
}
.v9-card-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:auto;
    padding-top:15px;
}
.v9-progress{
    height:8px;
    margin:13px 0 7px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,.08);
}
.v9-progress span{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,var(--v9-violet),var(--v9-cyan),var(--v9-gold));
}
.v9-review-note{
    margin-top:12px;
    padding:12px 14px;
    border:1px solid rgba(105,227,209,.24);
    border-radius:14px;
    background:rgba(105,227,209,.06);
    color:#bff9ef;
    font-size:12px;
    line-height:1.55;
}
.v9-category-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin:14px 0 20px;
}
.v9-category-tab{
    display:inline-flex;
    padding:8px 11px;
    align-items:center;
    gap:7px;
    border:0;
    border-bottom:2px solid rgba(255,255,255,.16);
    background:transparent;
    color:var(--mp-soft,#aeb7d1);
    font:inherit;
    font-size:12px;
    font-weight:850;
    cursor:pointer;
}
.v9-category-tab.is-active,
.v9-category-tab:hover{
    border-color:var(--v9-gold);
    color:#fff;
}
.v9-switch{
    display:flex;
    padding:16px;
    align-items:flex-start;
    gap:13px;
    border:1px solid rgba(105,227,209,.22);
    border-radius:18px;
    background:rgba(105,227,209,.055);
}
.v9-switch input{
    width:23px;
    height:23px;
    flex:0 0 auto;
    accent-color:var(--v9-violet);
}
.v9-selection-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:11px;
}
.v9-selection{
    position:relative;
}
.v9-selection input{
    position:absolute;
    opacity:0;
}
.v9-selection label{
    display:block;
    min-height:132px;
    padding:16px;
    border:1px solid rgba(154,173,224,.2);
    border-radius:17px;
    background:rgba(255,255,255,.025);
    cursor:pointer;
    transition:.18s ease;
}
.v9-selection input:checked + label{
    border-color:rgba(105,227,209,.58);
    background:linear-gradient(145deg,rgba(105,227,209,.09),rgba(122,98,255,.11));
    box-shadow:0 0 0 3px rgba(105,227,209,.07);
}
.v9-selection label strong{
    display:block;
    margin-bottom:6px;
    color:#fff;
}
.v9-selection label small{
    color:var(--mp-soft,#aeb7d1);
    line-height:1.55;
}
.v9-profile-summary{
    display:grid;
    grid-template-columns:minmax(240px,.8fr) minmax(0,2.2fr);
    gap:16px;
}
.v9-stat-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.v9-stat{
    padding:14px;
    border:1px solid rgba(154,173,224,.2);
    border-radius:15px;
    background:rgba(255,255,255,.025);
}
.v9-stat span{
    display:block;
    color:var(--mp-soft,#aeb7d1);
    font-size:11px;
}
.v9-stat strong{
    display:block;
    margin-top:5px;
    font-size:20px;
}
.v9-stage-list{
    display:grid;
    gap:10px;
}
.v9-stage{
    display:grid;
    grid-template-columns:38px minmax(0,1fr) auto;
    gap:12px;
    padding:14px;
    align-items:center;
    border:1px solid rgba(154,173,224,.18);
    border-radius:16px;
    background:rgba(255,255,255,.022);
}
.v9-stage__number{
    display:grid;
    width:34px;
    height:34px;
    place-items:center;
    border-radius:50%;
    background:rgba(122,98,255,.18);
    color:#fff;
    font-weight:900;
}
.v9-stage.completed{
    border-color:rgba(105,227,209,.28);
}
.v9-stage.completed .v9-stage__number{
    background:rgba(105,227,209,.2);
    color:#aef4e7;
}
.v9-question-shell{
    width:min(920px,100%);
    margin:0 auto;
}
.v9-question-card{
    min-height:440px;
    padding:clamp(22px,4vw,42px);
    border:1px solid rgba(154,173,224,.24);
    border-radius:24px;
    background:var(--v9-panel-strong);
}
.v9-question-title{
    margin:18px 0 24px;
    font-size:clamp(25px,3.5vw,42px);
    line-height:1.25;
}
.v9-scale-options{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:9px;
}
.v9-answer{
    position:relative;
}
.v9-answer input{
    position:absolute;
    opacity:0;
}
.v9-answer label{
    display:flex;
    min-height:88px;
    padding:11px;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(154,173,224,.23);
    border-radius:15px;
    background:rgba(255,255,255,.035);
    text-align:center;
    cursor:pointer;
    font-size:12px;
    line-height:1.4;
}
.v9-answer input:checked + label{
    border-color:var(--v9-cyan);
    background:rgba(105,227,209,.11);
    color:#fff;
}
.v9-special-options{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:15px;
}
.v9-special-option{
    padding:8px 10px;
    border:1px solid rgba(154,173,224,.22);
    border-radius:999px;
    background:transparent;
    color:var(--mp-soft,#aeb7d1);
    font:inherit;
    font-size:11px;
    cursor:pointer;
}
.v9-instrument-nav{
    display:flex;
    margin-top:20px;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.v9-save-state{
    color:var(--mp-soft,#aeb7d1);
    font-size:12px;
}
.v9-complete-hero{
    padding:30px;
    border:1px solid rgba(105,227,209,.3);
    border-radius:23px;
    background:
        radial-gradient(circle at 100% 0,rgba(105,227,209,.14),transparent 17rem),
        rgba(16,39,58,.7);
}
.v9-login-brand{
    display:flex;
    justify-content:center;
    margin:14px 0 26px;
}
.v9-login-brand img{
    width:min(290px,75%);
    height:auto;
    object-fit:contain;
}
.v9-inline-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
@media(max-width:1250px){
    .v9-command-deck{grid-template-columns:repeat(3,minmax(0,1fr))}
    .v9-process-grid,.v9-instrument-grid,.v9-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
    .v9-profile-summary,.v9-selection-grid{grid-template-columns:1fr}
    .v9-scale-options{grid-template-columns:1fr}
    .v9-answer label{min-height:50px;justify-content:flex-start;text-align:left}
    .v9-stage{grid-template-columns:34px minmax(0,1fr)}
    .v9-stage > :last-child{grid-column:2}
}
@media(max-width:620px){
    .v9-command-deck,.v9-process-grid,.v9-instrument-grid,.v9-directory-grid{grid-template-columns:1fr}
    .v9-stat-list{grid-template-columns:1fr}
}

/* V9.1 — apertura, procesos, biblioteca y cuestionarios */
.v9-page-intro,
.v9-home-focus,
.v9-instrument-section,
.v9-form-block{
    margin-top:20px;
    padding:clamp(18px,2.2vw,28px);
    border:1px solid rgba(154,173,224,.2);
    border-radius:22px;
    background:
        radial-gradient(circle at 100% 0,rgba(122,98,255,.11),transparent 18rem),
        rgba(13,23,52,.72);
}
.v9-page-intro:first-child{margin-top:0}
.v9-section-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:16px;
}
.v9-section-heading h2{margin:4px 0 3px}
.v9-section-heading p{margin:0;color:var(--mp-soft,#aeb7d1);line-height:1.55}
.v9-text-link,
.v9-card-link{
    display:inline-flex;
    width:max-content;
    margin-top:auto;
    padding:10px 0 5px;
    border-bottom:2px solid rgba(105,227,209,.42);
    color:#fff;
    text-decoration:none;
    font-weight:850;
}
.v9-text-link:hover,
.v9-card-link:hover{border-color:var(--v9-gold);color:#fff}
.v9-state-pill,
.v9-review-status{
    display:inline-flex;
    width:max-content;
    padding:7px 10px;
    align-items:center;
    border:1px solid rgba(154,173,224,.22);
    border-radius:999px;
    background:rgba(255,255,255,.035);
    color:var(--mp-soft,#aeb7d1);
    font-size:11px;
    font-weight:850;
}
.v9-state-pill.is-enabled,
.v9-review-status{
    border-color:rgba(105,227,209,.3);
    background:rgba(105,227,209,.08);
    color:#bff9ef;
}
.v9-process-card{min-height:340px}
.v9-process-card.is-active{border-color:rgba(105,227,209,.34)}
.v9-process-card header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}
.v9-process-card h2{margin:7px 0;font-size:clamp(23px,2vw,32px)}
.v9-progress-summary{margin:15px 0}
.v9-progress-summary > div:first-child{display:flex;align-items:baseline;gap:8px}
.v9-progress-summary strong{font-size:30px}
.v9-progress-summary span,.v9-progress-summary small{color:var(--mp-soft,#aeb7d1)}
.v9-progress-line{
    height:8px;
    margin:10px 0 7px;
    overflow:hidden;
    border-radius:99px;
    background:rgba(255,255,255,.08);
}
.v9-progress-line span{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,var(--v9-violet),var(--v9-cyan),var(--v9-gold));
}
.v9-specialist-line{font-size:12px}
.v9-process-instruments{display:grid;gap:8px;margin-top:auto;padding-top:12px}
.v9-process-instrument-row{
    display:flex;
    padding:11px 0;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-top:1px solid rgba(154,173,224,.14);
}
.v9-process-instrument-row strong,
.v9-process-instrument-row span{display:block}
.v9-process-instrument-row span{margin-top:3px;color:var(--mp-soft,#aeb7d1);font-size:11px}
.v9-process-instrument-row a{color:#fff;text-decoration:none;font-weight:850;font-size:12px}
.v9-category-tabs button{
    display:inline-flex;
    padding:8px 11px;
    border:0;
    border-bottom:2px solid rgba(255,255,255,.16);
    background:transparent;
    color:var(--mp-soft,#aeb7d1);
    font:inherit;
    font-size:12px;
    font-weight:850;
    cursor:pointer;
}
.v9-category-tabs button.is-active,
.v9-category-tabs button:hover{border-color:var(--v9-gold);color:#fff}
.v9-instrument-card{min-height:300px}
.v9-instrument-card.is-deep{border-color:rgba(230,189,105,.27)}
.v9-instrument-icon{
    display:grid;
    width:42px;
    height:42px;
    margin-bottom:10px;
    place-items:center;
    border:1px solid rgba(255,255,255,.13);
    border-radius:50%;
    background:rgba(122,98,255,.14);
    font-size:19px;
}
.v9-inline-meta{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:11px 0;
}
.v9-inline-meta span{
    padding:6px 8px;
    border-radius:999px;
    background:rgba(255,255,255,.055);
    color:var(--mp-soft,#aeb7d1);
    font-size:10px;
    font-weight:750;
}
.v9-locked-pack,
.v9-callout,
.v9-sensitive-banner{
    padding:16px;
    border:1px solid rgba(230,189,105,.24);
    border-radius:17px;
    background:rgba(230,189,105,.06);
    color:#f3dfb3;
    line-height:1.55;
}
.v9-locked-pack strong,.v9-locked-pack span{display:block}
.v9-locked-pack p{color:var(--mp-soft,#aeb7d1)}
.v9-locked-pack.is-compact{display:flex;align-items:center;justify-content:space-between;gap:12px}
.v9-process-preview-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}
.v9-process-preview{
    display:flex;
    min-height:230px;
    padding:17px;
    flex-direction:column;
    border:1px solid rgba(154,173,224,.2);
    border-radius:18px;
    background:rgba(255,255,255,.025);
}
.v9-process-preview h3{margin:7px 0;font-size:21px}
.v9-process-preview p{color:var(--mp-soft,#aeb7d1);line-height:1.5}
.v9-basic-preview-rail,
.v9-consultant-rail{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(210px,1fr);
    gap:11px;
    overflow-x:auto;
    padding:2px 2px 8px;
    scroll-snap-type:x proximity;
}
.v9-basic-preview,
.v9-consultant-mini{
    display:flex;
    min-height:180px;
    padding:16px;
    flex-direction:column;
    border:1px solid rgba(154,173,224,.2);
    border-radius:18px;
    background:linear-gradient(145deg,rgba(21,36,78,.9),rgba(12,22,51,.82));
    color:#fff;
    text-decoration:none;
    scroll-snap-align:start;
}
.v9-basic-preview strong,.v9-consultant-mini strong{font-size:17px;line-height:1.3}
.v9-basic-preview small,.v9-consultant-mini small{margin-top:7px;color:var(--mp-soft,#aeb7d1)}
.v9-consultant-mini em{margin-top:auto;color:#bff9ef;font-size:11px;font-style:normal;font-weight:850}
.v9-kpi-link{color:inherit;text-decoration:none}
.v9-kpi-link small{display:block;margin-top:8px;color:#bff9ef;font-size:10px}
.v9-command-deck > a{
    position:relative;
    display:flex;
    min-width:0;
    padding:13px 5px 11px;
    flex-direction:column;
    border-bottom:2px solid rgba(154,173,224,.18);
    color:#fff;
    text-decoration:none;
}
.v9-command-deck > a::after{
    content:"";
    position:absolute;
    left:0;
    right:65%;
    bottom:-2px;
    height:2px;
    background:linear-gradient(90deg,var(--v9-violet),var(--v9-cyan));
    transition:.2s ease;
}
.v9-command-deck > a:hover::after{right:0}
.v9-command-deck > a span{margin-top:4px;color:var(--mp-soft,#aeb7d1);font-size:10px}
.v9-profile-summary.is-compact{grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0}
.v9-opening-form{padding:0;overflow:hidden}
.v9-form-block{margin:0;border:0;border-bottom:1px solid rgba(154,173,224,.17);border-radius:0;background:transparent}
.v9-feature-toggle{
    display:flex;
    padding:18px;
    align-items:flex-start;
    gap:14px;
    border:1px solid rgba(105,227,209,.26);
    border-radius:18px;
    background:rgba(105,227,209,.06);
    cursor:pointer;
}
.v9-feature-toggle input{width:24px;height:24px;accent-color:var(--v9-violet)}
.v9-feature-toggle strong,.v9-feature-toggle small{display:block}
.v9-feature-toggle small{margin-top:5px;color:var(--mp-soft,#aeb7d1)}
.v9-process-selection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.v9-process-choice{position:relative}
.v9-process-choice input{position:absolute;opacity:0}
.v9-process-choice > span{
    display:flex;
    min-height:155px;
    padding:17px;
    flex-direction:column;
    border:1px solid rgba(154,173,224,.2);
    border-radius:18px;
    background:rgba(255,255,255,.025);
    cursor:pointer;
    transition:.18s ease;
}
.v9-process-choice input:checked + span{
    border-color:rgba(105,227,209,.54);
    background:linear-gradient(145deg,rgba(105,227,209,.09),rgba(122,98,255,.11));
    box-shadow:0 0 0 3px rgba(105,227,209,.06);
}
.v9-process-choice strong{font-size:18px}
.v9-process-choice small{margin-top:7px;color:var(--mp-soft,#aeb7d1);line-height:1.5}
.v9-process-choice em{margin-top:auto;padding-top:10px;color:#f3dfb3;font-size:11px;font-style:normal}
.v9-submit-bar{
    display:flex;
    padding:20px clamp(18px,2.2vw,28px);
    align-items:center;
    justify-content:space-between;
    gap:18px;
    background:rgba(7,14,35,.7);
}
.v9-submit-bar strong,.v9-submit-bar span{display:block}
.v9-submit-bar span{margin-top:4px;color:var(--mp-soft,#aeb7d1);font-size:11px}
.v9-instrument-shell{padding:clamp(16px,2.4vw,28px)}
.v9-instrument-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}
.v9-instrument-header h1{margin:6px 0}
.v9-save-indicator{
    flex:0 0 auto;
    padding:9px 11px;
    border-radius:999px;
    background:rgba(255,255,255,.045);
    color:var(--mp-soft,#aeb7d1);
    font-size:11px;
    font-weight:850;
}
.v9-save-indicator[data-status="saved"]{background:rgba(105,227,209,.08);color:#bff9ef}
.v9-save-indicator[data-status="error"]{background:rgba(255,155,173,.09);color:#ffc2cd}
.v9-questionnaire{width:min(980px,100%);margin:20px auto 0}
.v9-progress-head{display:flex;justify-content:space-between;gap:15px;color:var(--mp-soft,#aeb7d1);font-size:12px}
.v9-progress-track{height:8px;margin:9px 0 18px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.08)}
.v9-progress-track span{display:block;height:100%;background:linear-gradient(90deg,var(--v9-violet),var(--v9-cyan),var(--v9-gold))}
.v9-question-screen{
    min-height:470px;
    padding:clamp(22px,4vw,42px);
    border:1px solid rgba(154,173,224,.24);
    border-radius:24px;
    background:var(--v9-panel-strong);
}
.v9-question-screen h2{margin:17px 0 13px;font-size:clamp(24px,3.2vw,39px);line-height:1.26}
.v9-question-help{color:var(--mp-soft,#aeb7d1);line-height:1.55}
.v9-scale-option,.v9-single-option{position:relative}
.v9-scale-option input,.v9-single-option input{position:absolute;opacity:0}
.v9-scale-option > span,
.v9-single-option > span{
    display:flex;
    min-height:90px;
    padding:12px;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(154,173,224,.22);
    border-radius:15px;
    background:rgba(255,255,255,.03);
    text-align:center;
    cursor:pointer;
}
.v9-scale-option > span{flex-direction:column;gap:7px;font-size:11px}
.v9-scale-option > span strong{font-size:22px}
.v9-scale-option input:checked + span,
.v9-single-option input:checked + span{border-color:var(--v9-cyan);background:rgba(105,227,209,.1)}
.v9-single-options{display:grid;gap:9px;margin-top:17px}
.v9-single-option > span{min-height:58px;justify-content:flex-start;text-align:left}
.v9-question-screen textarea{width:100%;margin:15px 0}
.v9-special-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.v9-special-actions button{
    padding:8px 10px;
    border:1px solid rgba(154,173,224,.2);
    border-radius:999px;
    background:transparent;
    color:var(--mp-soft,#aeb7d1);
    font:inherit;
    font-size:11px;
    cursor:pointer;
}
.v9-special-actions button:hover{border-color:var(--v9-gold);color:#fff}
.v9-consent-card,.v9-completion-card,.v9-empty-state{
    padding:clamp(22px,4vw,40px);
    border:1px solid rgba(154,173,224,.22);
    border-radius:23px;
    background:rgba(13,23,52,.78);
}
.v9-completion-card{border-color:rgba(105,227,209,.3)}
.v9-safety-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:18px 0}
.v9-safety-grid article{padding:15px;border:1px solid rgba(154,173,224,.18);border-radius:16px;background:rgba(255,255,255,.025)}
.v9-safety-grid p{color:var(--mp-soft,#aeb7d1);line-height:1.5}
.v9-choice-line{display:flex;padding:15px;align-items:flex-start;gap:11px;border:1px solid rgba(105,227,209,.24);border-radius:15px;background:rgba(105,227,209,.05)}
.v9-choice-line input{width:22px;height:22px;accent-color:var(--v9-violet)}

@media(max-width:1100px){
    .v9-process-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .v9-safety-grid{grid-template-columns:1fr}
}
@media(max-width:820px){
    .v9-section-heading,.v9-submit-bar,.v9-instrument-header{align-items:flex-start;flex-direction:column}
    .v9-profile-summary.is-compact,.v9-process-selection-grid{grid-template-columns:1fr}
    .v9-locked-pack.is-compact{align-items:flex-start;flex-direction:column}
    .v9-process-instrument-row{align-items:flex-start;flex-direction:column}
}
@media(max-width:620px){
    .v9-process-preview-grid{grid-template-columns:1fr}
    .v9-question-screen{min-height:420px;padding:20px}
}
