*{box-sizing:border-box}body{margin:0;background:#f3f6fa;color:#183249;font:16px/1.65 system-ui,sans-serif}a{color:#155a89}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #b17c17;outline-offset:4px}.skip{position:fixed;top:-80px;left:240px;z-index:200;background:white;padding:10px}.skip:focus{top:10px}.tm-page{max-width:1370px;margin:auto;padding:42px 42px 60px}.tm-hero{padding:34px 40px;background:#102c46;color:#ecf3f9;border-radius:18px;border-top:4px solid #d7b557}.tm-eyebrow{font-size:12px;letter-spacing:.15em;font-weight:750;margin:0 0 12px;color:#916616}.tm-hero .tm-eyebrow{color:#efd487}:is(h1,[data-alba-view-title]){font-size:clamp(32px,4vw,48px);line-height:1.16;margin:0 0 14px;color:#102d4d}.tm-hero :is(h1,[data-alba-view-title]){color:#fff}h2{font-size:22px;line-height:1.35;margin:8px 0 15px}.tm-lead{font-size:23px;line-height:1.4;margin:0 0 8px}.tm-hero>p{max-width:760px}.tm-meta{display:flex;gap:12px 25px;flex-wrap:wrap;font-size:13px;color:#c9d9e7;margin-top:24px}.tm-tools{padding:26px 0 8px}.tm-tools label{display:block;font-size:14px;font-weight:650;margin-bottom:6px}.tm-tools input{width:100%;max-width:560px;border:1px solid #9aafbf;border-radius:9px;padding:13px 15px;font:inherit;background:white;color:#183249}.tm-tools h2{margin-bottom:16px}#tm-result{font-size:14px;color:#496276;margin:12px 0}.tm-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tm-card{display:flex;flex-direction:column;background:#fff;padding:26px;border:1px solid #d5e0e8;border-radius:13px;box-shadow:0 4px 12px #12324806;min-width:0}.tm-card.pending{background:#edf2f6;box-shadow:none}.tm-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.tm-number{font-size:13px;color:#445d72;font-weight:750;letter-spacing:.07em}.tm-status{font-size:12px;border-radius:30px;background:#e2f3eb;color:#1c6045;padding:4px 11px}.pending .tm-status{background:#dce5ec;color:#4b6071}.tm-card h2{font-size:21px;margin:9px 0 12px}.tm-card p{font-size:14px;color:#50687a;margin:0 0 20px}.tm-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}.tm-button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;border:1px solid #123951;padding:9px 17px;border-radius:8px;background:#123951;color:white;text-decoration:none;font-size:14px;font-weight:650}.tm-button:hover{background:#24536d;color:#fff}.tm-secondary{background:#fff;color:#123951}.tm-secondary:hover{background:#e9f0f5;color:#102d4d}.tm-note{font-size:13px;line-height:1.7;color:#536a7b;margin:30px 0 0}.tm-back{display:inline-block;margin-bottom:25px}.tm-reader-head{margin-bottom:25px}.tm-reader-head :is(h1,[data-alba-view-title]){font-size:32px}.tm-reader-head .tm-actions{margin-top:20px}#reader-frame iframe{width:100%;height:78vh;min-height:500px;border:1px solid #a6bac9;border-radius:8px;background:#fff}.tm-error{padding:20px;background:#fff2e0;border:1px solid #d7b17a;border-radius:8px}[hidden]{display:none!important}@media(max-width:1100px){.tm-page{padding:30px 24px}.tm-list{grid-template-columns:1fr}}@media(max-width:800px){.tm-page{padding:20px 16px 40px}.tm-hero{padding:25px 22px;border-radius:12px}.tm-card{padding:22px}.tm-meta{gap:8px}.skip{left:12px}.tm-reader-head :is(h1,[data-alba-view-title]){font-size:26px}#reader-frame iframe{min-height:400px;height:72vh}}

/* ALBA · TEMARIO v2 — edición azul marino y oro, alto contraste móvil · 28/10/2026 */
:root {
  --tm-night:#071724; --tm-navy:#0d2841; --tm-panel:#10324f;
  --tm-panel2:#153c59; --tm-gold:#f5d16d; --tm-copy:#f3f8ff;
  --tm-soft:#d5e4f1; --tm-edge:#315a78;
}
body:has(.tm-page) {
  background: radial-gradient(ellipse at 82% 8%,#163f5c 0%,#0d263c 38%,#081724 92%) fixed !important;
  color:var(--tm-copy) !important;
}
.tm-page {color:var(--tm-copy);}
.tm-page .tm-hero {
  background:linear-gradient(125deg,#153955,#09263e 80%);
  border:1px solid #345d74;border-top:4px solid var(--tm-gold);
  box-shadow:0 14px 45px #0004;
}
.tm-page .tm-hero :is(h1,[data-alba-view-title]),.tm-page .tm-hero p:not(.tm-eyebrow){color:var(--tm-copy)}
.tm-page .tm-eyebrow {color:var(--tm-gold);}
.tm-page .tm-meta {color:#e6f0f9;font-weight:600}
.tm-page .tm-tools {margin:16px 0 14px}
.tm-page .tm-tools h2,.tm-page .tm-tools label,
.tm-page .tm-reader-head :is(h1,[data-alba-view-title]) {color:var(--tm-gold);font-weight:800}
.tm-page .tm-tools input {
  background:#0e2d46;color:#fff;border:2px solid #6185a3;
  min-height:54px;font-weight:550;font-size:16px;
}
.tm-page .tm-tools input::placeholder {color:#bdcfdf;opacity:1}
.tm-page #tm-result {color:#e1edf9;font-size:15px;font-weight:600}
.tm-page .tm-card {
  background:linear-gradient(140deg,#17405f,#0f2d47 76%);
  border:1px solid #476985;border-top:3px solid #d4b15a;
  box-shadow:0 8px 24px #0003;
}
.tm-page .tm-card.pending {
  background:linear-gradient(135deg,#112b41,#0d2235);
  border-color:#35526a;box-shadow:none;opacity:.94;
}
.tm-page .tm-card .tm-number {color:var(--tm-gold);font-weight:800;font-size:13px}
.tm-page .tm-card h2 {
  color:#fff;font-size:21px;line-height:1.43;font-weight:750;
}
.tm-page .tm-card p {color:#dfebf6;font-size:15px;line-height:1.55;font-weight:500}
.tm-page .tm-status {
  background:#176b54;color:#fff;border:1px solid #68cbaa;
  font-weight:800;padding:6px 13px;
}
.tm-page .pending .tm-status {background:#304457;color:#f0f3f7;border:1px solid #73889e}
.tm-page .tm-button {
  background:var(--tm-gold);border:2px solid var(--tm-gold);
  color:#0b2033;min-height:47px;font-size:15px;font-weight:800;
}
.tm-page .tm-button:hover {background:#ffe29a;color:#071724;border-color:#ffe29a}
.tm-page .tm-secondary {
  background:#0d2a43;color:#fff;border:2px solid #a9c3d8;
}
.tm-page .tm-secondary:hover {background:#245273;color:#fff}
.tm-page .tm-note {color:#d7e6f1;font-size:14px}
.tm-page .tm-back {color:#f5d16d;font-weight:700}
.tm-page .tm-reader-head #reader-info {color:#e5f1fb}
.tm-page #reader-frame iframe {border:2px solid #6886a0}
.tm-page .tm-error {background:#442f1c;color:#fff;border-color:#e7b95b}
.tm-page a:focus-visible,.tm-page input:focus-visible {
  outline:3px solid var(--tm-gold);outline-offset:3px;
}
@media (max-width:800px) {
  .tm-page{padding:16px 12px 36px}
  .tm-page .tm-hero{padding:25px 20px}
  .tm-page .tm-hero :is(h1,[data-alba-view-title]){font-size:36px;line-height:1.18}
  .tm-page .tm-hero p{font-size:16px;line-height:1.55}
  .tm-page .tm-hero .tm-lead{font-size:21px}
  .tm-page .tm-meta{font-size:14px;display:flex;flex-direction:column;gap:5px}
  .tm-page .tm-tools{padding:21px 0 2px;margin:0 0 12px}
  .tm-page .tm-tools h2{font-size:23px}
  .tm-page .tm-tools label{font-size:15px}
  .tm-page .tm-tools input{width:100%;max-width:none;border-radius:11px}
  .tm-page .tm-list{grid-template-columns:minmax(0,1fr);gap:14px}
  .tm-page .tm-card{padding:22px 18px}
  .tm-page .tm-card h2{font-size:20px}
  .tm-page .tm-card p{font-size:16px}
  .tm-page .tm-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
  .tm-page .tm-button{width:100%;min-height:50px;text-align:center;font-size:14px;padding:9px 8px}
  .tm-page .tm-note{font-size:14px;line-height:1.7}
  .tm-page #reader-frame iframe{height:70dvh;min-height:360px}
}
@media (max-width:360px) {
 .tm-page .tm-actions{}
 .tm-page .tm-card h2{font-size:19px}
}

/* ALBA 2026-10-29: lectura + PDF + práctica por tema */
.tm-page .tm-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
}
.tm-page .tm-actions .tm-button {width:100%;text-align:center;padding-left:9px;padding-right:9px}
.tm-page .tm-actions .tm-practice {
  grid-column:1 / -1;
  background:#10666b;
  border:2px solid #8be1e0;
  color:#fff;
}
.tm-page .tm-actions .tm-practice:hover {
  background:#147c81;
  border-color:#b8f0ef;
  color:#fff;
}
@media (max-width:360px) {
  .tm-page .tm-actions {grid-template-columns:1fr}
}

/* ALBA · Temario: encabezado compartido visualmente con Psicotécnicos */
.tm-page .tm-hero.tm-hero--illustrated{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(270px,43%);
  align-items:center;
  gap:clamp(12px,2.2vw,34px);
  min-height:328px;
  padding:clamp(28px,4vw,58px);
  background:radial-gradient(circle at 87% 2%,#347bac96,transparent 50%),
             linear-gradient(120deg,#061a38,#164675);
  border:1px solid #c39f5c;
  border-radius:23px;
  box-shadow:0 18px 38px #0005;
}
.tm-page .tm-hero--illustrated::after{
  content:"";
  pointer-events:none;
  position:absolute;
  z-index:0;
  width:400px;
  height:400px;
  right:-70px;
  top:-270px;
  border:1px solid #9acbfa32;
  border-radius:50%;
}
.tm-page .tm-hero-copy{
  position:relative;
  z-index:2;
  min-width:0;
}
.tm-page .tm-hero--illustrated .tm-eyebrow{
  font-size:12px;
  font-weight:900;
  letter-spacing:1.6px;
  color:#f5d078;
}
.tm-page .tm-hero--illustrated :is(h1,[data-alba-view-title]){
  font-size:clamp(42px,5vw,78px);
  line-height:1.04;
  letter-spacing:-1.5px;
  font-weight:950;
  color:#ffdc81;
  margin:14px 0;
}
.tm-page .tm-hero--illustrated .tm-lead{
  font-size:clamp(21px,2.3vw,29px);
  line-height:1.35;
  font-weight:800;
  color:#fff;
  margin:12px 0;
}
.tm-page .tm-hero--illustrated .tm-hero-copy>p:not(.tm-eyebrow):not(.tm-lead){
  color:#e1eefb;
  font-size:clamp(16px,1.35vw,20px);
  line-height:1.58;
  margin:0;
  max-width:720px;
}
.tm-page .tm-hero--illustrated .tm-meta{
  color:#ffdc81;
  font-size:13px;
  font-weight:750;
  margin-top:24px;
}
.tm-page .tm-hero-art{
  position:relative;
  z-index:1;
  width:100%;
  min-width:0;
  min-height:200px;
  align-self:stretch;
  display:flex;
  justify-content:center;
  align-items:center;
  pointer-events:none;
}
.tm-page .tm-hero-art::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,#143b623d,transparent 43%);
}
.tm-page .tm-hero-art img{
  display:block;
  width:112%;
  max-width:none;
  height:auto;
  max-height:300px;
  object-fit:contain;
  object-position:center right;
  filter:brightness(1.13) contrast(1.06);
}
@media(max-width:1050px){
  .tm-page .tm-hero.tm-hero--illustrated{
    grid-template-columns:minmax(0,1fr);
    row-gap:6px;
  }
  .tm-page .tm-hero-art{
    width:min(100%,660px);
    justify-self:center;
    align-self:center;
    min-height:175px;
  }
  .tm-page .tm-hero-art img{
    width:100%;
    max-height:230px;
  }
}
@media(max-width:580px){
  .tm-page .tm-hero.tm-hero--illustrated{
    min-height:0;
    gap:8px;
    padding:26px 19px;
    border-radius:17px;
  }
  .tm-page .tm-hero--illustrated :is(h1,[data-alba-view-title]){font-size:clamp(38px,9vw,55px)}
  .tm-page .tm-hero--illustrated .tm-lead{font-size:21px}
  .tm-page .tm-hero--illustrated .tm-meta{
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:13px;
  }
  .tm-page .tm-hero-art{
    width:100%;
    min-height:108px;
  }
  .tm-page .tm-hero-art img{max-height:152px}
}
