/* IAEstudiantil V46: enlaces legibles, sin subrayado amarillo generalizado.
   No subrayar tarjetas enteras, botones o títulos completos. */
:root{--ia-link-dark:#f6fcff}
/* En áreas oscuras, los enlaces deben poder leerse claramente. */
body.geo-body main a:any-link,
.bio-shell a:any-link,
:is(.method-shell,.tools-next-card,.study-card,.backup-hero,.manifesto-card,.teacher-banner,.fab-spotlight,.daily-card) a:any-link {
  color:var(--ia-link-dark)!important;
  text-decoration:none!important;
  overflow-wrap:anywhere;
}
/* Sólo los enlaces insertados en texto corrido llevan una marca discreta,
   blanca o del propio color; no palabras completas dentro de una tarjeta. */
body.geo-body main :is(p,li) > a:any-link,
.bio-shell :is(p,li) > a:any-link,
:is(.method-shell,.tools-next-card,.study-card,.backup-hero,.manifesto-card,.teacher-banner,.fab-spotlight,.daily-card) :is(p,li) > a:any-link {
  text-decoration:underline!important;
  text-decoration-color:currentColor!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:3px!important;
}
/* Tarjetas en la historia conectada: fondo oscuro y letras blancas. */
body.geo-body .hist-cross-country .hist-cross-grid a:any-link {
  background:linear-gradient(145deg,#173d58,#0e2c42)!important;
  color:#fff!important;
  border:1px solid #6b9bb1!important;
  box-shadow:0 4px 12px #03182e44;
  min-height:102px;
  justify-content:center;
  text-decoration:none!important;
}
body.geo-body .hist-cross-country .hist-cross-grid a:is(:hover,:focus-visible) {
  background:linear-gradient(145deg,#22536c,#144056)!important;
  border-color:#8cd9e1!important;
}
body.geo-body .hist-cross-grid a strong,
body.geo-body .hist-cross-grid a span {color:#fff!important;display:block;text-decoration:none!important}
body.geo-body .hist-lesson-card strong,
body.geo-body .hist-lesson-card .hist-card-link,
body.geo-body .geo-story-grid a strong,
body.geo-body .hist-lesson-next a,
body.geo-body .hist-cross-detail {
  color:#fff!important;
  text-decoration:none!important;
}
body.geo-body .hist-lesson-card:hover,
body.geo-body .geo-story-grid a:hover {border-color:#91d9e1!important}
/* En paneles claros y barras institucionales, enlaces de tinta oscura. */
body.geo-body :is(.edu-topbar,.edu-global-footer) a:any-link,
.bio-shell :is(.edu-topbar,.edu-global-footer) a:any-link,
:is(.method-shell,.tools-next-card,.study-card,.backup-hero,.manifesto-card,.teacher-banner,.fab-spotlight,.daily-card) :is(.edu-topbar,.edu-global-footer) a:any-link {
  color:#183b53!important;
  text-decoration:none!important;
}
/* Accesibilidad al navegar con el teclado: foco visible sin subrayado. */
body.geo-body main a:focus-visible,
.bio-shell a:focus-visible,
:is(.method-shell,.tools-next-card,.study-card,.backup-hero,.manifesto-card,.teacher-banner,.fab-spotlight,.daily-card) a:focus-visible {
  outline:3px solid #f4b638!important;
  outline-offset:4px;
}
@media (forced-colors:active) {
 body.geo-body .hist-cross-grid a {border:2px solid LinkText!important;background:Canvas!important;color:LinkText!important}
}
