/* Solo la cabecera móvil de Blocksy; conserva logo, enlace y colores. */
@media (max-width: 767px) {
  html body #header [data-device="mobile"] .ct-header-trigger {
    display: none !important;
  }
  html body #header [data-device="mobile"] [data-row="middle"] {
    --height: 72px !important;
    min-height: 72px !important;
    height: 72px !important;
    padding-block: 0 !important;
    --height-shrink: 72px !important;
    border-bottom: 1px solid rgba(128, 128, 128, .16) !important;
    box-sizing: border-box;
  }
  html body #header [data-device="mobile"] [data-row="middle"] > .ct-container,
  html body #header [data-device="mobile"] [data-row="middle"] > .ct-container-fluid {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 72px !important;
    height: 72px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
  }
  html body #header [data-device="mobile"] [data-row="middle"] [data-column="start"],
  html body #header [data-device="mobile"] [data-row="middle"] [data-column="start"] > [data-items] {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Esta columna contiene únicamente el disparador del menú en la cabecera revisada. */
  html body #header [data-device="mobile"] [data-row="middle"] [data-column="end"] {
    display: none !important;
  }
  html body #header [data-device="mobile"] [data-row="middle"] .site-branding {
    --logo-max-height: 60px !important;
    --margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body #header [data-device="mobile"] [data-row="middle"] .site-logo-container {
    --logo-max-height: 60px !important;
    height: 60px !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body #header [data-device="mobile"] [data-row="middle"] .site-logo-container img {
    width: auto !important;
    height: 60px !important;
    max-height: 60px !important;
    max-width: 160px !important;
    object-fit: contain !important;
  }
  html body #header [data-device="mobile"] [data-row="middle"] .site-title-container {
    display: none !important;
  }
}

@media (max-width:767px) {
 html body #header [data-device="mobile"] .arik-header-theme {
  position:absolute !important;right:0;top:50%;transform:translateY(-50%);
  width:44px;height:44px;display:flex;align-items:center;justify-content:center;z-index:5;
 }
 html body #header [data-device="mobile"] .arik-header-theme .wp-dark-mode-floating-switch {
  position:static !important;inset:auto !important;display:block !important;
  width:44px !important;height:44px !important;margin:0 !important;padding:0 !important;
  animation:none !important;transform:none !important;box-shadow:none !important;
 }
 html body #header [data-device="mobile"] .arik-header-theme .wp-dark-mode-switch {
  position:relative !important;display:flex !important;align-items:center !important;justify-content:center !important;
  width:44px !important;min-width:44px !important;height:44px !important;min-height:44px !important;
  padding:0 !important;margin:0 !important;transform:none !important;animation:none !important;
  border:1px solid rgba(168,220,228,.38) !important;border-radius:50% !important;
  background:#15343b !important;color:#dcf8ff !important;box-shadow:none !important;cursor:pointer;
 }
 html body #header [data-device="mobile"] .arik-header-theme .wp-dark-mode-switch > * {display:none !important;}
 html body #header [data-device="mobile"] .arik-header-theme .wp-dark-mode-switch::before {content:none !important;}
 html body #header [data-device="mobile"] .arik-header-theme .wp-dark-mode-switch::after {
  content:'☾' !important;display:block !important;position:static !important;inset:auto !important;
  width:auto !important;height:auto !important;margin:0 !important;padding:0 !important;
  background:none !important;box-shadow:none !important;border:0 !important;transform:none !important;
  font:26px/1 system-ui,sans-serif !important;color:inherit !important;
 }
 html[data-wp-dark-mode-active="true"] body #header [data-device="mobile"] .arik-header-theme .wp-dark-mode-switch::after,
 html.wp-dark-mode-active body #header [data-device="mobile"] .arik-header-theme .wp-dark-mode-switch::after {content:'☀' !important;}
 html body #header [data-device="mobile"] .arik-header-theme .wp-dark-mode-switch:focus-visible {outline:2px solid #b0edff !important;outline-offset:3px !important;}
}
