/* =============================================
   PAGE — Wepy.ai
   Estilos compartidos para páginas internas:
   nosotros.html, blog.html, privacidad.html,
   terminos.html
   ============================================= */


/* ─── Hero de página ─────────────────────────── */
.page-hero {
  background: #0F172A;
  padding: calc(var(--navbar-height-desktop) + 80px) var(--container-px) 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7C3AED;
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: #94A3B8;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ─── Secciones de contenido ─────────────────── */
.page-section {
  padding: 80px var(--container-px);
  background: #FFFFFF;
}

.page-section--dark {
  background: #0F172A;
}

.page-section--soft {
  background: #F8FAFC;
}

.page-section__container {
  max-width: 1120px;
  margin: 0 auto;
}

.page-section__container--narrow {
  max-width: 760px;
}

.page-section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7C3AED;
  margin-bottom: 12px;
}

.page-section__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-section--dark .page-section__title {
  color: #F8FAFC;
}

.page-section__body {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 16px;
}

.page-section--dark .page-section__body {
  color: #94A3B8;
}


/* ─── Grids ────────────────────────────────────── */
.page-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.page-grid--2 { grid-template-columns: repeat(2, 1fr); }
.page-grid--3 { grid-template-columns: repeat(3, 1fr); }
.page-grid--4 { grid-template-columns: repeat(4, 1fr); }


/* ─── Cards genéricas ──────────────────────────── */
.page-card {
  background: #F8FAFC;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 32px;
}

.page-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.page-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.page-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: #64748B;
}


/* ─── CTA button ─────────────────────────────── */
.page-cta {
  display: inline-block;
  background: linear-gradient(90deg, #7C3AED, #8B5CF6);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.page-cta:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}


/* ─── Blog cards ───────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.blog-card {
  background: #F8FAFC;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.blog-card--coming-soon {
  opacity: 0.5;
  pointer-events: none;
}

.blog-card__thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1E1B4B, #312E81);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.blog-card__body {
  padding: 24px;
}

.blog-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.blog-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-card__excerpt {
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card__meta {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
}


/* ─── Nosotros — equipo ────────────────────────── */
.team-card {
  text-align: center;
  padding: 32px;
}

.team-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
}

.team-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 12px;
  font-weight: 600;
  color: #7C3AED;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.team-card__bio {
  font-size: 14px;
  color: #64748B;
  line-height: 1.65;
}


/* ─── Contenido legal ──────────────────────────── */
.legal-content {
  color: #374151;
  font-size: 15px;
  line-height: 1.85;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin: 44px 0 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.legal-content h2:first-child {
  margin-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1E293B;
  margin: 24px 0 8px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: #7C3AED;
  text-decoration: underline;
}

.legal-content strong {
  font-weight: 600;
  color: #0F172A;
}

.legal-meta {
  display: inline-block;
  font-size: 13px;
  color: #94A3B8;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  width: 100%;
}


/* ─── Footer simplificado (páginas internas) ──── */
.page-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  flex-wrap: wrap;
}

.page-footer__nav {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}


/* ─── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .page-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-hero {
    padding: calc(var(--navbar-height-mobile) + 56px) var(--container-px) 60px;
  }

  .page-section {
    padding: 56px var(--container-px);
  }

  .page-grid--2,
  .page-grid--3,
  .page-grid--4,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .page-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
