/**
 * JujuyConectado Pro 2026 · 9.5.55.512
 * APP END-OF-CONTENT FLUSH MASTER V1
 *
 * La TabBar fija ya tiene una única reserva física en body (V232).
 * Todo padding/margen visual previo al footer se reduce a cero.
 * Comunidad y Mini App CJRD quedan fuera por enqueue PHP y selectores.
 */

@media (max-width:760px){
  html.jc-pwa-standalone body:not(.jc-ccj-route):not(.cjrd-mini-app).jc-global-header-master-v466 #jc-content-shell,
  body.jc-native-app:not(.jc-ccj-route):not(.cjrd-mini-app).jc-global-header-master-v466 #jc-content-shell{
    padding-bottom:0!important;
    margin-bottom:0!important;
  }

  /* Shells comunes que todavía acumulaban 10/14/20/50 px al final. */
  html.jc-pwa-standalone body:not(.jc-ccj-route):not(.cjrd-mini-app) :is(
    .jc-msbase,
    .jc-pt-v288,
    .jc-auto3-main,
    .jc-inmuebles-shell-v2,
    .jcb-discovery-page,
    .cjrd3,
    .jc-listing-page
  ),
  body.jc-native-app:not(.jc-ccj-route):not(.cjrd-mini-app) :is(
    .jc-msbase,
    .jc-pt-v288,
    .jc-auto3-main,
    .jc-inmuebles-shell-v2,
    .jcb-discovery-page,
    .cjrd3,
    .jc-listing-page
  ){
    padding-bottom:0!important;
    margin-bottom:0!important;
  }

  /* Cierres específicos cuyo padding inferior era puramente respiración final. */
  html.jc-pwa-standalone body:not(.jc-ccj-route):not(.cjrd-mini-app) .jc-regions-localities-v452:last-child,
  body.jc-native-app:not(.jc-ccj-route):not(.cjrd-mini-app) .jc-regions-localities-v452:last-child,
  html.jc-pwa-standalone body:not(.jc-ccj-route):not(.cjrd-mini-app) .jc-aprende-final:last-child,
  body.jc-native-app:not(.jc-ccj-route):not(.cjrd-mini-app) .jc-aprende-final:last-child{
    padding-bottom:0!important;
    margin-bottom:0!important;
  }

  /* El último bloque real no debe volver a crear una franja entre contenido y TabBar. */
  html.jc-pwa-standalone body:not(.jc-ccj-route):not(.cjrd-mini-app) #jc-content-shell > :last-child,
  body.jc-native-app:not(.jc-ccj-route):not(.cjrd-mini-app) #jc-content-shell > :last-child{
    margin-bottom:0!important;
  }
}

/* Fallback PWA cuando la clase standalone todavía no llegó al <html>. */
@media (max-width:760px) and (display-mode:standalone){
  body:not(.jc-ccj-route):not(.cjrd-mini-app).jc-global-header-master-v466 #jc-content-shell{
    padding-bottom:0!important;
    margin-bottom:0!important;
  }

  body:not(.jc-ccj-route):not(.cjrd-mini-app) :is(
    .jc-msbase,
    .jc-pt-v288,
    .jc-auto3-main,
    .jc-inmuebles-shell-v2,
    .jcb-discovery-page,
    .cjrd3,
    .jc-listing-page
  ){
    padding-bottom:0!important;
    margin-bottom:0!important;
  }

  body:not(.jc-ccj-route):not(.cjrd-mini-app) .jc-regions-localities-v452:last-child,
  body:not(.jc-ccj-route):not(.cjrd-mini-app) .jc-aprende-final:last-child,
  body:not(.jc-ccj-route):not(.cjrd-mini-app) #jc-content-shell > :last-child{
    padding-bottom:0!important;
    margin-bottom:0!important;
  }
}
