/* CJRD V702 · sólo ruta CJRD, sin modificar Header/Footer global. */
body:has(.cjrd3) main.cjrd3{background:#050506!important;color:#f4f6f8!important;min-height:100%;}
body:has(.cjrd3) .jc-ms685-identity--cjrd{background:#050506!important;box-shadow:none!important;border:0!important;color:#f4f6f8!important;margin-bottom:0!important;border-radius:0!important;}
body:has(.cjrd3) .jc-ms685-identity--cjrd:after{display:none!important;}
body:has(.cjrd3) .jc-ms685-identity--cjrd .jc-ms685-identity__brand{background:#050506!important;box-shadow:none!important;}
body:has(.cjrd3) .jc-ms685-identity--cjrd .jc-ms685-identity__back{background:#17191b!important;color:#fff!important;border-color:#474747!important;box-shadow:none!important;}
body:has(.cjrd3) .cjrd3-shell,body:has(.cjrd3) .cjrd3-studio,body:has(.cjrd3) .cjrd3-viewer{background:#050506!important;}
body:has(.cjrd3) .cjrd3-panel,body:has(.cjrd3) .cjrd3-panel.is-active{background-color:#090b0e!important;color:#f4f6f8!important;}
/* El flotante va al body para escapar del apilamiento visual de la APP. */
.cjrd702-dialog[hidden]{display:none!important;}
.cjrd702-dialog{position:fixed!important;inset:0!important;z-index:2147483001!important;background:rgba(0,0,0,.83)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important;box-sizing:border-box!important;overflow:auto!important;}
.cjrd702-dialog__surface{width:min(620px,100%);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;border:1px solid #34404b;border-radius:16px;background:#0d1117;color:#e8eef4;box-shadow:0 22px 75px rgba(0,0,0,.8);overflow:hidden;}
.cjrd702-dialog__head{padding:12px 14px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #30363d;background:#10151a;gap:12px;flex-shrink:0;}
.cjrd702-dialog__head strong{font-size:14px;color:#fff;letter-spacing:.02em;}
.cjrd702-dialog__head button{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #55606b;border-radius:50%;background:#1c2730;color:#fff;font-size:26px;cursor:pointer;}
.cjrd702-dialog__body{overflow:auto;overscroll-behavior:contain;padding:14px;scrollbar-color:#607387 #0b1014;}
.cjrd702-dialog__body .cjrd319-program-form{margin:0;max-width:none;width:100%;}
.cjrd702-dialog__body details{scroll-margin:18px;}
.cjrd702-dialog__body .cjrd319-legal{margin:10px auto;}
.cjrd702-dialog :is(input,textarea,select){color-scheme:dark;}
.cjrd702-dialog :focus-visible{outline:2px solid #ffc16f;outline-offset:2px;}
body.cjrd702-modal-open{overflow:hidden!important;}
@media(max-width:620px){.cjrd702-dialog{padding:8px!important;}.cjrd702-dialog__surface{width:100%;max-height:calc(100dvh - 16px);border-radius:12px;}.cjrd702-dialog__body{padding:9px 10px 14px;}.cjrd702-dialog__head{padding:8px 11px;}.cjrd702-dialog__head strong{font-size:12px;}}


/* CJRD V703 · corrige exclusivamente la franja / botones heredados del MASTER V685.
 * La cascada V685 usa !important; la especificidad mayor protege aun si carga después.
 * Incluye Mini APP sin clase body de micrositio por medio del selector .cjrd3.
 */
body.jc-master-ms-v685--cjrd .cjrd3 .cjrd3-brandnav,
body .cjrd3 .cjrd3-studio > .cjrd3-brandnav {
    background:#070809!important;
    background-image:none!important;
    color:#f4f6fa!important;
    border-bottom:1px solid #2b3035!important;
    box-shadow:none!important;
}
body.jc-master-ms-v685--cjrd .cjrd3 .cjrd3-brandnav .cjrd3-nav,
body .cjrd3 .cjrd3-studio > .cjrd3-brandnav .cjrd3-nav {
    background:transparent!important;
    background-image:none!important;
}
body.jc-master-ms-v685--cjrd .cjrd3 .cjrd3-nav a,
body .cjrd3 .cjrd3-studio .cjrd3-nav a {
    background:#171a1e!important;
    background-image:none!important;
    border:1px solid #454c55!important;
    color:#f1f4f7!important;
    border-radius:11px!important;
    box-shadow:none!important;
    text-shadow:none!important;
    text-decoration:none!important;
}
body.jc-master-ms-v685--cjrd .cjrd3 .cjrd3-nav a:hover,
body.jc-master-ms-v685--cjrd .cjrd3 .cjrd3-nav a:focus-visible,
body .cjrd3 .cjrd3-studio .cjrd3-nav a:hover,
body .cjrd3 .cjrd3-studio .cjrd3-nav a:focus-visible {
    background:#232931!important;
    border-color:#e8ab6b!important;
    color:#fff!important;
    outline-color:#e8ab6b!important;
}
body.jc-master-ms-v685--cjrd .cjrd3 .cjrd3-nav a.is-active,
body .cjrd3 .cjrd3-studio .cjrd3-nav a.is-active {
    background:#24201c!important;
    border-color:#df9c55!important;
    color:#fff!important;
    box-shadow:inset 0 -2px 0 #f5aa58!important;
}
/* No convertir CJTV o Concurso en botones naranjas completos. */
body.jc-master-ms-v685--cjrd .cjrd3 .cjrd3-nav a.cjrd332-contest-link,
body .cjrd3 .cjrd3-studio .cjrd3-nav a.cjrd332-contest-link,
body.jc-master-ms-v685--cjrd .cjrd3 .cjrd3-nav a.cjrd332-cjtv-link,
body .cjrd3 .cjrd3-studio .cjrd3-nav a.cjrd332-cjtv-link {
    background:#171a1e!important;
    background-image:none!important;
    color:#f1f4f7!important;
}
body.jc-master-ms-v685--cjrd .cjrd3 .cjrd3-nav a.cjrd332-contest-link.is-active,
body .cjrd3 .cjrd3-studio .cjrd3-nav a.cjrd332-contest-link.is-active {
    background:#24201c!important;
    color:#fff!important;
}
