/*
 * 3Droner Mobile Header 1.0.0
 * Capa compartida por HTML estático, Astra y 3droner-policy-pages-visual.
 * Solo actúa hasta 921px; no modifica la cabecera de escritorio.
 */

.tdr-mobile-menu-toggle,
.tdr-mobile-cart-link {
  display: none;
}

.tdr-mobile-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 921px) {
  .site-header.tdr-mobile-ready,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px 48px !important;
    grid-template-rows: auto auto auto !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
    min-height: 72px !important;
    padding-top: 12px !important;
    padding-right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    padding-bottom: 12px !important;
    padding-left: calc(12px + env(safe-area-inset-left, 0px)) !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    background: rgba(7, 10, 7, 0.97) !important;
    border-bottom: 1px solid rgba(183, 255, 42, 0.24) !important;
    color: #f7f8f2 !important;
  }

  .site-header.tdr-mobile-ready .brand,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-policy-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: fit-content !important;
    max-width: 100% !important;
  }

  .site-header.tdr-mobile-ready .brand-logo,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-policy-brand-logo {
    width: clamp(118px, 38vw, 154px) !important;
    max-width: 100% !important;
    max-height: 40px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .site-header.tdr-mobile-ready .tdr-mobile-cart-control,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-mobile-cart-control {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: end !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border: 1px solid rgba(183, 255, 42, 0.58) !important;
    border-radius: 8px !important;
    background: #101510 !important;
    color: #b7ff2a !important;
    box-shadow: none !important;
  }

  .site-header.tdr-mobile-ready .tdr-mobile-cart-control:hover,
  .site-header.tdr-mobile-ready .tdr-mobile-cart-control:focus-visible,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-mobile-cart-control:hover,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-mobile-cart-control:focus-visible {
    border-color: #b7ff2a !important;
    background: #b7ff2a !important;
    color: #071006 !important;
    outline: none !important;
    transform: none !important;
  }

  .site-header.tdr-mobile-ready .tdr-mobile-cart-control span,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-mobile-cart-control span {
    display: none !important;
  }

  .tdr-mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(183, 255, 42, 0.58);
    border-radius: 8px;
    background: #101510;
    color: #b7ff2a;
    font: inherit;
    line-height: 1;
    cursor: pointer;
  }

  .tdr-mobile-menu-toggle:hover,
  .tdr-mobile-menu-toggle:focus-visible,
  .tdr-mobile-menu-toggle[aria-expanded="true"] {
    border-color: #b7ff2a;
    background: #b7ff2a;
    color: #071006;
    outline: none;
  }

  .tdr-mobile-menu-icon {
    position: relative;
    display: block;
    width: 26px;
    height: 22px;
  }

  .tdr-mobile-menu-icon > span {
    position: absolute;
    left: 1px;
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    transition: top 160ms ease, transform 160ms ease, opacity 120ms ease;
  }

  .tdr-mobile-menu-icon > span:nth-child(1) {
    top: 2px;
  }

  .tdr-mobile-menu-icon > span:nth-child(2) {
    top: 10px;
  }

  .tdr-mobile-menu-icon > span:nth-child(3) {
    top: 18px;
  }

  .tdr-mobile-menu-toggle[aria-expanded="true"] .tdr-mobile-menu-icon > span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
  }

  .tdr-mobile-menu-toggle[aria-expanded="true"] .tdr-mobile-menu-icon > span:nth-child(2) {
    opacity: 0;
  }

  .tdr-mobile-menu-toggle[aria-expanded="true"] .tdr-mobile-menu-icon > span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
  }

  .site-header.tdr-mobile-ready .tdr-mobile-menu,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-mobile-menu {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    background: #080b08 !important;
  }

  .site-header.tdr-mobile-ready.is-mobile-menu-open .tdr-mobile-menu,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready.is-mobile-menu-open .tdr-mobile-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }

  .site-header.tdr-mobile-ready .tdr-mobile-menu a,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-mobile-menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #f7f8f2 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .site-header.tdr-mobile-ready .tdr-mobile-menu a:last-child,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-mobile-menu a:last-child {
    border-bottom: 0 !important;
  }

  .site-header.tdr-mobile-ready .tdr-mobile-menu a:hover,
  .site-header.tdr-mobile-ready .tdr-mobile-menu a:focus-visible,
  .site-header.tdr-mobile-ready .tdr-mobile-menu a[aria-current="page"],
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-mobile-menu a:hover,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-mobile-menu a:focus-visible {
    background: rgba(183, 255, 42, 0.1) !important;
    color: #b7ff2a !important;
    outline: none !important;
  }

  .site-header.tdr-mobile-ready .tdr-mobile-menu-cta,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready .tdr-mobile-menu-cta {
    position: static !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 12px 0 4px !important;
    padding: 12px 18px !important;
    border: 1px solid rgba(216, 255, 114, 0.98) !important;
    border-radius: 8px !important;
    background: #b7ff2a !important;
    color: #071006 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .site-header.tdr-mobile-ready.is-mobile-menu-open .tdr-mobile-menu-cta,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready.is-mobile-menu-open .tdr-mobile-menu-cta {
    display: inline-flex !important;
  }

  body.ast-hfb-header #masthead #ast-mobile-header .site-header-primary-section-center {
    gap: 8px !important;
    min-width: 104px !important;
  }

  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content > *,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content .ast-builder-layout-element,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content .ast-builder-menu,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content .ast-main-header-bar-alignment,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content .main-header-bar-navigation,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content .main-navigation,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content nav,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content ul,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content li,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content a {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link,
  body.ast-hfb-header #masthead #ast-mobile-header .ast-mobile-header-content .ast-nav-menu > .menu-item > .menu-link {
    height: auto !important;
    min-height: 52px !important;
    padding: 14px 20px !important;
  }

  body.ast-hfb-header #masthead #ast-mobile-header .menu-toggle[aria-expanded="false"] .ast-menu2-svg,
  body.ast-hfb-header #masthead #ast-mobile-header .menu-toggle[aria-expanded="true"] .ast-close-svg {
    display: block !important;
  }

  body.ast-hfb-header #masthead #ast-mobile-header .menu-toggle[aria-expanded="false"] .ast-close-svg,
  body.ast-hfb-header #masthead #ast-mobile-header .menu-toggle[aria-expanded="true"] .ast-menu2-svg {
    display: none !important;
  }

  body.ast-hfb-header #masthead #ast-mobile-header .site-logo-img .custom-logo {
    width: clamp(118px, 38vw, 154px) !important;
    max-width: 100% !important;
    max-height: 44px !important;
    object-fit: contain !important;
  }

  body.ast-hfb-header #masthead #ast-mobile-header .tdr-mobile-cart-link {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid rgba(183, 255, 42, 0.58) !important;
    border-radius: 8px !important;
    background: #101510 !important;
    color: #b7ff2a !important;
    text-decoration: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  body.ast-hfb-header #masthead #ast-mobile-header .tdr-mobile-cart-link:hover,
  body.ast-hfb-header #masthead #ast-mobile-header .tdr-mobile-cart-link:focus-visible {
    border-color: #b7ff2a !important;
    background: #b7ff2a !important;
    color: #071006 !important;
    outline: none !important;
  }

  .tdr-mobile-cart-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 1023px) and (max-height: 500px) {
  .site-header.tdr-mobile-ready,
  body.threedroner-policy-page .tdr-policy-header.tdr-mobile-ready {
    position: static !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tdr-mobile-menu-icon > span {
    transition: none !important;
  }
}
