/* ── Portfolio (listado completo) ───────────────────── */

/* Hero */
.pf-hero { padding-top: 7rem; }
.pf-hero-inner { margin-bottom: 2.5rem; }
.pf-hero-h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin: .5rem 0 1rem;
}
.pf-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  max-width: 520px;
}

/* Filtros */
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  padding-bottom: .5rem;
}
.pf-filter {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  border-radius: 50px;
  padding: .4rem 1.1rem;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  font-family: inherit;
}
.pf-filter:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.pf-filter.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Grid */
.pf-grid-section { padding-bottom: 5rem; }
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

/* Item */
.pf-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.pf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.pf-item:hover img { transform: scale(1.05); }

/* Overlay */
.pf-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,.88) 0%, rgba(5,5,5,.1) 55%, transparent 100%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .3rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.pf-item:hover .pf-item-overlay { opacity: 1; }
.pf-item-overlay h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.pf-item-overlay p {
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .pf-hero-h1 { font-size: 2.5rem; }
}
