/* Go Green APU — portada móvil estable y orientada a productos. */

.gg-mobile-products {
  display: none;
}

@media (max-width: 767px) {
  html,
  body.home {
    /* `hidden` convertía el body en contenedor de scroll y hacía que el header
       sticky se fuera hacia arriba. `clip` corta el overflow sin romperlo. */
    overflow-x: clip;
  }

  /* El carrusel promocional y el diagrama interactivo eran altos, se movían al
     terminar de cargar Elementor y retrasaban los productos hasta muy abajo. */
  body.home .elementor-15 > .elementor-element-d9be425,
  body.home .elementor-15 > .elementor-element-7508964,
  body.home .elementor-15 > .elementor-element-9b76293 {
    display: none !important;
  }

  /* Evita apariciones tardías de widgets al entrar en pantalla. */
  body.home .elementor-15 .elementor-invisible {
    visibility: visible !important;
  }

  body.home .elementor-15 .animated {
    animation: none !important;
  }

  /* El popup de mailing list se abría a los 3 s y cubría toda la portada. El
     JS desactiva su trigger; esta regla evita incluso un destello accidental. */
  body.home .elementor-popup-modal {
    display: none !important;
  }

  body.home.dialog-prevent-scroll {
    overflow-y: auto !important;
  }

  /* Mientras se comparan los productos, el botón flotante no debe tapar sus
     títulos. Vuelve a aparecer al salir de esta sección. */
  body.home.gg-products-in-view .elementor-element-0793763 {
    display: none !important;
  }

  .gg-mobile-products {
    display: block;
    padding: 24px 15px 28px;
    color: #fff;
    background:
      radial-gradient(circle at 90% 5%, rgba(32, 199, 112, .17), transparent 35%),
      #07140f;
  }

  .gg-mobile-products__eyebrow {
    margin: 0 0 7px;
    color: #20c770;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
  }

  .gg-mobile-products h1 {
    margin: 0;
    color: #fff;
    font-family: "Play", Arial, sans-serif;
    font-size: clamp(28px, 8vw, 34px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.8px;
    text-align: center;
  }

  .gg-mobile-products__banner {
    display: block;
    overflow: hidden;
    margin: 16px -15px 20px;
    background: #050505;
  }

  .gg-mobile-products__banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
  }

  .gg-mobile-products h2 {
    margin: 3px 0 0;
    color: #fff;
    font-family: "Play", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
  }

  .gg-mobile-products__intro {
    margin: 6px 0 16px;
    color: #c9d5cf;
    font-size: 14px;
    line-height: 1.45;
  }

  .gg-mobile-products__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .gg-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: #112019;
    background: #fff;
    border: 1px solid rgba(32, 199, 112, .2);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
    text-decoration: none;
  }

  .gg-product-card__image {
    display: grid;
    height: 135px;
    place-items: center;
    padding: 8px;
    background: linear-gradient(145deg, #fff, #edf6f1);
  }

  .gg-product-card__image img {
    display: block;
    width: auto !important;
    height: 119px !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .gg-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 11px 11px 13px;
  }

  .gg-product-card__type {
    color: #158c51;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
  }

  .gg-product-card strong {
    margin-top: 2px;
    color: #0a1711;
    font-family: "Play", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.1;
  }

  .gg-product-card small {
    margin: 5px 0 10px;
    color: #536159;
    font-size: 11px;
    line-height: 1.35;
  }

  .gg-product-card__link {
    margin-top: auto;
    color: #08723f;
    font-size: 12px;
    font-weight: 800;
  }

  .gg-product-card--wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .gg-product-card--wide .gg-product-card__image {
    height: 142px;
  }

  .gg-product-card--wide .gg-product-card__image img {
    height: 126px !important;
  }

  .gg-product-card--wide .gg-product-card__body {
    justify-content: center;
  }

  .gg-mobile-products__quote {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 12px;
    color: #04120b;
    background: #20c770;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
  }
}

@media (max-width: 360px) {
  .gg-product-card__image {
    height: 122px;
  }

  .gg-product-card:not(.gg-product-card--wide) .gg-product-card__image img {
    height: 106px !important;
  }

  .gg-product-card strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gg-product-card,
  .gg-mobile-products__quote {
    transition: none !important;
  }
}
