/* Evita que el overflow global interfiera con sticky */
html {
  overflow-x: clip;
  overflow-y: visible;
}

body:not(.elementor-editor-active) {
  overflow-x: clip;
  overflow-y: visible;
}

/* Cabecera exterior: conserva su espacio sobre el hero */
body:not(.elementor-editor-active) > .elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
}

/* Compensación de la barra de WordPress al iniciar sesión */
body.admin-bar:not(.elementor-editor-active) > .elementor-location-header {
  top: 32px;
}

@media (min-width: 601px) and (max-width: 782px) {
  body.admin-bar:not(.elementor-editor-active) > .elementor-location-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar:not(.elementor-editor-active) > .elementor-location-header {
    top: 0;
  }
}
@media (max-width: 767px) {
  .elementor-location-header[data-elementor-id="809"] > [data-id="container_7j5q8wcqh"] {
    position: relative !important;
    overflow: visible !important;
  }

  .elementor-location-header[data-elementor-id="809"] [data-id="container_8nmig37wl"],
  .elementor-location-header[data-elementor-id="809"] [data-id="50260ca"],
  .elementor-location-header[data-elementor-id="809"] [data-id="50260ca"] > .elementor-widget-container {
    position: static !important;
    overflow: visible !important;
  }

  .elementor-location-header[data-elementor-id="809"] [data-id="50260ca"] > .elementor-widget-container > nav.elementor-nav-menu--dropdown {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    border-radius: 0;
    background-color: #fff;
    z-index: 1000;
  }

  .elementor-location-header[data-elementor-id="809"] [data-id="50260ca"] > .elementor-widget-container > nav.elementor-nav-menu--dropdown > .elementor-nav-menu {
    width: 100%;
  }

  .elementor-location-header[data-elementor-id="809"] [data-id="50260ca"] > .elementor-widget-container > nav.elementor-nav-menu--dropdown .elementor-item {
    width: 100%;
    box-sizing: border-box;
  }
}