:root {
  --oe-ink: #101a3a;
  --oe-paper: #fbf8f0;
  --oe-paper-deep: #f1ece1;
  --oe-cyan: #0eb7c7;
  --oe-raspberry: #cf2868;
  --oe-raspberry-deep: #7f1c50;
  --oe-gold: #f5b642;
  --oe-line: rgba(16, 26, 58, 0.18);
  --oe-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Transición de entrada/salida: se limita a opacidad y transformación. */
html {
  background: var(--oe-paper);
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

#root {
  min-width: 0;
}

html.oe-leaving #root,
html.oe-leaving .cookie-banner {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 170ms var(--oe-ease), transform 170ms var(--oe-ease);
}

.oe-loading {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--oe-ink);
  color: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 280ms var(--oe-ease), visibility 0s linear 280ms;
}

.oe-loading[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.oe-loading__panel {
  width: min(100%, 360px);
  display: grid;
  gap: 18px;
  text-align: center;
}

.oe-loading__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 248px);
  min-height: 74px;
  padding: 12px 18px;
  background: var(--oe-paper);
}

.oe-loading__logo {
  display: block;
  width: min(100%, 194px);
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.oe-loading__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.oe-loading__line {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.oe-loading__line::before {
  display: block;
  width: 42%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, var(--oe-cyan), var(--oe-gold));
  animation: oe-loading 900ms var(--oe-ease) infinite;
}

@keyframes oe-loading {
  from { transform: translateX(-130%); }
  to { transform: translateX(310%); }
}

@media (prefers-reduced-motion: reduce) {
  .oe-loading__line::before { animation: none; transform: translateX(35%); }
}

/* El bloque de candidatura evita cualquier título cortado. */
.careers-form-layout,
.careers-intro__grid,
.teresa-book__grid,
.catalogue__head,
.catalogue__console {
  min-width: 0;
}

.careers-form-aside {
  overflow: visible !important;
  align-self: stretch;
  padding: clamp(28px, 4vw, 68px) !important;
  background: linear-gradient(145deg, var(--oe-raspberry) 0%, #b72063 54%, var(--oe-raspberry-deep) 100%) !important;
  color: #fff !important;
}

.careers-form-aside > * {
  max-width: 100%;
}

.careers-form-aside h2,
.careers-intro__grid h2 {
  max-width: 12ch;
  margin-inline: 0;
  overflow: visible !important;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  font-size: clamp(2.45rem, 5.1vw, 5.1rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.careers-form-aside h2 {
  color: #fff !important;
}

.careers-form-aside h2 strong,
.careers-form-aside h2 em,
.careers-form-aside h2 span {
  color: var(--oe-gold);
}

.careers-form-aside p,
.careers-form-aside li {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* La próxima publicación de Teresa se recompone en una columna legible en móvil. */
.teresa-book {
  background: var(--oe-paper);
}

.teresa-book__grid {
  gap: clamp(26px, 5vw, 80px) !important;
}

.teresa-book__copy {
  min-width: 0;
}

.teresa-book__copy h2 {
  max-width: 12ch;
  overflow-wrap: anywhere;
  font-size: clamp(2.5rem, 6vw, 4.8rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.teresa-book__copy a {
  min-height: 44px;
}

/* Catálogo: conserva filtros y acordeones, pero los estructura como una consola editorial clara. */
.catalogue {
  background: var(--oe-paper) !important;
}

.catalogue__head {
  gap: 22px;
}

.catalogue__console {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 38px) !important;
  border: 1px solid var(--oe-line);
  background: #fff;
  box-shadow: 0 18px 38px rgba(16, 26, 58, 0.08);
}

.console__search {
  min-width: 0;
}

.console__search input,
#catalogue-search {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(16, 26, 58, 0.34) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--oe-ink) !important;
  box-shadow: none !important;
}

.console__search input:focus,
#catalogue-search:focus {
  outline: 3px solid rgba(14, 183, 199, 0.24);
  outline-offset: 2px;
  border-color: var(--oe-cyan) !important;
}

.filter-set {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.filter-set button {
  min-height: 40px;
  padding: 8px 12px !important;
  border: 1px solid var(--oe-line) !important;
  background: #fff !important;
  color: var(--oe-ink) !important;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.12;
  text-align: left;
  transition: transform 150ms var(--oe-ease), background 150ms var(--oe-ease), color 150ms var(--oe-ease), border-color 150ms var(--oe-ease);
}

.filter-set button:hover,
.filter-set button:focus-visible {
  border-color: var(--oe-cyan) !important;
  background: rgba(14, 183, 199, 0.08) !important;
}

.filter-set button:active {
  transform: scale(0.97);
}

.filter-set button.is-active {
  border-color: var(--oe-ink) !important;
  background: var(--oe-ink) !important;
  color: #fff !important;
}

.filter-set--categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  width: 100%;
}

.filter-set--categories button {
  min-height: 58px;
}

.catalogue__groups {
  display: grid;
  gap: 12px;
}

.catalogue-group {
  overflow: hidden;
  border: 1px solid var(--oe-line) !important;
  background: #fff;
}

.catalogue-group__summary {
  display: grid;
  grid-template-columns: minmax(74px, 0.18fr) minmax(0, 0.75fr) minmax(0, 1.15fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 18px !important;
  text-align: left;
}

.catalogue-group__summary > * {
  min-width: 0;
}

.catalogue-group__summary:hover {
  background: rgba(14, 183, 199, 0.045);
}

/* Señal editorial de inclusión, diversidad y transversalidad. */
.oe-inclusion-ribbon {
  display: grid;
  grid-template-columns: minmax(120px, 0.48fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 46px);
  align-items: start;
  margin: clamp(22px, 4vw, 46px) 0;
  padding: clamp(22px, 4vw, 42px);
  border-top: 4px solid var(--oe-cyan);
  background: var(--oe-ink);
  color: #fff;
}

.oe-inclusion-ribbon__eyebrow {
  margin: 0;
  color: var(--oe-cyan);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.oe-inclusion-ribbon h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.oe-inclusion-ribbon__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Cookie funcional existente: más visible, comprensible y usable sin modificar sus acciones. */
.cookie-banner {
  z-index: 2147483000 !important;
  max-width: min(100% - 32px, 960px);
  padding: 16px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0 !important;
  background: rgba(16, 26, 58, 0.97) !important;
  color: #fff !important;
  box-shadow: 0 18px 48px rgba(16, 26, 58, 0.28);
  backdrop-filter: blur(14px);
}

.cookie-banner::before {
  display: block;
  margin-bottom: 7px;
  color: var(--oe-cyan);
  content: "TU PRIVACIDAD IMPORTA";
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.cookie-banner p,
.cookie-banner span,
.cookie-banner div {
  color: rgba(255, 255, 255, 0.86);
}

.cookie-banner a {
  color: #fff !important;
  text-underline-offset: 3px;
}

.cookie-banner button {
  min-height: 42px;
  padding: 10px 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
  color: #fff !important;
}

.cookie-banner button:last-child {
  border-color: var(--oe-cyan) !important;
  background: var(--oe-cyan) !important;
  color: var(--oe-ink) !important;
}

.cookie-banner button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--oe-gold);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .oe-loading__panel {
    width: min(100%, 290px);
  }

  .careers-intro__grid,
  .careers-form-layout,
  .teresa-book__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .careers-form-aside {
    padding: 28px 22px !important;
  }

  .careers-form-aside h2,
  .careers-intro__grid h2 {
    max-width: 10ch;
    font-size: clamp(2.38rem, 13.5vw, 4.1rem) !important;
    line-height: 0.91 !important;
    letter-spacing: -0.07em;
  }

  .teresa-book__copy {
    padding: 25px 20px;
    border-top: 4px solid var(--oe-gold);
    background: #fff;
  }

  .teresa-book__copy h2 {
    max-width: 10ch;
    font-size: clamp(2.35rem, 12.8vw, 3.8rem) !important;
    line-height: 0.91 !important;
  }

  .catalogue__console {
    gap: 14px;
    padding: 16px !important;
  }

  .filter-set {
    gap: 7px;
  }

  .filter-set:not(.filter-set--categories) button {
    flex: 1 1 calc(50% - 7px);
  }

  .filter-set--categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .filter-set--categories button {
    min-height: 62px;
    padding: 9px !important;
    font-size: 0.7rem;
  }

  .catalogue-group__summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    min-height: 0;
    padding: 16px !important;
  }

  .catalogue-group__summary > :nth-child(3) {
    grid-column: 1 / -1;
  }

  .oe-inclusion-ribbon {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 20px;
  }

  .cookie-banner {
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    max-width: none;
    padding: 15px !important;
  }

  .cookie-banner button {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Ajuste final del aviso: compacto en móvil, sin retirar acciones ni información. */
@media (max-width: 760px) {
  .cookie-banner {
    max-height: min(255px, calc(100svh - 24px));
    overflow-y: auto;
    padding: 12px 13px !important;
  }

  .cookie-banner::before {
    margin-bottom: 4px;
    font-size: 0.59rem;
  }

  .cookie-banner p,
  .cookie-banner span,
  .cookie-banner div,
  .cookie-banner a {
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }

  .cookie-banner button {
    min-height: 36px;
    padding: 7px 9px !important;
    font-size: 0.67rem !important;
  }
}

/* Consentimiento explícito: sustituye el banner pasivo por una decisión clara antes de navegar. */
.cookie-banner[aria-hidden="true"] {
  display: none !important;
}

body.oe-consent-open {
  overflow: hidden;
}

.oe-consent {
  position: fixed;
  z-index: 2147483500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(8, 15, 36, 0.76);
  backdrop-filter: blur(10px);
}

.oe-consent__panel {
  width: min(100%, 620px);
  padding: clamp(28px, 5vw, 54px);
  border-top: 5px solid var(--oe-cyan);
  background: var(--oe-paper);
  color: var(--oe-ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.oe-consent__eyebrow {
  margin: 0 0 20px;
  color: var(--oe-cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.oe-consent h2 {
  max-width: 11ch;
  margin: 0;
  color: var(--oe-ink);
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.9;
  text-wrap: balance;
}

.oe-consent h2::first-letter {
  color: var(--oe-raspberry);
}

.oe-consent__panel > p:not(.oe-consent__eyebrow) {
  max-width: 58ch;
  margin: 25px 0 18px;
  color: rgba(16, 26, 58, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

.oe-consent__policy {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  color: var(--oe-ink) !important;
  border-bottom: 2px solid var(--oe-cyan);
  font-size: 0.82rem;
  font-weight: 750;
}

.oe-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}

.oe-consent__actions button {
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--oe-ink) !important;
  background: transparent !important;
  color: var(--oe-ink) !important;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 150ms var(--oe-ease), background 150ms var(--oe-ease), color 150ms var(--oe-ease);
}

.oe-consent__actions button:last-child {
  border-color: var(--oe-ink) !important;
  background: var(--oe-ink) !important;
  color: #fff !important;
}

.oe-consent__actions button:hover,
.oe-consent__actions button:focus-visible {
  transform: translateY(-2px);
}

.oe-consent__actions button:active {
  transform: scale(0.97);
}

@media (max-width: 560px) {
  .oe-consent {
    padding: 15px;
    align-items: end;
  }

  .oe-consent__panel {
    padding: 25px 20px 20px;
  }

  .oe-consent h2 {
    max-width: 10ch;
    font-size: clamp(2.25rem, 13.5vw, 3.6rem);
  }

  .oe-consent__panel > p:not(.oe-consent__eyebrow) {
    margin: 17px 0 12px;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .oe-consent__actions {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
}

/* Dirección de arte corporativa: refinamiento editorial sin sustituir la arquitectura original. */
body {
  background: var(--oe-paper);
  color: var(--oe-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  border-top: 3px solid var(--oe-cyan);
  border-bottom: 1px solid rgba(16, 26, 58, 0.16);
  background: rgba(251, 248, 240, 0.96);
  box-shadow: 0 10px 28px rgba(16, 26, 58, 0.045);
  backdrop-filter: blur(14px);
}

.topbar__row {
  min-height: 78px;
}

.topbar__nav a {
  position: relative;
  padding-block: 6px;
  color: rgba(16, 26, 58, 0.78);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.topbar__nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--oe-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 170ms var(--oe-ease);
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  color: var(--oe-ink);
}

.topbar__nav a:hover::after,
.topbar__nav a:focus-visible::after {
  transform: scaleX(1);
}

.topbar__cta {
  min-height: 42px;
  border-color: var(--oe-ink) !important;
  box-shadow: inset 0 0 0 1px rgba(16, 26, 58, 0.04);
  transition: transform 150ms var(--oe-ease), background 150ms var(--oe-ease), color 150ms var(--oe-ease);
}

.topbar__cta:hover,
.topbar__cta:focus-visible {
  transform: translateY(-2px);
  background: var(--oe-ink) !important;
  color: #fff !important;
}

.hero {
  background: var(--oe-paper);
}

.hero__statement {
  padding-top: clamp(52px, 7vw, 104px);
  padding-bottom: clamp(52px, 7vw, 104px);
}

.hero__proof {
  border-top-color: rgba(255, 255, 255, 0.22) !important;
  border-bottom-color: rgba(255, 255, 255, 0.16) !important;
}

.hero__actions a,
.hero__text-link {
  text-underline-offset: 5px;
}

.catalogue__ruler {
  border-top-color: var(--oe-cyan) !important;
}

.catalogue__notes {
  max-width: 76ch;
  color: rgba(16, 26, 58, 0.76);
}

.catalogue-group__summary {
  transition: background 160ms var(--oe-ease), box-shadow 160ms var(--oe-ease);
}

.catalogue-group__summary:hover,
.catalogue-group__summary:focus-visible {
  box-shadow: inset 4px 0 0 var(--oe-cyan);
}

.programmes {
  background: linear-gradient(180deg, var(--oe-paper) 0%, var(--oe-paper-deep) 100%);
}

.programme {
  border-color: rgba(16, 26, 58, 0.2) !important;
  transition: transform 180ms var(--oe-ease), box-shadow 180ms var(--oe-ease);
}

.programme:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(16, 26, 58, 0.09);
}

.programme__bar {
  background: linear-gradient(90deg, var(--oe-cyan), var(--oe-gold), var(--oe-raspberry)) !important;
}

.contact {
  background: var(--oe-ink);
}

.contact__board {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.contact__brandmark img,
.topbar__brand img,
.centres-header__brand img,
.books-header__brand img {
  image-rendering: auto;
  object-fit: contain;
}

/* El espacio editorial de libros se vuelve más respirable sin tocar contenidos. */
.books-shelf,
.author-matter,
.editorial-catalogue,
.reader-notes,
.books-note {
  border-top-color: rgba(16, 26, 58, 0.16) !important;
}

.books-shelf > .shell,
.author-matter > .shell,
.editorial-catalogue > .shell,
.reader-notes > .shell,
.books-note > .shell {
  padding-block: clamp(50px, 8vw, 110px);
}

.centres-header,
.books-hero {
  background-color: var(--oe-ink) !important;
  background-image: linear-gradient(125deg, rgba(14, 183, 199, 0.12), transparent 46%) !important;
}

@media (max-width: 760px) {
  .topbar__row {
    min-height: 66px;
  }

  .topbar__actions {
    gap: 10px;
  }

  .topbar__cta {
    min-height: 36px;
  }

  .hero__statement {
    padding-top: 42px;
    padding-bottom: 46px;
  }

  .catalogue__notes {
    max-width: none;
  }

  .programme:hover {
    transform: none;
    box-shadow: none;
  }

  .books-shelf > .shell,
  .author-matter > .shell,
  .editorial-catalogue > .shell,
  .reader-notes > .shell,
  .books-note > .shell {
    padding-block: 48px;
  }
}


/* --------------------------------------------------------------------------
   Preferencias de lectura y anticipación: capa opcional, editorial y reversible
   -------------------------------------------------------------------------- */
:root {
  --oe-text-scale: 0;
  --oe-rule: rgba(16, 26, 58, 0.22);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--oe-cyan) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(251, 248, 240, 0.96) !important;
}

::selection {
  color: var(--oe-ink);
  background: #bdecef;
}

.oe-logo--faithful {
  max-width: 100%;
  height: auto;
  image-rendering: auto;
}

.oe-video-summary {
  max-width: 62ch;
  margin: .8rem auto 0;
  padding: .75rem .9rem;
  color: var(--oe-ink);
  background: var(--oe-paper);
  border-left: 3px solid var(--oe-cyan);
  font-size: .9rem;
  line-height: 1.55;
}

/* La anticipación usa etiquetas textuales, no pictogramas ornamentales. */
.oe-anticipation {
  display: grid;
  grid-template-columns: minmax(16rem, .9fr) minmax(0, 1.7fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
  margin: clamp(2rem, 5vw, 5rem) 0;
  padding: clamp(1.35rem, 3vw, 2.8rem);
  color: var(--oe-ink);
  background: var(--oe-paper);
  border-top: 4px solid var(--oe-cyan);
  border-bottom: 1px solid var(--oe-rule);
}

.oe-anticipation__eyebrow,
.oe-course-anticipation__eyebrow,
.oe-accessibility__eyebrow {
  margin: 0 0 .5rem;
  color: #007986;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.oe-anticipation h3,
.oe-course-anticipation h4 {
  margin: 0 0 .8rem;
  color: var(--oe-ink);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.oe-anticipation__intro > p:last-child {
  max-width: 34ch;
  margin: 0;
  line-height: 1.55;
}

.oe-anticipation__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--oe-rule);
}

.oe-anticipation__grid > div {
  min-height: 7.4rem;
  padding: 1rem 1rem 1.2rem 0;
  border-bottom: 1px solid var(--oe-rule);
}

.oe-anticipation__grid > div:nth-child(odd) { padding-right: 1.25rem; }
.oe-anticipation__grid > div:nth-child(even) {
  padding-left: 1.25rem;
  border-left: 1px solid var(--oe-rule);
}

.oe-anticipation dt {
  margin-bottom: .45rem;
  color: var(--oe-ink);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.oe-anticipation dd {
  margin: 0;
  color: #30405b;
  font-size: .94rem;
  line-height: 1.45;
}

.oe-anticipation__note {
  grid-column: 1 / -1;
  margin: .15rem 0 0;
  padding-top: 1rem;
  color: #30405b;
  border-top: 1px solid var(--oe-rule);
  line-height: 1.5;
}

.oe-course-anticipation {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, .92fr);
  gap: 1.4rem 2.5rem;
  margin: .25rem 0 1.3rem;
  padding: 1.3rem 1.45rem 1.5rem;
  color: var(--oe-ink);
  background: #e5f6f6;
  border-left: 4px solid var(--oe-cyan);
}

.oe-course-anticipation h4 { font-size: 1.65rem; }
.oe-course-anticipation p { margin: 0; line-height: 1.55; }

.oe-course-anticipation ol {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: oe-step;
}

.oe-course-anticipation li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.45;
  counter-increment: oe-step;
}

.oe-course-anticipation li::before {
  position: absolute;
  top: .02rem;
  left: 0;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  color: var(--oe-ink);
  border: 1px solid currentColor;
  content: counter(oe-step);
  font-size: .7rem;
  font-weight: 800;
}

.oe-course-anticipation__contact {
  grid-column: 1 / -1;
  margin: .15rem 0 0 !important;
  padding-top: .85rem;
  border-top: 1px solid var(--oe-rule);
}

.oe-course-anticipation__contact a {
  color: inherit;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

/* Formularios: orientación y estado sin añadir campos ni ruido visual. */
.oe-form-guidance {
  max-width: 62ch;
  margin: 0 0 1.25rem !important;
  padding: .75rem .9rem;
  color: var(--oe-ink);
  background: #e5f6f6;
  border-left: 3px solid var(--oe-cyan);
  font-size: .92rem;
  line-height: 1.5;
}

.oe-form-status {
  min-height: 1.5rem;
  margin-top: .8rem;
  color: #8b164d;
  font-weight: 700;
  line-height: 1.45;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
input:invalid:not(:placeholder-shown),
select:invalid,
textarea:invalid:not(:placeholder-shown) {
  border-color: #a31857 !important;
  box-shadow: inset 0 0 0 1px #a31857;
}

/* Panel de preferencias: una herramienta compacta, textual y reversible. */
.oe-accessibility {
  position: fixed;
  right: clamp(.75rem, 2vw, 1.5rem);
  bottom: clamp(.75rem, 2vw, 1.5rem);
  z-index: 80;
  width: min(25rem, calc(100vw - 1.5rem));
  color: var(--oe-ink);
}

.oe-accessibility__toggle,
.oe-accessibility__panel button { font: inherit; }

.oe-accessibility__toggle {
  float: right;
  min-height: 2.75rem;
  padding: .7rem 1rem;
  color: var(--oe-paper);
  background: var(--oe-ink);
  border: 1px solid var(--oe-ink);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform 160ms var(--oe-ease), background 160ms var(--oe-ease);
}

.oe-accessibility__toggle:hover,
.oe-accessibility__toggle[aria-expanded="true"] {
  color: var(--oe-ink);
  background: var(--oe-paper);
}

.oe-accessibility__toggle:active { transform: scale(.97); }

.oe-accessibility__panel {
  clear: both;
  margin-bottom: .7rem;
  padding: 1.15rem;
  background: var(--oe-paper);
  border: 1px solid var(--oe-ink);
  border-top: 4px solid var(--oe-cyan);
  box-shadow: 0 14px 35px rgba(7, 26, 58, .18);
}

.oe-accessibility__panel[hidden] { display: none; }

.oe-accessibility__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.oe-accessibility__head h2 {
  margin: 0;
  color: var(--oe-ink);
  font-size: 1.75rem;
  line-height: .98;
  letter-spacing: -.045em;
}

.oe-accessibility__close,
.oe-accessibility__reset {
  padding: .38rem .1rem;
  color: var(--oe-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: .76rem;
  font-weight: 800;
}

.oe-accessibility__intro,
.oe-accessibility__state,
.oe-accessibility__speech-status {
  margin: .8rem 0;
  color: #30405b;
  font-size: .88rem;
  line-height: 1.45;
}

.oe-accessibility__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}

.oe-accessibility__controls button,
.oe-accessibility__speech button {
  min-height: 2.5rem;
  padding: .45rem .62rem;
  color: var(--oe-ink);
  background: transparent;
  border: 1px solid rgba(16, 26, 58, .45);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.oe-accessibility__controls button[aria-pressed="true"],
.oe-accessibility__speech button:first-child:hover {
  color: var(--oe-paper);
  background: var(--oe-ink);
  border-color: var(--oe-ink);
}

.oe-accessibility__speech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-top: .75rem;
}

.oe-accessibility__speech-status {
  grid-column: 1 / -1;
  min-height: 1.25rem;
  margin: .05rem 0 0;
}

/* Preferencias aplicadas únicamente cuando la persona las selecciona. */
body.oe-reading-mode main { background: var(--oe-paper); }

body.oe-reading-mode main :is(p, li, dd, dt, label, input, select, textarea) {
  font-size: calc(1em + .07rem) !important;
  line-height: 1.68 !important;
}

body.oe-reading-mode main :is(p, li, dd, label) { max-width: 68ch; }

body.oe-extra-spacing main :is(p, li, dd, label, input, select, textarea) {
  letter-spacing: .025em !important;
  word-spacing: .08em;
  line-height: 1.78 !important;
}

body.oe-reading-font main :is(p, li, dd, dt, label, input, select, textarea, .oe-form-guidance) {
  font-family: Georgia, 'Times New Roman', serif !important;
}

body.oe-high-contrast { filter: contrast(1.25) saturate(.88); }
body.oe-high-contrast .oe-accessibility,
body.oe-high-contrast .oe-consent { filter: contrast(.8) saturate(1.14); }

html[style*="--oe-text-scale: 1"] main :is(p, li, dd, label, input, select, textarea) {
  font-size: calc(1em + .12rem) !important;
}

html[style*="--oe-text-scale: 2"] main :is(p, li, dd, label, input, select, textarea) {
  font-size: calc(1em + .22rem) !important;
}

html[style*="--oe-text-scale: -1"] main :is(p, li, dd, label, input, select, textarea) {
  font-size: calc(1em - .04rem) !important;
}

.oe-bionic-word { font-weight: 800; }

body.oe-motion-reduced *,
body.oe-motion-reduced *::before,
body.oe-motion-reduced *::after {
  scroll-behavior: auto !important;
  transition-duration: .01ms !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
}

body.oe-motion-reduced video { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 760px) {
  .oe-anticipation,
  .oe-course-anticipation { grid-template-columns: 1fr; }

  .oe-anticipation__grid { grid-template-columns: 1fr; }

  .oe-anticipation__grid > div,
  .oe-anticipation__grid > div:nth-child(odd),
  .oe-anticipation__grid > div:nth-child(even) {
    min-height: auto;
    padding: .85rem 0;
    border-left: 0;
  }

  .oe-course-anticipation__contact { grid-column: auto; }

  .oe-accessibility {
    right: .75rem;
    bottom: .75rem;
    width: min(25rem, calc(100vw - 1.5rem));
  }

  .oe-accessibility__panel {
    max-height: min(75vh, 37rem);
    overflow: auto;
  }
}


/* Auditoría final: objetivos de acción y foco nunca oculto por ayudas fijas. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  scroll-margin-block: 6rem;
}

.programme > a[href="#contacto"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 10px;
}


/* --------------------------------------------------------------------------
   Correcciones finales de claridad, contraste y edición — v3
   -------------------------------------------------------------------------- */

/* El cursor editorial es bonito en condiciones normales, pero nunca puede
   sustituir al cursor del sistema cuando se pide alto contraste. */
body.oe-high-contrast,
html.has-editorial-cursor body.oe-high-contrast,
html.has-editorial-cursor body.oe-high-contrast * {
  cursor: default !important;
}

html.has-editorial-cursor body.oe-high-contrast :is(a[href], button:not([disabled]), summary, [role="button"], [role="link"]) {
  cursor: pointer !important;
}

html.has-editorial-cursor body.oe-high-contrast :is(input:not([type="checkbox"]):not([type="radio"]), textarea) {
  cursor: text !important;
}

html.has-editorial-cursor body.oe-high-contrast :is(select, input[type="checkbox"], input[type="radio"]) {
  cursor: default !important;
}

body.oe-high-contrast .editorial-cursor {
  display: none !important;
}

/* Vídeo corporativo: una pieza continua de ambiente, sin reproductor visible
   ni texto de reserva superpuesto. */
video[aria-label*="Vídeo corporativo"] {
  pointer-events: none;
}

video[aria-label*="Vídeo corporativo"]::-webkit-media-controls,
video[aria-label*="Vídeo corporativo"]::-webkit-media-controls-enclosure {
  display: none !important;
}

.oe-video-summary {
  display: none !important;
}

/* La marca no vuelve a apoyarse directamente sobre tinta: se convierte en una
   pequeña pieza de papel, nítida y estable, sin alterar el azul del encabezado. */
.centres-header .brand {
  gap: .56rem !important;
  padding: .44rem .7rem .44rem .48rem;
  color: var(--oe-ink) !important;
  background: var(--oe-paper);
  box-shadow: 0 0 0 1px rgba(16, 26, 58, .1);
}

.centres-header .brand img,
.centres-header__brand img,
.books-header__brand img {
  width: 46px !important;
  height: 48px !important;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

.centres-header .brand :is(b, small) {
  color: var(--oe-ink) !important;
  text-shadow: none !important;
}

.centres-header nav a,
.centres-header :is(.centres-header__nav, .books-header__nav) a {
  color: rgba(255, 255, 255, .94) !important;
  text-shadow: none;
}

.centres-header nav a:hover,
.centres-header nav a:focus-visible,
.centres-header :is(.centres-header__nav, .books-header__nav) a:hover,
.centres-header :is(.centres-header__nav, .books-header__nav) a:focus-visible {
  color: var(--oe-cyan) !important;
}

/* El buscador queda como una única mesa de trabajo: primero categoría y después
   público y formato. Así se elimina el vacío de tres columnas incompatibles. */
.catalogue__console {
  gap: 16px;
  padding: clamp(18px, 3vw, 32px) !important;
  box-shadow: none;
}

.console__heading {
  display: flex;
  gap: .7rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .8rem;
  color: var(--oe-ink);
  border-bottom: 1px solid var(--oe-rule);
  font-size: .86rem;
  font-weight: 780;
}

.console__heading > :first-child {
  color: var(--oe-cyan);
}

.console__heading b {
  display: inline-block;
  padding: .28rem .45rem;
  color: var(--oe-ink);
  border: 1px solid var(--oe-line);
  font-size: .68rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

.console__search label {
  display: block;
  margin-bottom: .48rem;
  color: #30405b;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.console__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px clamp(20px, 3vw, 42px);
  align-items: start;
}

.console__controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.console__controls fieldset:nth-child(2) {
  grid-column: 1 / -1;
  order: -1;
}

.console__controls legend {
  margin-bottom: .7rem;
  color: #30405b;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.console__controls fieldset:nth-child(2) legend::before { content: "1 · "; color: var(--oe-cyan); }
.console__controls fieldset:nth-child(1) legend::before { content: "2 · "; color: var(--oe-cyan); }
.console__controls fieldset:nth-child(3) legend::before { content: "3 · "; color: var(--oe-cyan); }

.console__controls .filter-set--categories {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.console__controls .filter-set--categories button {
  min-height: 50px;
}

.oe-anticipation {
  margin: 1.4rem 0 clamp(2rem, 4vw, 3.8rem);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: #fff;
  border: 1px solid var(--oe-rule);
  border-top: 4px solid var(--oe-cyan);
}

.oe-anticipation__intro::after {
  display: block;
  width: 2.8rem;
  height: 2px;
  margin-top: 1rem;
  content: "";
  background: var(--oe-gold);
}

/* Teresa deja de ser una promesa o un juego. Se presenta como edición real,
   con portada, contraportada y datos de escena. */
.oe-teresa-edition {
  background: var(--oe-paper) !important;
  border-top: 1px solid rgba(16, 26, 58, .16);
  border-bottom: 1px solid rgba(16, 26, 58, .16);
}

.oe-teresa-edition__grid {
  display: grid;
  grid-template-columns: minmax(18rem, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(3.2rem, 7vw, 7rem);
}

.oe-teresa-edition__covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.65rem, 1.5vw, 1.25rem);
  align-items: start;
}

.oe-teresa-edition__cover {
  min-width: 0;
  margin: 0;
}

.oe-teresa-edition__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.08;
  object-fit: cover;
  box-shadow: 10px 14px 0 rgba(16, 26, 58, .11), 0 10px 26px rgba(16, 26, 58, .14);
}

.oe-teresa-edition__cover:nth-child(2) {
  padding-top: clamp(1.5rem, 4vw, 4.5rem);
}

.oe-teresa-edition__cover figcaption {
  margin-top: .72rem;
  color: #30405b;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.oe-teresa-edition__copy {
  max-width: 42rem;
}

.oe-teresa-edition__copy .micro-label {
  margin: 0 0 1rem;
  color: #007986;
  font-weight: 800;
  letter-spacing: .08em;
}

.oe-teresa-edition__copy h2 {
  max-width: 11ch;
  margin: 0;
  color: var(--oe-ink);
  font-size: clamp(2.7rem, 6vw, 5.5rem) !important;
  line-height: .88 !important;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.oe-teresa-edition__copy h2 mark {
  padding: 0;
  color: var(--oe-raspberry);
  background: transparent;
}

.oe-teresa-edition__copy > p:not(.micro-label) {
  max-width: 57ch;
  margin: 1.35rem 0 0;
  color: #30405b;
  line-height: 1.62;
}

.oe-teresa-edition__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.65rem 0 0;
  border-top: 1px solid var(--oe-rule);
}

.oe-teresa-edition__facts > div {
  padding: .84rem .85rem .9rem 0;
  border-bottom: 1px solid var(--oe-rule);
}

.oe-teresa-edition__facts > div:nth-child(even) {
  padding-right: 0;
  padding-left: .85rem;
  border-left: 1px solid var(--oe-rule);
}

.oe-teresa-edition__facts dt {
  margin-bottom: .28rem;
  color: #30405b;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.oe-teresa-edition__facts dd {
  margin: 0;
  color: var(--oe-ink);
  font-size: .91rem;
  font-weight: 750;
  line-height: 1.35;
}

.oe-teresa-edition__note {
  padding-left: 1rem;
  border-left: 3px solid var(--oe-gold);
}

.oe-teresa-edition__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.5rem;
  padding: .65rem 1rem;
  color: #fff !important;
  background: var(--oe-ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform 150ms var(--oe-ease), background 150ms var(--oe-ease);
}

.oe-teresa-edition__cta:hover,
.oe-teresa-edition__cta:focus-visible {
  color: var(--oe-ink) !important;
  background: var(--oe-gold);
}

.oe-teresa-edition__cta:active { transform: scale(.97); }

/* Cada título del catálogo editorial incorpora su cubierta real como parte de
   la lectura de la ficha, sin convertirlo en una cuadrícula de tarjetas. */
.editorial-catalogue__grid article.oe-book-with-cover {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 1.05rem;
  align-items: start;
}

.oe-book-edition-cover {
  grid-row: 1 / span 5;
  margin: 0;
}

.oe-book-edition-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 5px 7px 0 rgba(16, 26, 58, .1), 0 8px 16px rgba(16, 26, 58, .13);
}

.editorial-catalogue__grid article.oe-book-with-cover > :not(.oe-book-edition-cover) {
  grid-column: 2;
}

@media (max-width: 760px) {
  .centres-header .brand {
    padding: .36rem .52rem .36rem .36rem;
  }

  .centres-header .brand img {
    width: 38px !important;
    height: 40px !important;
  }

  .console__heading {
    align-items: flex-start;
    font-size: .78rem;
  }

  .console__controls {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .console__controls fieldset:nth-child(2) { grid-column: auto; }

  .console__controls .filter-set--categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oe-anticipation {
    margin-top: 1rem;
  }

  .oe-teresa-edition__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 3.5rem;
  }

  .oe-teresa-edition__covers {
    width: min(100%, 32rem);
    margin-inline: auto;
  }

  .oe-teresa-edition__copy h2 {
    max-width: 10ch;
    font-size: clamp(2.5rem, 13vw, 4rem) !important;
  }

  .oe-teresa-edition__facts {
    grid-template-columns: 1fr;
  }

  .oe-teresa-edition__facts > div,
  .oe-teresa-edition__facts > div:nth-child(even) {
    padding: .78rem 0;
    border-left: 0;
  }

  .editorial-catalogue__grid article.oe-book-with-cover {
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: .85rem;
  }
}


/* Voces del grupo: testimonios reales sin imagen personal, compuestos como
   fragmentos editoriales y no como un carrusel ni un muro de tarjetas. */
.oe-student-voices {
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 8rem);
  color: #fff;
  background: var(--oe-ink);
}

.oe-student-voices__head {
  display: grid;
  grid-template-columns: minmax(9rem, .52fr) minmax(0, 1.28fr) minmax(15rem, .86fr);
  gap: clamp(1.2rem, 4vw, 4.5rem);
  align-items: end;
  padding-bottom: clamp(2.25rem, 5vw, 4.8rem);
}

.oe-student-voices__eyebrow {
  align-self: start;
  margin: .4rem 0 0;
  color: var(--oe-cyan);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.45;
}

.oe-student-voices__head h2 {
  max-width: 9ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  font-weight: 760;
  letter-spacing: -.075em;
  line-height: .86;
  text-wrap: balance;
}

.oe-student-voices__head h2 mark {
  padding: 0;
  color: var(--oe-gold);
  background: transparent;
}

.oe-student-voices__head > p:last-child {
  max-width: 32ch;
  margin: 0 0 .28rem;
  color: rgba(255, 255, 255, .76);
  font-size: .95rem;
  line-height: 1.55;
}

.oe-student-voices__list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: rgba(255, 255, 255, .2);
}

.oe-student-voices__list li {
  position: relative;
  min-height: 15.5rem;
  padding: clamp(1.35rem, 2.6vw, 2.35rem);
  color: var(--oe-ink);
  background: var(--oe-paper);
}

.oe-student-voices__list li::before {
  display: block;
  height: 2.15rem;
  margin-bottom: .35rem;
  color: var(--oe-cyan);
  content: "“";
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
}

.oe-student-voices__list li:nth-child(1) {
  grid-column: span 5;
  background: var(--oe-paper-deep);
}

.oe-student-voices__list li:nth-child(2) {
  grid-column: span 7;
  color: #fff;
  background: #007986;
}

.oe-student-voices__list li:nth-child(2)::before { color: var(--oe-gold); }

.oe-student-voices__list li:nth-child(3) { grid-column: span 4; }

.oe-student-voices__list li:nth-child(4) {
  grid-column: span 5;
  color: #fff;
  background: var(--oe-raspberry);
}

.oe-student-voices__list li:nth-child(4)::before { color: var(--oe-gold); }

.oe-student-voices__list li:nth-child(5) {
  grid-column: span 3;
  background: var(--oe-gold);
}

.oe-student-voices blockquote {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.02rem, 1.45vw, 1.38rem);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.4;
}

.oe-student-voices cite {
  position: absolute;
  right: clamp(1.35rem, 2.6vw, 2.35rem);
  bottom: clamp(1.35rem, 2.6vw, 2.35rem);
  color: #007986;
  font-size: .69rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.oe-student-voices li:nth-child(2) cite,
.oe-student-voices li:nth-child(4) cite { color: var(--oe-gold); }

.oe-student-voices li:nth-child(5) cite { color: var(--oe-ink); }

@media (max-width: 900px) {
  .oe-student-voices__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }

  .oe-student-voices__head > p:last-child {
    grid-column: 2;
  }

  .oe-student-voices__eyebrow { grid-column: 1 / -1; }

  .oe-student-voices__list li:nth-child(n) { grid-column: span 6; }
}

@media (max-width: 620px) {
  .oe-student-voices__head { grid-template-columns: 1fr; }

  .oe-student-voices__head > p:last-child { grid-column: auto; }

  .oe-student-voices__head h2 {
    max-width: 10ch;
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .oe-student-voices__list { grid-template-columns: 1fr; }

  .oe-student-voices__list li:nth-child(n) {
    grid-column: auto;
    min-height: 0;
    padding: 1.55rem 1.35rem 3.55rem;
  }

  .oe-student-voices blockquote { max-width: none; }
}


/* Ajuste de identidad: Programas es un territorio claro, con el punto gráfico
   visible sobre papel y una llamada de contacto con peso propio. */
.programmes {
  position: relative;
  color: var(--oe-ink) !important;
  background: var(--oe-paper);
}

.programmes::after {
  color: #007986 !important;
  content: 'ORIGINALS EDUCA / CREACIÓN · INCLUSIÓN · EDUCACIÓN' !important;
  font-weight: 800;
}

.programmes__head .micro-label {
  color: #007986 !important;
  font-weight: 850;
}

.programmes__head h2 {
  position: relative;
  display: inline-block;
  color: var(--oe-ink) !important;
  text-shadow: none;
}

.programmes__head h2 mark {
  color: #d38a00 !important;
  background: transparent;
}

.programmes__head h2::after {
  position: absolute;
  top: .12em;
  right: -.62em;
  width: clamp(.72rem, 1.2vw, 1.12rem);
  height: clamp(.72rem, 1.2vw, 1.12rem);
  border: 2px solid var(--oe-ink);
  border-radius: 50%;
  background: var(--oe-cyan);
  box-shadow: .32rem .32rem 0 -0.14rem var(--oe-gold);
  content: '';
}

.programmes__grid .programme--callout {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 17.8rem;
  padding: clamp(1.5rem, 3vw, 2.55rem);
  color: #fff !important;
  background: var(--oe-ink) !important;
  box-shadow: inset 0 0 0 1px rgba(14, 183, 199, .45);
}

.programmes__grid .programme--callout::after {
  width: clamp(2.5rem, 4vw, 4.2rem);
  height: clamp(2.5rem, 4vw, 4.2rem);
  border: 2px solid var(--oe-cyan);
  border-radius: 50%;
  background: var(--oe-ink) !important;
  box-shadow: .5rem .5rem 0 -0.23rem var(--oe-raspberry);
}

.programmes__grid .programme--callout b {
  max-width: 12ch;
  color: #fff !important;
  font-size: clamp(1.48rem, 2.5vw, 2.5rem);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: .98;
}

.programmes__grid .programme--callout span {
  margin-top: 1.5rem;
  color: var(--oe-gold) !important;
  font-weight: 850;
}

.oe-teresa-edition__release {
  display: inline-flex;
  width: fit-content;
  margin: .55rem 0 1rem !important;
  padding: .42rem .68rem;
  color: var(--oe-ink) !important;
  border-left: 3px solid var(--oe-raspberry);
  background: #f9deaa;
  font-size: .73rem !important;
  font-weight: 850;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.oe-book-retailer-link,
.oe-author-retailer-link {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin-top: .72rem;
  padding: .62rem .82rem;
  color: #007986 !important;
  border: 1px solid currentColor;
  background: transparent;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.1;
}

.oe-book-retailer-link:hover,
.oe-book-retailer-link:focus-visible,
.oe-author-retailer-link:hover,
.oe-author-retailer-link:focus-visible {
  color: var(--oe-ink) !important;
  background: var(--oe-gold);
}

.oe-high-contrast .programmes__head h2::after {
  background: #fff !important;
  border-color: #fff !important;
  box-shadow: .32rem .32rem 0 -0.14rem #fff;
}

@media (max-width: 720px) {
  .programmes__head h2::after {
    right: -.45em;
    top: .02em;
  }

  .programmes__grid .programme--callout { min-height: 14.2rem; }
}


/* Formulario de testimonios: revisión humana y consentimiento antes de cualquier publicación. */
.oe-testimonial-form-section {
  padding-block: clamp(3.5rem, 8vw, 8rem);
  color: var(--oe-ink);
  background: var(--oe-paper-deep);
}

.oe-testimonial-form__grid {
  display: grid;
  grid-template-columns: minmax(16rem, .78fr) minmax(0, 1.22fr);
  gap: clamp(2.1rem, 7vw, 8rem);
  align-items: start;
}

.oe-testimonial-form__eyebrow {
  margin: 0 0 1rem;
  color: #007986;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.oe-testimonial-form__intro h2 {
  max-width: 10ch;
  margin: 0 0 1.55rem;
  font-size: clamp(2.5rem, 5.1vw, 5.2rem);
  font-weight: 760;
  letter-spacing: -.075em;
  line-height: .86;
}

.oe-testimonial-form__intro h2 mark {
  color: var(--oe-raspberry);
  background: transparent;
}

.oe-testimonial-form__intro > p:not(.oe-testimonial-form__eyebrow) {
  max-width: 37ch;
  font-size: 1rem;
  line-height: 1.58;
}

.oe-testimonial-form__note {
  padding: .9rem 1rem;
  color: #fff;
  background: var(--oe-ink);
  font-size: .88rem !important;
  font-weight: 650;
}

.oe-testimonial-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  padding: clamp(1.25rem, 3vw, 2.45rem);
  border-top: 5px solid var(--oe-cyan);
  background: #fff;
  box-shadow: 0 18px 35px rgba(16, 26, 58, .09);
}

.oe-testimonial-form__field {
  display: grid;
  gap: .45rem;
}

.oe-testimonial-form__field--wide,
.oe-testimonial-form__check,
.oe-testimonial-form__privacy,
.oe-testimonial-form__actions { grid-column: 1 / -1; }

.oe-testimonial-form label {
  color: var(--oe-ink);
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.35;
}

.oe-testimonial-form input:not([type="checkbox"]),
.oe-testimonial-form select,
.oe-testimonial-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 26, 58, .4);
  border-radius: 0;
  background: #fff;
  color: var(--oe-ink);
  font: inherit;
  line-height: 1.35;
}

.oe-testimonial-form input:not([type="checkbox"]),
.oe-testimonial-form select { min-height: 48px; padding: .7rem .78rem; }

.oe-testimonial-form textarea {
  min-height: 9.5rem;
  padding: .85rem .78rem;
  resize: vertical;
}

.oe-testimonial-form input:not([type="checkbox"]):focus-visible,
.oe-testimonial-form select:focus-visible,
.oe-testimonial-form textarea:focus-visible {
  outline: 3px solid var(--oe-cyan);
  outline-offset: 2px;
  border-color: var(--oe-ink);
}

.oe-testimonial-form__check {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  padding-top: .1rem;
}

.oe-testimonial-form__check input { 
  width: 1.15rem;
  height: 1.15rem;
  margin: .1rem 0 0;
  accent-color: var(--oe-raspberry);
}

.oe-testimonial-form__check span {
  color: var(--oe-ink);
  font-size: .86rem;
  font-weight: 550;
  line-height: 1.45;
}

.oe-testimonial-form__privacy {
  margin: .1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 26, 58, .18);
  color: #526078;
  font-size: .78rem;
  line-height: 1.5;
}

.oe-testimonial-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding-top: .2rem;
}

.oe-testimonial-form__actions button {
  min-height: 48px;
  padding: .78rem 1.05rem;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: var(--oe-ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .02em;
}

.oe-testimonial-form__actions button:hover,
.oe-testimonial-form__actions button:focus-visible { background: var(--oe-raspberry); }

.oe-testimonial-form__status {
  flex: 1 1 14rem;
  min-height: 1.3rem;
  margin: 0;
  color: #007986;
  font-size: .8rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .oe-testimonial-form__grid,
  .oe-testimonial-form { grid-template-columns: 1fr; }

  .oe-testimonial-form__intro h2 { font-size: clamp(2.5rem, 13vw, 4.25rem); }

  .oe-testimonial-form__field--wide,
  .oe-testimonial-form__check,
  .oe-testimonial-form__privacy,
  .oe-testimonial-form__actions { grid-column: auto; }
}


.oe-testimonial-form__privacy a {
  color: var(--oe-ink);
  font-weight: 850;
  text-decoration-color: var(--oe-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: .16em;
}

.oe-testimonial-form__privacy a:focus-visible {
  outline: 3px solid var(--oe-cyan);
  outline-offset: 3px;
}


/* Depuración editorial: los microtítulos decorativos no deben competir con el contenido. */
.micro-label { display: none !important; }

/* Carga de marca: símbolo original con profundidad, sin placa blanca ni rayas. */
.oe-loading__brand {
  width: min(100%, 232px);
  min-height: 0;
  padding: 0;
  background: transparent;
}

.oe-loading__logo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 24px 52px rgba(0, 0, 0, .26);
}

/* Placa editorial puntual: pequeñas chinchetas, no un patrón repetido. */
.oe-service-testimonials {
  position: relative;
  isolation: isolate;
}

.oe-service-testimonials::before,
.oe-service-testimonials::after {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 50%;
  box-shadow: 2px 3px 0 rgba(16, 26, 58, .24), inset -2px -2px 3px rgba(16, 26, 58, .18), inset 2px 2px 3px rgba(255, 255, 255, .55);
  pointer-events: none;
}

.oe-service-testimonials::before {
  top: clamp(1.2rem, 3vw, 2.4rem);
  right: clamp(1.25rem, 5vw, 6rem);
  background: var(--oe-gold);
}

.oe-service-testimonials::after {
  right: clamp(2.3rem, 9vw, 12rem);
  bottom: clamp(1.3rem, 3vw, 2.7rem);
  width: 11px;
  height: 11px;
  background: var(--oe-raspberry);
}

/* Las tarjetas de entrada conservan espacio para títulos largos y no se solapan. */
.hero-card h2,
.hero-card h3,
.intro-card h2,
.intro-card h3,
.signal-card h2,
.signal-card h3,
.feature-card h2,
.feature-card h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: .93 !important;
}

@media (max-width: 760px) {
  .oe-loading__brand { width: min(100%, 186px); }
  .oe-service-testimonials::before { right: 1.15rem; }
  .oe-service-testimonials::after { right: 3.65rem; }
}


/* La jerarquía descansa en los titulares: retiramos los antetítulos de apoyo puramente decorativos. */
.oe-inclusion-ribbon__eyebrow,
.oe-anticipation__eyebrow,
.oe-student-voices__eyebrow,
.oe-testimonial-form__eyebrow { display: none !important; }

/* Tarjetas de entrada: todo titular largo conserva su bloque de lectura. */
.entry-cards a,
.entry-card,
.entry-card__content,
.entry-card__title,
.intro-links a,
.intro-links h2,
.intro-links h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.entry-cards h2,
.entry-cards h3,
.entry-card h2,
.entry-card h3,
.intro-links h2,
.intro-links h3 {
  margin-block: .45rem .65rem !important;
  line-height: .9 !important;
  letter-spacing: -.065em;
}


/* Corrección puntual del solapamiento detectado en la tercera tarjeta de entrada. */
.entry-grid .entry-card h2 {
  display: block;
  min-height: 2.04em;
  margin-block: .5rem .75rem !important;
  line-height: 1.02 !important;
  letter-spacing: -.055em;
}


/* Salvaguarda visual del cargador: el estado de cierre prevalece sobre cualquier regla de carga. */
.oe-loading.is-dismissed,
.oe-loading[hidden] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* Entrada editorial final: breve, densa y claramente de Originals. */
.oe-loading {
  background: #101a3a;
  background-image: radial-gradient(circle at 50% 44%, rgba(14, 183, 199, .11), transparent 29%), linear-gradient(135deg, #101a3a 0%, #0b1530 100%);
}

.oe-loading__panel {
  width: min(100%, 340px);
  gap: .85rem;
}

.oe-loading__brand {
  width: min(100%, 216px);
  margin-inline: auto;
}

.oe-loading__logo {
  width: 100%;
  box-shadow: 0 26px 62px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .05);
}

.oe-loading__copy { display: grid; gap: .22rem; }

.oe-loading__name {
  margin: 0;
  color: #fff;
  font-size: .71rem;
  font-weight: 850;
  letter-spacing: .2em;
}

.oe-loading__text {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.oe-loading__line {
  width: min(100%, 184px);
  margin-inline: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .oe-loading__panel { animation: oe-loader-entrance 240ms cubic-bezier(.23, 1, .32, 1) both; }
}

@keyframes oe-loader-entrance {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* El acceso de lectura no debe competir con el contenido ni cubrir citas. */
.oe-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.oe-accessibility {
  width: 48px;
  right: clamp(.65rem, 1.6vw, 1.15rem);
  bottom: clamp(.65rem, 1.6vw, 1.15rem);
}

.oe-accessibility__toggle {
  float: none;
  display: grid;
  width: 48px;
  min-height: 48px;
  padding: 0;
  place-items: center;
  color: var(--oe-ink);
  border: 1px solid rgba(16, 26, 58, .18);
  border-radius: 50%;
  background: var(--oe-paper);
  box-shadow: 0 6px 18px rgba(16, 26, 58, .18);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -.05em;
}

.oe-accessibility__toggle:hover,
.oe-accessibility__toggle[aria-expanded="true"] {
  color: #fff;
  background: var(--oe-ink);
}

.oe-accessibility__panel {
  position: absolute;
  right: 0;
  bottom: 3.5rem;
  width: min(25rem, calc(100vw - 1.5rem));
  margin: 0;
}

/* Programas gana aire: los titulares son suficientes sin repetir «Línea de trabajo». */
.programme__meta { display: none !important; }

@media (max-width: 760px) {
  .oe-loading__brand { width: 186px; }
  .oe-accessibility { right: .65rem; bottom: .65rem; }
  .oe-accessibility__panel { width: min(23rem, calc(100vw - 1.3rem)); }
}


/* Libros: el bloque de autor conserva su asimetría, con menos vacío y acciones separadas. */
.author-matter > .shell {
  padding-block: clamp(2.7rem, 4.6vw, 4.8rem) !important;
}

.author-matter__grid {
  gap: clamp(2rem, 5vw, 5.6rem) !important;
  align-items: center !important;
}

.author-matter__grid > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: .85rem 1rem;
}

.author-matter__grid > div:last-child > p {
  flex: 0 0 100%;
  margin: 0 0 .45rem !important;
}

.author-matter__grid > div:last-child > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .72rem 1rem;
  border: 1px solid var(--oe-ink);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: -.01em;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 180ms var(--oe-ease), box-shadow 180ms var(--oe-ease), color 180ms var(--oe-ease), background 180ms var(--oe-ease);
}

.author-matter__grid > div:last-child > a:not(.oe-author-retailer-link) {
  color: var(--oe-paper);
  background: var(--oe-ink);
}

.author-matter__grid > div:last-child > .oe-author-retailer-link {
  color: #007986;
  border-color: #007986;
  background: transparent;
}

/* Cada cita decide su propia altura: la firma deja de competir con el texto. */
.oe-student-voices__list li {
  display: flex;
  flex-direction: column;
}

.oe-student-voices cite {
  position: static;
  display: block;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 1.1rem;
}

/* Hover con desplazamiento corto y sombra de tinta: destacado sin aspecto de plantilla. */
@media (hover: hover) and (pointer: fine) {
  .author-matter__grid > div:last-child > a:hover,
  .author-matter__grid > div:last-child > a:focus-visible,
  .oe-teresa-edition__cta:hover,
  .oe-teresa-edition__cta:focus-visible,
  .oe-testimonial-form__actions button:hover,
  .oe-testimonial-form__actions button:focus-visible,
  .topbar__cta:hover,
  .topbar__cta:focus-visible {
    transform: translate(-2px, -3px);
    box-shadow: 5px 5px 0 var(--oe-gold);
  }

  .author-matter__grid > div:last-child > a:not(.oe-author-retailer-link):hover,
  .author-matter__grid > div:last-child > a:not(.oe-author-retailer-link):focus-visible,
  .oe-teresa-edition__cta:hover,
  .oe-teresa-edition__cta:focus-visible,
  .oe-testimonial-form__actions button:hover,
  .oe-testimonial-form__actions button:focus-visible {
    color: var(--oe-ink);
    background: var(--oe-cyan);
  }

  .author-matter__grid > div:last-child > .oe-author-retailer-link:hover,
  .author-matter__grid > div:last-child > .oe-author-retailer-link:focus-visible {
    color: var(--oe-paper);
    border-color: #007986;
    background: #007986;
  }
}

.author-matter__grid > div:last-child > a:active,
.oe-teresa-edition__cta:active,
.oe-testimonial-form__actions button:active,
.topbar__cta:active { transform: scale(.97); }

@supports (content-visibility: auto) {
  .oe-student-voices,
  .oe-testimonial-form-section,
  .editorial-catalogue {
    content-visibility: auto;
    contain-intrinsic-size: auto 860px;
  }
}

@media (max-width: 760px) {
  .author-matter > .shell { padding-block: 3.1rem !important; }
  .author-matter__grid { gap: 2.25rem !important; }
  .author-matter__grid > div:last-child > a { flex: 1 1 100%; }
  .oe-student-voices cite { padding-top: 1.25rem; }
}

/* Revisión v24: composición de testimonios, papelería y cargador sin placa oscura. */
.oe-service-testimonials {
  overflow: clip;
  background-color: var(--oe-ink);
  background-image:
    radial-gradient(circle at 16% 19%, rgba(255, 255, 255, .055) 0 1px, transparent 1.35px),
    radial-gradient(circle at 77% 63%, rgba(14, 183, 199, .10) 0 1px, transparent 1.45px),
    linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 36%);
  background-size: 15px 15px, 19px 19px, auto;
}

.oe-service-testimonials .oe-student-voices__head {
  grid-template-columns: minmax(0, .93fr) minmax(16.5rem, 1fr);
  gap: clamp(1.8rem, 5vw, 5.8rem);
  align-items: center;
}

.oe-service-testimonials .oe-student-voices__head h2,
.oe-service-testimonials .oe-student-voices__head > p:last-child,
.oe-service-testimonials .oe-student-voices__list li,
.oe-service-testimonials .oe-student-voices__list blockquote {
  min-width: 0;
  overflow-wrap: anywhere;
}

.oe-service-testimonials .oe-student-voices__head h2 {
  max-width: 7.2ch;
  font-size: clamp(2.6rem, 5.2vw, 5.45rem);
  line-height: .88;
}

.oe-service-testimonials .oe-student-voices__head > p:last-child {
  max-width: 31ch;
  padding-block: .4rem;
  border-left: 2px solid rgba(14, 183, 199, .78);
  padding-left: clamp(1rem, 2vw, 1.45rem);
}

.oe-service-testimonials .oe-student-voices__list li:not(:nth-child(2)):not(:nth-child(4)) {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 30px, rgba(16, 26, 58, .045) 31px);
}

/* Chinchetas físicas: brillo, borde, sombra de contacto y aguja insinuada. */
.oe-service-testimonials::before,
.oe-service-testimonials::after {
  z-index: 4;
  width: 20px;
  height: 26px;
  border: 1px solid rgba(16, 26, 58, .34);
  border-radius: 52% 52% 50% 50% / 46% 46% 58% 58%;
  clip-path: polygon(50% 100%, 42% 73%, 26% 62%, 20% 42%, 29% 17%, 50% 7%, 71% 17%, 80% 42%, 74% 62%, 58% 73%);
  box-shadow:
    2px 4px 0 rgba(8, 14, 34, .34),
    5px 9px 12px rgba(0, 0, 0, .28),
    inset 2px 2px 3px rgba(255, 255, 255, .60),
    inset -3px -4px 5px rgba(0, 0, 0, .28);
  filter: drop-shadow(0 7px 5px rgba(0, 0, 0, .26));
  transform-origin: 50% 65%;
}

.oe-service-testimonials::before {
  top: clamp(1.35rem, 3vw, 2.6rem);
  right: clamp(1.4rem, 5.4vw, 6.5rem);
  background:
    radial-gradient(ellipse at 35% 27%, rgba(255, 255, 255, .90) 0 12%, transparent 28%),
    radial-gradient(ellipse at 50% 41%, #ffe29b 0 18%, #f5b642 42%, #be7e12 76%, #6f4308 100%);
  transform: perspective(42px) rotateX(12deg) rotate(-10deg);
}

.oe-service-testimonials::after {
  right: clamp(2.5rem, 9vw, 12.5rem);
  bottom: clamp(1.4rem, 3.2vw, 2.85rem);
  width: 18px;
  height: 24px;
  background:
    radial-gradient(ellipse at 35% 27%, rgba(255, 255, 255, .84) 0 12%, transparent 28%),
    radial-gradient(ellipse at 50% 41%, #fb83ae 0 18%, #cf2868 43%, #8b1747 76%, #520c2a 100%);
  transform: perspective(42px) rotateX(12deg) rotate(11deg);
}

/* El cargador presenta el símbolo completo sobre un medallón de papel, no sobre un cuadrado negro. */
.oe-loading__panel {
  width: min(100%, 362px);
  gap: 1rem;
}

.oe-loading__brand {
  position: relative;
  display: grid;
  width: min(100%, 278px);
  aspect-ratio: 1;
  min-height: 0;
  margin-inline: auto;
  padding: 21px;
  overflow: visible;
  border: 1px solid rgba(16, 26, 58, .12);
  border-radius: 50%;
  background-color: var(--oe-paper);
  background-image:
    radial-gradient(circle at 18% 21%, rgba(14, 183, 199, .10) 0 1px, transparent 1.3px),
    radial-gradient(circle at 74% 78%, rgba(207, 40, 104, .08) 0 1px, transparent 1.2px),
    linear-gradient(135deg, #fffdf8 0%, #f3ede0 100%);
  background-size: 13px 13px, 17px 17px, auto;
  box-shadow: 0 18px 0 rgba(5, 10, 28, .14), 0 27px 38px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.oe-loading__brand::after {
  position: absolute;
  inset: 11px;
  z-index: 0;
  border: 1px dashed rgba(16, 26, 58, .18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.oe-loading__logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(16, 26, 58, .22));
  box-shadow: none;
}

@media (max-width: 820px) {
  .oe-service-testimonials .oe-student-voices__head {
    grid-template-columns: minmax(0, .95fr) minmax(15rem, 1fr);
    gap: clamp(1.45rem, 5vw, 2.6rem);
  }

  .oe-service-testimonials .oe-student-voices__head h2 {
    font-size: clamp(2.45rem, 7vw, 4.2rem);
  }
}

@media (max-width: 620px) {
  .oe-service-testimonials .oe-student-voices__head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .oe-service-testimonials .oe-student-voices__head h2 { max-width: 8ch; }

  .oe-service-testimonials .oe-student-voices__head > p:last-child {
    max-width: 35ch;
    padding-top: .8rem;
  }

  .oe-loading__brand {
    width: min(100%, 232px);
    padding: 18px;
  }
}

@supports not (overflow: clip) {
  .oe-service-testimonials { overflow: hidden; }
}

/* Revisión v25: catálogo más descriptivo, contacto claro y controles sin solapamientos. */
.course__skills {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
  min-width: 0;
}

.course__skills i {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.course__facts b { white-space: normal; }
.course__duration { max-width: 27ch; }

/* Formulario de testimonios bajo demanda: disponible, pero sin dominar la página. */
.oe-testimonial-form-section {
  padding-block: clamp(2.2rem, 5vw, 4.8rem);
}

.oe-testimonial-form__grid { display: block; }

.oe-testimonial-disclosure {
  max-width: 72rem;
  margin-inline: auto;
  border-top: 5px solid var(--oe-cyan);
  border-bottom: 1px solid rgba(16, 26, 58, .23);
  background: var(--oe-paper);
}

.oe-testimonial-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 6rem;
  padding: clamp(1rem, 2.7vw, 1.65rem);
  color: var(--oe-ink);
  cursor: pointer;
  list-style: none;
}

.oe-testimonial-disclosure > summary::-webkit-details-marker { display: none; }

.oe-testimonial-disclosure > summary > span:first-child {
  font-size: clamp(1.38rem, 3vw, 2.65rem);
  font-weight: 780;
  letter-spacing: -.058em;
  line-height: .88;
}

.oe-testimonial-disclosure > summary strong { color: var(--oe-raspberry); }

.oe-testimonial-disclosure__hint {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem .75rem;
  color: var(--oe-ink);
  border: 1px solid currentColor;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.oe-testimonial-disclosure__hint i { font-size: 1rem; font-style: normal; }

.oe-testimonial-disclosure[open] > summary {
  border-bottom: 1px solid rgba(16, 26, 58, .18);
  background: rgba(14, 183, 199, .075);
}

.oe-testimonial-disclosure__drawer {
  display: grid;
  grid-template-columns: minmax(15rem, .78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(1.25rem, 3vw, 2.6rem);
}

.oe-testimonial-disclosure__drawer .oe-testimonial-form__intro h2 { display: none; }

/* El WhatsApp queda encima de las preferencias, mientras que subir arriba ocupa el lado opuesto. */
.whatsapp-float {
  right: clamp(.65rem, 1.6vw, 1.15rem) !important;
  bottom: calc(clamp(.65rem, 1.6vw, 1.15rem) + 60px) !important;
  z-index: 78 !important;
}

#oe-back-to-top {
  position: fixed;
  z-index: 78;
  bottom: clamp(.65rem, 1.6vw, 1.15rem);
  left: clamp(.65rem, 1.6vw, 1.15rem);
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: var(--oe-paper);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: var(--oe-ink);
  box-shadow: 0 8px 18px rgba(16, 26, 58, .22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms var(--oe-ease), transform 160ms var(--oe-ease), background 160ms var(--oe-ease);
}

#oe-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#oe-back-to-top:hover,
#oe-back-to-top:focus-visible {
  color: var(--oe-ink);
  border-color: var(--oe-gold);
  background: var(--oe-gold);
}

#oe-back-to-top:focus-visible { outline: 3px solid var(--oe-cyan); outline-offset: 3px; }
#oe-back-to-top > span[aria-hidden="true"] { font-size: 1.4rem; font-weight: 850; line-height: 1; }

/* El cursor/adorno de destellos no forma parte de la identidad y se elimina por completo. */
.editorial-cursor,
.cursor-sparkle,
[data-icon="sparkles"],
svg.lucide-sparkles { display: none !important; }

/* Parábolas: nombre completo legible y estado de venta activa. */
.oe-book-parabolas h3 {
  max-width: 16ch;
  overflow: visible;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  line-height: .88;
  letter-spacing: -.065em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.oe-book-parabolas h3 br { display: none; }

@media (max-width: 760px) {
  .oe-testimonial-disclosure > summary { align-items: flex-start; }
  .oe-testimonial-disclosure__drawer { grid-template-columns: 1fr; gap: 1.65rem; }
  .oe-testimonial-disclosure__hint { font-size: .7rem; }
  .oe-book-parabolas h3 { max-width: 100%; font-size: clamp(1.55rem, 7.2vw, 2.15rem); }
}

@media (max-width: 430px) {
  .oe-testimonial-disclosure > summary { min-height: 0; padding: 1rem; }
  .oe-testimonial-disclosure > summary > span:first-child { font-size: 1.38rem; }
  .oe-testimonial-disclosure__hint { padding: .4rem .5rem; font-size: .62rem; }
  .course__duration { max-width: 22ch; }
}

/* Revisión v29: el cursor nativo siempre prevalece sobre el cursor editorial retirado. */
html.has-editorial-cursor,
html.has-editorial-cursor body,
html.has-editorial-cursor #root,
html.has-editorial-cursor body * {
  cursor: auto !important;
}

html.has-editorial-cursor body :is(a[href], button:not([disabled]), summary, [role="button"], [role="link"], label[for]) {
  cursor: pointer !important;
}

html.has-editorial-cursor body :is(input:not([type="checkbox"]):not([type="radio"]), textarea) {
  cursor: text !important;
}

html.has-editorial-cursor body .editorial-cursor,
html.has-editorial-cursor body .cursor-sparkle,
html.has-editorial-cursor body [data-icon="sparkles"],
html.has-editorial-cursor body svg.lucide-sparkles {
  display: none !important;
}

/* Revisión v30: título editorial de Parábolas sin cortes y zona segura para controles móviles. */
.oe-book-parabolas h3 {
  display: block !important;
  min-inline-size: 0;
  max-inline-size: 100%;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.oe-book-parabolas h3 > span {
  display: block;
  max-inline-size: 100%;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .oe-book-parabolas h3 {
    font-size: clamp(1.38rem, 6.05vw, 1.72rem) !important;
    line-height: .91 !important;
    letter-spacing: -.058em !important;
  }

  .oe-book-parabolas h3 > span { white-space: normal; }

  /* Reservas laterales: el acceso a lectura queda a la derecha y volver arriba a la izquierda. */
  #oe-accessibility { right: max(.65rem, env(safe-area-inset-right)) !important; bottom: max(.65rem, env(safe-area-inset-bottom)) !important; }
  #oe-back-to-top { left: max(.65rem, env(safe-area-inset-left)) !important; bottom: max(.65rem, env(safe-area-inset-bottom)) !important; }
  .whatsapp-float { right: max(.65rem, env(safe-area-inset-right)) !important; bottom: calc(max(.65rem, env(safe-area-inset-bottom)) + 60px) !important; }
}

@media (max-width: 340px) {
  .oe-book-parabolas h3 { font-size: 1.32rem !important; }
}

/* Las líneas de Parábolas heredan el titular completo; ninguna regla editorial interna puede reducirlas. */
.oe-book-parabolas h3 > span {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  text-transform: inherit !important;
}

/* Primera visita: el diálogo de privacidad es el único elemento interactivo visible. */
body.oe-consent-open #oe-accessibility,
body.oe-consent-open #oe-back-to-top,
body.oe-consent-open .whatsapp-float {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Versión definitiva: escala el título de Parábolas según la columna real, no según la pantalla. */
.oe-book-parabolas h3 {
  container-type: inline-size;
  min-inline-size: 0 !important;
}

.oe-book-parabolas h3 > span {
  font-size: clamp(1.02rem, 15cqi, 1.48rem) !important;
  line-height: .9 !important;
  letter-spacing: -.062em !important;
  overflow: visible !important;
}

/* Auditoría final: «Programas transversales» conserva una línea completa en móviles estrechos. */
@media (max-width: 480px) {
  .programmes__head { container-type: inline-size; }
  .programmes__head h2 {
    max-inline-size: 100% !important;
    font-size: clamp(2rem, 13cqi, 3rem) !important;
    line-height: .94 !important;
    letter-spacing: -.07em !important;
    overflow-wrap: normal !important;
  }

  .programmes__head h2 mark {
    display: inline-block;
    max-inline-size: 100%;
    font: inherit !important;
    letter-spacing: inherit !important;
    white-space: nowrap;
  }
}

/* WhatsApp: control circular inequívoco, sin el recuadro textual de móvil. */
.whatsapp-float {
  position: fixed !important;
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  place-items: center !important;
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px;
  border: 2px solid var(--oe-ink) !important;
  border-radius: 50% !important;
  background: #25d366 !important;
  box-shadow: 0 8px 18px rgba(16, 26, 58, .28), inset 0 1px 0 rgba(255, 255, 255, .34) !important;
  isolation: isolate;
}

.whatsapp-float::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid var(--oe-ink);
  border-radius: 50%;
  background: transparent;
  transform: translateY(-1px);
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--oe-ink);
  border-bottom: 2px solid var(--oe-ink);
  background: #25d366;
  transform: translate(-5px, 8px) rotate(25deg);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #52df8b !important;
  box-shadow: 0 10px 22px rgba(16, 26, 58, .34), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
  transform: translateY(-2px);
}

body.oe-high-contrast .whatsapp-float {
  color: transparent !important;
  border-color: #fff !important;
  background: #000 !important;
}

body.oe-high-contrast .whatsapp-float::before { border-color: #fff; }
body.oe-high-contrast .whatsapp-float::after { border-color: #fff; background: #000; }

/* El control se muestra siempre tras el consentimiento; la regla específica del diálogo continúa ocultándolo antes de elegir. */
.whatsapp-float {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Mejora editorial: orientación antes de buscar y resultado concreto al abrir una propuesta. */
.oe-catalogue-orientation {
  max-width: 70ch;
  margin: .45rem 0 1.15rem !important;
  padding: .8rem 1rem .86rem;
  color: #30405b;
  border-left: 3px solid var(--oe-cyan);
  background: linear-gradient(90deg, rgba(14, 183, 199, .1), rgba(255, 255, 255, 0));
  font-size: .94rem;
  line-height: 1.48;
}

.oe-catalogue-orientation strong {
  color: var(--oe-ink);
  font-weight: 850;
}

.oe-course-anticipation__outcome {
  margin: 1rem 0 0 !important;
  padding: .82rem 0 0;
  color: var(--oe-ink);
  border-top: 1px solid rgba(16, 26, 58, .2);
  font-weight: 690;
  line-height: 1.45 !important;
}

.oe-course-anticipation__outcome span {
  display: block;
  margin-bottom: .3rem;
  color: #007986;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.oe-contact-reassurance {
  max-width: 62ch;
  margin: 0 0 1rem !important;
  padding: .75rem .9rem;
  color: var(--oe-ink);
  border-left: 3px solid var(--oe-gold);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 14px rgba(16, 26, 58, .08);
  font-size: .92rem;
  line-height: 1.48;
}

.oe-contact-reassurance strong { font-weight: 850; }

@media (max-width: 620px) {
  .oe-catalogue-orientation { margin-bottom: 1rem !important; padding: .76rem .84rem; }
  .oe-contact-reassurance { padding: .72rem .82rem; }
}

/* La ficha emergente también anticipa qué queda en manos del grupo. */
.oe-activity-outcome {
  margin: 1rem 0 0 !important;
  padding: .82rem 0 0;
  color: var(--oe-ink);
  border-top: 1px solid rgba(16, 26, 58, .18);
  font-size: .95rem;
  font-weight: 690;
  line-height: 1.48;
}

.oe-activity-outcome span {
  display: block;
  margin-bottom: .3rem;
  color: #007986;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
}
