/* ═══════════════════════════════════════════════════════
   PAGES.CSS — Componentes de la arquitectura multipágina
   (Se carga después de styles/components/animations/responsive.
    No modifica reglas existentes, solo añade.)
   ═══════════════════════════════════════════════════════ */

/* ── Nav: estado activo + pill Kit Digital ── */
.nav-links a.active {
  color: var(--sage-dark);
  font-weight: 700;
}
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--sage);
  margin-top: 2px;
}
.nav-kit {
  background: var(--lavender-pale);
  color: var(--lavender) !important;
  font-weight: 700 !important;
  font-size: .78rem !important;
  letter-spacing: .05em;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1.5px solid var(--lavender-light);
  white-space: nowrap;
}
.nav-kit:hover { background: var(--lavender-light); color: var(--ink) !important; }
.mobile-link.nav-kit { display: inline-block; width: max-content; }
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .85rem; }
}

/* ── Hero compacto de subpágina ── */
.page-hero {
  padding: 7.5rem 1.5rem 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--sage-pale) 0%, var(--cream) 100%);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto .9rem;
}
.page-hero .page-hero-sub {
  color: var(--ink-60);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}
.page-hero .hero-ctas { margin-top: 1.6rem; justify-content: center; }

/* ── Bloque referidos (precios) ── */
.ref-box {
  max-width: 860px;
  margin: 3.5rem auto 0;
  background: var(--white);
  border: 1.5px solid var(--sage-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.ref-box h3 { margin-bottom: .6rem; }
.ref-box p { color: var(--ink-60); max-width: 560px; margin: 0 auto 1.2rem; }

/* ── Tira de stats (equipo / proyectos) ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 2.5rem auto 0;
}
.stats-strip .stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  text-align: center;
}
.stats-strip strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.7rem;
  color: var(--sage-dark);
}
.stats-strip span { color: var(--ink-60); font-size: .85rem; }

/* ── Página Equipo ── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.5rem;
}
@media (max-width: 768px) { .story-grid { grid-template-columns: 1fr; } }
.story-block h3 { margin-bottom: .5rem; }
.story-block p { color: var(--ink-60); line-height: 1.65; }
.team-card {
  max-width: 520px;
  margin: 2.5rem auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.team-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem; font-weight: 700;
}
.team-card h3 { margin-bottom: .2rem; }
.team-role { color: var(--sage-dark); font-weight: 600; font-size: .9rem; margin-bottom: .8rem; }
.team-bio { color: var(--ink-60); line-height: 1.6; font-size: .95rem; }
.team-links { margin-top: 1.1rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ── Tarjetas de información (contacto / kit) ── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 980px;
  margin: 2.5rem auto 0;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.info-card .ic-icon { font-size: 1.7rem; margin-bottom: .5rem; }
.info-card h4 { margin-bottom: .3rem; font-size: 1rem; }
.info-card p, .info-card a { color: var(--ink-60); font-size: .92rem; text-decoration: none; }
.info-card a:hover { color: var(--sage-dark); }

/* ── Kit Digital ── */
.kd-highlight {
  display: inline-block;
  background: var(--lavender-pale);
  color: var(--lavender);
  border: 1.5px solid var(--lavender-light);
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .05em;
  padding: .4rem .9rem;
  margin-bottom: 1rem;
}
.kd-includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.kd-note {
  max-width: 760px;
  margin: 2.5rem auto 0;
  background: var(--coral-pale);
  border: 1.5px solid var(--coral-light);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  color: var(--ink-60);
  font-size: .92rem;
  line-height: 1.6;
}

/* ── Contratación: pasos ── */
.hire-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  max-width: 980px;
  margin: 2.5rem auto 0;
}
.hire-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  position: relative;
}
.hire-step .hs-num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--sage);
  font-size: .8rem;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
.hire-step h4 { margin-bottom: .4rem; }
.hire-step p { color: var(--ink-60); font-size: .92rem; line-height: 1.55; }

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.post-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-thumb {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--sage-pale), var(--lavender-pale));
}
.post-card .post-body { padding: 1.3rem 1.4rem 1.5rem; }
.post-card time { color: var(--ink-30); font-size: .8rem; }
.post-card h3 { font-size: 1.08rem; margin: .35rem 0 .5rem; line-height: 1.35; }
.post-card p { color: var(--ink-60); font-size: .92rem; line-height: 1.55; }
.post-card .post-read { display: inline-block; margin-top: .8rem; color: var(--sage-dark); font-weight: 600; font-size: .9rem; }

/* Artículo individual */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.post header { margin-bottom: 2rem; }
.post h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; margin-bottom: .6rem; }
.post .post-meta { color: var(--ink-30); font-size: .88rem; }
.post h2 { font-size: 1.35rem; margin: 2rem 0 .7rem; }
.post p, .post li { color: var(--ink-60); line-height: 1.75; margin-bottom: 1rem; }
.post ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.post .post-cta {
  margin-top: 2.5rem;
  background: var(--sage-pale);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: center;
}
.post .post-cta p { margin-bottom: 1rem; color: var(--ink); }

/* ── Footer a 4 columnas cuando cabe ── */
.footer-links { flex-wrap: wrap; }

/* ── Accesibilidad: reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card:hover { transition: none; transform: none; }
}
