/* Riesgo Tecnológico V5.0.7 — restauración conservadora sobre V5.0.5.
   No altera las grillas ni la disposición editorial del resto de la web. */
.site-header{
  position:sticky!important;
  top:0!important;
  z-index:1200!important;
  isolation:isolate;
  background:#000312!important;
  border-bottom:1px solid rgba(165,185,230,.16);
}
html{scroll-padding-top:95px}
section[id],main[id],article[id],h2[id],h3[id]{scroll-margin-top:95px}
/* Portada, recuperada del video original. */
.home-v507 .hero.hero-film{
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(145deg,#020716,#091c3f 70%,#142e55)!important;
}
.home-v507 .hero-video-poster,
.home-v507 .hero-video,
.home-v507 .hero-film-shade{
  position:absolute;inset:0;width:100%;height:100%;pointer-events:none;
}
.home-v507 .hero-video-poster{
  z-index:-3;
  background:#020716 url('video/portada-poster-v506.webp') center 47% / cover no-repeat;
}
.home-v507 .hero-video{
  z-index:-2;display:block;object-fit:cover;object-position:center 47%;
  filter:brightness(.76) saturate(.84) contrast(1.08);
}
.home-v507 .hero-film-shade{
  z-index:-1;
  background:linear-gradient(180deg,rgba(1,5,19,.55) 0%,rgba(2,6,20,.47) 48%,rgba(2,7,26,.8) 100%),
             linear-gradient(115deg,rgba(3,12,35,.54),rgba(4,17,50,.33) 52%,rgba(0,3,17,.6));
}
.home-v507 .hero-film .hero-grid{
  min-height:520px;padding:74px 0 76px;
  display:flex;align-items:center;justify-content:center;
}
.home-v507 .hero-film .hero-film-copy{
  width:min(100%,980px);margin:auto;text-align:center;
}
.home-v507 .hero-film h1{
  color:#fff;max-width:900px;margin:0 auto 32px;
  font-weight:620;font-size:clamp(2.7rem,5.1vw,4.9rem);
  line-height:1.09;letter-spacing:-.035em;text-wrap:balance;
  text-shadow:0 3px 25px rgba(0,0,0,.25);
}
.home-v507 .hero-film .action-row{display:flex;justify-content:center;gap:14px}
.home-v507 .hero-film .button{
  min-width:185px;padding:13px 23px;border-radius:12px;
  box-shadow:0 8px 23px rgba(0,0,0,.13);
}
.home-v507 .hero-film .button.primary{color:#102b55;background:#fff}
.home-v507 .hero-film .button.ghost{
  background:rgba(5,19,48,.38);border:1.5px solid #e6efff;color:#fff;
}
.home-v507 .hero-bottom-rule{
  position:absolute;inset:auto 0 0;height:2px;
  background:linear-gradient(90deg,#020716,#173566 60%,#020716);z-index:3;
}
/* Solo segundo bloque: presentación editorial de la V5.0.6, sin zoom global. */
.home-v507 .editorial-intro{background:#fff}
.home-v507 .editorial-intro-grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.86fr);
  gap:clamp(35px,6vw,90px);align-items:center;
}
.home-v507 .editorial-intro-copy{padding-block:24px}
.home-v507 .editorial-intro-copy h2{
  font-size:clamp(2rem,3.2vw,3.4rem);font-weight:690;
  line-height:1.14;margin-bottom:23px;
}
.home-v507 .editorial-intro-copy .intro{
  font-size:1.065rem;line-height:1.77;max-width:650px;margin-bottom:17px;
}
.home-v507 .editorial-intro-copy .button{margin-top:12px;text-align:center}
.home-v507 .editorial-intro-visual{
  display:block;position:relative;min-height:415px;overflow:hidden;
  border-radius:20px;background:#101f38;
  box-shadow:0 20px 55px rgba(13,31,54,.12);text-decoration:none;
}
.home-v507 .editorial-intro-visual>img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transform:none!important;transition:none!important;
}
.home-v507 .editorial-intro-visual:after{
  content:"";position:absolute;inset:30% 0 0;
  background:linear-gradient(0deg,rgba(3,10,27,.88),transparent);pointer-events:none;
}
.home-v507 .editorial-visual-caption{
  position:absolute;z-index:1;left:31px;right:31px;bottom:28px;color:#fff;
  display:flex;flex-direction:column;gap:5px;
}
.home-v507 .editorial-visual-caption strong{font-size:1.34rem;font-weight:670;letter-spacing:-.015em}
.home-v507 .editorial-visual-caption small{font-size:.92rem;color:#dce9fb}
@media(max-width:980px){
  html{scroll-padding-top:83px}
  .home-v507 .editorial-intro-grid{gap:35px}
}
@media(max-width:720px){
  html{scroll-padding-top:73px}
  section[id],main[id],article[id],h2[id],h3[id]{scroll-margin-top:73px}
  .home-v507 .hero-film .hero-grid{min-height:490px;padding:65px 0 70px}
  .home-v507 .hero-film h1{font-size:clamp(2.5rem,9.1vw,3.65rem);margin-bottom:27px}
  .home-v507 .hero-film .action-row{flex-direction:column;align-items:stretch;gap:11px}
  .home-v507 .hero-film .button{width:100%;min-width:0}
  .home-v507 .hero-video,.home-v507 .hero-video-poster{object-position:62% center;background-position:62% center}
  .home-v507 .editorial-intro-grid{grid-template-columns:1fr;gap:24px}
  .home-v507 .editorial-intro-copy{padding:0}
  .home-v507 .editorial-intro-copy h2{font-size:clamp(2.05rem,7vw,2.75rem)}
  .home-v507 .editorial-intro-copy .intro{font-size:1.02rem}
  .home-v507 .editorial-intro-visual{min-height:270px}
  .home-v507 .editorial-visual-caption{left:21px;right:21px;bottom:19px}
  .home-v507 .editorial-visual-caption strong{font-size:1.14rem}
}
@media(max-width:420px){
  .home-v507 .hero-film .hero-grid{min-height:500px}
  .home-v507 .hero-film h1{font-size:clamp(2.45rem,10vw,3rem)}
}
@media(prefers-reduced-motion:reduce){
  .home-v507 .hero-video{display:none!important}
}

/* V5.0.8 · áreas de conocimiento reordenadas en grilla 3x3. */
.knowledge-map--uniform{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:30px;
}
.knowledge-map--uniform .knowledge-card{
  min-height:100%;
  display:flex;
  flex-direction:column;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(15,36,72,.05);
}
.knowledge-map--uniform .knowledge-media{
  background:#10274b;
}
.knowledge-map--uniform .knowledge-media img{
  width:100%;
  height:208px;
  object-fit:cover;
}
.knowledge-map--uniform .knowledge-content{
  gap:12px;
  padding:24px 24px 23px;
}
.knowledge-map--uniform .knowledge-content h3{
  font-size:clamp(1.24rem,1.5vw,1.48rem);
}
.knowledge-map--uniform .knowledge-content p{
  font-size:.97rem;
  line-height:1.66;
}
.knowledge-map--uniform .knowledge-action{
  margin-top:auto;
}
.knowledge-map--uniform .knowledge-card--overview{
  background:linear-gradient(180deg,#ffffff 0%,#f5f8fd 100%);
}
.knowledge-map--uniform .knowledge-card--overview .knowledge-action{
  background:#0c336f;
}
@media(max-width:1100px){
  .knowledge-map--uniform{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media(max-width:720px){
  .knowledge-map--uniform{grid-template-columns:1fr;gap:17px}
  .knowledge-map--uniform .knowledge-media img{height:190px}
}
@media(max-width:390px){
  .knowledge-map--uniform .knowledge-media img{height:170px}
}


/* V5.0.11 · ajustes específicos y conservadores de lectura.
   Sin alterar la cabecera: su posición sticky ya funciona. */
.manual-article .manual-unit > p,
.manual-article > p{
  max-width:74ch;
}
.article-main .reading-body > p{max-width:68ch}
.manual-article .manual-unit h3{
  font-size:1.14rem;
  line-height:1.42;
  font-weight:700;
  margin-top:24px;
  margin-bottom:11px;
}
.knowledge-map--uniform .knowledge-content p{font-size:1rem}

/* Control de movimiento para el video de portada (18 segundos en bucle). */
.home-v507 .hero-motion-toggle{
  position:absolute;
  z-index:5;
  right:max(21px, calc((100vw - 1216px)/2));
  bottom:21px;
  display:inline-flex;
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:rgba(3,13,34,.64);
  border:1px solid rgba(255,255,255,.6);
  border-radius:50%;
  cursor:pointer;
  transition:background-color .18s ease, border-color .18s ease;
}
.home-v507 .hero-motion-toggle:hover{background:rgba(6,30,75,.9);border-color:#fff}
.home-v507 .hero-motion-toggle:focus-visible{outline:3px solid #a7caff;outline-offset:3px}
.home-v507 .hero-motion-toggle[hidden]{display:none!important}
.home-v507 .hero-motion-toggle .hero-motion-play{display:none}
.home-v507 .hero-motion-toggle[data-paused="true"] .hero-motion-play{display:block}
.home-v507 .hero-motion-toggle[data-paused="true"] .hero-motion-pause{display:none}
@media(prefers-reduced-motion:reduce){
  .home-v507 .hero-motion-toggle{display:none!important}
}
