/* BonGon V10.3 REV23 — ajustes EXCLUSIVAMENTE móviles.
   Desktop >=768px no recibe ninguna de estas reglas. */
@media (max-width: 767px) {
  /* Inicio: elevar ligeramente el bloque tipográfico, sin alterar las correas. */
  .home-hero .home-hero__content {
    transform: translateY(-26px) !important;
  }

  /* Quiénes somos: impedir que la imagen se solape con las primeras líneas.
     El texto fluye junto al contenedor REAL, no alrededor del alfa del WebP. */
  .home-about .home-about__media-mobile {
    display: block !important;
    float: left !important;
    clear: left !important;
    width: min(38vw, 154px) !important;
    max-width: 154px !important;
    margin: 4px 16px 12px 0 !important;
    shape-outside: none !important;
    -webkit-shape-outside: none !important;
  }
  .home-about .home-about__image-mobile {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
  .home-about .home-about__flow-tail { display: none !important; }
  .home-about .home-about__copy {
    overflow: visible !important;
    text-align: left !important;
    hyphens: auto;
    -webkit-hyphens: auto;
    font-size: clamp(15px, 3.9vw, 17px) !important;
    line-height: 1.58 !important;
  }
  .home-about .home-about__copy p + p { clear: both; margin-top: 16px !important; }

  /* Colecciones: una tarjeta principal perfectamente centrada; el siguiente
     y el anterior quedan insinuados por igual en los bordes. */
  .home-collection-carousel__viewport {
    width: 100% !important;
    padding: 0 !important;
    scroll-padding-inline: 0 !important;
    scroll-snap-type: x mandatory;
  }
  .home-collection-carousel__track {
    --collection-mobile-card: min(82vw, 350px);
    --collection-gap: 10px;
    padding-inline: calc((100vw - var(--collection-mobile-card)) / 2) !important;
    box-sizing: content-box !important;
    width: max-content !important;
    min-width: 100% !important;
    gap: var(--collection-gap) !important;
  }
  .home-collection-carousel__card {
    flex: 0 0 var(--collection-mobile-card) !important;
    width: var(--collection-mobile-card) !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always;
  }

  /* Contacto: sustituir el divisor de 34%/66% por un encabezado fotográfico
     y formulario ancho completo. Títulos y labels nunca se cortan. */
  .contact-showcase {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }
  .contact-showcase__media {
    min-height: 0 !important;
    height: 125px !important;
    overflow: hidden !important;
    padding: 0 !important;
  }
  .contact-showcase__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 48% !important;
    max-height: none !important;
  }
  .contact-showcase__panel {
    width: 100% !important;
    min-width: 0 !important;
    padding: 24px clamp(17px, 5.3vw, 28px) 26px !important;
  }
  .contact-showcase__panel h2 {
    font-size: clamp(29px, 8.1vw, 43px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.025em;
    max-width: 100%;
    overflow-wrap: normal;
  }
  .contact-showcase__intro {
    margin-top: 10px !important;
    font-size: 14px !important;
    line-height: 1.48 !important;
  }
  .contact-showcase__form { gap: 12px !important; width: 100% !important; }
  .contact-showcase__label { font-size: 14px !important; line-height: 1.45 !important; }
  .contact-showcase__input { min-height: 46px !important; font-size: 16px !important; padding: 11px 13px !important; }
  .contact-showcase__submit { min-height: 43px !important; font-size: 13px !important; padding: 10px 18px !important; }
  .contact-showcase__info { font-size: 13px !important; gap: 12px !important; }

  /* No mostrar tarjetas ficticias cuando no existen comentarios reales.
     Es intencional: esta revisión no crea/modera reseñas en el servidor. */
  .testimonials-showcase:not([data-has-approved-reviews="true"]) { display: none !important; }

  /* Imágenes laterales más presentes y visibles, evitando los títulos. */
  .site-hero-about .site-hero-side-image,
  .site-hero-products .site-hero-side-image {
    width: min(96vw, 430px) !important;
    max-width: none !important;
    height: auto !important;
    opacity: .80;
  }
  .site-hero-about .site-hero-side-image--left,
  .site-hero-products .site-hero-side-image--left {
    margin-left: -19vw !important;
  }
  .site-hero-about .site-hero-side-image--right,
  .site-hero-products .site-hero-side-image--right {
    margin-right: -19vw !important;
  }
  .site-hero-about > .relative.z-10,
  .site-hero-products > .relative.z-10 {
    width: 100%;
    padding-inline: 14px !important;
  }

  /* Footer: conservar legibilidad, reducir peso y espacio vertical. */
  footer > .container {
    padding: 29px 18px 25px !important;
  }
  footer > .container > .text-center:first-child { margin-bottom: 16px !important; }
  footer > .container > br { display: none !important; }
  footer .grid {
    gap: 16px !important;
    padding-top: 19px !important;
  }
  footer .grid > div:first-child a {
    font-size: clamp(12px, 3.5vw, 14px) !important;
    letter-spacing: .01em !important;
    line-height: 1.4 !important;
  }
  footer .grid > div:nth-child(2),
  footer .grid > div:nth-child(3) { font-size: 12px !important; line-height: 1.45 !important; }
  footer .grid > div:nth-child(2) a span,
  footer .grid > div:nth-child(3) a span { font-size: 12px !important; }
  footer .grid > div:nth-child(2) svg { width: 19px !important; height: 19px !important; }
  footer .grid > div:nth-child(3) a > div { width: 34px !important; height: 34px !important; }
  footer .grid > div:nth-child(3) a > div svg { width: 18px !important; height: 18px !important; }
  footer .grid .space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 9px !important; }
  footer .grid .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 12px !important; }
  footer .container > .text-center:last-child { margin-top: 27px !important; padding-top: 19px !important; font-size: 12px !important; }
}

@media (max-width: 360px) {
  .contact-showcase__panel h2 { font-size: 27px !important; }
  .site-hero-about .site-hero-side-image,
  .site-hero-products .site-hero-side-image { width: 97vw !important; }
  .home-about .home-about__media-mobile { width: 36vw !important; margin-right: 12px !important; }
}
