/*
|--------------------------------------------------------------------------
| Índice general de Artículos
|--------------------------------------------------------------------------
*/

.ms-blog {
  min-height: 70vh;
  background: #f6f8fb;
  color: #172d4e;
}

.ms-blog *,
.ms-blog *::before,
.ms-blog *::after {
  box-sizing: border-box;
}

.ms-blog-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/*
|--------------------------------------------------------------------------
| Cabecera editorial
|--------------------------------------------------------------------------
*/

.ms-blog-hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(61, 143, 91, 0.13),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #f7f3e9 0%,
      #ffffff 52%,
      #edf5f1 100%
    );
  border-bottom: 1px solid rgba(22, 61, 103, 0.1);
}

.ms-blog-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #8a6507;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ms-blog-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #173f73;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.ms-blog-hero p {
  max-width: 810px;
  margin: 24px 0 0;
  color: #40536d;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.ms-blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.ms-blog-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(23, 63, 115, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #173f73;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.ms-blog-categories a:hover {
  transform: translateY(-2px);
  border-color: #2c8653;
  background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Contenido
|--------------------------------------------------------------------------
*/

.ms-blog-content {
  padding: 58px 0 84px;
}

.ms-featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(340px, 0.87fr);
  overflow: hidden;
  border: 1px solid rgba(23, 63, 115, 0.1);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(23, 63, 115, 0.1);
}

.ms-featured-image {
  display: block;
  min-height: 470px;
  background: #eaf0f4;
}

.ms-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.ms-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 58px);
}

.ms-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: #66758a;
  font-size: 0.83rem;
}

.ms-category-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf5ee;
  color: #267047;
  font-weight: 800;
  text-decoration: none;
}

.ms-featured-body h2 {
  margin: 20px 0 18px;
  font-size: clamp(1.75rem, 3.3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ms-featured-body h2 a,
.ms-article-card h3 a {
  color: #173f73;
  text-decoration: none;
}

.ms-featured-body h2 a:hover,
.ms-article-card h3 a:hover {
  color: #2c8653;
}

.ms-featured-excerpt,
.ms-article-card-excerpt {
  color: #506178;
  line-height: 1.72;
}

.ms-featured-excerpt p,
.ms-article-card-excerpt p {
  margin: 0;
}

.ms-featured-footer,
.ms-article-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 63, 115, 0.09);
}

.ms-author-link,
.ms-read-link {
  color: #173f73;
  font-weight: 750;
  text-decoration: none;
}

.ms-read-link {
  color: #28764a;
}

.ms-author-link:hover,
.ms-read-link:hover {
  text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Artículos recientes
|--------------------------------------------------------------------------
*/

.ms-blog-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 66px 0 26px;
}

.ms-blog-section-head h2 {
  margin: 0;
  color: #173f73;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  letter-spacing: -0.025em;
}

.ms-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ms-article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 115, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 63, 115, 0.07);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.ms-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(23, 63, 115, 0.12);
}

.ms-article-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eaf0f4;
}

.ms-article-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ms-article-card:hover .ms-article-card-image img {
  transform: scale(1.035);
}

.ms-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 250px;
  place-items: center;
  background:
    linear-gradient(
      135deg,
      #173f73,
      #2c8653
    );
  color: rgba(255, 255, 255, 0.92);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ms-article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.ms-article-card h3 {
  margin: 17px 0 14px;
  font-size: 1.35rem;
  line-height: 1.26;
  letter-spacing: -0.02em;
}

.ms-article-card-footer {
  margin-top: auto;
}

/*
|--------------------------------------------------------------------------
| Paginación y estado vacío
|--------------------------------------------------------------------------
*/

.ms-blog-pagination {
  margin-top: 52px;
}

.ms-blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ms-blog-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(23, 63, 115, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #173f73;
  font-weight: 750;
  text-decoration: none;
}

.ms-blog-pagination .page-numbers.current,
.ms-blog-pagination .page-numbers:hover {
  border-color: #2c8653;
  background: #2c8653;
  color: #ffffff;
}

