/* RMH Trading | layout corrections October 2026 */
/* Desktop: six TikTok tiles, one row, retain existing premium presentation. */
@media (min-width:1101px){
 .rmh-tiktok-reels__videos{--rmh-tiktok-gap:clamp(10px,.9vw,16px);grid-auto-columns:calc((100% - 5 * var(--rmh-tiktok-gap))/6) !important;}
 .rmh-tiktok-reels__video,.rmh-tiktok-reels__meta{width:min(100%,185px);}
}
/* Desktop Services dropdown: full viewport width like Nosotros and Proyectos;
   content and card dimensions remain bounded so its vertical height does not grow. */
@media(min-width:1121px){
 .rmh-header__main .rmh-nav-group > #rmh-mega-servicios.rmh-mega--services{
   left:50%;width:100vw!important;max-width:none!important;min-width:100vw;
   border-left:0;border-right:0;overflow-x:clip;
   transform:translate(-50%,-6px);
 }
 .rmh-header__main .rmh-nav-group:hover:not(.nav-suppressed) > #rmh-mega-servicios.rmh-mega--services,
 .rmh-header__main .rmh-nav-group:focus-within:not(.nav-suppressed) > #rmh-mega-servicios.rmh-mega--services,
 .rmh-header__main .rmh-nav-group.is-open > #rmh-mega-servicios.rmh-mega--services {transform:translate(-50%,0);}
 .rmh-header__main #rmh-mega-servicios .rmh-mega__content--services{
   grid-template-columns:minmax(250px,330px) minmax(0,1fr)!important;
   gap:clamp(24px,3vw,55px)!important;
   padding:30px clamp(28px,4vw,72px) 24px!important;
   width:min(100%,1660px);margin:0 auto;
 }
 #rmh-mega-servicios .rmh-mega__cards--services{
   grid-template-columns:repeat(3,minmax(0,1fr))!important;
   gap:clamp(16px,1.45vw,25px)!important;
 }
 #rmh-mega-servicios .rmh-mega-card--service-compact{width:min(100%,230px);justify-self:stretch;}
 #rmh-mega-servicios .rmh-mega-card--service-compact .rmh-mega-card__image{
   width:100%;height:clamp(125px,10vw,150px);aspect-ratio:auto;max-height:150px;
 }
 #rmh-mega-servicios .rmh-mega__bottom--services{
   display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
   padding-left:max(0px,calc((100vw - 1660px)/2));
   padding-right:max(0px,calc((100vw - 1660px)/2));
 }
 #rmh-mega-servicios .rmh-mega__bottom--services .rmh-mega-service-link{min-height:74px;padding:12px 22px;}
 #rmh-mega-servicios .rmh-mega-service-link__meta{font-size:11px;line-height:1.4;}
}
/* Embedded media on touch devices: don't leave an untouchable blank iframe. */
.rmh-tiktok-reels__video iframe{pointer-events:auto;touch-action:manipulation;}
.rmh-tiktok-reels__video{isolation:isolate;}
.rmh-tiktok-reels__actions .rmh-tiktok-reels__play-mobile{
  display:none;align-items:center;justify-content:center;color:#612027;background:transparent;
  border:0;min-width:34px;width:34px;height:34px;padding:0;font-size:19px;cursor:pointer;
}
@media(hover:none), (pointer:coarse){
 .rmh-tiktok-reels__actions .rmh-tiktok-reels__play-mobile{display:inline-flex;}
 .rmh-tiktok-reels__actions .rmh-tiktok-reels__play-mobile:focus-visible{outline:2px solid #E18763;outline-offset:2px;}
}
/* Visually hidden state only after motion controller has initialized; fallback always visible. */
.page-home .rmh-index-text-reveal{will-change:opacity,transform;}
.page-home .rmh-index-text-reveal.rmh-index-text-reveal--wait{
  opacity:0;transform:translate3d(0,27px,0);
}
.page-home .rmh-index-text-reveal.rmh-index-text-reveal--show{
  opacity:1;transform:translate3d(0,0,0);
  transition:opacity .85s cubic-bezier(.19,1,.22,1), transform .85s cubic-bezier(.19,1,.22,1);
}
@media(prefers-reduced-motion:reduce){
 .page-home .rmh-index-text-reveal{opacity:1!important;transform:none!important;transition:none!important;will-change:auto;}
}
