body.redesigned {
  --paper: #f2f0e7; --surface: #dce2e8; --panel: #d9dee4;
  --ink: #1b2631; --muted: #3f4b57; --line: #a5afba; --accent: #293f56;
  --ed-ink: #1b2631; --ed-muted: #3f4b57; --ed-panel: #dce2e8; --ed-line: #a5afba;
  --ed-accent: #293f56; --folio: #f7f3e9; --shadow: #222d39;
}
body.theme-ia { --accent: #265e60; --ed-accent: #265e60; --shadow: #153841; }
body.theme-bc { --accent: #2e4257; --ed-accent: #2e4257; --shadow: #1f2d3c; }
body.theme-recursos { --accent: #2d4156; --ed-accent: #2d4156; --shadow: #2d3844; }
body.theme-asociacion { --accent: #484f74; --ed-accent: #484f74; --shadow: #292e4a; }
body.theme-contribuir { --accent: #743e30; --ed-accent: #743e30; --shadow: #492f29; }
body.theme-sala { --accent: #205767; --ed-accent: #205767; --shadow: #153846; }
.redesigned .head {
  position: relative; z-index: 3; background: #121a23; color: #e8ebef; --line: #576777; --accent: #ccd9e7;
}
.redesigned .head-line { min-height: 68px; }
.redesigned .mobile-nav nav { background: #121a23; color: #e8ebef; }
.redesigned .page-hero {
  background: repeating-linear-gradient(0deg, transparent 0 23px, #2c3a4810 23px 24px), var(--folio);
}
.redesigned .hero-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .91fr);
  padding-block: clamp(1.5rem, 4vw, 3.9rem); gap: clamp(26px, 5vw, 95px);
}
.redesigned .hero-body h1 {
  font: 590 clamp(2.6rem, 5.2vw, 6.15rem)/.99 Manrope, sans-serif; letter-spacing: -.073em;
}
.redesigned .lead { max-width: 44ch; font-size: clamp(1rem, 1.5vw, 1.21rem); line-height: 1.65; }
.redesigned .page-hero .section-art {
  width: 100%; max-height: 450px; aspect-ratio: 1.65; object-fit: cover;
  border-radius: 2px; border-color: #505d6a; background: var(--shadow);
  filter: saturate(.89); box-shadow: 8px 8px 0 #8694a24a;
}
.redesigned[data-instrument-mode] .section-art { will-change: transform; }
.redesigned .fieldwork {
  padding: clamp(40px, 6vw, 94px) max(4vw, calc((100vw - 1270px)/2));
  background: var(--shadow); color: #edf0f3; border-bottom: 1px solid #4f5c6a;
}
.fieldwork header { margin-bottom: 24px; }
.redesigned .fieldwork .kicker { color: #c6d1dd; }
.fieldwork h2 {
  margin-bottom: 8px; font: 400 clamp(2.05rem, 4.1vw, 4.6rem)/1.06 Georgia, serif; letter-spacing: -.054em;
}
.redesigned .fieldwork p { color: #dbe1e7; max-width: 64ch; }
.instrument-layout {
  display: grid; grid-template-columns: minmax(205px, .65fr) minmax(0, 1.35fr);
  border: 1px solid #a5b2bf76; background: #151c2366;
}
.instrument-layout nav { display: grid; align-content: start; border-right: 1px solid #a5b2bf76; }
.instrument-layout nav a {
  min-height: 46px; padding: 10px 18px; color: #e2e8ef; text-decoration: none;
  border-bottom: 1px solid #b2beca4d; display: flex; align-items: center; font-size: .9rem; font-weight: 700;
}
.instrument-layout nav a:hover { background: #e9eff514; }
.instrument-layout nav a[aria-current] { color: #19222c; background: #d2dde9; }
.instrument-display { min-height: 194px; }
.instrument-panel { padding: clamp(18px, 3vw, 37px); }
.instrument-panel + .instrument-panel { border-top: 1px solid #a5b2bf76; }
.instrument-panel h3 { font-size: clamp(1.35rem, 2.5vw, 2.55rem); color: #f5f8fb; letter-spacing: -.045em; }
.instrument-panel p { margin: 9px 0 16px; }
.instrument-panel>a, .instrument-panel>a:hover { color: #d2dde9; font-weight: 750; display: inline-block; }
.instrument-panel.arrival { animation: panel-in .3s ease-out; }
@keyframes panel-in { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.reader-path { background: #d9dfe6; border-block: 1px solid #aeb7c0; }
.reader-path ol {
  display: flex; gap: 0; flex-wrap: wrap; margin: 0 auto; max-width: 1400px; padding: 0 clamp(1.1rem, 4vw, 4rem);
  list-style: none;
}
.reader-path li { flex: 1 1 175px; border-left: 1px solid #a8b3bf; }
.reader-path a { display: flex; min-height: 48px; padding: 10px 15px; align-items: center; font-size: .86rem; line-height: 1.35; font-weight: 720; text-decoration: none; }
.reader-path a:hover { background: #d1d8df; }
.redesigned .content-grid { padding-top: clamp(30px, 4vw, 72px); }
.redesigned .aiiab-lectura .lectura-block { border-radius: 0; }
.redesigned .aiiab-pie { --ed-line:#515f6d; --ed-accent:#cad8e6; }
.redesigned .aiiab-pie p { color: #c5ced8; }
@media (max-width: 760px) {
  .redesigned .head-line { min-height: 59px; }
  .redesigned .hero-body { grid-template-columns: 1fr; gap: 1.2rem; }
  .redesigned .hero-body h1 { font-size: clamp(2.35rem, 10vw, 3.9rem); }
  .redesigned .page-hero .section-art { width: 100%; max-block-size: 230px; }
  .redesigned .fieldwork { padding-inline: 1.1rem; }
  .instrument-layout { grid-template-columns: 1fr; }
  .instrument-layout nav { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; }
  .instrument-layout nav a { border-right: 1px solid #b2beca4d; padding-inline: 10px; }
  .instrument-display { min-height: 170px; }
  .reader-path ol { padding-inline: .5rem; }
  .reader-path li { flex-basis: 145px; }
}
@media (prefers-reduced-motion: reduce) { .instrument-panel.arrival { animation: none; } }
body.redesigned { --ed-paper: #e1e6eb; --ed-aura: #7d8e9f18; }
.redesigned .action, .redesigned .action:hover,
.redesigned .skip-nav, .redesigned .skip-nav:focus { background: var(--accent); color: #fcfaf2; }
.redesigned .lectura-block > ol > li, .redesigned .lectura-fuentes,
.redesigned .ed-ejercicio { background: #dbe1e8; }
.redesigned .lectura-block th { background: #d2d8df; }
.redesigned .tail { color: #dde4eb; --muted: #c4ced8; --accent: #ccd9e7; }
.reader-path a[aria-current] { background: #ced5dd; box-shadow: inset 0 -3px var(--accent); }
.theme-ia .instrument-display {
  background: repeating-linear-gradient(0deg, transparent 0 26px, #cbd8e520 26px 27px), #0f323d;
}
.theme-ia .instrument-panel h3 { font-family: Georgia, serif; font-weight: 400; }
.theme-recursos .instrument-display { background: #222a33; }
.theme-asociacion .instrument-display { background: #212a42; }
.theme-contribuir .instrument-display { background: #362823; }
.theme-sala .instrument-display { background: #142b37; }

.evidence-bars { display: grid; gap: 7px; max-width: 415px; margin: 16px 0 20px; }
.evidence-bars div { display: grid; grid-template-columns: 8.4em minmax(0, 1fr); align-items: center; gap: 8px; font-size: .8rem; }
.evidence-bars dd { display: flex; align-items: center; gap: 11px; margin: 0; }
.evidence-bars meter { flex: 1; min-width: 0; height: 13px; appearance: none; }
.evidence-bars meter::-webkit-meter-bar { background: #315660; border: 0; border-radius: 0; }
.evidence-bars meter::-webkit-meter-optimum-value { background: #aabfd5; border-radius: 0; }
.evidence-bars meter::-moz-meter-bar { background: #aabfd5; border-radius: 0; }
@media (prefers-reduced-motion: no-preference) {
  .arrival .evidence-bars meter { animation: measured .45s cubic-bezier(.18,.75,.29,1) both; }
  @keyframes measured { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
}
