/* The opening fills the first screen as a group, including the chapter links. */
html:has(.rodevia-page){
  scroll-padding-top:calc(var(--rv-header-height,75px) + 8px);
}
.rv-opening-screen{
  display:grid;
  grid-template-rows:1fr auto;
}
.v7 .rv-opening-screen .v5-product-opening{
  display:grid;
  align-items:center;
}
.rodevia-page .site-nav nav a{white-space:nowrap}
@media(min-width:681px){
  .rv-opening-screen{
    min-height:calc(100svh - var(--rv-header-height,75px));
  }
  .v7 .rv-opening-screen .v5-product-opening .v5-columns{
    min-height:0;
    padding-block:clamp(1.3rem,4.3svh,3.6rem);
  }
}
@media(max-width:680px){
  html:has(.rodevia-page){scroll-padding-top:calc(var(--rv-header-height,104px) + 8px)}
  .rodevia-page .site-nav .nav-inner{
    gap:.15rem .55rem;
    flex-wrap:wrap;
    padding-block:.35rem;
  }
  .rodevia-page .site-nav nav{
    min-width:0;
    gap:0 .5rem;
    flex-wrap:wrap;
    justify-content:flex-start;
  }
  .rodevia-page .site-nav nav a{display:flex;align-items:center;min-height:36px}
}
@media(max-width:420px){
  .rodevia-page .site-nav nav{width:100%;justify-content:space-between}
}

/* Keep the actual horned V ornamental, and clip the ornament at each chapter edge. */
.v7.v5-product :is(#produccion,#sin-conexion,#jornada){
  overflow:hidden;
  overflow:clip;
}
.v7.v5-product #produccion{
  --chapter:#efebdf;
  border-top:1px solid #c4b797;
}
.v7.v5-product #produccion:before{
  right:-7vw;
  opacity:.31;
}
.v7.v5-product #sin-conexion{
  background:radial-gradient(ellipse at 0% 100%,#254234 0%,transparent 68%),#10281e;
  color:#fff8e9;
  border-block:1px solid #6d82655c;
}
.v7.v5-product #sin-conexion:before{
  inset:auto -15vw -28% auto;
  width:min(76vw,930px);
  height:min(52vw,620px);
  opacity:.21;
}
.v7.v5-product #sin-conexion .v5-kicker{color:#d6e6a5}
.v7.v5-product #sin-conexion p:not(.v5-kicker){color:#dfe9db}
.v7.v5-product #sin-conexion .v7-cloud{
  border-top-color:#ccd6ad6b;
  margin-bottom:0;
}
@media(max-width:680px){
  .v7.v5-product #sin-conexion:before{
    inset:auto -25vw -2.5rem auto;
    width:105vw;
    height:72vw;
  }
}
@media(max-width:680px){
 .rodevia-page .site-nav nav a{min-height:44px}
}
/* At chapter boundaries on a desktop, keep the chapter in view before
   the next one begins. Longer content determines height when it needs room. */
@media(min-width:881px) and (min-height:620px){
 .v7.v5-product :is(.v5-chapter,#sin-conexion){
  min-height:calc(100svh - var(--rv-header-height,75px) - 8px);
  display:grid;
  align-items:center;
 }
}
