:root {
      --bg: #ffffff;
      --paper: #ffffff;
      --text: #1f2937;
      --muted: #5f6b7a;
      --line: #dbe3ec;
      --accent: #355c7d;
      --accent-dark: #24384d;
      --soft: #eef2f6;
      --soft-blue: #f7f9fc;
      --success-soft: #f1f7f4;
      --success: #476f5d;
      --radius: 18px;
      --shadow: 0 18px 45px rgba(36, 56, 77, 0.08);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.65;
    }

    a { color: inherit; }

    .wrap {
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 30;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
    }

    .nav {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: flex;
      flex-direction: column;
      text-decoration: none;
      line-height: 1.15;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .brand-main {
      color: var(--accent-dark);
      font-size: 1.04rem;
    }

    .brand-sub {
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 500;
      margin-top: 3px;
    }

    .menu {
      display: flex;
      gap: 18px;
      align-items: center;
      font-size: 0.94rem;
      color: var(--muted);
    }

    .menu a { text-decoration: none; }
    .menu a:hover { color: var(--accent); }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 19px;
      border-radius: 999px;
      background: var(--accent);
      color: #fff;
      text-decoration: none;
      font-weight: 700;
      border: 1px solid var(--accent);
      transition: 0.2s ease;
    }

    .btn:hover {
      background: var(--accent-dark);
      border-color: var(--accent-dark);
      transform: translateY(-1px);
    }

    .btn.secondary {
      background: transparent;
      color: var(--accent-dark);
      border-color: var(--line);
    }

    .btn.secondary:hover { background: var(--soft); }

    .hero {
      padding: 84px 0 62px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.17fr 0.83fr;
      gap: 38px;
      align-items: center;
    }

    .eyebrow {
      display: inline-block;
      padding: 7px 13px;
      border: 1px solid var(--line);
      background: var(--soft-blue);
      border-radius: 999px;
      color: var(--accent-dark);
      font-weight: 700;
      font-size: 0.9rem;
      margin-bottom: 20px;
    }

    h1, h2, h3 { color: var(--accent-dark); }

    h1 {
      margin: 0 0 22px;
      max-width: 850px;
      font-size: clamp(2.2rem, 5.3vw, 4.65rem);
      line-height: 1;
      letter-spacing: -0.055em;
    }

    h2 {
      margin: 0 0 12px;
      font-size: clamp(1.75rem, 3vw, 2.55rem);
      line-height: 1.1;
      letter-spacing: -0.035em;
    }

    h3 {
      margin: 0 0 9px;
      font-size: 1.16rem;
      line-height: 1.25;
    }

    .lead {
      margin: 0;
      color: var(--muted);
      font-size: clamp(1.08rem, 2vw, 1.34rem);
      max-width: 760px;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 30px;
    }

    .hero-card,
    .panel,
    .card,
    .objection,
    .question {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .hero-card { padding: 28px; }

    .quote-mark {
      font-size: 4rem;
      line-height: 0.75;
      color: var(--accent);
      opacity: 0.42;
      margin-bottom: 8px;
    }

    .hero-card p {
      margin: 0;
      font-size: 1.08rem;
    }

    section { padding: 58px 0; }

    .section-soft {
      background: var(--soft-blue);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .section-head {
      max-width: 860px;
      margin-bottom: 28px;
    }

    .section-head p {
      margin: 0;
      color: var(--muted);
      font-size: 1.06rem;
    }

    .audience-box {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 24px;
      align-items: center;
      padding: 26px 29px;
      background: var(--soft);
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }

    .audience-box p { margin: 0; color: var(--muted); }

    .cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .dilemma-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
    }

    .third-way {
      margin-top: 22px;
      padding: 28px;
      background: var(--soft);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      text-align: center;
    }

    .third-way h3 {
      margin-bottom: 10px;
      font-size: 1.45rem;
    }

    .third-way p {
      max-width: 850px;
      margin: 0 auto;
      color: var(--muted);
      font-size: 1.04rem;
    }

    .cards.four { grid-template-columns: repeat(4, 1fr); }

    .card { padding: 24px; }
    .card p, .panel p, .question p { margin: 0; color: var(--muted); }

    .split {
      display: grid;
      grid-template-columns: 0.92fr 1.08fr;
      gap: 28px;
      align-items: start;
    }

    .panel { padding: 29px; }
    .panel p + p { margin-top: 16px; }

    .list {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 14px;
    }

    .list li {
      position: relative;
      padding-left: 28px;
      color: var(--muted);
    }

    .list li::before {
      content: "";
      position: absolute;
      left: 2px;
      top: 0.58em;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--accent);
    }

    .strong-line {
      margin-top: 22px;
      padding: 18px 20px;
      border-left: 4px solid var(--accent);
      border-radius: 0 12px 12px 0;
      background: var(--soft);
      color: var(--accent-dark);
      font-weight: 700;
    }

    .scriptures {
      display: grid;
      gap: 12px;
      margin-top: 20px;
    }

    .scripture {
      padding: 15px 17px;
      background: var(--soft-blue);
      border: 1px solid var(--line);
      border-radius: 13px;
      color: var(--muted);
    }

    .scripture strong { color: var(--accent-dark); }

    .objections {
      display: grid;
      gap: 16px;
    }

    .objection {
      overflow: hidden;
    }

    .objection summary {
      cursor: pointer;
      list-style: none;
      padding: 21px 24px;
      font-weight: 800;
      color: var(--accent-dark);
      background: var(--paper);
      position: relative;
      padding-right: 58px;
    }

    .objection summary::-webkit-details-marker { display: none; }

    .objection summary::after {
      content: "+";
      position: absolute;
      right: 24px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--accent);
      font-size: 1.6rem;
      font-weight: 400;
    }

    .objection[open] summary::after { content: "–"; }

    .objection-body {
      border-top: 1px solid var(--line);
      padding: 20px 24px 23px;
      color: var(--muted);
      background: var(--soft-blue);
    }

    .objection-body p { margin: 0; }
    .objection-body p + p { margin-top: 13px; }

    .answer-label {
      display: inline-block;
      margin-bottom: 10px;
      font-weight: 800;
      color: var(--success);
      background: var(--success-soft);
      border-radius: 999px;
      padding: 5px 10px;
      font-size: 0.82rem;
    }

    .model {
      margin-top: 26px;
      padding: 31px;
      background: var(--soft-blue);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      text-align: center;
    }

    .model-title {
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--accent-dark);
    }

    .model-line {
      width: 2px;
      height: 28px;
      margin: 8px auto;
      background: var(--accent);
      opacity: 0.45;
    }

    .congregations {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .congregation {
      padding: 15px 10px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
      color: var(--accent-dark);
      font-weight: 700;
    }

    .association {
      max-width: 530px;
      margin: 0 auto;
      padding: 17px;
      border-radius: 14px;
      background: var(--accent-dark);
      color: #fff;
      font-weight: 700;
    }

    .model-note {
      margin: 17px 0 0;
      color: var(--muted);
    }

    .questions {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .question { padding: 22px; }

    .notice {
      padding: 24px;
      border: 1px solid var(--line);
      background: var(--soft);
      border-radius: var(--radius);
      color: var(--accent-dark);
    }

    .cta {
      padding: 70px 0 90px;
    }

    .cta-box {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 28px;
      align-items: center;
      padding: clamp(30px, 5vw, 54px);
      background: var(--accent-dark);
      color: #fff;
      border-radius: 28px;
      box-shadow: var(--shadow);
    }

    .cta-box h2 { color: #fff; }

    .cta-box p {
      margin: 0;
      color: rgba(255, 255, 255, 0.82);
      font-size: 1.07rem;
    }

    .cta-box .btn {
      width: fit-content;
      background: #fff;
      color: var(--accent-dark);
      border-color: #fff;
    }

    .cta-box .btn:hover { background: var(--soft); }

    footer {
      border-top: 1px solid var(--line);
      padding: 30px 0;
      color: var(--muted);
      font-size: 0.92rem;
    }

    footer .wrap {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
    }


    .faq-groups {
      display: grid;
      gap: 34px;
    }

    .faq-group {
      display: grid;
      gap: 14px;
    }

    .faq-group-head {
      padding-bottom: 10px;
      border-bottom: 1px solid var(--line);
    }

    .faq-group-head h3 {
      margin-bottom: 5px;
      font-size: 1.35rem;
    }

    .faq-group-head p {
      margin: 0;
      color: var(--muted);
    }

    .objection-body .foundation-link {
      margin-top: 16px;
    }

    .principle-note {
      margin-top: 14px;
      padding: 13px 15px;
      background: var(--soft);
      border-left: 4px solid var(--accent);
      border-radius: 0 10px 10px 0;
      color: var(--accent-dark);
      font-weight: 700;
    }

    @media (max-width: 920px) {
      .menu { display: none; }

      .hero-grid,
      .split,
      .cta-box,
      .audience-box {
        grid-template-columns: 1fr;
      }

      .cards,
      .cards.four,
      .questions,
      .congregations {
        grid-template-columns: 1fr;
      }

      .hero { padding-top: 54px; }
    }
  
    .language-box{display:flex;align-items:center;gap:8px;margin-left:auto;white-space:nowrap}
    .language-box label{color:var(--muted);font-size:.88rem;font-weight:700}
    .language-box select{padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--accent-dark);font:inherit;font-size:.9rem;cursor:pointer}

    /* Utilidades extraídas de estilos inline */
    .mt-22 { margin-top: 22px; }
    .my-18 { margin: 18px 0; }
    .mb-22 { margin-bottom: 22px; }
    .mb-34 { margin-bottom: 34px; }
    .muted { color: var(--muted); }
    .no-mt { margin-top: 0; }
    .no-mb { margin-bottom: 0; }
    .panel-wide { max-width: 940px; margin: 0 auto; }
    .contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
    .small-text { font-size: 0.92rem; }

    /* Ajuste del esquema congregacional para pantallas pequeñas */
    @media (max-width: 920px) {
      .model {
        padding: 24px 18px;
        overflow: hidden;
      }

      .congregations {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
      }

      .congregation,
      .association {
        width: 100%;
        max-width: 100%;
      }

      .model-line {
        height: 22px;
      }
    }

    @media (max-width: 560px) {
      .wrap {
        width: min(100% - 20px, 1120px);
      }

      .model {
        padding: 20px 12px;
        border-radius: 14px;
      }

      .model-title {
        font-size: 1.05rem;
      }

      .congregation,
      .association {
        padding: 14px 10px;
        font-size: 0.95rem;
        overflow-wrap: anywhere;
      }

      .model-note {
        font-size: 0.95rem;
      }

      .language-box {
        margin-left: 0;
      }
    }


/* ===== Página: Fundamento Cristo como única Cabeza ===== */

.mt-22 { margin-top: 22px; }

.back-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.back-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-illustration {
  margin-top: 28px;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--soft-blue);
  border: 1px dashed #aebdca;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.hero-illustration strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 1.05rem;
}

.hero-illustration span {
  max-width: 620px;
}

.scripture-hero {
  margin-top: 30px;
  padding: 24px 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scripture-hero blockquote,
.scripture-card blockquote {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.scripture-ref {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.section-intro {
  max-width: 810px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-intro p:first-child { margin-top: 0; }
.section-intro p:last-child { margin-bottom: 0; }

.scripture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.scripture-card,
.application-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scripture-card { padding: 22px; }

.scripture-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.application-card { padding: 21px; }

.application-card p {
  margin: 0;
  color: var(--muted);
}

.conclusion {
  background: var(--accent-dark);
  color: #ffffff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.conclusion h2 { color: #ffffff; }

.conclusion p {
  color: rgba(255, 255, 255, 0.84);
}

.conclusion p:last-child { margin-bottom: 0; }

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 760px) {
  .scripture-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .back-link {
    font-size: 0.9rem;
  }

  .hero-illustration {
    min-height: 220px;
    padding: 20px;
  }
}


/* ===== Artículos largos con índice navegable ===== */

.article-wrap {
  width: min(940px, calc(100% - 32px));
}

.article-hero {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, var(--soft-blue), #ffffff);
  border-bottom: 1px solid var(--line);
}

.long-article .article-hero h1 {
  max-width: 920px;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
}

.article-index-section {
  padding: 34px 0 46px;
  background: #fff;
}

.article-index {
  scroll-margin-top: 96px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft-blue);
  box-shadow: var(--shadow);
}

.article-index-head {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-index-head h2 {
  margin-bottom: 0;
}

.article-index-head p {
  margin: 0;
  color: var(--muted);
}

.article-index-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.article-index-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-index-group {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.article-index-group h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.article-index-group a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
  border-top: 1px solid transparent;
}

.article-index-group a:hover {
  color: var(--accent-dark);
  transform: translateX(2px);
}

.index-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: .76rem;
  font-weight: 800;
}

.article-content {
  padding-top: 10px;
  padding-bottom: 80px;
}

.article-section {
  position: relative;
  scroll-margin-top: 92px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.article-section:first-child {
  border-top: 0;
}

.article-section-number {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
}

.article-section h2 {
  max-width: 820px;
  margin-bottom: 24px;
}

.article-body {
  max-width: 820px;
}

.article-body p {
  margin: 0 0 17px;
  color: var(--text);
}

.article-quote {
  margin: 24px 0 8px;
  padding: 18px 22px;
  background: var(--soft-blue);
  border-left: 4px solid var(--accent);
  border-radius: 0 13px 13px 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.article-reference {
  margin-top: -2px !important;
  color: var(--muted) !important;
  font-size: .94rem;
  font-weight: 700;
}

.article-emphasis {
  color: var(--accent-dark) !important;
  font-weight: 700;
}

.article-placeholder {
  display: inline-block;
  padding: 9px 12px;
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--accent) !important;
  font-size: .94rem;
}

.back-to-index {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.back-to-index:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .article-index-head,
  .article-index-groups {
    grid-template-columns: 1fr;
  }

  .article-index {
    padding: 20px;
    border-radius: 18px;
  }

  .article-index-group {
    padding: 16px;
  }

  .article-section {
    padding: 40px 0;
  }

  .article-hero {
    padding-top: 48px;
  }
}

@media (max-width: 520px) {
  .article-index-section {
    padding-top: 24px;
  }

  .article-index-group a {
    grid-template-columns: 25px 1fr;
    font-size: .94rem;
  }

  .article-section h2 {
    font-size: 1.65rem;
  }
}


/* ===== Estado automático de enlaces a artículos =====
   Mantenimiento:
   pagina-en-preparacion.html = pendiente (gris)
   cualquier otro destino = disponible (azul)
*/
.foundation-link,
.article-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}

.foundation-link:hover,
.article-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foundation-link[href*="pagina-en-preparacion.html"],
.article-link[href*="pagina-en-preparacion.html"] {
  color: #9aa4af;
  font-weight: 600;
}

.foundation-link[href*="pagina-en-preparacion.html"]:hover,
.article-link[href*="pagina-en-preparacion.html"]:hover {
  color: #7f8a96;
  text-decoration: none;
}

.menu .articles-nav-link,
.articles-nav-link {
  font-weight: 700;
  color: var(--accent);
}

.menu .articles-nav-link:hover,
.articles-nav-link:hover {
  color: var(--accent-dark);
}


/* ===== Biblioteca de artículos ===== */

.library-hero {
  padding: 72px 0 44px;
  background: linear-gradient(180deg, var(--soft-blue), #fff);
  border-bottom: 1px solid var(--line);
}

.library-hero h1 {
  max-width: 850px;
}

.library-status {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
}

.library-status strong {
  color: var(--accent-dark);
}

.library-key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: .92rem;
}

.library-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.library-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.library-dot.available { background: var(--accent); }
.library-dot.pending { background: #9aa4af; }

.library-index-section {
  padding: 34px 0 18px;
}

.library-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.library-index a {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}

.library-index a:hover {
  color: var(--accent-dark);
  border-color: #b8c4d0;
  background: var(--soft-blue);
}

.library-section {
  scroll-margin-top: 92px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.library-section:first-of-type {
  border-top: 0;
}

.library-section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.library-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.library-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.library-item .article-link {
  display: inline-block;
  line-height: 1.35;
}

.library-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.library-featured {
  grid-column: 1 / -1;
  padding: 24px;
  background: var(--soft-blue);
  border-color: #cbd6e0;
}

.library-featured .article-link {
  font-size: 1.08rem;
}

.library-note {
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: .94rem;
}

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

  .library-featured {
    grid-column: auto;
  }

  .library-hero {
    padding-top: 50px;
  }

  .library-index {
    gap: 8px;
  }
}


/* ===== Artículos: navegación jerárquica de dos niveles ===== */
.article-map-hero {
  padding: 70px 0 42px;
  background: linear-gradient(180deg, var(--soft-blue), #fff);
  border-bottom: 1px solid var(--line);
}
.article-map-intro { max-width: 880px; }
.article-map-intro .lead { max-width: 820px; }
.article-method {
  margin-top: 26px; padding: 20px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
}
.article-method strong { color: var(--accent-dark); }
.article-method-flow {
  margin-top: 12px; font-weight: 700; color: var(--text); line-height: 1.7;
}
.article-status-key {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 15px;
  color: var(--muted); font-size: .92rem;
}
.article-status-key span { display: inline-flex; align-items: center; gap: 7px; }
.article-map { padding: 44px 0 72px; }
.article-map-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.article-area {
  border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden;
}
.article-area-head {
  padding: 22px 22px 18px; background: var(--soft); border-bottom: 1px solid var(--line);
}
.article-area-number {
  display: inline-block; margin-bottom: 8px; font-size: .78rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.article-area h2 { margin: 0 0 8px; font-size: 1.28rem; }
.article-area-head p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.article-subtopics { list-style: none; padding: 10px 22px 18px; margin: 0; }
.article-subtopics li { border-bottom: 1px solid var(--line); }
.article-subtopics li:last-child { border-bottom: 0; }
.article-subtopics a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; text-decoration: none; font-weight: 700;
}
.article-subtopics a::after { content: "→"; flex: 0 0 auto; }
.article-subtopics a.article-link[href*="pagina-en-preparacion.html"]::after {
  content: "En preparación"; font-size: .76rem; font-weight: 600; color: #9aa4af;
}
.article-area-featured { border-color: #cbd6e0; }
.article-area-featured .article-area-head { background: var(--soft-blue); }
.article-map-footer-note {
  margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--accent);
  background: var(--soft); border-radius: 0 12px 12px 0; color: var(--muted);
}
@media (max-width: 760px) {
  .article-map-grid { grid-template-columns: 1fr; }
  .article-map-hero { padding-top: 48px; }
  .article-subtopics a { align-items: flex-start; }
}


/* ===== Marco Común ===== */
.framework-hero {
  padding: 70px 0 44px;
  background: linear-gradient(180deg, var(--soft-blue), #fff);
  border-bottom: 1px solid var(--line);
}

.framework-intro {
  max-width: 900px;
}

.framework-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.framework-nav a {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.framework-nav a:hover {
  color: var(--accent-dark);
  background: var(--soft-blue);
}

.framework-method {
  margin-top: 24px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.framework-method p {
  margin: 8px 0 0;
  color: var(--muted);
}

.framework-section {
  scroll-margin-top: 92px;
  padding: 50px 0;
  border-top: 1px solid var(--line);
}

.framework-section-head {
  max-width: 860px;
  margin-bottom: 24px;
}

.framework-section-head p {
  margin: 0;
  color: var(--muted);
}

.framework-conclusions {
  display: grid;
  gap: 14px;
}

.framework-conclusion {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.framework-conclusion h3 {
  margin-bottom: 8px;
}

.framework-conclusion p {
  margin: 0;
  color: var(--muted);
}

.framework-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.framework-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 800;
}

.framework-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.framework-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.framework-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.framework-category {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft-blue);
}

.framework-category strong {
  color: var(--accent-dark);
}

.framework-category p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

@media (max-width: 760px) {
  .framework-category-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Refuerzo visual del mapa de artículos ===== */
.article-area-head .area-purpose {
  margin-top: 8px;
  font-size: .88rem;
  color: var(--muted);
}


/* ===== Marco completo: índice jerárquico ===== */
.framework-index-wrap {
  padding: 42px 0 54px;
  background: var(--soft-blue);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.framework-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
.framework-index-section {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.framework-index-section h3 {
  margin-bottom: 14px;
}
.framework-index-section h3 a {
  color: var(--accent-dark);
  text-decoration: none;
}
.framework-index-links {
  display: grid;
  gap: 12px;
}
.framework-index-topic {
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.framework-index-topic:first-child {
  padding-top: 0;
  border-top: 0;
}
.framework-index-topic-title,
.framework-index-direct {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  line-height: 1.35;
}
.framework-index-sub {
  display: block;
  padding-left: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.35;
}
.framework-index-topic-title:hover,
.framework-index-direct:hover,
.framework-index-sub:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.framework-topic {
  scroll-margin-top: 90px;
  margin-top: 32px;
}
.framework-topic > h3 {
  margin-bottom: 16px;
  font-size: 1.45rem;
}
.framework-conclusion {
  scroll-margin-top: 90px;
}
.framework-conclusion h4 {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 1.08rem;
}
.framework-conclusion p {
  margin: 0 0 10px;
}
.framework-topic-intro {
  margin-bottom: 14px;
}
.framework-general-text {
  max-width: 860px;
  margin-bottom: 22px;
}
.framework-general-text p {
  color: var(--muted);
}
.framework-direct {
  margin-top: 14px;
}
.framework-badge.cat-vb { background: #eef4fa; }
.framework-badge.cat-ac { background: #f5f3e8; }
.framework-badge.cat-nd { background: #f3eef7; }
.framework-badge.cat-cc { background: #eef5f1; }

@media (max-width: 760px) {
  .framework-index-grid {
    grid-template-columns: 1fr;
  }
}
