/* Accesibilidad transversal Aula TP Chile — tokens institucionales, sin púrpura de marca */
.access-fab{
  position:fixed;left:16px;bottom:16px;z-index:40;
  display:flex;flex-direction:column;align-items:flex-start;gap:6px;
  max-width:min(280px, calc(100vw - 32px));
}
button.support-card.access-btn{position:static;left:auto;bottom:auto;width:auto;max-width:100%}
#app:has(.support [data-action="access"]) > .access-fab,
#app:has(aside [data-action="access"]) > .access-fab{display:none}
.access-chip{
  margin:0;padding:6px 10px;border-radius:10px;
  background:#fff;border:1px solid #D5DEE8;color:#0B3A6B;
  font-size:11px;line-height:1.35;font-weight:700;
  box-shadow:0 4px 14px rgba(7,42,78,.08);max-width:100%
}
.access-chip[hidden]{display:none}
aside .access-chip{box-shadow:none;margin:8px 0 0}

#tool.is-access{
  padding:0;width:min(780px, calc(100vw - 32px));max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 32px);overflow:hidden;border:1px solid #dce4ef;background:#fff;border-radius:8px;margin:auto
}
#tool.is-access #close-tool{display:none}
#tool.is-access #tool-content{padding:0;max-height:calc(100dvh - 34px);overflow:hidden;display:flex;flex-direction:column}

