/* ── Galerías: /portafolio/ y /demos/ ─────────────────── */
/* Depende de site.css (tokens, nav, footer, cta-box).    */

nav { background: rgba(0,24,42,0.96); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--border); padding: 14px 60px; }

.page-hero {
  background: var(--navy);
  background-image: radial-gradient(rgba(10,70,194,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 150px 60px 70px;
  text-align: center;
}
.page-hero .section-tag {
  color: #5B8FE8; background: rgba(10,70,194,0.2); border-color: rgba(10,70,194,0.35);
}
.page-hero h1 {
  font-size: clamp(30px, 5vw, 48px); font-weight: 900; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--white); margin-bottom: 16px;
}
.page-hero h1 .accent { color: #22D3EE; }
.page-hero .sub {
  font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7;
  max-width: 560px; margin: 0 auto;
}
.hero-crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.35); letter-spacing: 0.06em; margin-top: 26px;
}
.hero-crumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.hero-crumb a:hover { color: var(--white); }

/* ── Sección de galería ── */
.gallery-section { background: #F4F7FA; padding: 64px 60px 90px; }
.gallery-inner { max-width: 1100px; margin: 0 auto; }

/* Filtros */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 40px;
}
.filter-chip {
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--gray);
  background: var(--white); border: 1px solid #DCE4EC; border-radius: 20px;
  padding: 8px 18px; cursor: pointer; transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Tarjetas */
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pf-card {
  background: var(--white); border: 1px solid #E2E8F0; border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,24,42,0.12); border-color: #C8D4E0; }
.pf-card.hidden { display: none; }
.pf-shot {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; background: #001428;
}
.pf-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block; transition: transform 0.5s ease;
}
.pf-card:hover .pf-shot img { transform: scale(1.03); }
.pf-banner { height: 4px; flex-shrink: 0; }
.pf-body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.pf-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.pf-body h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.pf-body > p { font-size: 13px; color: var(--gray); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.pf-meta {
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 20px;
}

/* Acciones (demos) */
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.act {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600;
  text-decoration: none; border-radius: 9px; padding: 9px 16px;
  letter-spacing: 0.02em; transition: all 0.2s;
}
.act svg { flex-shrink: 0; }
.act-primary { background: var(--blue); color: var(--white); }
.act-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.act-outline {
  background: rgba(10,70,194,0.05); color: var(--blue);
  border: 1px solid rgba(10,70,194,0.2);
}
.act-outline:hover { background: rgba(10,70,194,0.12); }

/* Nota de privacidad demos */
.gallery-note {
  max-width: 640px; margin: 44px auto 0; text-align: center;
  font-size: 12px; color: var(--gray-light); line-height: 1.7;
}

/* CTA inferior */
.gallery-cta { background: #F4F7FA; padding: 0 60px 96px; }

/* Cross-link entre galerías */
.crosslink {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 1100px; margin: 48px auto 0;
  background: var(--white); border: 1px solid #E2E8F0; border-radius: 18px;
  padding: 26px 30px; flex-wrap: wrap;
}
.crosslink h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.crosslink p { font-size: 13px; color: var(--gray); }
.crosslink .act-primary { white-space: nowrap; }

@media (max-width: 900px) {
  nav { padding: 12px 20px; }
  .page-hero { padding: 120px 24px 56px; }
  .gallery-section { padding: 44px 20px 64px; }
  .gallery-cta { padding: 0 20px 72px; }
  .pf-grid { grid-template-columns: 1fr; gap: 16px; }
  .filter-bar { gap: 6px; margin-bottom: 28px; }
  .filter-chip { padding: 7px 14px; font-size: 11px; }
  .pf-body { padding: 20px 18px 18px; }
  .act { padding: 9px 14px; font-size: 11px; }
  .crosslink { padding: 22px 20px; }
}
