/* =========================
   TARJETAS GENERALES
========================= */
.hero-main,
.hero-side-card,
.editorial-card,
.post-card,
.post-list-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.hero-main-content,
.hero-side-content,
.editorial-card-content,
.post-card-content,
.post-list-content {
  padding: 20px;
}

.post-date,
.hero-date,
.card-date {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.card-title,
.list-title {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0;
  color: var(--color-primary);
}

/* =========================
   GRID DE POSTS
========================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  border-color: rgba(15, 23, 42, 0.12);
}

.post-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.03);
}

.post-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--color-primary);
}

.post-card-title a {
  color: inherit;
}

.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin: 0;
}

/* =========================
   LISTADO DE CONTENIDO
========================= */
.post-list {
  display: grid;
  gap: 18px;
}

.post-list-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
}

.post-list-thumb {
  display: block;
  min-height: 100%;
  overflow: hidden;
}

.post-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-list-card:hover .post-list-thumb img {
  transform: scale(1.03);
}

.post-list-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-list-title {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--color-primary);
}

.post-list-title a {
  color: inherit;
}

.post-list-excerpt {
  font-size: 0.96rem;
  color: var(--color-secondary);
  margin: 0;
}

/* =========================
   PAGINACIÓN
========================= */
.pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* =========================
   FORMULARIOS / BÚSQUEDA
========================= */
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-form input[type="search"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input[type="search"]:focus {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.04);
}

.search-form button {
  min-height: 42px;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.search-form button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}