#tool .ax-panel{--ax-font:16px;background:#fff;color:#101d49;overflow:hidden;display:flex;flex-direction:column;max-height:calc(100dvh - 34px);min-height:0;flex:1;font-size:var(--ax-font);line-height:1.45;letter-spacing:0}
body[data-access-text="large"] #tool .ax-panel{--ax-font:18px}
body[data-access-text="xlarge"] #tool .ax-panel{--ax-font:20px}
#tool .ax-panel *,#tool .ax-panel *::before,#tool .ax-panel *::after{box-sizing:border-box}
#tool .ax-panel :is(b,strong){font-weight:700!important}
#tool .ax-head{
  display:flex;align-items:center;gap:18px;padding:24px 28px 18px;
  background:#fff;color:#101d49;flex-shrink:0
}
#tool .ax-mark{
  width:58px;height:58px;border-radius:8px;background:#d4e5ff;color:#0065ed;
  display:grid;place-items:center;font-weight:800;font-size:1.65em;flex-shrink:0
}
#tool .ax-heading{min-width:0}
#tool .ax-head small{display:block;font-size:.8em;font-weight:600;color:#65718d;margin:0 0 2px}
#tool .ax-head h2{margin:0;color:#101d49;font-size:1.875em;font-weight:700!important;line-height:1.2;letter-spacing:0}
#tool .ax-x{
  margin-left:auto;width:44px;height:44px;min-height:44px;padding:0;flex:0 0 44px;
  border-radius:8px;border:0;background:transparent;color:#798299;font-size:38px;line-height:1;box-shadow:none
}
#tool .ax-body{padding:8px 28px 16px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#tool .ax-lead{margin:0 0 26px;color:#65718d;font-size:1em!important;line-height:1.5!important}
#tool .ax-lead strong{display:block;color:#101d49;font-size:1.125em;margin-bottom:6px}
#tool .ax-lead span{display:block}
#tool .ax-h{margin:0 0 14px;color:#101d49;font-size:1.25em;font-weight:700;line-height:1.3}
#tool .ax-profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 26px}
#tool .ax-card{
  --ax-tint:#eef5ff;--ax-border:#bcd4f5;--ax-accent:#0065ed;
  display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:14px;position:relative;
  text-align:left;padding:20px 16px;min-height:114px;border-radius:8px;
  border:1px solid var(--ax-border);background:var(--ax-tint);color:#101d49;font-weight:600;box-shadow:none;
  white-space:normal;font-size:1em
}
#tool .ax-card[data-ax-profile="calm"]{--ax-tint:#eef9f4;--ax-border:#afdcc8;--ax-accent:#0b7057}
#tool .ax-card[data-ax-profile="guide"]{--ax-tint:#fff4e9;--ax-border:#ffcba4;--ax-accent:#ac470e}
#tool .ax-card[data-ax-profile="audio"]{--ax-tint:#f4efff;--ax-border:#d6c5fa;--ax-accent:#6344a0}
#tool .ax-card[data-ax-profile="keyboard"]{--ax-tint:#fff0f5;--ax-border:#f3bad1;--ax-accent:#ad275c}
#tool .ax-card[data-ax-profile="hivis"]{--ax-tint:#fff9db;--ax-border:#eddf9a;--ax-accent:#836b03}
#tool .ax-profile-ico{color:var(--ax-accent);width:42px;height:42px;display:grid;place-items:center}
#tool .ax-profile-ico :is(.icon,.work-ico,.work-ico svg){display:block;width:38px;height:38px;margin:0;padding:0;background:none;border:0;box-shadow:none}
#tool .ax-profile-copy{min-width:0}
#tool .ax-card b{display:block;margin:0 0 8px;color:#101d49;font-size:1em;font-weight:700!important;line-height:1.35;padding-right:22px}
#tool .ax-card small{display:block;font-size:.875em;color:#586780;font-weight:400;line-height:1.45}
#tool .ax-card.is-on{border-color:#0065ed;box-shadow:inset 0 0 0 1px #0065ed!important}
#tool .ax-selected{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#0065ed;color:#fff}
#tool .ax-selected[hidden]{display:none}
#tool .ax-selected :is(.icon,.work-ico,.work-ico svg){width:16px;height:16px;margin:0;background:none}
#tool .ax-size-label{margin:0 0 10px;font-size:1em!important;line-height:1.4!important;color:#101d49}
#tool .ax-sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 14px;border:1px solid #d5deec;border-radius:8px;overflow:hidden}
#tool .ax-size{
  min-height:78px;border-radius:0;border:0;border-right:1px solid #d5deec;background:#fff;color:#101d49;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:10px 4px;font-size:1em;box-shadow:none;white-space:normal
}
#tool .ax-size:last-child{border-right:0}
#tool .ax-size strong{font-size:1.5em;letter-spacing:0}
#tool .ax-size.is-on{background:#0065ed;color:#fff}
#tool .ax-row{
  display:grid;grid-template-columns:38px minmax(0,1fr) 54px;align-items:center;gap:18px;width:100%;margin:0;padding:20px 0;
  border:0;border-bottom:1px solid #d5deec;border-radius:0;background:#fff;color:#101d49;text-align:left;font-size:1em;white-space:normal;box-shadow:none
}
#tool .ax-ico{
  width:38px;height:38px;background:transparent;color:#237b80;
  display:grid;place-items:center
}
#tool .ax-ico .icon{width:32px;height:32px;margin:0}
#tool .ax-row[data-ax-toggle="simple"] .ax-ico{color:#7861a4}
#tool .ax-row[data-ax-toggle="motion"] .ax-ico{color:#5686ac}
#tool .ax-row-copy{min-width:0}
#tool .ax-row b{display:block;font-size:1em;color:#101d49;margin:0 0 4px;line-height:1.35}
#tool .ax-row small{display:block;font-size:.875em;color:#65718d;font-weight:400;line-height:1.45}
#tool .ax-sw{
  width:54px;height:30px;min-height:30px;border-radius:999px;
  background:#c4cbd6;border:0;position:relative
}
#tool .ax-sw::after{
  content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;
  box-shadow:0 1px 3px rgba(7,42,78,.12)
}
#tool .ax-row[aria-checked="true"] .ax-sw{background:#0065ed}
#tool .ax-row[aria-checked="true"] .ax-sw::after{left:27px}
#tool .ax-acc{border:0;border-bottom:1px solid #d5deec;padding:0;margin:0;background:#fff;border-radius:0;box-shadow:none}
#tool .ax-acc:last-child{border-bottom:0}
#tool .ax-acc>summary{
  list-style:none;cursor:pointer;color:#101d49;font-weight:500;font-size:1.125em;
  min-height:62px;padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:14px
}
#tool .ax-acc>summary::-webkit-details-marker{display:none}
#tool .ax-chevron{color:#798299;flex:0 0 24px}
#tool .ax-chevron :is(.icon,.work-ico,.work-ico svg){width:24px;height:24px;display:block;margin:0;background:none}
#tool .ax-acc[open]>summary .ax-chevron{transform:rotate(90deg)}
#tool .ax-rates{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 18px}
#tool .ax-rates button{
  min-height:44px;padding:8px 14px;border-radius:8px;border:1px solid #d5deec;background:#fff;color:#101d49;font-size:.875em;box-shadow:none
}
#tool .ax-rates button.is-on{background:#0065ed;color:#fff;border-color:#0065ed}
#tool .ax-preview{
  margin:24px 0 12px;padding:22px 24px;border-radius:8px;border:1px solid #c2e5d8;background:#f0faf6
}
#tool .ax-preview small{display:block;font-size:.75em;letter-spacing:0;text-transform:uppercase;color:#65718d;font-weight:600;margin:0 0 12px}
#tool .ax-preview p{margin:0 0 14px;color:#101d49;font-size:1.125em!important;line-height:1.5!important}
#tool .ax-preview-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:48px;padding:10px 20px;border-radius:8px;
  background:#0065ed;color:#fff;border:0;font-size:1em;font-weight:600;box-shadow:none
}
#tool .ax-preview-btn :is(.icon,.work-ico,.work-ico svg){width:24px;height:24px;margin:0;background:none;color:inherit}
#tool .ax-foot{flex-shrink:0;opacity:1;width:100%;margin:0;border-radius:0;font-size:1em;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 28px;background:#fff;border-top:1px solid #d5deec
}
#tool .ax-foot p{margin:0;font-size:.875em!important;line-height:1.4!important;color:#198981;display:flex;align-items:center;gap:10px}
#tool .ax-saved span{min-width:0;overflow-wrap:break-word}
#tool .ax-saved>.work-ico{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;background:#198981;color:#fff;border-radius:50%;margin:0}
#tool .ax-saved>.work-ico svg{width:16px;height:16px}
#tool .ax-reset{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:8px 0;background:transparent;color:#0065ed;border:0;border-radius:8px;font-size:1em;box-shadow:none;white-space:normal}
#tool .ax-reset :is(.icon,.work-ico,.work-ico svg){flex-shrink:0;width:24px;height:24px;margin:0;background:none}
#tool .ax-panel button{box-shadow:none!important}
#tool .ax-profile-ico .work-ico,#tool .ax-selected .work-ico,#tool .ax-chevron .work-ico,#tool .ax-preview-btn .work-ico,#tool .ax-reset .work-ico{color:inherit}
#tool .ax-panel :is(button,summary):focus-visible{outline:3px solid #0065ed;outline-offset:-3px}
#tool .ax-panel button:hover{filter:none;transform:none}
#tool .ax-card:hover{border-color:var(--ax-accent)}
#tool .ax-row:hover,#tool .ax-acc>summary:hover,#tool .ax-reset:hover,#tool .ax-x:hover{background:#f6f8fc}
#tool .ax-preview-btn:hover{background:#0055c7}
#tool .ax-size:hover:not(.is-on){background:#f0f5ff}