.ms-blog-empty {
  max-width: 760px;
  margin: 12px auto;
  padding: 72px 38px;
  border: 1px solid rgba(23, 63, 115, 0.1);
  border-radius: 24px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 18px 45px rgba(23, 63, 115, 0.08);
}

.ms-blog-empty h2 {
  margin: 5px 0 18px;
  color: #173f73;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
}

.ms-blog-empty p {
  max-width: 590px;
  margin: 0 auto;
  color: #52637a;
  line-height: 1.75;
}

.ms-blog-home-link {
  display: inline-flex;
  margin-top: 28px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #173f73;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Adaptación móvil del índice
|--------------------------------------------------------------------------
*/

@media (max-width: 920px) {
  .ms-featured-article {
    grid-template-columns: 1fr;
  }

  .ms-featured-image,
  .ms-featured-image img {
    min-height: 340px;
  }

  .ms-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ms-blog-container {
    width: min(100% - 24px, 1180px);
  }

  .ms-blog-hero {
    padding: 54px 0 44px;
  }

  .ms-blog-content {
    padding: 34px 0 60px;
  }

  .ms-featured-article {
    border-radius: 19px;
  }

  .ms-featured-image,
  .ms-featured-image img {
    min-height: 235px;
  }

  .ms-featured-body {
    padding: 24px 20px;
  }

  .ms-featured-footer,
  .ms-article-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ms-blog-section-head {
    margin-top: 48px;
  }

  .ms-article-grid {
    grid-template-columns: 1fr;
  }

  .ms-blog-empty {
    padding: 52px 22px;
  }
}


/*
|--------------------------------------------------------------------------
| Artículo individual
|--------------------------------------------------------------------------
*/

.ms-single {
  min-height: 70vh;
  background: #f7f9fb;
  color: #203650;
}

.ms-single *,
.ms-single *::before,
.ms-single *::after {
  box-sizing: border-box;
}

.ms-single-container,
.ms-single-content {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}


/*
|--------------------------------------------------------------------------
| Encabezado del artículo
|--------------------------------------------------------------------------
*/

.ms-single-hero {
  padding: 64px 0 54px;
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(48, 135, 82, 0.12),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #f7f2e8 0%,
      #ffffff 54%,
      #edf5f1 100%
    );
  border-bottom: 1px solid rgba(21, 62, 108, 0.1);
}

.ms-single-back {
  display: inline-flex;
  margin-bottom: 32px;
  color: #285f48;
  font-weight: 750;
  text-decoration: none;
}

.ms-single-back:hover {
  text-decoration: underline;
}

.ms-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #637188;
  font-size: 0.88rem;
}

.ms-single-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #173f73;
  font-size: clamp(2.25rem, 5.5vw, 4.45rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.ms-single-lead {
  max-width: 790px;
  margin: 25px 0 0;
  color: #455970;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.ms-single-byline {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}

.ms-single-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 7px 20px rgba(20, 62, 108, 0.12);
}

.ms-single-byline div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ms-single-byline span {
  color: #6c7889;
  font-size: 0.82rem;
}

.ms-single-byline a {
  color: #173f73;
  font-weight: 800;
  text-decoration: none;
}

.ms-single-byline a:hover {
  text-decoration: underline;
}


/*
|--------------------------------------------------------------------------
| Imagen destacada
|--------------------------------------------------------------------------
*/

.ms-single-featured-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto 0;
}

.ms-single-featured {
  margin: 0;
}

.ms-single-featured img {
  display: block;
  width: 100%;
  max-height: 680px;
  border-radius: 27px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(23, 63, 115, 0.13);
}

