/* Ajustes responsive móviles — réplica JAH en español */
@media (max-width: 767px) {

  /* sin scroll horizontal (frutas decorativas absolutas, etc.) */
  html, body { overflow-x: hidden !important; }
  body { max-width: 100vw; }

  /* contención total: ningún contenedor Elementor más ancho que la pantalla */
  body .e-con, body .e-con-inner, body .e-n-tabs, body .e-n-tabs-content,
  body .elementor-widget, body .elementor-widget-container, body .elementor-section {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  body .e-con { --content-width: 100% !important; --width: 100% !important; }

  /* títulos grandes con tope para que no se corten */
  h1.elementor-heading-title, h2.elementor-heading-title, h3.elementor-heading-title {
    font-size: clamp(20px, 6.5vw, 30px) !important;
    line-height: 1.2 !important;
  }

  /* ===== Selector de filtro de productos (pestañas Elementor) en 2 columnas ===== */
  .e-n-tabs-heading {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    box-sizing: border-box;
  }
  .e-n-tabs-heading .e-n-tab-title {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px;
    justify-content: center !important;
    text-align: center;
    padding: 8px 10px !important;
    box-sizing: border-box;
  }
  .e-n-tabs-heading .e-n-tab-title > span {
    font-size: 13px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ===== Grillas de productos (loops Elementor) en 2 columnas compactas ===== */
  .elementor-loop-container.elementor-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }
  .elementor-loop-container.elementor-grid > .e-loop-item,
  .elementor-loop-container.elementor-grid > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .elementor-loop-container .elementor-heading-title {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
  .elementor-loop-container .elementor-widget-image img {
    max-height: 180px;
    object-fit: contain;
  }

  /* grillas WooCommerce (páginas de categoría) en 2 columnas */
  ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }
  ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }

  /* ===== Compresión vertical: secciones de primer nivel con menos aire ===== */
  body .e-con.e-parent {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
    min-height: 0 !important;
  }
  body .e-con.e-parent > .e-con-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  /* contenedores hijos: recorte moderado de aire */
  body .e-con.e-child {
    padding-top: min(16px, 4vw) !important;
    padding-bottom: min(16px, 4vw) !important;
  }
  /* márgenes gigantes de widgets sueltos */
  .elementor-widget { margin-bottom: 0; }
  .elementor-spacer-inner { max-height: 30px !important; }

  /* títulos enormes: tope razonable en móvil */
  .elementor-heading-title { overflow-wrap: break-word; }
  h1.elementor-heading-title, .elementor-heading-title.elementor-size-xxl { font-size: clamp(24px, 7vw, 34px) !important; }

  /* imágenes siempre contenidas */
  img { max-width: 100% !important; height: auto; }

  /* barra superior de anuncio más compacta */
  .e-con.e-parent:first-of-type { padding-top: 8px !important; padding-bottom: 8px !important; }

  /* menú móvil desplegable contenido al ancho de pantalla */
  nav.elementor-nav-menu--dropdown.elementor-nav-menu__container,
  .elementor-nav-menu--dropdown,
  .elementor-nav-menu--dropdown .elementor-nav-menu {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box;
  }
  .elementor-nav-menu--dropdown a { white-space: normal !important; }
}
