/* ProSoluciones Theme — layout / componentes base */

.ps-main,
.ps-main.ps-main--flush {
  padding: 0 !important;
  margin: 0 !important;
  background: #090A0B;
}

.ps-main--flush > p,
.ps-main > p:first-child {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}


.ps-page-header {
  margin-bottom: 1.75rem;
}

.ps-page-title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.ps-page-lead {
  color: var(--ps-muted);
  margin: 0;
}

.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--ps-radius);
  border: 0;
  background: var(--ps-primary);
  color: #fff !important;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
}

.ps-btn:hover {
  filter: brightness(1.05);
}

.ps-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ps-card {
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  overflow: hidden;
  background: #fff;
}

.ps-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ps-card__body {
  padding: 1rem 1.1rem 1.25rem;
}

.ps-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.ps-card__title a {
  color: var(--ps-text);
  text-decoration: none;
}

.ps-card__excerpt {
  color: var(--ps-muted);
  font-size: 0.95rem;
}

.ps-entry__content {
  max-width: 72ch;
}

.ps-entry__thumb {
  margin-bottom: 1.5rem;
}

.ps-entry__thumb img {
  border-radius: var(--ps-radius);
}

.ps-entry__meta {
  color: var(--ps-muted);
  font-size: 0.9rem;
  margin: 0;
}

.ps-search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.ps-search-form__input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  font: inherit;
}

.ps-footer {
  border-top: 1px solid var(--ps-border);
  background: #f8fafc;
  padding: 2.5rem 0 1.75rem;
  margin-top: auto;
}

.ps-footer__widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.ps-footer__menu {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.ps-footer__copy {
  margin: 0;
  color: var(--ps-muted);
  font-size: 0.9rem;
}

.ps-pagination {
  margin-top: 2rem;
}

.ps-empty__text {
  color: var(--ps-muted);
}

@media (max-width: 860px) {
  .ps-nav-toggle {
    display: inline-flex;
  }

  .ps-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--ps-border);
    padding: 0.75rem 1rem 1rem;
  }

  .ps-header {
    position: sticky;
  }

  .ps-header__inner {
    position: relative;
  }

  body.ps-nav-open .ps-nav {
    display: block;
  }

  .ps-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
