/* === LPDO DESKTOP CIERRE AIRE INFO FOOTER REV 2.40 === */
/* Solo desktop: reduce aire inferior real del bloque Historia/Info antes del footer. */

@media (min-width: 769px) {

  /* El espacio grande venía del padre de toda la sección */
  section#historia.story-wrap,
  #historia.story-wrap {
    padding-bottom: 34px !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
  }

  /* La fila info no debe crear altura extra */
  #historia .info-grid,
  #historia .story-info-grid {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
    height: auto !important;
    align-items: center !important;
  }

  /* Cada item mantiene su altura natural */
  #historia .info-card {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-self: center !important;
  }

  /* Mantener aire arriba de la fila, pero no agrandar abajo */
  #historia .lpdo-info-line-final-237 {
    margin-top: 54px !important;
    margin-bottom: 34px !important;
  }

  /* Footer empieza más cerca, con separación limpia */
  footer.site-footer,
  .site-footer {
    margin-top: 0 !important;
    padding-top: 42px !important;
  }

  /* Si algún parche anterior movió la fila hacia abajo, lo anulamos */
  #historia .info-grid,
  #historia .story-info-grid {
    transform: none !important;
  }
}

/* Mobile intacto */
@media (max-width: 768px) {
  section#historia.story-wrap,
  #historia.story-wrap {
    padding-bottom: inherit;
  }
}