.ms-single-featured figcaption {
  margin-top: 12px;
  color: #718095;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}


/*
|--------------------------------------------------------------------------
| Cuerpo editorial
|--------------------------------------------------------------------------
*/

.ms-single-body {
  padding: 58px 0 88px;
}

.ms-prose {
  color: #263b53;
  font-size: 1.08rem;
  line-height: 1.85;
}

.ms-prose > *:first-child {
  margin-top: 0;
}

.ms-prose p {
  margin: 0 0 1.45em;
}

.ms-prose h2,
.ms-prose h3,
.ms-prose h4 {
  color: #173f73;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.ms-prose h2 {
  margin: 2.2em 0 0.75em;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

.ms-prose h3 {
  margin: 1.9em 0 0.7em;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.ms-prose h4 {
  margin: 1.7em 0 0.65em;
  font-size: 1.2rem;
}

.ms-prose a {
  color: #26724a;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ms-prose strong {
  color: #183e6d;
}

.ms-prose ul,
.ms-prose ol {
  margin: 0 0 1.6em;
  padding-left: 1.5em;
}

.ms-prose li {
  margin-bottom: 0.65em;
  padding-left: 0.3em;
}

.ms-prose blockquote {
  margin: 2em 0;
  padding: 25px 30px;
  border-left: 5px solid #33865a;
  border-radius: 0 16px 16px 0;
  background: #edf6f1;
  color: #214834;
  font-size: 1.12rem;
  line-height: 1.7;
}

.ms-prose blockquote p:last-child {
  margin-bottom: 0;
}

.ms-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

.ms-prose figure {
  margin: 2.2em 0;
}

.ms-prose figcaption {
  margin-top: 9px;
  color: #718095;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.ms-prose hr {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid rgba(23, 63, 115, 0.15);
}

.ms-prose table {
  display: block;
  width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.ms-prose th,
.ms-prose td {
  padding: 12px 14px;
  border: 1px solid rgba(23, 63, 115, 0.14);
  text-align: left;
  vertical-align: top;
}

.ms-prose th {
  background: #edf3f8;
  color: #173f73;
}


/*
|--------------------------------------------------------------------------
| Compartir
|--------------------------------------------------------------------------
*/

.ms-share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 50px;
  padding: 22px 25px;
  border: 1px solid rgba(23, 63, 115, 0.11);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(23, 63, 115, 0.06);
}

.ms-share-title {
  color: #173f73;
  font-weight: 800;
}

.ms-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ms-share-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(23, 63, 115, 0.15);
  border-radius: 999px;
  color: #173f73;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.ms-share-actions a:hover {
  border-color: #2b8053;
  background: #edf6f1;
  color: #256b47;
}


/*
|--------------------------------------------------------------------------
| Perfil de autora
|--------------------------------------------------------------------------
*/

.ms-author-box {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 30px;
  margin-top: 55px;
  padding: 34px;
  border-radius: 23px;
  background:
    linear-gradient(
      135deg,
      #173f73 0%,
      #23567f 56%,
      #28704d 100%
    );
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(23, 63, 115, 0.16);
}

.ms-author-photo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ms-author-avatar {
  display: block;
  width: 128px;
  height: 128px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  object-fit: cover;
}

.ms-author-label {
  display: inline-block;
  margin-bottom: 7px;
  color: #dbe9df;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ms-author-content h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.8rem;
}

.ms-author-content p {
  margin: 13px 0 18px;
  color: rgba(255, 255, 255, 0.87);
  line-height: 1.7;
}

.ms-author-content a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}


/*
|--------------------------------------------------------------------------
| Artículos relacionados
|--------------------------------------------------------------------------
*/

.ms-related {
  margin-top: 70px;
}

.ms-related-head {
  margin-bottom: 24px;
}

.ms-related-head h2 {
  margin: 0;
  color: #173f73;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
}

.ms-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ms-related-card {
  overflow: hidden;
  border: 1px solid rgba(23, 63, 115, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 11px 30px rgba(23, 63, 115, 0.07);
}

.ms-related-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eaf0f4;
}

.ms-related-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ms-related-card:hover .ms-related-image img {
  transform: scale(1.035);
}

.ms-related-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(
      135deg,
      #173f73,
      #2c8653
    );
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
}

.ms-related-body {
  padding: 20px;
}

.ms-related-date {
  color: #738095;
  font-size: 0.78rem;
}

.ms-related-body h3 {
  margin: 10px 0 17px;
  font-size: 1.16rem;
  line-height: 1.3;
}

.ms-related-body h3 a {
  color: #173f73;
  text-decoration: none;
}

.ms-related-body h3 a:hover {
  color: #2b8053;
}


/*
|--------------------------------------------------------------------------
| Navegación anterior y siguiente
|--------------------------------------------------------------------------
*/

.ms-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 58px;
}

