/* Superficie de evaluación compartida: público y portal MIA.
   Encabezado VOCABLO: fondo #202B53, títulos #77B82A y texto #FFFFFF.
   El fondo alrededor de las tarjetas es blanco con textos oscuros legibles.
   Las tarjetas blancas conservan textos oscuros y los colores de las respuestas;
   los botones heredan las clases estándar de MIA, sin sobrescrituras de color locales. */
.mia-eval {
    --eval-blue: #0878e8;
    --eval-ink: #122c50;
    --eval-muted: #536a83;
    position: relative;
    isolation: isolate;
    color: var(--eval-ink);
    background: #FFFFFF;
    border-radius: 24px;
    overflow: clip;
    padding-bottom: 20px;
    min-width: 0;
}
.placement-public-page { min-height: 100dvh; color: #122c50; background: #FFFFFF; padding: clamp(0px, 2vw, 28px); }
.placement-public-page > .mia-eval { max-width: 1180px; min-height: calc(100dvh - 56px); margin-inline: auto; }
.mia-eval-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 260px;
    padding: 36px clamp(24px, 6vw, 76px) 80px;
    color: #fff;
    background: #202B53;
}
.mia-eval-hero-content { position: relative; z-index: 1; max-width: 740px; }
.mia-eval-brand { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFFFFF; }
.mia-eval-brand-divider { width: 1px; height: 13px; margin-inline: 7px; background: #ffffff65; }
.mia-eval-hero h1 { color: #77B82A; font-size: clamp(1.85rem, 4.2vw, 3.1rem); font-weight: 750; letter-spacing: -.035em; margin: 18px 0 10px; overflow-wrap: anywhere; }
.mia-eval-hero p { max-width: 620px; margin: 0; font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.6; color: #FFFFFF; text-wrap: pretty; }
.mia-eval-hero-art { position: absolute; right: 6%; top: 34px; font-size: 108px; line-height: 1; color: #77B82A; opacity: .3; transform: rotate(12deg); pointer-events: none; }
.mia-eval-spark { position: absolute; font-size: 33px; top: -4px; left: -22px; color: #FFFFFF; }
.mia-eval-spark-small { position: absolute; font-size: 20px; bottom: -10px; right: -6px; color: #77B82A; }
.mia-eval-waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: 76px; pointer-events: none; }
.mia-eval-content { position: relative; width: min(100% - 64px, 880px); margin: -26px auto 0; z-index: 1; }
.mia-eval-content > h2 { color: #202B53; }
.mia-eval-footer { text-align: center; color: var(--eval-muted); font-size: .78rem; padding: 24px 18px 0; }
.mia-eval-footer i { margin-right: 5px; color: #77B82A; }
.mia-eval .card { --eval-ink: #122c50; --eval-muted: #536a83; background: #fff; color: var(--eval-ink); }
.mia-eval .text-muted { color: var(--eval-muted) !important; }
.mia-eval .mia-eval-card,
.mia-eval-nav {
    --eval-ink: #122c50;
    --eval-muted: #536a83;
    background: #fff;
    color: #122c50;
    border: 1px solid #e3eef6;
    border-radius: 26px;
    box-shadow: 0 16px 48px #135c9a14, 0 3px 12px #135c9a05;
    overflow: hidden;
}
.mia-eval-intro { padding: clamp(24px, 4vw, 48px); }
.mia-eval-eyebrow { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #0874d8; margin-bottom: 18px; }
.mia-eval-eyebrow > i { font-size: 26px; background: #e8f5ff; border-radius: 12px; padding: 8px; line-height: 1; }
.mia-eval-intro h2 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); color: var(--eval-ink); letter-spacing: -.025em; margin-bottom: 12px; }
.mia-eval-intro p { color: var(--eval-muted); line-height: 1.7; max-width: 620px; }
.mia-eval-form { margin-top: 28px; }
.mia-eval-form label { font-weight: 600; font-size: .9rem; color: #253f60; }
.mia-eval-form .form-control { min-height: 52px; border: 1px solid #d4e1ed; border-radius: 12px; margin-top: 8px; padding: 12px 16px; background: #fbfdff; color: #122c50; transition: border-color 180ms, box-shadow 180ms, background 180ms; }
.mia-eval-form .form-control:focus { background: #fff; border-color: #0878e8; box-shadow: 0 0 0 3px #0878e81f; }
.mia-eval-form-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--eval-muted); font-size: .8rem; }
.mia-eval-notice { color: #47637d; font-size: .86rem; padding: 14px 20px; background: #e5f3ff; border: 1px solid #cfe5f6; border-radius: 14px; margin: 0 0 18px; white-space: pre-wrap; }
.mia-eval-block { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #FFFFFF; font-size: .86rem; margin: 0 4px 14px; padding: 8px 12px; border-radius: 12px; background: #202B53; }
.mia-eval-block strong { color: #77B82A; }
.mia-eval-nav { margin-bottom: 20px; }
.mia-eval-nav .mia-eval-section { padding: 26px clamp(22px, 4vw, 42px) 0; background: transparent; border: 0; }
.mia-eval-section h2 { color: #123762; font-size: 1.08rem; font-weight: 750; display: flex; align-items: center; gap: 12px; }
.mia-eval-section h2 > i { color: #008af0; font-size: 30px; line-height: 1; }
.mia-eval-section p { color: #536a83 !important; font-size: .9rem; line-height: 1.65; }
.mia-eval-nav .card-body { padding: 24px clamp(22px, 4vw, 42px) 36px; }
.mia-eval-question-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; color: #536a83; }
.mia-eval-question-meta h3 { color: #536a83; font-size: .78rem; font-weight: 600; }
.mia-eval-question-meta > span { font-size: .72rem; color: #526c86; background: #f0f5f9; border-radius: 20px; padding: 3px 9px; white-space: nowrap; }
.mia-eval-progress { height: 4px; border-radius: 8px; background: #eaf1f7; margin-bottom: 30px; overflow: hidden; }
.mia-eval-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #35b7fc, #0878e8); border-radius: inherit; transition: width 200ms ease; }
.mia-eval-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.mia-eval-fieldset legend { float: none; width: 100%; padding: 0; margin: 0 0 22px; color: #102e55; font-size: clamp(1.35rem, 2.5vw, 1.85rem) !important; line-height: 1.4; font-weight: 700 !important; letter-spacing: -.025em; overflow-wrap: anywhere; }
.mia-eval-question-media:has(img) { padding: 18px; margin: 0 auto 24px !important; background: linear-gradient(135deg, #effaff, #e5f3ff); border-radius: 20px; }
.mia-eval-question-media img { width: auto; max-width: 100%; max-height: 320px !important; object-fit: contain; border: 0 !important; border-radius: 12px !important; }
.mia-eval-option { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 16px 20px; margin: 0 0 12px; background: #fff; color: #18385d; border: 2px solid #e1e8ef; border-radius: 16px; cursor: pointer; font-size: 1.05rem; font-weight: 550; transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 150ms ease; }
.mia-eval-option-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mia-eval-option-content > span { white-space: pre-wrap; }
.mia-eval-option input[type=radio] { appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 0; border: 2px solid #bdcad7; border-radius: 50%; background: #fff; cursor: pointer; transition: border-color 180ms ease, box-shadow 180ms ease; }
.mia-eval-option input[type=radio]:checked { border: 7px solid #0878e8; animation: mia-eval-radio-pulse 240ms ease-out; }
.mia-eval-option:has(input:checked) { color: #0757ad; border-color: #1685ed; background: #e8f4ff; box-shadow: 0 0 0 1px #1685ed0d; }
.mia-eval-option:has(input:focus-visible) { outline: 3px solid #0a67b8; outline-offset: 3px; }
.mia-eval-option input:focus-visible { outline: none; }
.mia-eval-option:active:not(:has(input:disabled)) { transform: scale(.988); }
.mia-eval-fieldset:disabled .mia-eval-option { cursor: wait; }
.mia-eval-option-skip { background: #fbfcfe; }
.mia-eval-option-skip input[type=radio] { position: absolute; opacity: 0; }
.mia-eval-skip-icon { flex: 0 0 24px; color: #b97808; font-size: 27px; line-height: 1; }
.mia-eval-option-skip:has(input:checked) { border-color: #dfad4f; background: #fff7e6; color: #76500a; box-shadow: 0 0 0 1px #dfad4f12; }
.mia-eval-option-skip:has(input:checked) .mia-eval-skip-icon { animation: mia-eval-skip-pulse 240ms ease-out; }
.mia-eval-nav .text-muted { color: #536a83 !important; }
.mia-eval-nav textarea, .mia-eval-nav select, .mia-eval-nav .form-control { border-radius: 10px; }
@media (hover: hover) {
    .mia-eval-option:hover:not(:has(input:disabled)) { border-color: #80b8e8; background: #f5faff; }
    .mia-eval-option:has(input:checked):hover { background: #e0efff; border-color: #1685ed; }
    .mia-eval-option-skip:hover:not(:has(input:disabled)), .mia-eval-option-skip:has(input:checked):hover { border-color: #dfad4f; background: #fff7e6; }
}
@keyframes mia-eval-radio-pulse { 0% { box-shadow: 0 0 0 0 #0878e833; } 65% { box-shadow: 0 0 0 6px #0878e814; } 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes mia-eval-skip-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@media (max-width: 600px) {
    .placement-public-page { padding: 0; }
    .placement-public-page > .mia-eval { min-height: 100dvh; border-radius: 0; }
    .mia-eval { border-radius: 18px; }
    .mia-eval-hero { min-height: 220px; padding: 28px 22px 72px; }
    .mia-eval-hero-art { font-size: 76px; right: 22px; top: 55px; opacity: .16; }
    .mia-eval-brand { font-size: .65rem; }
    .mia-eval-content { width: calc(100% - 24px); margin-top: -20px; }
    .mia-eval .mia-eval-card, .mia-eval-nav { border-radius: 20px; }
    .mia-eval-option { padding: 14px; gap: 12px; font-size: 1rem; min-height: 62px; border-radius: 13px; }
    .mia-eval-question-media:has(img) { padding: 10px; }
    .mia-eval-question-media img { max-height: 240px !important; }
    .mia-eval-form .btn-primary { width: 100%; }
    .mia-eval-block { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mia-eval *, .mia-eval-nav *, .mia-eval-option, .mia-eval-option * { animation: none !important; transition: none !important; }
    .mia-eval-option:active:not(:has(input:disabled)) { transform: none; }
}
