/******* GRID MARCAS ******/
.grid-marcas{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:24px;
}

.marca-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:18px;
  /*border:1px solid #eee;*/
  border-radius:14px;
  text-align:center;
  /*background:#fff;*/
  transition:all .2s ease;
}

.marca-item:hover{
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  transform:translateY(-4px);
}

.marca-img img{
  max-height:200px;
  width:auto;
  object-fit:contain;
  margin-bottom:12px;
}

.marca-sin-img{
  width:120px;
  height:80px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed #ddd;
  border-radius:10px;
  margin-bottom:12px;
  font-size:28px;
  font-weight:700;
}

.marca-nombre{
  font-size:14px;
  font-weight:600;
  color:#333;
}

/* Contenedor */
.marcas-pagination ul.page-numbers{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  list-style:none;
  padding:0;
  margin:26px 0 0;
  gap:0; /* sin separación */
}

/* Quitar espacios que meta el tema */
.marcas-pagination ul.page-numbers li{
  margin:0;
  padding:0;
}

/* Botones */
.marcas-pagination .page-numbers a,
.marcas-pagination .page-numbers span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  padding:0 14px;
  text-decoration:none;
  border:1px solid #eee;
  border-right:none; /* une las piezas */
  border-radius:0;
}

/* Último item vuelve a cerrar el borde */
.marcas-pagination ul.page-numbers li:last-child a,
.marcas-pagination ul.page-numbers li:last-child span{
  border-right:1px solid #eee;
}

/* Esquinas redondeadas SOLO en extremos */
.marcas-pagination ul.page-numbers li:first-child a,
.marcas-pagination ul.page-numbers li:first-child span{
  border-radius:10px 0 0 10px;
}

.marcas-pagination ul.page-numbers li:last-child a,
.marcas-pagination ul.page-numbers li:last-child span{
  border-radius:0 10px 10px 0;
}

/* Activa */
.marcas-pagination .current{
  font-weight:700;
  border-color:#ccc;
}

/* Disabled */
.marcas-pagination .disabled span{
  opacity:.5;
}

/* Colores normales */
.marcas-pagination .page-numbers a{
  background:#00a79d;   /* turquesa */
  color:#fff;
}

/* Hover */
.marcas-pagination .page-numbers a:hover{
  background:#019189;
  color:#fff;
}

/* Página actual (azul oscuro) */
.marcas-pagination .page-numbers .current{
  background:#1e3a8a;
  color:#fff;
  border-color:#1e3a8a;
}

/* Flechas mismo color que números */
.marcas-pagination .page-numbers .prev a,
.marcas-pagination .page-numbers .next a{
  background:#00a79d;
  color:#fff;
}

.marcas-letters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin: 0 0 14px;
}
.marcas-letter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  text-decoration:none;
  font-weight:600;
}
.marcas-letter.current{
  background:#1e3a8a;
  color:#fff;
  border-color:#1e3a8a;
}

.marcas-search{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin: 0 0 16px;
}
#marcas-search-input{
  width: min(520px, 100%);
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
}
#marcas-search-btn{
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #00a79d;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
#marcas-search-btn:hover{
  background:#019189;
}

