.mensajero-page { background: #f5f1e8; color: #142441; overflow-wrap: anywhere; }
.mensajero-page [hidden] { display: none !important; }
.mensajero-page a, .mensajero-page button, .mensajero-page select { touch-action: manipulation; }
.mensajero-page :focus-visible { outline: 3px solid #2154c6; outline-offset: 3px; }
.mensajero-top { background: #fffdf8; border-bottom: 1px solid #c7cdd7; }
.mensajero-top__inner { width: min(100% - 32px, 1100px); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 20px; }
.mensajero-top__brand { flex: none; display: inline-flex; align-items: center; }
.mensajero-top__brand img { display: block; width: clamp(105px, 17vw, 150px); height: auto; }
.mensajero-top__links { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.mensajero-top__links a { min-height: 44px; display: inline-flex; align-items: center; color: #142e65; font-weight: 700; }
.mensajero-top__idiomas { flex: none; display: flex; border: 1px solid #aebbd0; border-radius: 999px; overflow: hidden; }
.mensajero-top__idiomas a { min-width: 44px; min-height: 44px; display: grid; place-items: center; color: #142e65; text-decoration: none; font-weight: 800; }
.mensajero-top__idiomas a[aria-current] { background: #173776; color: #fff; }
.mensajero-main { width: min(100% - 32px, 1100px); margin: 0 auto; padding: 34px 0 76px; }
.mensajero-intro { max-width: 700px; margin-bottom: 28px; }
.mensajero-eyebrow, .mensajero-portada__periodo { color: #9a5904; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mensajero-intro h1 { margin: 8px 0 10px; color: #112958; font-family: Georgia, serif; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.08; }
.mensajero-intro > p:last-child { color: #33415b; }
.mensajero-estado { min-height: 1.5em; color: #243d72; }
.mensajero-aviso { max-width: 650px; padding: 24px; border: 1px solid #c7cdd7; border-radius: 16px; background: #fffdf8; }
.mensajero-aviso h2 { font-family: Georgia, serif; color: #112958; }
.mensajero-aviso button { min-height: 44px; border: 0; border-radius: 9px; padding: 8px 16px; background: #173776; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.mensajero-portada { min-height: 270px; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 6vw, 64px); border-radius: 18px; background: linear-gradient(130deg, #102b61, #193f82); color: #fff; box-shadow: 0 12px 28px #10224b25; }
.mensajero-portada__periodo { color: #ffce73; }
.mensajero-portada h2 { max-width: 19ch; margin: 16px 0; color: #fff; font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 3.7rem); line-height: 1.08; }
.mensajero-portada > p:not(.mensajero-portada__periodo) { max-width: 62ch; color: #f2f4fb; }
.mensajero-portada__acciones { margin-top: 24px; }
.mensajero-boton { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; border-radius: 9px; background: #173776; color: #fff; font-weight: 700; text-decoration: none; text-align: center; }
.mensajero-boton--claro { background: #fac669; color: #10234b; }
.mensajero-hojeo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.mensajero-hojeo button { min-height: 44px; border: 1px solid #aebbd0; border-radius: 9px; padding: 8px 16px; background: #fffdf8; color: #112958; font: inherit; font-weight: 700; cursor: pointer; }
.mensajero-hojeo button:disabled { color: #5e6880; background: #e5e7eb; cursor: default; }
.mensajero-hojeo span { flex: 1; text-align: center; font-weight: 700; }
.mensajero-ayuda-teclado { color: #41516e; font-size: .9rem; text-align: center; }
.mensajero-pagina { min-height: 300px; max-width: 760px; margin: 28px auto 0; padding: clamp(22px, 5vw, 56px); border: 1px solid #d6d8dd; border-radius: 12px; background: #fffdf8; box-shadow: 0 8px 24px #10224b12; }
.mensajero-pagina h2 { margin-bottom: 28px; color: #112958; font-family: Georgia, serif; font-size: clamp(1.7rem, 5vw, 2.7rem); line-height: 1.2; }
.mensajero-prosa { font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.7; }
.mensajero-prosa > * + * { margin-top: 1em; }
.mensajero-prosa h3, .mensajero-prosa h4 { color: #112958; font-family: Georgia, serif; }
.mensajero-prosa ul, .mensajero-prosa ol { padding-left: 1.5em; }
.mensajero-prosa blockquote { margin-left: 0; border-left: 3px solid #bd780e; padding-left: 18px; }
.mensajero-prosa a { text-decoration: underline; }
.mensajero-prosa figure { margin: 0 0 1.25rem; }
.mensajero-creditos { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #c7cdd7; color: #42516a; font-size: .92rem; }
.mensajero-creditos p { margin: .2rem 0; overflow-wrap: anywhere; }
.mensajero-prosa img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.mensajero-archivo { margin-top: 46px; padding-top: 28px; border-top: 1px solid #b7c1d0; }
.mensajero-archivo h2 { color: #112958; font-family: Georgia, serif; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.mensajero-archivo__selector { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.mensajero-archivo__selector label { font-weight: 700; }
.mensajero-archivo__selector select { min-width: min(100%, 260px); min-height: 44px; border: 1px solid #7f93b3; border-radius: 9px; padding: 8px; background: #fff; color: #112958; font: inherit; }
.mensajero-pie { min-height: 76px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; padding: 16px; border-top: 1px solid #c7cdd7; background: #fffdf8; color: #30415e; font-size: .9rem; }
.mensajero-pie a { color: #173776; }
@media (max-width: 540px) {
  .mensajero-top__inner { flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; }
  .mensajero-top__links { order: 3; width: 100%; margin: 0; justify-content: center; border-top: 1px solid #e0e4ec; }
  .mensajero-top__idiomas { margin-left: auto; }
  .mensajero-main { padding-top: 24px; }
  .mensajero-portada { min-height: 245px; }
  .mensajero-hojeo { flex-wrap: wrap; }
  .mensajero-hojeo button { flex: 1 1 125px; }
  .mensajero-hojeo span { order: -1; flex-basis: 100%; }
  .mensajero-archivo__selector select, .mensajero-archivo__selector .mensajero-boton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .mensajero-page *, .mensajero-page *::before, .mensajero-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
