/* HUIL 3.1 · Dirección visual editorial: papel claro, azul petróleo y fotografía.
   Ampliación de la interfaz existente; sin fuentes ni dependencias remotas. */
:root {
  --ink: #142f39; --muted: #536971; --line: #d9e1df;
  --surface: #fff; --surface-soft: #f3f5f1;
  --blue-700: #155c6a; --blue-600: #1c6676; --blue-500: #39859b;
  --cyan-400: #d2e7ad; --cyan-200: #e4f0d2;
  --navy-950: #0c252d; --navy-900: #102f39;
  --shadow-sm: 0 5px 18px #142f3908; --shadow-md: 0 12px 30px #142f390e;
  --shadow-xl: 0 24px 64px #06182028;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 20px;
}
body { background: #f5f6f2; }
.ambient { display: none; }
.topbar { background: #102f39f5; padding-inline: clamp(18px, 3vw, 58px); gap: 18px; }
.institutional-logo { border-radius: 5px; box-shadow: none; }
.brand-copy small { font-size: .875rem; letter-spacing: 0; color: #b7cbd0; }
.desktop-nav { border: 0; background: transparent; border-radius: 0; gap: 0; }
.nav-link { padding-inline: 13px; border-radius: 6px; font-size: .9rem; }
.nav-link.active { color: #102f39; background: #d2e7ad; box-shadow: none; }
.icon-button { min-width: 40px; min-height: 40px; font-size: .875rem; }
.hero-shell { min-height: 680px; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(30px,4vw,78px); padding: clamp(54px,6vw,110px) clamp(24px,5vw,90px) 78px; background: #102f39; }
.hero-shell::before, .hero-shell::after, .page-hero::after { display: none; }
.hero-copy { min-width: 0; }
.eyebrow, .kicker { font-size: .875rem; letter-spacing: .12em; font-weight: 750; line-height: 1.5; }
.hero-copy .eyebrow { max-width: 440px; color: #bcccd0; }
.hero-copy h1 { font-size: clamp(3.2rem,5.2vw,6.2rem); line-height: 1.04; letter-spacing: -.055em; margin-block: 28px; }
.hero-copy h1 span { color: #d2e7ad; }
.hero-lead { max-width: 510px; color: #cfdbde; font-size: clamp(1.05rem,1.3vw,1.2rem); line-height: 1.7; }
.hero-actions { gap: 12px; margin-top: 32px; }
.button, .button.xl { border-radius: 8px; box-shadow: none; font-weight: 700; }
.button.primary { background: #1c6676; color: #fff; box-shadow: none; }
.button.primary:hover { background: #155564; box-shadow: 0 4px 16px #102f391c; }
.button.secondary { color: #155564; background: #e9f0ed; }
.button.white { color: #153b44; box-shadow: none; }
.button.glass { border-color: #708991; background: transparent; backdrop-filter: none; }
.hero-actions .button.primary { color: #132e35; background: #d2e7ad; }
.hero-actions .button.primary:hover { background: #e0efc8; }
.hero-trust { font-size: .875rem; line-height: 1.5; gap: 10px 18px; color: #afc4c9; max-width: 480px; }
.hero-trust span::first-letter { color: inherit; }
.hero-film { margin: 0; padding: 0; align-self: center; }
.film-frame { overflow: hidden; border-radius: 12px 12px 0 0; background: #0b222a; border: 1px solid #4e6a73; }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 704; object-fit: contain; }
.hero-film figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 12px; border-top: 0; }
.hero-film figcaption > div { display: grid; gap: 7px; }
.film-index { font-size: .875rem; letter-spacing: .13em; color: #afc4c9; }
.hero-film figcaption strong { color: #fff; font-weight: 600; font-size: 1rem; }
.film-toggle { flex-shrink: 0; min-height: 44px; max-width: 155px; padding: 10px 14px; border: 1px solid #758e95; border-radius: 6px; background: transparent; color: #fff; font-size: .875rem; }
.film-toggle:hover { background: #ffffff14; }
.film-description { margin: 8px 0 0; color: #b1c5ca; font-size: .875rem; line-height: 1.5; }
.metrics-grid { margin-top: 0; gap: 0; padding-block: 0; border-bottom: 1px solid var(--line); }
.metric-card { min-height: 130px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; padding: 26px 24px; backdrop-filter: none; gap: 20px; }
.metric-card:last-child { border-right: 0; }
.metric-number { font-weight: 500; font-size: clamp(2.6rem,3vw,3.5rem); letter-spacing: -.06em; color: var(--ink); }
.metric-card small { font-size: .875rem; }
.metric-card strong { font-size: 1rem; }
.home-section { padding-top: 78px; }
.section-heading h2, .scenario-banner h2 { font-size: clamp(2rem,3.2vw,3.6rem); font-weight: 650; line-height: 1.1; letter-spacing: -.04em; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); }
.entry-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.entry-card { display: flex; flex-direction: column; gap: 28px; min-width: 0; text-align: left; min-height: 360px; padding: 30px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, transform .2s; }
.entry-card:hover { transform: translateY(-3px); border-color: #8fa4a5; }
.entry-number { color: var(--muted); font-size: 1.5rem; font-weight: 500; }
.entry-card h2, .entry-card h3 { font-size: 1.65rem; font-weight: 650; letter-spacing: -.025em; margin: 10px 0 12px; line-height: 1.18; }
.entry-card small { font-size: .875rem; letter-spacing: .1em; color: var(--muted); }
.entry-card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.entry-link { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; font-size: 1rem; }
.entry-card.featured { background: #e3edcf; border-color: #c9d7b3; }
.entry-card.featured, .entry-card.featured p, .entry-card.featured small, .entry-card.featured .entry-number { color: #234034; }
.entry-card.featured .entry-link { border-color: #b5c69b; }
.prep-card, .daily-card, .quick-tile, .learning-path article { border-radius: 12px; box-shadow: none; }
.prep-ring { filter: none; }
.prep-ring small, .prep-stats span, .daily-foot span { font-size: .875rem; }
.quick-tile { padding: 24px; }
.quick-tile > span:last-child { font-size: 1rem; }
.quick-icon { font-size: 1.4rem; border-radius: 6px; }
.learning-path article { min-height: 235px; }
.learning-path article::after { display: none; }
.learning-path p { font-size: 1rem; }
.path-icon { border-radius: 8px; width: 46px; height: 46px; }
.path-index { font-weight: 500; }
.scenario-banner { background: #173d47; border-radius: 14px; box-shadow: none; margin-top: 72px; margin-bottom: 80px; padding: 42px; }
.scenario-banner .kicker { color: #d2e7ad; }
.scenario-banner p { color: #d3e0e3; font-size: 1rem; }
.simulator-entry { min-width: 260px; flex-shrink: 0; }
.page-hero { background: #102f39; padding-block: 62px; }
.page-hero h1 { font-weight: 650; line-height: 1.08; letter-spacing: -.045em; font-size: clamp(2.65rem,4.5vw,5rem); }
.page-hero h1 span { color: #d2e7ad; }
.page-hero p { color: #c6d8dc; font-size: 1.1rem; max-width: 800px; }
.page-hero .eyebrow { color: #c0d2d7; }
.pulse-dot { animation: none; box-shadow: none; }
.learning-progress { border-radius: 8px; }
.module-toolbar { gap: 20px; }
.filter-pill { font-size: .875rem; border-radius: 6px; min-height: 44px; }
.module-card { box-shadow: none; border-radius: 12px; border-top: 3px solid var(--card-accent); padding: 26px; }
.module-card::before, .module-card::after { display: none; }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.module-number { font-size: 2rem; font-weight: 500; }
.module-category, .status-pill, .module-footer > span { font-size: .875rem; }
.module-card p { font-size: 1rem; }
.module-card h2 { font-size: 1.55rem; font-weight: 650; line-height: 1.15; }
.module-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.module-card-actions .button { flex: 1; min-width: 115px; font-size: .9rem; padding-inline: 12px; }
.module-icon { border-radius: 8px; }
.module-hero { background: #173c46; }
.module-hero::after { opacity: .08; }
.module-hero h1 { font-weight: 650; line-height: 1.08; }
.module-body { max-width: 1060px; }
.module-quiz-cta { background: #173c46; border-radius: 10px; }
.module-next-nav { display: flex; justify-content: space-between; gap: 24px; margin-block: 30px; }
.module-photo, .module-photos, .module-art { border-radius: 10px; }
.module-photo figcaption, .module-photo-image > span, .module-photos-head p, .source-chip { font-size: .875rem; }
.module-photo-image > span { letter-spacing: .04em; }
.exam-stamp { display: grid; text-align: center; gap: 12px; padding: 25px 45px; color: #d2e7ad; border-left: 1px solid #607b82; }
.exam-stamp strong { font-size: 7rem; line-height: 1; font-weight: 450; letter-spacing: -.07em; }
.exam-stamp span { font-size: .875rem; letter-spacing: .15em; }
.test-catalog { display: grid; gap: 0; }
.test-row { display: flex; align-items: center; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.test-number { font-size: 2rem; letter-spacing: -.05em; color: var(--muted); min-width: 50px; font-weight: 450; }
.test-description { flex: 1; min-width: 0; }
.test-description h2 { font-size: 1.45rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; margin: 7px 0; }
.test-description p { color: var(--muted); margin: 6px 0 0; font-size: .9rem; }
.test-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.global-reviews { margin-top: 50px; padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.global-reviews summary { cursor: pointer; font-size: 1.1rem; font-weight: 650; min-height: 34px; }
.global-reviews > p { color: var(--muted); margin-bottom: 28px; }
.level-card { box-shadow: none; border-radius: 12px; }
.level-topics span, .level-status, .level-stats span { font-size: .875rem; }
.question-card { border-radius: 12px; }
.question-card > h1 { font-weight: 650; }
.answer-option, .sequence-item { border-radius: 8px; }
.simulations-shell, .resources-shell { padding-block: 42px 80px; }
.simulation-policy { display: flex; gap: 24px; align-items: flex-start; padding: 22px 26px; border-left: 3px solid #668943; background: #eaf0e3; color: #263e2d; border-radius: 0 8px 8px 0; }
.simulation-policy > span { font-size: .875rem; font-weight: 750; min-width: 132px; letter-spacing: .06em; padding-top: 4px; }
.simulation-policy p { margin: 0; font-size: 1rem; }
.simulation-catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; margin-top: 38px; }
.scenario-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.scenario-cover { position: relative; background: #0d242d; aspect-ratio: 1.48; overflow: hidden; }
.scenario-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.scenario-cover .simulation-watermark { left: 0; right: auto; top: auto; bottom: 0; font-size: .875rem; padding: 7px 10px; background: #102a32f2; }
.scenario-number { position: absolute; top: 16px; left: 18px; width: 46px; height: 46px; display: grid; place-items: center; color: #102f39; background: #fff; border-radius: 50%; font-size: 1.15rem; font-weight: 650; }
.scenario-tile-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.scenario-tile h2 { margin: 12px 0 14px; font-size: 1.8rem; line-height: 1.15; letter-spacing: -.035em; font-weight: 650; }
.scenario-tile p { margin: 0 0 20px; color: var(--muted); font-size: 1rem; }
.scenario-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid var(--line); padding-top: 18px; font-size: .875rem; }
.scenario-tile .scenario-saved { font-size: .875rem; color: #326344; margin: 20px 0 16px; }
.scenario-tile .button { margin-top: auto; }
.resource-note { margin-top: 30px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.resource-note > strong { font-size: 1.2rem; }
.resource-note p { max-width: 900px; color: var(--muted); }
.advanced-sim { width: min(1320px,100%); max-width: 1320px; padding: 44px clamp(20px,4vw,54px) 80px; }
.advanced-sim .sim-header { display: flex; }
.advanced-sim .sim-header > div:not(.score-chip) { flex: 1; min-width: 0; }
.reading-confirm { margin-top: 14px; }
.advanced-sim .sim-header { margin-bottom: 36px; align-items: flex-start; }
.advanced-sim .sim-header h1 { font-size: clamp(2rem,3.3vw,3.7rem); font-weight: 650; line-height: 1.1; letter-spacing: -.04em; }
.advanced-sim .sim-header p { font-size: 1.05rem; }
.advanced-sim .back-button { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.sim-brief-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 38px; align-items: start; }
.scenario-video { margin: 0; min-width: 0; }
.scenario-video-frame { position: relative; background: #0c252d; border-radius: 10px; overflow: hidden; }
.scenario-video video { display: block; width: 100%; max-height: 500px; object-fit: contain; aspect-ratio: 1.45; }
.simulation-watermark { position: absolute; top: 0; left: 0; right: 0; padding: 8px 14px; background: #102a32ec; color: #fff; font-size: .875rem; letter-spacing: .05em; line-height: 1.4; pointer-events: none; text-align: left; }
.scenario-video figcaption, .media-status { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-top: 14px; }
.sim-brief > p { font-size: 1.1rem; margin: 12px 0 26px; }
.sim-brief h2 { font-size: 1.3rem; font-weight: 650; }
.sim-brief ul { padding-left: 20px; line-height: 1.7; }
.sim-brief .simulation-policy { display: block; margin-block: 24px; padding: 20px; }
.sim-brief .simulation-policy > span { display: block; margin-bottom: 12px; }
.sim-brief .sim-footnote { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.sim-progress-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: .875rem; }
.decision-progress { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 7px; margin: 0 0 38px; padding: 0; list-style: none; }
.decision-progress li { color: var(--muted); background: #e0e6e2; border-radius: 4px; border: 1px solid transparent; min-height: 32px; text-align: center; padding: 4px; font-size: .875rem; }
.decision-progress li.current { color: #fff; background: #173d47; border-color: #173d47; }
.decision-progress li.ok { color: #21563a; background: #e0ebd3; }
.decision-progress li.ko { color: #7a342a; background: #f1ddd6; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.decision-layout { display: grid; grid-template-columns: minmax(0,1fr) 265px; gap: 36px; align-items: start; }
.advanced-sim .sim-card { padding: 32px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.advanced-sim .sim-clock { flex-wrap: wrap; gap: 8px; padding: 0; border: 0; }
.sim-clock span, .sim-clock strong { font-size: .875rem; }
.advanced-sim .decision-title { font-weight: 650; font-size: clamp(1.6rem,2.5vw,2.4rem); letter-spacing: -.03em; line-height: 1.15; margin: 25px 0 16px; }
.decision-text { font-size: 1.1rem; line-height: 1.7; margin-bottom: 24px; }
.scenario-event, .scenario-branch { padding: 18px 20px; border-left: 3px solid #a78449; background: #f7f0e3; color: #65481b; margin-block: 20px; border-radius: 0 8px 8px 0; }
.scenario-event strong, .scenario-branch strong { font-size: .9rem; }
.scenario-event p, .scenario-branch p { margin: 8px 0 0; font-size: 1rem; }
.scenario-branch { background: #edf1f3; color: #38515e; border-color: #7b98a7; }
.advanced-sim .sim-options { gap: 12px; margin: 28px 0 0; }
.advanced-sim .sim-option { align-items: flex-start; gap: 16px; min-height: 76px; border: 1px solid #bccbc9; border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 500; padding: 18px; font-size: 1rem; line-height: 1.55; text-align: left; }
.advanced-sim .sim-option:hover:not(:disabled) { border-color: #1c6676; background: #edf4f2; transform: none; }
.advanced-sim .sim-option .answer-key { width: 32px; min-width: 32px; height: 32px; margin-top: 1px; border-radius: 5px; background: #eef2ef; color: #23444c; font-size: 1rem; }
.advanced-sim .sim-option.picked-ok, .advanced-sim .sim-option.reveal-ok { border-color: #487944; background: #eef5e7; color: #1d4228; }
.advanced-sim .sim-option.picked-ko { border-color: #a25244; background: #faf0eb; color: #6f2e24; }
.advanced-sim .sim-option.muted { opacity: .65; }
.choice-status { display: block; margin-top: 10px; font-size: .875rem; font-weight: 750; }
.advanced-sim .sim-result { border-radius: 8px; padding: 24px; margin-top: 24px; }
.advanced-sim .sim-result.ok { color: #234b31; background: #e8f0df; }
.advanced-sim .sim-result.ko { color: #65352b; background: #f6e7df; }
.sim-result .button { margin-top: 22px; }
.sim-result .source-chip { background: #ffffff80; color: inherit; white-space: normal; display: block; margin-top: 18px; }
.sim-correction { border-top: 1px solid #a87a6659; padding-top: 18px; margin-top: 18px; }
.decision-aside { padding: 12px 0 0; color: var(--muted); }
.decision-aside h2 { color: var(--ink); font-weight: 550; font-size: 1.55rem; letter-spacing: -.025em; line-height: 1.25; }
.decision-aside p { font-size: 1rem; }
.decision-separator { margin-block: 28px; height: 1px; background: var(--line); }
.scenario-replay { margin-top: 28px; }
.scenario-replay summary { cursor: pointer; min-height: 44px; color: var(--ink); font-weight: 650; }
.scenario-replay .simulation-watermark { position: static; display: block; font-size: .875rem; }
.scenario-replay video { aspect-ratio: auto; }
.score-chip small { font-size: .875rem; }
.sim-outcome-header { max-width: 950px; padding: 18px 0 32px; }
.sim-outcome-header h1 { font-size: clamp(2rem,3.7vw,4rem); font-weight: 600; line-height: 1.12; letter-spacing: -.04em; }
.sim-outcome-header h1 span { color: var(--blue-700); }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.outcome-decision, .outcome-incident { border: 1px solid var(--line); border-radius: 12px; padding: 34px; background: var(--surface); }
.outcome-score { display: block; font-weight: 500; letter-spacing: -.065em; font-size: 5.5rem; line-height: 1.15; margin-block: 20px; }
.outcome-score small { font-size: 2.5rem; }
.outcome-grid h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.03em; }
.outcome-grid p { line-height: 1.7; font-size: 1rem; }
.outcome-incident { background: #f0eadc; border-color: #ded3bf; color: #564730; }
.outcome-incident .kicker { color: #74572a; }
.outcome-fairness { border-top: 1px solid #cebea1; padding-top: 20px; margin-top: 24px; font-size: 1rem; font-weight: 600; }
.sim-log { margin-top: 20px; }
.sim-log li { padding-block: 24px; align-items: start; }
.sim-log li p { font-size: 1rem; }
.sim-log-time { font-size: .875rem; }
.log-event { border-left: 2px solid #a78449; padding-left: 16px; }
.result-actions-card { border-radius: 12px; }
.result-actions-card .result-actions { flex-wrap: wrap; }
.pocket-card { max-width: 1100px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); padding: 30px; }
.pocket-card header span, .pocket-card footer { font-size: .875rem; }
.pocket-card header img { width: 160px; background: #fff; padding: 6px; }
.pocket-card header { align-items: center; }
.pocket-alert { padding: 18px 0; font-size: 1rem; }
.pocket-card .pocket-phones { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.pocket-card .pocket-phones h3 { width: 100%; margin: 0; }
.pocket-phones > div { flex: 1; min-width: 185px; display: grid; gap: 4px; }
.pocket-phones span { font-size: .875rem; }
.pocket-phones b { font-size: 1.35rem; }
.pocket-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.pocket-card h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--blue-700); }
.pocket-card section { padding-block: 22px; }
.pocket-card li { margin-bottom: 10px; }
.pocket-card ol, .pocket-card ul { font-size: 1rem; line-height: 1.6; }
.pocket-source { display: block; font-size: .875rem; color: var(--muted); margin-top: 14px; }
.pocket-differences { padding: 20px; border-left: 3px solid #a78449; background: #f7f0e3; color: #634b29; font-size: 1rem; margin-block: 20px; }
.pocket-meeting-note { font-size: 1rem; }
.mobile-nav button { font-size: .875rem; }
.emergency-fab { animation: none; box-shadow: 0 4px 18px #3b090b29; border-radius: 50%; right: 24px; bottom: 24px; width: 58px; min-width: 58px; height: 58px; padding: 0; display: grid; place-items: center; }
.emergency-fab .fab-icon { margin: 0; width: auto; height: auto; font-size: 1.7rem; }
.emergency-fab > span:last-child { display: none; }
.site-footer { padding-right: 100px; }
.footer-tools { flex-wrap: wrap; gap: 20px; }
.footer-tools span, .footer-tools button { font-size: .875rem; }
body.night { --ink: #e3eeeb; --muted: #afc4c6; --line: #34515a; --surface: #17353e; --surface-soft: #193b46; --blue-700: #b7d9db; --blue-600: #397b8a; background: #0e272f; }
body.night .metric-card { background: transparent; }
body.night .entry-card:not(.featured), body.night .test-row, body.night .global-reviews, body.night .resource-note { background: var(--surface); }
body.night .test-row { padding-inline: 20px; }
body.night .scenario-saved { color: #c1deb2; }
body.night .module-key { background: #1c4c5a; color: #fff; }
body.night .simulation-policy { background: #294735; color: #e1eddb; }
body.night .scenario-event, body.night .pocket-differences, body.night .outcome-incident { background: #473e2c; color: #f2e5c7; border-color: #a48a54; }
body.night .outcome-incident .kicker { color: #e5d5ad; }
body.night .scenario-branch { background: #294650; color: #dfeced; }
body.night .advanced-sim .sim-option:hover:not(:disabled) { background: #294d59; }
body.night .advanced-sim .sim-option.picked-ok, body.night .advanced-sim .sim-option.reveal-ok, body.night .advanced-sim .sim-result.ok { color: #e3f1dc; background: #2b4d36; }
body.night .advanced-sim .sim-option.picked-ko, body.night .advanced-sim .sim-result.ko { color: #f7e0d5; background: #533a31; }
body.night .decision-progress li { background: #31515a; color: #d3e0e0; }
body.night .decision-progress li.current { background: #d2e7ad; color: #183c2a; }
body.night .decision-progress li.ok { background: #395a37; color: #e0efce; }
body.night .decision-progress li.ko { background: #614437; color: #f6dfd1; }
body.high-contrast { --ink: #000; --muted: #222; --line: #000; --surface: #fff; --surface-soft: #eee; --blue-700: #000; background: #fff; color: #000; }
body.high-contrast .hero-shell, body.high-contrast .page-hero { background: #000; }
body.high-contrast .entry-card, body.high-contrast .test-row, body.high-contrast .scenario-tile, body.high-contrast .sim-card, body.high-contrast .simulation-policy, body.high-contrast .scenario-event, body.high-contrast .scenario-branch, body.high-contrast .outcome-incident, body.high-contrast .outcome-decision, body.high-contrast .pocket-card { background: #fff; color: #000; border: 2px solid #000; }
body.high-contrast .entry-card *, body.high-contrast .test-row *, body.high-contrast .scenario-tile-body *, body.high-contrast .simulation-policy *, body.high-contrast .scenario-event *, body.high-contrast .scenario-branch *, body.high-contrast .outcome-grid *, body.high-contrast .pocket-card * { color: #000; }
body.high-contrast .button.primary { color: #fff; background: #000; border: 2px solid #fff; }
body.high-contrast .button.primary *, body.high-contrast .scenario-cover .simulation-watermark { color: #fff; }
body.high-contrast .advanced-sim .sim-option { color: #000; background: #fff; border: 2px solid #000; opacity: 1; }
body.high-contrast .advanced-sim .sim-option.picked-ok, body.high-contrast .advanced-sim .sim-option.picked-ko { border-width: 4px; }
@media (min-width: 1500px) { .hero-shell { padding-inline: max(6vw,calc((100vw - 1480px)/2)); } }
@media (max-width: 1240px) {
  .brand-copy { display: none; } .topbar { grid-template-columns: auto 1fr auto; } .desktop-nav { justify-self: center; }
  .hero-shell { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); min-height: 600px; gap: 30px; padding-inline: 32px; }
  .hero-copy h1 { font-size: clamp(3rem,5vw,4.6rem); }
  .metric-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; }
  .entry-card { padding: 26px; } .scenario-tile-body { padding: 23px; }
  .decision-layout { grid-template-columns: minmax(0,1fr) 220px; gap: 24px; }
}
@media (max-width: 1000px) {
  .desktop-nav { display: none; } .topbar { grid-template-columns: 1fr auto; height: 76px; }
  .top-actions { grid-column: 2; } .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); color: var(--muted); border-top: 1px solid var(--line); }
  .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: inherit; background: transparent; border: 0; font-weight: 650; }
  .mobile-nav button.active { color: var(--blue-700); background: var(--surface-soft); }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .hero-shell { grid-template-columns: 1fr; padding: 56px 30px 48px; gap: 40px; min-height: 0; }
  .hero-copy h1 { font-size: clamp(3.4rem,7vw,5.2rem); }
  .hero-copy .eyebrow, .hero-lead { max-width: 620px; }
  .hero-film { max-width: 900px; width: 100%; }
  .hero-trust { max-width: none; }
  .entry-grid { gap: 14px; } .entry-card { padding: 22px; min-height: 370px; }
  .entry-card h2, .entry-card h3 { font-size: 1.4rem; }
  .simulation-catalog { grid-template-columns: 1fr; }
  .scenario-tile { display: grid; grid-template-columns: .85fr 1.15fr; }
  .scenario-cover { height: 100%; aspect-ratio: auto; min-height: 250px; }
  .scenario-cover img { object-fit: contain; }
  .scenario-banner { flex-direction: column; align-items: flex-start; }
  .test-row { flex-wrap: wrap; gap: 16px; } .test-actions { width: 100%; padding-left: 66px; }
  .sim-brief-grid { grid-template-columns: 1fr; gap: 30px; }
  .scenario-video video { max-height: 420px; }
  .decision-layout { grid-template-columns: 1fr; }
  .decision-aside { display: none; }
  .emergency-fab { bottom: calc(96px + env(safe-area-inset-bottom)); right: 16px; width: 50px; min-width: 50px; height: 50px; }
  .site-footer { padding-right: 24px; }
  .card-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 650px) {
  .topbar { height: 68px; padding-inline: 16px; } :root { --header-height: 68px; }
  .institutional-logo { width: 152px; height: 44px; padding: 4px; } .institutional-logo img { width: 144px; }
  .top-actions { gap: 6px; } .top-actions [data-action='increase-font'], .top-actions [data-action='decrease-font'] { display: none; }
  .hero-shell { padding: 38px 22px 34px; gap: 30px; }
  .hero-copy h1 { font-size: clamp(2.9rem,10.7vw,4.25rem); margin-block: 22px; }
  .hero-copy .eyebrow { font-size: .875rem; letter-spacing: .07em; }
  .hero-lead { font-size: 1.05rem; line-height: 1.65; }
  .hero-actions { gap: 10px; margin-top: 26px; } .hero-actions .button { width: 100%; min-height: 52px; }
  .hero-trust { gap: 6px 12px; font-size: .875rem; margin-top: 20px; }
  .hero-film figcaption { align-items: flex-start; gap: 12px; }
  .hero-film figcaption strong { font-size: .95rem; } .film-toggle { max-width: 124px; padding-inline: 10px; }
  .film-description { font-size: .875rem; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { border-right: 0; border-bottom: 1px solid var(--line); gap: 8px; min-height: 135px; padding: 22px 12px; }
  .metric-card:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric-number { font-size: 2.6rem; } .metric-card strong { font-size: 1rem; } .metric-card small { font-size: .875rem; }
  .home-section { padding-top: 52px; } .section-heading { display: block; } .section-heading > p { margin-top: 20px; }
  .section-heading h2 { font-size: 2.15rem; }
  .entry-grid { grid-template-columns: 1fr; gap: 14px; }
  .entry-card { min-height: 0; gap: 16px; padding: 24px; }
  .entry-card h2, .entry-card h3 { font-size: 1.6rem; }
  .entry-number { font-size: 1.3rem; }
  .prep-stats { flex-wrap: wrap; gap: 16px; }
  .scenario-banner { padding: 28px 24px; margin-top: 48px; margin-bottom: 50px; }
  .scenario-banner h2 { font-size: 2rem; } .simulator-entry { min-width: 0; width: 100%; }
  .page-hero { padding-block: 44px; } .page-hero h1 { font-size: 2.75rem; } .page-hero p { font-size: 1rem; }
  .module-card { padding: 24px; } .module-toolbar { display: grid; }
  .module-search { width: 100%; } .module-next-nav { flex-wrap: wrap; }
  .exam-stamp { display: none; } .test-row { gap: 14px; padding-block: 24px; align-items: flex-start; }
  .test-number { min-width: 34px; font-size: 1.55rem; } .test-description { min-width: 0; }
  .test-description h2 { font-size: 1.3rem; } .test-description .kicker { font-size: .875rem; letter-spacing: .02em; }
  .test-actions { padding-left: 0; gap: 8px; } .test-actions .button { flex: 1; padding-inline: 14px; }
  .global-reviews { padding: 20px; }
  .simulation-policy { display: block; padding: 20px; } .simulation-policy > span { display: block; margin-bottom: 10px; }
  .scenario-tile { display: flex; } .scenario-cover { aspect-ratio: 1.5; min-height: 0; height: auto; }
  .scenario-cover img { aspect-ratio: 1.5; } .scenario-tile-body { padding: 24px; }
  .advanced-sim { padding: 28px 18px 100px; }
  .advanced-sim .sim-header { gap: 12px; flex-wrap: wrap; }
  .advanced-sim .sim-header h1 { font-size: 2rem; } .advanced-sim .sim-header > div:not(.score-chip) { flex: 1; min-width: 210px; }
  .score-chip { margin-left: 54px; }
  .decision-progress { gap: 4px; margin-bottom: 25px; }
  .advanced-sim .sim-card { padding: 22px 18px; }
  .advanced-sim .sim-clock { display: block; } .sim-clock strong { display: block; margin-top: 8px; }
  .decision-text { font-size: 1rem; }
  .advanced-sim .sim-option { padding: 15px 12px; gap: 12px; font-size: 1rem; }
  .advanced-sim .sim-result { padding: 20px 16px; }
  .scenario-video video { max-height: 340px; } .simulation-watermark { font-size: .875rem; letter-spacing: .01em; padding: 7px 10px; }
  .outcome-grid { grid-template-columns: 1fr; } .outcome-decision, .outcome-incident { padding: 26px; }
  .sim-log li { display: block; } .sim-log-time { display: block; margin-bottom: 12px; }
  .pocket-card { padding: 22px; } .pocket-card header { display: block; } .pocket-card header img { margin-bottom: 14px; }
  .pocket-cases { grid-template-columns: 1fr; } .pocket-phones > div { min-width: 140px; }
  .pocket-card section { padding-block: 22px; }
  .mobile-nav button { min-height: 64px; font-size: .875rem; padding-inline: 1px; }
  .mobile-nav button > span { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body { padding: 0 !important; background: white !important; font-size: 10pt; }
  body > *:not(main), main > .view:not(#view-card), #view-card > .page-hero, .no-print { display: none !important; }
  #appMain, #view-card, #view-card .card-shell { display: block !important; margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; }
  .pocket-card { position: static; border: 0; padding: 0; max-width: none; color: #000 !important; background: white !important; }
  .pocket-card * { color: #000 !important; background: transparent !important; }
  .pocket-card header { display: flex; break-after: avoid; }
  .pocket-card header img { width: 36mm; margin: 0; padding: 0; }
  .pocket-card header strong { font-size: 13pt; } .pocket-card header span { font-size: 9pt; }
  .pocket-cases { display: block; columns: 2; column-gap: 9mm; }
  .pocket-card section { padding: 3mm 0; break-inside: avoid; page-break-inside: avoid; border-color: #888; }
  .pocket-card h3 { font-size: 11pt; margin-bottom: 2mm; break-after: avoid; }
  .pocket-card ol, .pocket-card ul, .pocket-card p, .pocket-alert { font-size: 9pt; line-height: 1.35; }
  .pocket-card li { margin-bottom: 1.8mm; } .pocket-source, .pocket-card footer { font-size: 8pt; }
  .pocket-phones span { font-size: 9pt; } .pocket-phones b { font-size: 12pt; }
  .pocket-card .pocket-phones { display: flex; gap: 4mm; }
  .pocket-phones > div { min-width: 0; }
  .pocket-alert, .pocket-differences { padding: 3mm 0; margin-block: 2mm; font-size: 9pt; }
  .pocket-differences { border: 1px solid #aaa; padding: 3mm; break-inside: avoid; }
  .pocket-meeting { columns: 2; }
}
