/* RMH Trading · responsive navigation, polished TikTok carousel — 2026-10-10 */
/* Desktop layout: restore truly horizontal menu groups. */
@media (min-width:1121px) {
  .rmh-header__main{grid-template-columns:minmax(0,1fr) clamp(155px,13vw,190px) minmax(0,1fr);align-items:center;}
  .rmh-header__main > .rmh-nav-side{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;min-width:0;}
  .rmh-header__main > .rmh-nav-side--left{justify-content:flex-start;}
  .rmh-header__main > .rmh-nav-side--right{justify-content:flex-end;}
  .rmh-header__main > .rmh-nav-side > .rmh-nav-group{display:block!important;flex:none;align-self:stretch;min-width:0;}
  .rmh-header__main .rmh-nav-link{white-space:nowrap;flex-wrap:nowrap;}
  #rmh-mega-servicios .rmh-mega__content--services{display:grid!important;grid-template-columns:minmax(245px,300px) minmax(0,1fr)!important;}
  #rmh-mega-servicios .rmh-mega__cards--services{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  #rmh-mega-servicios .rmh-mega__bottom--services{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media (min-width:1121px) and (max-width:1360px) {
 .rmh-header__main{gap:5px;grid-template-columns:minmax(0,1fr) 145px minmax(0,1fr);}
 .rmh-header__logo{width:145px;}
 .rmh-header__logo img{width:132px;}
 .rmh-header__main > .rmh-nav-side{gap:clamp(8px,1.1vw,16px)!important;}
 .rmh-header__main .rmh-nav-link{font-size:10px;letter-spacing:.012em;}
 .rmh-header__brochure{font-size:9px;}
}
/* Drawer: independent one-line rows for Servicios and Proyectos, no overlap. */
@media(max-width:1120px){
 .rmh-mobile-panel .rmh-mobile-level--root>.rmh-mobile-navrow{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;grid-template-rows:minmax(62px,auto);align-items:center;gap:12px;isolation:isolate;position:relative;}
 .rmh-mobile-panel .rmh-mobile-level--root>.rmh-mobile-navrow>.rmh-mobile-navrow__link{grid-column:1;grid-row:1;position:static!important;width:100%!important;min-width:0;min-height:62px;display:flex!important;align-items:center;margin:0!important;padding:12px 0!important;transform:none!important;white-space:normal;}
 .rmh-mobile-panel .rmh-mobile-level--root>.rmh-mobile-navrow>.rmh-mobile-navrow__expand{grid-column:2;grid-row:1;position:static!important;justify-self:end;align-self:center;transform:none!important;}
}
/* The new white SVG must not be color-filtered. */
.rmh-header__logo img[src$="rmh-logo-navbar-white.svg"], .rmh-mobile-head img[src$="rmh-logo-navbar-white.svg"]{filter:none!important;object-fit:contain;}
/* Video gallery: remove white frames; TikTok supplies the actual content. */
.rmh-tiktok-reels__videos{scrollbar-width:none;scroll-snap-type:x mandatory;align-items:stretch;}
.rmh-tiktok-reels__card{border:0!important;background:transparent!important;box-shadow:none!important;align-items:stretch;gap:0;min-width:0;}
.rmh-tiktok-reels__video{width:min(100%,205px);margin-inline:auto;aspect-ratio:9/16;background:#161719;overflow:hidden;border:0;}
.rmh-tiktok-reels__video iframe{display:block;inset:0;width:100%;height:100%;border:0;}
.rmh-tiktok-reels__meta{width:min(100%,205px);margin-inline:auto;padding:12px 2px 8px;min-height:50px;align-items:flex-start;gap:6px;border-bottom:1px solid rgba(97,32,39,.19);background:transparent;flex:0 0 auto;}
.rmh-tiktok-reels__title{font-size:clamp(11px,.8vw,13px);line-height:1.42;letter-spacing:0;font-weight:650;}
.rmh-tiktok-reels__actions{display:flex;align-items:center;gap:7px;}
.rmh-tiktok-reels__actions a,.rmh-tiktok-reels__actions button{border:0!important;background:transparent!important;color:#612027!important;font-size:16px;width:25px;height:28px;min-width:25px;display:grid;place-items:center;padding:0;cursor:pointer;transition:color .18s ease,transform .18s ease;}
.rmh-tiktok-reels__actions a:hover,.rmh-tiktok-reels__actions button:hover{color:#E18763!important;transform:translateY(-2px);}
.rmh-tiktok-reels__placeholder{border:0;}
.rmh-tiktok-reels__controls{margin-top:22px;gap:20px;}
.rmh-tiktok-reels__nav{background:transparent;color:#612027;border:1px solid rgba(97,32,39,.45);width:42px;height:42px;flex-basis:42px;}
.rmh-tiktok-reels__nav:hover:not(:disabled){background:#612027;border-color:#612027;color:#fff;}
@media(min-width:1101px){.rmh-tiktok-reels__video,.rmh-tiktok-reels__meta{width:min(100%,185px);}}
@media(max-width:760px){.rmh-tiktok-reels__video,.rmh-tiktok-reels__meta{width:min(100%,235px);}}
@media(max-width:540px){
 .rmh-tiktok-reels .container{width:calc(100% - 32px);}
 .rmh-tiktok-reels__videos{grid-auto-columns:100%!important;gap:0!important;overflow-x:auto;padding:2px 0 6px;scroll-padding-inline:0;}
 .rmh-tiktok-reels__card{width:100%!important;max-width:100%;margin:0 auto;justify-self:center;scroll-snap-align:center;align-items:center;}
 .rmh-tiktok-reels__video{width:min(100%,260px);aspect-ratio:9/16;margin:0 auto;flex:0 0 auto;}
 .rmh-tiktok-reels__meta{width:min(100%,260px);min-height:51px;margin-inline:auto;padding:11px 0 6px;}
 .rmh-tiktok-reels__controls{gap:16px;margin-top:18px;}
 .rmh-tiktok-reels__counter{min-width:92px;}
}
@media(prefers-reduced-motion:reduce){.rmh-tiktok-reels__actions a,.rmh-tiktok-reels__actions button{transition:none;}}