.ms-post-nav-item {
  display: flex;
  min-height: 125px;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(23, 63, 115, 0.12);
  border-radius: 17px;
  background: #ffffff;
  color: #173f73;
  text-decoration: none;
}

.ms-post-nav-item span {
  margin-bottom: 8px;
  color: #6b788b;
  font-size: 0.8rem;
}

.ms-post-nav-item strong {
  line-height: 1.35;
}

.ms-post-nav-item:hover {
  border-color: #2c8053;
  box-shadow: 0 12px 30px rgba(23, 63, 115, 0.08);
}

.ms-post-nav-next {
  text-align: right;
}


/*
|--------------------------------------------------------------------------
| Adaptación móvil del artículo
|--------------------------------------------------------------------------
*/

@media (max-width: 820px) {

  .ms-related-grid {
    grid-template-columns: 1fr;
  }

  .ms-author-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ms-author-content {
    max-width: 620px;
    margin-inline: auto;
  }

}

@media (max-width: 640px) {

  .ms-single-container,
  .ms-single-content,
  .ms-single-featured-wrap {
    width: min(100% - 24px, 900px);
  }

  .ms-single-hero {
    padding: 45px 0 40px;
  }

  .ms-single-back {
    margin-bottom: 24px;
  }

  .ms-single-featured-wrap {
    margin-top: 25px;
  }

  .ms-single-featured img {
    border-radius: 17px;
  }

  .ms-single-body {
    padding: 38px 0 62px;
  }

  .ms-prose {
    font-size: 1rem;
    line-height: 1.78;
  }

  .ms-share-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .ms-author-box {
    padding: 28px 21px;
  }

  .ms-post-navigation {
    grid-template-columns: 1fr;
  }

  .ms-post-nav-next {
    text-align: left;
  }

}


/*
|--------------------------------------------------------------------------
| Página profesional de autora
|--------------------------------------------------------------------------
*/

.ms-author-page {
  min-height: 70vh;
  background: #f5f8fb;
  color: #263b53;
}

.ms-author-page *,
.ms-author-page *::before,
.ms-author-page *::after {
  box-sizing: border-box;
}

.ms-author-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/*
|--------------------------------------------------------------------------
| Presentación profesional
|--------------------------------------------------------------------------
*/

.ms-author-hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(42, 127, 79, 0.14),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      #f8f3e9 0%,
      #ffffff 52%,
      #edf6f1 100%
    );
  border-bottom: 1px solid rgba(23, 63, 115, 0.1);
}

.ms-author-back {
  display: inline-flex;
  margin-bottom: 36px;
  color: #286c49;
  font-weight: 750;
  text-decoration: none;
}

.ms-author-back:hover {
  text-decoration: underline;
}

.ms-author-profile {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: clamp(35px, 6vw, 72px);
  align-items: center;
}

.ms-author-profile-photo {
  display: flex;
  justify-content: center;
}

.ms-author-profile-avatar {
  display: block;
  width: 230px;
  height: 230px;
  border: 7px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 24px 52px rgba(23, 63, 115, 0.16);
}

.ms-author-kicker {
  display: inline-block;
  margin-bottom: 11px;
  color: #8b6508;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ms-author-profile-content h1 {
  margin: 0;
  color: #173f73;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.ms-author-role {
  margin: 16px 0 0;
  color: #28764c;
  font-size: clamp(1.15rem, 2.2vw, 1.48rem);
  font-weight: 800;
}

.ms-author-specialties {
  max-width: 830px;
  margin: 14px 0 0;
  color: #41566e;
  font-weight: 650;
  line-height: 1.65;
}

.ms-author-biography {
  max-width: 850px;
  margin-top: 22px;
  color: #4c6076;
  font-size: 1.03rem;
  line-height: 1.75;
}

.ms-author-biography p {
  margin: 0;
}

.ms-author-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 29px;
}

.ms-author-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(23, 63, 115, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #173f73;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.ms-author-action:hover {
  transform: translateY(-2px);
  border-color: #2b8053;
  background: #ffffff;
}

.ms-author-action-primary {
  border-color: #173f73;
  background: #173f73;
  color: #ffffff;
}

