/* Navegación */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand { font-weight: 800; text-decoration: none; color: inherit; }
.nav a.login { text-decoration: none; font-weight: 600; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 12px 24px;
}
.hero h1 { line-height: 1.1; margin: 0 0 10px; }
.hero p { margin: 0 0 6px; color: #4b5563; }
.hero .img { border-radius: 16px; overflow: hidden; }
.hero-picture { display: block; width: 100%; }
.hero-img { width: 100%; height: auto; display: block; }

/* Barra de búsqueda */
.toolbar { max-width: 1100px; margin: 0 auto; padding: 0 12px 8px; }
.search {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
}

/* Lista de cards */
.list {
  max-width: 1100px;
  margin: 8px auto 40px;
  padding: 0 12px;
  display: grid;
  gap: 18px;
}
.card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 14px; }
.card .title { font-weight: 700; font-size: 20px; margin: 4px 0 6px; }
.card .title a { text-decoration: none; color: #111827; }
.card .meta { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.card .excerpt { color: #374151; font-size: 14px; line-height: 1.45; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
}

.footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  padding: 24px 12px;
  text-align: center;
  font-size: 14px;
}

.footer a {
  color: #111827;
  text-decoration: none;
  font-weight: 500;
}
.footer a:hover {
  text-decoration: underline;
}

.btn.load-more{
  display:block;margin:8px auto 40px;padding:10px 18px;border-radius:10px;
  border:1px solid #e5e7eb;background:#fff;font-weight:600;cursor:pointer;
}
.btn.load-more:hover{ background:#f9fafb }

.pager {
  display:flex; align-items:center; justify-content:space-between;
  gap:.75rem; margin-top:.5rem;
}
#pagerInfo { font-size:.9rem; color:#6b7280; }
.btn-more {
  border:1px solid #e5e7eb; background:#fff; padding:.5rem .9rem;
  border-radius:.5rem; cursor:pointer;
}
.btn-more[disabled] { opacity:.6; cursor:default; }
@media (max-width: 600px){
  .pager { flex-direction:column; align-items:stretch; }
  .btn-more { width:100%; }
}

/* Contenedor consistente */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Secciones que estaban pegadas a los bordes */
.pager { max-width: 1100px; margin: 8px auto 24px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
#pagerInfo { font-size: .9rem; color: #6b7280; }
.btn-more { border: 1px solid #e5e7eb; background: #fff; padding: .5rem .9rem; border-radius: .5rem; cursor: pointer; }
.btn-more[hidden] { display: none; }

/* Pie de página */
.footer { background: #f9fafb; border-top: 1px solid #e5e7eb; margin-top: 24px; }
.footer .wrap { padding: 16px; text-align: center; color: #6b7280; font-size: .9rem; }
.footer a { color: inherit; text-decoration: underline; }