.access-speech{
  position:fixed;right:16px;bottom:16px;z-index:41;
  display:flex;align-items:center;gap:6px;padding:8px 10px;border-radius:14px;
  background:#0B3A6B;color:#fff;box-shadow:0 8px 24px rgba(7,42,78,.25)
}
.access-speech[hidden]{display:none}
.access-speech button{
  min-height:40px;min-width:40px;padding:6px 10px;border-radius:10px;
  background:#1558A0;color:#fff;border:0;font-size:12px
}
.access-speech select{min-height:40px;border-radius:8px;border:0;padding:0 8px}
.access-speak-hl{outline:3px solid #3EC6E0;outline-offset:3px;background:#D6F4FA}

.act-hotspot-alt{margin:10px 0 0;padding:10px 12px;border:1px solid #D5DEE8;border-radius:12px;background:#F4F7FB}
.act-hotspot-alt summary{color:#1558A0;font-weight:800;font-size:13px}
.act-hotspot-alt ol{margin:8px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.act-spot-list{
  width:100%;min-height:44px;text-align:left;border-radius:10px;
  border:1px solid #D5DEE8;background:#fff;color:#0B3A6B;font-weight:700
}
.act-spot-list.is-on{background:#E6F6EE;border-color:#1F8A5B}
.scene-simple-nav{display:none;flex-wrap:wrap;gap:8px;margin:10px 0}
.scene-simple-nav button{min-height:44px}
body.no-mouse .scene-simple-nav,
body.reduce-motion .scene-simple-nav{display:flex}
body.no-mouse .act-hotspot-alt{border-color:#1558A0;background:#E8F1FB}
body.no-mouse .act-spot{min-width:52px;min-height:52px;font-size:12px}

.access-blocked{
  margin:8px 0 0;padding:10px 12px;border-radius:10px;background:#FFF4E0;border:1px solid #f0ddb0;
  list-style:none;font-size:12px;color:#122033
}
.access-blocked li{margin:2px 0}
.access-blocked .is-ok{color:#1F8A5B}
.ax-steps{display:flex;flex-direction:column;gap:8px;margin:0 0 10px}
.ax-step{padding:10px 12px;border-radius:10px;border:1px solid #D5DEE8;background:#fff}
.ax-step.is-dim{opacity:.45}
.ax-step-nav{display:flex;gap:8px;margin:0 0 12px}

/* Tamaño, espaciado, ancho de lectura */
body[data-access-text="large"]{font-size:15.5px}
body[data-access-text="xlarge"]{font-size:17.5px}
body[data-access-text="large"] h1{font-size:2.15em}
body[data-access-text="xlarge"] h1{font-size:2.05em}
body[data-access-text="large"] .act-prompt-title,
body[data-access-text="xlarge"] .act-prompt-title{font-size:1.25em}
body.large-text{zoom:normal}
body[data-access-spacing="wide"]{letter-spacing:.02em;word-spacing:.06em}
body[data-access-leading="wide"],
body[data-access-leading="wide"] p,
body[data-access-leading="wide"] .act-prompt{line-height:1.75}
body[data-access-spacing="wide"] .act-prompt,
body[data-access-spacing="wide"] .page-heading p,
body[data-access-text="xlarge"] .act-prompt,
body[data-access-text="xlarge"] .question-box h3{max-width:42rem}

body.reading-focus .sidebar,
body.reading-focus footer,
body.reading-focus .support:not(:focus-within),
body.reading-focus .journey-bottom,
body.low-stim .sidebar,
body.low-stim .header-photo-wrap{opacity:.55}
body.reading-focus .act-now,
body.reading-focus .ped-step[data-state="current"],
body.reading-focus .question-box,
body.reading-focus .ax-preview{
  box-shadow:0 0 0 4px #D6F4FA;position:relative;z-index:1
}

body.highlight-instructions .act-now::before,
body.highlight-instructions .ped-step[data-action="observe"]::before,
body.highlight-instructions .ped-step[data-action="explore"]::before,
body.highlight-instructions .ped-step[data-action="decide"]::before,
body.highlight-instructions .ped-step[data-action="justify"]::before,
body.highlight-instructions .bottom-nav::before{
  display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;
  font-weight:800;color:#1558A0;margin:0 0 6px
}
body.highlight-instructions .act-now::before{content:'Qué debes hacer'}
body.highlight-instructions .ped-step[data-action="observe"]::before,
body.highlight-instructions .ped-step[data-action="explore"]::before{content:'Qué debes observar'}
body.highlight-instructions .ped-step[data-action="decide"]::before{content:'Qué debes responder'}
body.highlight-instructions .ped-step[data-action="justify"]::before{content:'Qué debes justificar'}
body.highlight-instructions .bottom-nav::before{content:'Qué viene después'}

body.simple-visual .header-photo-wrap,
body.simple-visual .header-art,
body.simple-visual .landscape,
body.simple-visual .integration-header-message,
body.simple-visual .atp-hero-visual,
body.simple-visual .atp-hero-motto,
body.simple-visual .login-story:after,
body.simple-visual .journey-finish .finish-visual,
body.low-stim .header-photo-wrap,
body.low-stim .landscape,
body.low-stim .integration-header-message,
body.low-stim .atp-hero-visual,
body.low-stim .atp-hero-motto{display:none}
body.simple-visual .card,
body.simple-visual .panel,
body.simple-visual .course-card,
body.simple-visual .act-card,
body.low-stim .panel{box-shadow:none}
body.simple-visual,
body.low-stim{background:#F4F7FB}
body.simple-visual .ped-step:not([data-state="current"]):not([data-state="done"]){opacity:.7}
body.reduce-motion .fan,
body.low-stim .fan{display:none}
body.reduce-motion .room{transition:none}

body.hivis :focus-visible,
body.no-mouse :focus-visible,
body.high-contrast :focus-visible{
  outline:3px solid #3EC6E0;outline-offset:3px
}
body.hivis .option,
body.hivis .act-chip,
body.hivis .station,
body.hivis .lr-card,
body.no-mouse .option,
body.no-mouse .act-chip,
body.no-mouse .lr-card{
  border-width:2px
}
body.hivis .act-spot,
body.no-mouse button.primary,
body.hivis button.primary{box-shadow:0 0 0 2px #0B3A6B22}

body.high-contrast{
  --text:#000;--muted:#1a1a1a;--line:#000;--navy:#000;--blue:#003399;--bg:#fff;
  background:#fff;color:#000
}
body.high-contrast h1,body.high-contrast h2,body.high-contrast h3,body.high-contrast h4{color:#000}
body.high-contrast .panel,
body.high-contrast .act-card,
body.high-contrast .course-card,
body.high-contrast .option,
body.high-contrast .soft,
body.high-contrast .question-box,
body.high-contrast .ax-card,
body.high-contrast .ax-row{
  background:#fff;border:2px solid #000;color:#000
}
body.high-contrast .primary,
body.high-contrast .ax-size.is-on,
body.high-contrast .ax-card.is-on{
  background:#000;color:#fff;border-color:#000
}
body.high-contrast .muted,body.high-contrast small{color:#111}
body.high-contrast .act-now{background:#fff;border:3px solid #000}
body.high-contrast input,body.high-contrast textarea,body.high-contrast select{
  border:2px solid #000;background:#fff;color:#000
}
body.high-contrast .status,body.high-contrast .badge{border:1px solid #000}

body.high-contrast #tool .ax-panel{color:#000}
body.high-contrast #tool :is(.ax-card,.ax-preview,.ax-row,.ax-sizes,.ax-rates button){background:#fff;border:2px solid #000;color:#000}
body.high-contrast #tool :is(.ax-size.is-on,.ax-card.is-on,.ax-rates button.is-on,.ax-preview-btn){background:#000;color:#fff;border-color:#000}
body.high-contrast #tool :is(.ax-head h2,.ax-h,.ax-lead strong,.ax-card b,.ax-row b,.ax-size-label){color:#000}
body.high-contrast #tool :is(.ax-card.is-on b,.ax-card.is-on small,.ax-card.is-on .ax-profile-ico){color:#fff}
body.high-contrast #tool :is(.ax-card small,.ax-row small,.ax-lead,.ax-preview small,.ax-preview p,.ax-acc>summary){color:#111}
body.high-contrast #tool .ax-panel :is(button,summary):focus-visible{outline-color:#ad6100}
body.high-contrast #tool .ax-row[aria-checked="true"] .ax-sw{background:#000}

body.access-hide-timer .act-meta-time{display:none}
body.access-captions .act-figure figcaption,
body.access-captions .act-media-caption,
body.access-captions .vis-cap{display:block}
.act-figure figcaption,.act-media-caption,.vis-cap{
  display:none;margin:6px 0 0;font-size:12px;color:#3D5166
}
body.access-captions .act-figure figcaption,
body.access-captions .act-media-caption,
body.access-captions .vis-cap{display:block}

@media(prefers-reduced-motion:reduce){
  .ax-sw::after,.access-chip,.ax-card{transition:none}
  .access-fab,.access-speech{transition:none}
}
@media(max-width:640px){
  .access-speech{left:16px;right:16px;bottom:76px}
}
@media(max-width:540px){
  #tool.is-access{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  #tool.is-access #tool-content,#tool .ax-panel{max-height:calc(100dvh - 18px)}
  #tool .ax-head{gap:10px;padding:18px 14px 12px}
  #tool .ax-mark{width:36px;height:44px;font-size:1.25em}
  #tool .ax-head h2{font-size:1.25em}
  #tool .ax-head small{font-size:10px}
  #tool .ax-x{flex-basis:36px;width:36px;font-size:32px}
  #tool .ax-body{padding:8px 14px 12px}
  #tool .ax-profiles{grid-template-columns:1fr;gap:10px}
  #tool .ax-card{min-height:96px;padding:16px;gap:12px}
  #tool .ax-lead strong{font-size:1em}
  #tool .ax-size{font-size:.875em;min-height:72px}
  #tool .ax-row{grid-template-columns:28px minmax(0,1fr) 48px;gap:12px}
  #tool .ax-ico,#tool .ax-ico .icon{width:28px;height:28px}
  #tool .ax-sw{width:48px}
  #tool .ax-row[aria-checked="true"] .ax-sw::after{left:21px}
  #tool .ax-preview{padding:18px 16px}
  #tool .ax-foot{padding:12px 14px;gap:8px;flex-wrap:wrap}
  #tool .ax-foot p{gap:6px;font-size:.75em!important;flex:1 1 130px}
  #tool .ax-reset{font-size:.875em;gap:6px}
}
@media(max-width:400px){
  #tool .ax-foot{flex-direction:column;align-items:stretch;gap:2px}
  #tool .ax-foot p{flex:none;font-size:.875em!important}
  #tool .ax-reset{align-self:flex-end}
}
body.reduce-motion .support-card:hover:not(:disabled),
body.low-stim .support-card:hover:not(:disabled){transform:none}
