/* TVM - Corrección visual de encabezado, PC y móvil.
   Cargar DESPUÉS de style.css y tvm-personalizado.css. */
:root { --tvm-header-navy: #00162f; --tvm-header-green: #8ab928; }

.rbt-header.rbt-header-10 .rbt-header-wrapper,
.rbt-header.rbt-header-10 .rbt-header-wrapper.rbt-sticky {
  background: var(--tvm-header-navy) !important;
  border-bottom: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 5px 20px rgba(0,0,0,.16);
  padding: 11px 0;
}

/* Histudy aplica un fondo blanco a .mainbar-row: se elimina SOLO en el header. */
.rbt-header.rbt-header-10 .mainbar-row {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  min-height: 64px;
}
.rbt-header.rbt-header-10 .header-left,
.rbt-header.rbt-header-10 .header-right {
  min-width: 0;
  flex: 0 0 auto;
}
.rbt-header.rbt-header-10 .header-left .header-info,
.rbt-header.rbt-header-10 .header-left .logo,
.rbt-header.rbt-header-10 .header-left .logo a {
  display: flex;
  align-items: center;
  min-width: 0;
}
.rbt-header.rbt-header-10 .header-left .logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 205px;
  max-height: 73px;
  object-fit: contain;
}
/* Logo light del tema es opcional: mantener el mismo logo al cambiar tema. */
.rbt-header.rbt-header-10 .header-left .logo.logo-light {
  display: none !important;
}
.rbt-header.rbt-header-10 .rbt-main-navigation {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0 12px;
}
.rbt-header.rbt-header-10 .mainmenu-nav .mainmenu > li > a {
  color: #fff !important;
}
.rbt-header.rbt-header-10 .mainmenu-nav .mainmenu > li > a:hover,
.rbt-header.rbt-header-10 .mainmenu-nav .mainmenu > li > a:focus-visible {
  color: #a7d541 !important;
}
.rbt-header.rbt-header-10 .header-right .rbt-btn {
  color: #fff;
}

/* Botón de tres líneas SVG/CSS; no depende de cargar fuentes de íconos. */
.rbt-header.rbt-header-10 .hamberger-button.tvm-burger {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  border: 2px solid #d5d5d5 !important;
  border-radius: 14px !important;
  background: #fefefe !important;
  box-shadow: 0 3px 11px rgba(0,0,0,.2);
  display: inline-flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--tvm-header-green) !important;
}
.rbt-header.rbt-header-10 .tvm-burger__line {
  width: 28px;
  height: 4px;
  display: block;
  background: currentColor;
  border-radius: 5px;
  flex: 0 0 auto;
}
.rbt-header.rbt-header-10 .hamberger-button.tvm-burger:focus-visible,
.popup-mobile-menu .close-button:focus-visible {
  outline: 3px solid #8ab928 !important;
  outline-offset: 3px;
}

/* Panel móvil del tema: respetar apertura y cierre administrados por main.js. */
.popup-mobile-menu .inner-wrapper {
  box-sizing: border-box;
  max-width: min(400px, 90vw);
  overflow-y: auto;
  overflow-x: hidden;
}
.popup-mobile-menu .inner-top {
  background: var(--tvm-header-navy);
  border-radius: 12px;
  padding: 18px;
}
.popup-mobile-menu .inner-top .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.popup-mobile-menu .inner-top .logo {
  flex: 1 1 auto;
  min-width: 0;
}
.popup-mobile-menu .inner-top .logo img {
  display: block;
  max-height: 60px;
  max-width: min(180px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
}
.popup-mobile-menu .inner-top .description,
.popup-mobile-menu .inner-top .rbt-information-list a,
.popup-mobile-menu .inner-top .rbt-information-list i {
  color: #fff !important;
  overflow-wrap: anywhere;
}
.popup-mobile-menu .inner-top .rbt-information-list {
  margin-bottom: 0;
}
.popup-mobile-menu .inner-top .close-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #fff !important;
  color: #071c34 !important;
  border: 1px solid #e5e5e5;
}
.popup-mobile-menu .mainmenu-nav .mainmenu {
  max-width: 100%;
}
.popup-mobile-menu .mainmenu-nav .mainmenu a {
  overflow-wrap: anywhere;
}

/* Avoid horizontal overflow from header contents, no blanket body overflow:hidden. */
@media (min-width: 1200px) {
  .rbt-header.rbt-header-10 .mainmenu-nav .mainmenu > li > a {
    white-space: nowrap;
  }
}
@media (max-width: 1199px) {
  .rbt-header.rbt-header-10 .rbt-header-wrapper {
    padding: 12px 0 !important;
  }
  .rbt-header.rbt-header-10 .container-fluid {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .rbt-header.rbt-header-10 .mainbar-row {
    min-height: 64px;
    justify-content: space-between;
  }
  .rbt-header.rbt-header-10 .header-left {
    flex: 1 1 auto;
    max-width: calc(100% - 72px);
  }
  .rbt-header.rbt-header-10 .header-right {
    margin-left: auto;
  }
  .rbt-header.rbt-header-10 .header-left .logo img {
    max-height: 64px;
    max-width: min(225px, 100%);
  }
  .rbt-header.rbt-header-10 .mobile-menu-bar {
    margin: 0;
    padding: 0;
  }
}
@media (max-width: 575px) {
  .rbt-header.rbt-header-10 .rbt-header-wrapper {
    padding: 11px 0 !important;
  }
  .rbt-header.rbt-header-10 .mainbar-row {
    min-height: 55px;
    gap: 10px;
  }
  .rbt-header.rbt-header-10 .container-fluid {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .rbt-header.rbt-header-10 .header-left {
    max-width: calc(100% - 65px);
  }
  .rbt-header.rbt-header-10 .header-left .logo img {
    max-width: min(186px, 100%);
    max-height: 60px;
  }
  .rbt-header.rbt-header-10 .hamberger-button.tvm-burger {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
  }
  .rbt-header.rbt-header-10 .tvm-burger__line {
    width: 27px;
    height: 4px;
  }
  .popup-mobile-menu .inner-wrapper {
    max-width: 92vw;
    padding: 15px !important;
  }
}
@media (max-width: 360px) {
  .rbt-header.rbt-header-10 .header-left .logo img {
    max-width: 165px;
  }
}
/* Respect user's preference to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  .rbt-header.rbt-header-10 .tvm-burger {
    transition: none !important;
  }
}
