.elementor-56 .elementor-element.elementor-element-3488296{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-56 .elementor-element.elementor-element-3488296:not(.elementor-motion-effects-element-type-background), .elementor-56 .elementor-element.elementor-element-3488296 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-theme-builder-content-area{height:400px;}.elementor-location-header:before, .elementor-location-footer:before{content:"";display:table;clear:both;}@media(max-width:767px){.elementor-56 .elementor-element.elementor-element-3488296{--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}}/* Start custom CSS for html, class: .elementor-element-e8242e6 *//* --- DISEÑO MÓVIL EXACTO A LA IMAGEN (Grid) --- */
.med-header-master {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-areas: 
    "logo nav"
    "banner banner"
    "logo2 logo2";
  width: 100%;
  margin: 0;
  padding: 0;
}

.med-logo-1 {
  grid-area: logo;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.med-logo-1 img {
  max-width: 100%;
  max-height: 45px;
  object-fit: contain;
}

/* Normalización Azul y Hover */
.med-nav {
  grid-area: nav;
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  position: relative;
  transition: all 0.3s ease;
}

.med-nav:hover {
  background: #004b99 !important; /* Azul oscuro forzado */
}

/* Forzamos al botón a ignorar los estilos globales de Elementor */
.med-btn-menu {
  width: 100%;
  height: 100%;
  min-height: 55px;
  background: transparent !important; /* Ignora fondos de plantilla */
  border: none !important;
  color: #ffffff !important; 
  font-size: 1em;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 0 !important;
}

/* Anulamos el hover que se interpone en el texto */
.med-btn-menu:hover,
.med-btn-menu:focus,
.med-btn-menu:active {
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
}

.med-btn-menu svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.med-btn-menu.activo svg {
  transform: rotate(180deg);
}

.med-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 200%;
  transform: translateX(-50%);
  background: #ffffff;
  z-index: 999;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.med-submenu.activo {
  display: block;
}

.med-submenu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: #333333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95em;
}

.med-submenu-link svg {
  width: 20px;
  height: 20px;
  color: #d32f2f;
}

/* Normalización Rojo Puro */
.med-banner-rojo {
  grid-area: banner;
  background: #FF0000; 
  color: #ffffff;
  text-align: center;
  padding: 12px;
  font-size: 1.1em;
  font-weight: 500;
}

.med-logo-2 {
  grid-area: logo2;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.med-logo-2 img {
  max-width: 90%;
  height: auto;
  max-height: 90px;
}

/* --- DISEÑO ESCRITORIO (Flexbox Integrado) --- */
@media (min-width: 768px) {
  .med-header-master {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    gap: 30px;
  }

  .med-logo-1 {
    padding: 0;
  }
  
  .med-logo-1 img {
    max-height: 65px;
  }

  .med-nav {
    margin-left: auto;
    border-radius: 30px;
    padding: 0 20px;
  }

  .med-btn-menu {
    min-height: 45px;
    font-weight: 600;
  }

  .med-submenu {
    width: 280px;
    left: 50%;
    border-radius: 8px;
    border: 1px solid #eee;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(-50%) translateY(15px);
  }

  .med-nav:hover .med-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
  }

  .med-nav:hover .med-btn-menu svg {
    transform: rotate(180deg);
  }

  .med-submenu-link:hover {
    background-color: #f8f9fa;
  }

  .med-banner-rojo {
    background: #FF0000;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  }

  .med-logo-2 {
    padding: 0;
  }

  .med-logo-2 img {
    max-height: 50px;
  }
}/* End custom CSS */