/* =========================
   ARTÍCULO – DRUPAL 11
   ========================= */

.node--type-article {
  font-family: Helvetica, Arial, sans-serif;
}

/* ===== TÍTULO ===== */
.node--type-article h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  color: #111;
  margin: 0 0 13px 0;
}

/* ===== BYLINE (autor + fecha) ===== */
.node--type-article .byline {
  font-size: 14px;
  line-height: 1.4;
}

.node--type-article .author-name a {
  font-weight: bold;
  color: #0E65A5;
  text-decoration: none;
}

.node--type-article .author-name a:hover {
  text-decoration: underline;
}

.node--type-article .author-name span {
  font-style: italic;
  color: #666;
  font-weight: normal;
}

/* Avatar */
.node--type-article .author-avatar {
  border-radius: 50%;
}

/* ===== IMAGEN PRINCIPAL ===== 
.node--type-article .article-img-wrapper {
  margin: 20px 0;
}
*/

.node--type-article .article-img-wrapper figcaption {
  font-size: 1.1rem;
  color: #777;
  margin-top: 6px;
}

/* ===== CUERPO DEL ARTÍCULO ===== */
.node--type-article .article-body {
  clear: both;
}

.node--type-article .article-body p {
  font-size: 1.25rem;
  line-height: 1.55;
  margin: 30px 0;
  color: #111;
}
/*
.node--type-article .article-body p:first-child {
  margin-top: 0;
}
*/

.node--type-article .article-body strong {
  font-weight: 700;
}

.node--type-article .article-body a {
  color: #0E65A5;
  text-decoration: underline;
}

/* ===== BLOCKQUOTE ===== */
.node--type-article .article-body blockquote {
  border-left: 5px solid #0E65A5;
  margin: 30px auto;
  padding: 15px 20px;
  font-style: italic;
  background: #f9f9f9;
}

.node--type-article .article-body blockquote p {
  margin: 10px 0 !important;
}

/* ===== ETIQUETAS ===== */
.node--type-article .badge {
  font-size: 13px;
  padding: 6px 10px;
}

/* ===== BOTONES DE COMPARTIR ===== */
.node--type-article .post-sharing {
  gap: 10px;
}

.node--type-article .td-sharing-btn {
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.node--type-article .td-sharing-btn-text {
  font-size: 14px;
}

/* ===== SEPARADORES ===== */
.node--type-article hr {
  opacity: 0.2;
}

.article-body img {
  width: 100%;
}

/* AUTORES */

.autor-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.autor-card:hover {
  box-shadow: 0 10px 28px rgb(0 0 0 / 10%) !important;
  transform: translateY(-2px);
}

.autor-card__imagen {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.autor-card__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  color: #6c757d;
  background: #dee2e6;
  font-size: 3rem;
}

.autor-card__titulo {
  font-size: 0.9rem;
}

.autor-card__descripcion {
  font-size: 0.95rem;
  line-height: 1.6;
}

.autor-card__descripcion p:last-child {
  margin-bottom: 0;
}

.autor-card__perfil {
  color: #0074aa;
}

.autor-card__perfil:hover {
  color: #005c88;
}

.autor-card__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #343a40;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.autor-card__social:hover {
  color: #ffffff;
  background: #0074aa;
  border-color: #0074aa;
}

.byline-author__image img {
  display: block;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .autor-card__imagen,
  .autor-card__placeholder {
    width: 100px;
    height: 100px;
  }
}

.autor-content .row > div {
  display: flex;
}

.autor-card {
  width: 100%;
  height: 100%;
}

/* DOCUMENTOS */
     .documentos {
        margin-block: 2rem;
        padding: 1.25rem;
        background: #f8f9fa;
        border: 1px solid #e3e6e8;
        border-radius: 12px;
      }

      .documentos__titulo {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0 0 1rem;
        color: #252525;
        font-size: 1.15rem;
        font-weight: 700;
      }

      .documentos__titulo i {
        color: #6c757d;
      }

      .documentos__lista {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
      }

      @media (max-width: 767.98px) {
        .documentos__lista {
          grid-template-columns: 1fr;
        }
      }

      .documento {
        height: 100%;
      }

      .documento {
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: 0;
        padding: 0.9rem 1rem;
        color: #242424;
        background: #ffffff;
        border: 1px solid #e4e4e4;
        border-radius: 10px;
        text-decoration: none;
        transition:
          transform 0.2s ease,
          border-color 0.2s ease,
          box-shadow 0.2s ease,
          background-color 0.2s ease;
      }

      .documento:hover {
        color: #242424;
        background: #fffafa;
        border-color: #0074aa;
        box-shadow: 0 6px 18px rgb(0 0 0 / 8%);
        transform: translateY(-2px);
      }

      .documento:focus-visible {
        outline: 3px solid rgb(214 53 53 / 25%);
        outline-offset: 3px;
      }

      .documento__icono {
        display: inline-flex;
        flex: 0 0 46px;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        color: #0074aa;
        background: #fff0f0;
        border-radius: 10px;
        font-size: 1.45rem;
      }

      .documento__contenido {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
      }

      .documento__nombre {
        overflow: hidden;
        color: #222222;
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.35;
        text-overflow: ellipsis;
        text-transform: none;
        white-space: nowrap;
      }

      .documento__tipo {
        margin-top: 0.2rem;
        color: #737373;
        font-size: 0.78rem;
        font-weight: 500;
      }

      .documento__descarga {
        display: inline-flex;
        flex: 0 0 36px;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: #6d6d6d;
        border-radius: 50%;
        transition:
          color 0.2s ease,
          background-color 0.2s ease;
      }

      .documento:hover .documento__descarga {
        color: #ffffff;
        background: #0074aa;
      }

      @media (max-width: 575.98px) {
        .documentos {
          padding: 1rem;
        }

        .documento {
          gap: 0.75rem;
          padding: 0.8rem;
        }

        .documento__icono {
          flex-basis: 40px;
          width: 40px;
          height: 40px;
          font-size: 1.2rem;
        }

        .documento__nombre {
          white-space: normal;
        }

        .documento__tipo {
          display: none;
        }
      }