.ms-author-action-primary:hover {
  border-color: #286f4b;
  background: #286f4b;
}

/*
|--------------------------------------------------------------------------
| Resumen profesional
|--------------------------------------------------------------------------
*/

.ms-author-summary {
  position: relative;
  z-index: 2;
  margin-top: -29px;
}

.ms-author-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(23, 63, 115, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(23, 63, 115, 0.1);
}

.ms-author-summary-card {
  min-width: 0;
  padding: 26px 28px;
  text-align: center;
}

.ms-author-summary-card + .ms-author-summary-card {
  border-left: 1px solid rgba(23, 63, 115, 0.1);
}

.ms-author-summary-card strong {
  display: block;
  margin-bottom: 7px;
  color: #173f73;
  font-size: 1.38rem;
}

.ms-author-summary-card span {
  color: #607087;
  font-size: 0.9rem;
  line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Publicaciones
|--------------------------------------------------------------------------
*/

.ms-author-publications {
  padding: 76px 0 90px;
}

.ms-author-publications-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.ms-author-publications-head h2 {
  margin: 0;
  color: #173f73;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.ms-author-publications-head > p {
  margin: 0;
  color: #607087;
  line-height: 1.7;
}

.ms-author-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ms-author-article-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(23, 63, 115, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 63, 115, 0.07);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.ms-author-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(23, 63, 115, 0.12);
}

.ms-author-article-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eaf0f4;
}

.ms-author-article-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ms-author-article-card:hover .ms-author-article-image img {
  transform: scale(1.035);
}

.ms-author-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(
      135deg,
      #173f73,
      #2c8653
    );
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ms-author-article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.ms-author-article-body h3 {
  margin: 17px 0 14px;
  font-size: 1.37rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.ms-author-article-body h3 a {
  color: #173f73;
  text-decoration: none;
}

.ms-author-article-body h3 a:hover {
  color: #28764c;
}

.ms-author-article-excerpt {
  color: #52637a;
  line-height: 1.7;
}

.ms-author-article-excerpt p {
  margin: 0;
}

.ms-author-read-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 23px;
  color: #28764c;
  font-weight: 800;
  text-decoration: none;
}

.ms-author-read-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Paginación y estado vacío de autora
|--------------------------------------------------------------------------
*/

.ms-author-pagination {
  margin-top: 52px;
}

.ms-author-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ms-author-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(23, 63, 115, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #173f73;
  font-weight: 750;
  text-decoration: none;
}

.ms-author-pagination .page-numbers.current,
.ms-author-pagination .page-numbers:hover {
  border-color: #2c8653;
  background: #2c8653;
  color: #ffffff;
}

.ms-author-empty {
  padding: 60px 30px;
  border: 1px solid rgba(23, 63, 115, 0.1);
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
}

.ms-author-empty h2 {
  margin: 0 0 12px;
  color: #173f73;
  font-size: 2rem;
}

.ms-author-empty p {
  color: #607087;
}

.ms-author-empty a {
  display: inline-flex;
  margin-top: 15px;
  color: #28764c;
  font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Adaptación móvil de autora
|--------------------------------------------------------------------------
*/

@media (max-width: 920px) {
  .ms-author-profile {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 34px;
  }

  .ms-author-profile-avatar {
    width: 180px;
    height: 180px;
  }

  .ms-author-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ms-author-container {
    width: min(100% - 24px, 1180px);
  }

  .ms-author-hero {
    padding: 46px 0 62px;
  }

  .ms-author-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ms-author-profile-avatar {
    width: 170px;
    height: 170px;
  }

  .ms-author-specialties,
  .ms-author-biography {
    margin-right: auto;
    margin-left: auto;
  }

  .ms-author-profile-actions {
    justify-content: center;
  }

  .ms-author-summary-grid {
    grid-template-columns: 1fr;
  }

  .ms-author-summary-card + .ms-author-summary-card {
    border-top: 1px solid rgba(23, 63, 115, 0.1);
    border-left: 0;
  }

  .ms-author-publications {
    padding: 60px 0 70px;
  }

  .ms-author-publications-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ms-author-article-grid {
    grid-template-columns: 1fr;
  }
}
