/*
 * Páginas editoriales canónicas
 * Martha Saldaña — Ingeniería Humana / Vivir Taichi
 * Se apoya en tokens, base, layout, components y responsive del sitio principal.
 */

.editorial-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(14, 177, 251, 0.10), transparent 30rem),
    radial-gradient(circle at 84% 22%, rgba(121, 12, 244, 0.09), transparent 34rem),
    var(--bg);
}

.editorial-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(8.5rem, 13vw, 11rem) 0 clamp(4.5rem, 8vw, 7rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -46% 32%;
  height: 30rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(14, 177, 251, 0.10), transparent 68%);
  filter: blur(12px);
}

.editorial-hero__inner,
.editorial-body,
.editorial-footer-cta {
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
}

.editorial-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.editorial-breadcrumb a:hover,
.editorial-breadcrumb a:focus-visible {
  color: rgba(255, 255, 255, 0.86);
}

.editorial-title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.editorial-deck {
  max-width: 780px;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.2rem, 2.35vw, 1.72rem);
  line-height: 1.45;
}

.editorial-body {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
}

.editorial-section {
  margin-top: clamp(3.6rem, 7vw, 6rem);
}

.editorial-section:first-child {
  margin-top: 0;
}

.editorial-body h2 {
  max-width: 19ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.editorial-body h3 {
  margin: 2.25rem 0 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.editorial-body p,
.editorial-body li {
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.82;
}

.editorial-body p {
  margin: 0 0 1.25rem;
}

.editorial-body strong {
  color: rgba(255, 255, 255, 0.96);
}

.editorial-lead {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: clamp(1.16rem, 2.2vw, 1.42rem) !important;
  line-height: 1.65 !important;
}

.editorial-divider {
  width: 100%;
  height: 1px;
  margin: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(
    90deg,
    rgba(14, 177, 251, 0),
    rgba(14, 177, 251, 0.48),
    rgba(121, 12, 244, 0.38),
    rgba(121, 12, 244, 0)
  );
}

.editorial-quote {
  margin: clamp(3rem, 7vw, 5.5rem) 0;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.editorial-quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.6rem, 3.8vw, 2.65rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.editorial-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.editorial-principle {
  min-height: 7.5rem;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 650;
}

.editorial-framework {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0;
}

.editorial-framework__row {
  display: grid;
  grid-template-columns: minmax(100px, 160px) 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-framework__key {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 750;
  letter-spacing: 0.01em;
}

.editorial-framework__value {
  color: rgba(255, 255, 255, 0.66);
}

.editorial-signature {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.editorial-signature strong {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.editorial-footer-cta {
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.editorial-footer-cta p {
  max-width: 680px;
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  text-decoration: none;
}

.editorial-link:hover,
.editorial-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

@media (max-width: 720px) {
  .editorial-hero {
    padding-top: 7.3rem;
  }

  .editorial-title {
    max-width: 100%;
  }

  .editorial-principles {
    grid-template-columns: 1fr;
  }

  .editorial-framework__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .editorial-quote {
    border-radius: 18px;
  }
}
