/*
Theme Name: Dealernew + AFI
Author: Dealernew
Description: Portada Dealernew y proyecto AFI con catálogo y pedidos, integrados en un solo tema.
Version: 5.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: dealernew-afi
*/

/* Único cambio de presentación: pedido centrado bajo las cuatro marcas. */
#marcas .brands-order-action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

#marcas .brands-order-button {
  justify-content: center;
  gap: 20px;
  min-width: 270px;
  max-width: 100%;
  text-align: center;
}

/* Compensa la barra de administración al iniciar sesión en WordPress. */
body.admin-bar #header,
body.admin-bar.afi-view .header {
  top: 32px;
}

.dealernew-content {
  min-height: 70vh;
  padding: 60px 24px;
  max-width: 1120px;
  margin: auto;
}

.dealernew-content article {
  margin: 36px 0;
}

@media (max-width: 782px) {
  body.admin-bar #header,
  body.admin-bar.afi-view .header {
    top: 46px;
  }
}

@media (max-width: 480px) {
  #marcas .brands-order-button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  body.admin-bar.afi-view .header {
    top: 0;
  }
}
