/* =============================================================================
   CMR — Páginas de contenido (legales + blog)
   Reutiliza la identidad visual existente sin alterar la landing principal.
   ============================================================================= */

.page-content {
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(64, 77, 160, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 8%, rgba(23, 142, 134, 0.1), transparent 50%),
    linear-gradient(180deg, #f4f7fc 0%, #eef3fa 48%, #f8fafc 100%);
  color: #0c1636;
  min-height: 100vh;
}

.page-content > header {
  background: #fff;
  border-bottom: 1px solid rgba(64, 77, 160, 0.1);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.content-shell {
  width: min(100% - 2rem, 46rem);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.content-shell--wide {
  width: min(100% - 2rem, 68rem);
}

.content-breadcrumb {
  margin: 0 0 1.1rem;
}

.content-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.content-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.55rem;
  color: #94a3b8;
}

.content-breadcrumb a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.22s ease, text-decoration-color 0.22s ease;
}

.content-breadcrumb a:visited {
  color: var(--link-visited);
}

.content-breadcrumb a:hover,
.content-breadcrumb a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--link-underline-hover);
}

.content-breadcrumb a:active {
  color: var(--link-active);
}

.content-prose img {
  display: block;
  width: 100%;
  max-width: 42rem;
  height: auto;
  border-radius: 12px;
  margin: 0 0 1.15rem;
}

.content-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2850c0;
  background: rgba(40, 80, 192, 0.08);
  border: 1px solid rgba(40, 80, 192, 0.18);
}

.content-shell h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #070f37;
}

.content-lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.6;
  color: #475569;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
}

.content-meta {
  margin: 0 0 1.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

.content-card {
  background: #fff;
  border: 1px solid rgba(64, 77, 160, 0.12);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow:
    0 4px 6px -1px rgba(10, 15, 44, 0.05),
    0 18px 40px -14px rgba(40, 80, 192, 0.14);
}

.content-prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: clamp(1.15rem, 1rem + 0.45vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: #0c1636;
}

.content-prose h2:first-child {
  margin-top: 0;
}

.content-prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #1e293b;
}

.content-prose p,
.content-prose li {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #334155;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-spacing: normal;
  letter-spacing: 0.01em;
}

.content-prose p {
  margin: 0 0 1rem;
}

.content-prose ul,
.content-prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.content-prose li {
  margin-bottom: 0.4rem;
}

.content-prose a {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--link-underline);
  transition: color 0.22s ease, text-decoration-color 0.22s ease;
}

.content-prose a:visited {
  color: var(--link-visited);
}

.content-prose a:hover,
.content-prose a:focus-visible {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline-hover);
}

.content-prose a:active {
  color: var(--link-active);
}

.content-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.35rem);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(64, 77, 160, 0.12);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px -16px rgba(40, 80, 192, 0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 80, 192, 0.28);
  box-shadow: 0 16px 34px -14px rgba(40, 80, 192, 0.34);
}

.blog-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #178e86;
}

.blog-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #070f37;
}

.blog-card p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
}

.blog-card__more {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2850c0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin-top: 0.55rem;
}

.footer-legal a {
  color: var(--link-visited, rgba(226, 236, 255, 0.72));
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.22s ease, text-decoration-color 0.22s ease;
}

.footer-legal a:visited {
  color: var(--link-visited, rgba(226, 236, 255, 0.72));
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--link-hover, #fff);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--link-underline-hover, #99f6e4);
}

.footer-legal a:active {
  color: var(--link-active, #bae6fd);
}

.form-privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #475569;
}

.form-privacy-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: #2850c0;
}

.form-privacy-check a {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--link-underline);
  transition: color 0.22s ease, text-decoration-color 0.22s ease;
}

.form-privacy-check a:visited {
  color: var(--link-visited);
}

.form-privacy-check a:hover,
.form-privacy-check a:focus-visible {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline-hover);
}

.form-privacy-check a:active {
  color: var(--link-active);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .content-shell {
    width: min(100% - 1.5rem, 46rem);
  }

  .content-card {
    border-radius: 14px;
    padding: 1.1rem 1rem 1.25rem;
  }
}
