/* 2026-10-10 · Full-bleed desktop megamenus and independent brochure CTA. */
@media (min-width:1121px) {
  /* Megamenus occupy the full viewport, not the max-width content column. */
  .rmh-header__main .rmh-nav-group > .rmh-mega {
    left:50%;
    width:100vw;
    max-width:none;
    border-left:0;
    border-right:0;
    transform:translate(-50%,-6px);
    overflow-x:hidden;
    box-shadow:0 30px 64px rgba(8,25,33,.20);
  }
  .rmh-header__main .rmh-nav-group:hover:not(.nav-suppressed) > .rmh-mega,
  .rmh-header__main .rmh-nav-group:focus-within:not(.nav-suppressed) > .rmh-mega,
  .rmh-header__main .rmh-nav-group.is-open > .rmh-mega {
    transform:translate(-50%,0);
  }
  /* Editorial proportions that take advantage of wide screens. */
  .rmh-header__main #rmh-mega-nosotros .rmh-mega__content,
  .rmh-header__main #rmh-mega-proyectos .rmh-mega__content {
    grid-template-columns:minmax(265px,330px) minmax(0,1fr);
    gap:clamp(24px,3vw,55px);
    padding:30px clamp(28px,4vw,72px) 24px;
    align-items:start;
  }
  #rmh-mega-nosotros .rmh-mega__intro,
  #rmh-mega-proyectos .rmh-mega__intro {
    min-width:0;
    padding-right:24px;
  }
  #rmh-mega-nosotros .rmh-mega__intro h2,
  #rmh-mega-proyectos .rmh-mega__intro h2 {
    font-size:clamp(1.65rem,2.12vw,2.55rem);
    max-width:100%;
  }
  #rmh-mega-nosotros .rmh-mega__intro p,
  #rmh-mega-proyectos .rmh-mega__intro p {
    max-width:31ch;
  }
  #rmh-mega-nosotros .rmh-mega__cards,
  #rmh-mega-proyectos .rmh-mega__cards {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:clamp(14px,1.45vw,25px);
  }
  #rmh-mega-nosotros .rmh-mega-card__image,
  #rmh-mega-proyectos .rmh-mega-card__image {
    height:clamp(135px,12vw,197px);
  }
  #rmh-mega-nosotros .rmh-mega__bottom,
  #rmh-mega-proyectos .rmh-mega__bottom {
    padding:16px clamp(28px,4vw,72px);
  }
  /* The download link is outside the existing nav flex row: other links never move. */
  .rmh-header__main > .rmh-header__brochure {
    position:absolute;
    top:50%;
    left:calc(100% + 13px);
    transform:translateY(-50%);
    z-index:6;
  }
}
.rmh-header__brochure,
.rmh-mobile-brochure {
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  border:1px solid rgba(255,255,255,.64);
  border-radius:999px;
  padding:4px 15px 4px 4px;
  min-height:43px;
  background:rgba(255,255,255,.075);
  color:#fff;
  white-space:nowrap;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  text-transform:uppercase;
  font-size:10px;
  font-weight:800;
  letter-spacing:.11em;
  line-height:1.1;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.rmh-header__brochure:hover,
.rmh-mobile-brochure:hover {
  background:rgba(255,255,255,.17);
  border-color:#fff;
  box-shadow:0 4px 24px rgba(0,0,0,.12);
}
.rmh-brochure__icon {
  flex:none;
  width:33px;
  height:33px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.28);
  color:#fff;
}
.rmh-brochure__icon svg {display:block;width:17px;height:17px;}
.rmh-brochure__label {display:block;}
.rmh-mobile-brochure {display:none;}
@media (min-width:1780px) {
  .rmh-header__main > .rmh-header__brochure {left:calc(100% + 14px);}
  .rmh-header__brochure {min-width:222px;}
}
@media (min-width:1570px) and (max-width:1779px) {
  .rmh-header__main > .rmh-header__brochure {left:calc(100% + 9px);}
  .rmh-header__brochure {font-size:9px;letter-spacing:.045em;padding-right:9px;gap:6px;}
  .rmh-brochure__icon {width:31px;height:31px;}
}
@media (min-width:1121px) and (max-width:1569px) {
  /* Preserve Contacto's position where the outer viewport gutter is narrow. */
  .rmh-header__main > .rmh-header__brochure {left:calc(100% + 3px);}
  .rmh-header__brochure {min-height:32px;width:32px;padding:2px;justify-content:center;gap:0;}
  .rmh-header__brochure .rmh-brochure__icon {width:26px;height:26px;}
  .rmh-header__brochure .rmh-brochure__icon svg {width:16px;height:16px;}
  .rmh-header__brochure .rmh-brochure__label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  #rmh-mega-servicios .rmh-mega__content--services {gap:26px;}
}
@media (max-width:1120px) {
  .rmh-header__main > .rmh-header__brochure {display:none;}
  .rmh-mobile-level--root > .rmh-mobile-brochure {
    display:inline-flex;
    flex:0 0 auto;
    width:max-content;
    max-width:100%;
    min-height:45px;
    margin-top:24px;
    padding:4px 17px 4px 4px;
    border:1px solid rgba(255,255,255,.55);
    border-radius:999px;
    background:rgba(255,255,255,.08);
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-align:left;
  }
  .rmh-mobile-level--root > .rmh-mobile-brochure .rmh-brochure__icon {width:34px;height:34px;}
  .rmh-mobile-level--root > .rmh-mobile-brochure svg {stroke:#fff;}
}
@media (prefers-reduced-motion:reduce) {
  .rmh-header__brochure,.rmh-mobile-brochure {transition:none;}
}
/* Accessible visual hint for the compact desktop icon. */
@media (min-width:1121px) and (max-width:1569px) {
  .rmh-header__brochure::after {
    content:'DESCARGAR BROCHURE PDF';
    position:absolute;
    right:0;
    top:calc(100% + 11px);
    background:#f8f6f2;
    color:#612027;
    padding:10px 12px;
    border:1px solid #e8e0d9;
    box-shadow:0 12px 25px rgba(0,0,0,.13);
    font-size:10px;
    line-height:1;
    font-weight:800;
    letter-spacing:.06em;
    white-space:nowrap;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-3px);
    transition:opacity .15s ease,transform .15s ease;
  }
  .rmh-header__brochure:hover::after,
  .rmh-header__brochure:focus-visible::after {
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }
}
