/**
 * Header móvil (Elementor): solo logo + hamburguesa, menú a pantalla completa.
 * Desktop (≥1025px) no se altera.
 */

/* Logo del header → enlace a inicio (desktop y móvil) */
.adc-elementor-header .adc-header-logo-link,
.elementor-location-header .adc-header-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 1024px) {
  .adc-elementor-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
  }

  .adc-elementor-header .e-flexbox-base {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between;
    min-height: 64px;
    padding: 0.35rem 0.75rem !important;
    gap: 0.5rem;
  }

  /* Ocultar CTA "Cotiza ahora" en móvil */
  .adc-elementor-header .e-d0b804f-f6c837a {
    display: none !important;
  }

  /* Logo a la izquierda */
  .adc-elementor-header .e-a09b8ec-c83fc51 {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 52px) !important;
    order: 1;
    display: flex !important;
    align-items: center;
  }

  .adc-elementor-header .e-a09b8ec-c83fc51 .elementor-widget-image {
    max-width: 150px;
  }

  .adc-elementor-header .elementor-widget-image img {
    max-height: 48px !important;
    width: auto !important;
    margin-inline: 0 !important;
  }

  /* Columna del menú: solo el botón hamburguesa a la derecha */
  .adc-elementor-header .e-80b7cf4-b7ee8d2 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    order: 2;
    margin-left: auto;
    position: static;
  }

  .adc-elementor-header .elementor-widget-nav-menu {
    --menu-height: 100dvh;
    width: auto !important;
  }

  .adc-elementor-header .elementor-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    font-size: 26px;
    color: #18181b;
    z-index: 210;
    position: relative;
  }

  .adc-elementor-header .elementor-menu-toggle.elementor-active {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10050;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  }

  /* Panel fullscreen */
  .adc-elementor-header nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 5.25rem 1.25rem 2.5rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    z-index: 10040;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform-origin: top center;
  }

  .adc-elementor-header .elementor-nav-menu--toggle .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container {
    max-height: 100dvh !important;
    transform: none !important;
  }

  .adc-elementor-header .elementor-nav-menu--dropdown .elementor-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    padding: 0;
  }

  .adc-elementor-header .elementor-nav-menu--dropdown .elementor-nav-menu > li {
    width: 100%;
  }

  .adc-elementor-header .elementor-nav-menu--dropdown .elementor-item {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1.05rem 1rem !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    border: 0 !important;
    border-inline-start: 0 !important;
    border-radius: 1rem !important;
    color: #18181b !important;
    background: transparent !important;
  }

  .adc-elementor-header .elementor-nav-menu--dropdown .elementor-item:hover,
  .adc-elementor-header .elementor-nav-menu--dropdown .elementor-item:focus,
  .adc-elementor-header .elementor-nav-menu--dropdown .elementor-item.elementor-item-active,
  .adc-elementor-header .elementor-nav-menu--dropdown .elementor-item.highlighted {
    background: #f4f4f5 !important;
    color: #18181b !important;
  }

  body.adc-nav-open {
    overflow: hidden !important;
  }
}

/* Header del tema (fallback, sin Elementor): drawer a pantalla completa */
@media (max-width: 899px) {
  .adc-drawer-panel {
    width: 100vw;
    max-width: 100vw;
    padding: 1.1rem 1.25rem 2rem;
  }

  .adc-drawer-nav a {
    font-size: 1.15rem;
    padding: 1rem 1.1rem;
    text-align: center;
  }

  .adc-drawer-head {
    margin-bottom: 1.25rem;
  }
}
