/**
 * Noticia individual
 */

/* =========================================================
   Contenido principal
   ========================================================= */

.news-single-content {
  padding: clamp(82px, 9vw, 136px) 0;
  background: #fff;
  color: var(--maetel-blue);
}

.news-single-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: clamp(48px, 6vw, 84px);
  align-items: start;
}

.news-single-content__main {
  width: 100%;
  max-width: 800px;
  min-width: 0;
}

/* =========================================================
   Fecha
   ========================================================= */

.news-single-content__date {
  display: block;
  margin: 0 0 22px;
  color: var(--maetel-turquoise);
  font-size: var(--maetel-font-size-button, 12px);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

/* =========================================================
   Introducción
   ========================================================= */

.news-single-content__intro {
  max-width: 800px;
  margin: 0 0 42px;
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-content-title, clamp(24px, 2.4vw, 34px));
  font-weight: 300;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.news-single-content__intro p {
  margin: 0;
}

.news-single-content__intro p + p {
  margin-top: 18px;
}

/* =========================================================
   Cuerpo
   ========================================================= */

.news-single-content__body {
  width: 100%;
  max-width: 800px;
  color: #506070;
  font-size: var(--maetel-font-size-body, 17px);
  font-weight: 400;
  line-height: 1.75;
}

.news-single-content__body > *:first-child {
  margin-top: 0;
}

.news-single-content__body > *:last-child {
  margin-bottom: 0;
}

.news-single-content__body p {
  margin: 0 0 22px;
}

.news-single-content__body h2,
.news-single-content__body h3,
.news-single-content__body h4 {
  color: var(--maetel-blue);
  font-weight: 400;
  line-height: 1.2;
}

.news-single-content__body h2 {
  margin: 0 0 24px;
  font-size: var(--maetel-font-size-content-title, clamp(24px, 2.4vw, 34px));
}

.news-single-content__body h2:not(:first-child) {
  margin-top: 54px;
}

.news-single-content__body h3 {
  margin: 42px 0 20px;
  font-size: var(--maetel-font-size-area-title, clamp(22px, 2vw, 28px));
}

.news-single-content__body h4 {
  margin: 36px 0 18px;
  font-size: var(--maetel-font-size-body-large, 20px);
}

.news-single-content__body ul,
.news-single-content__body ol {
  margin: 24px 0;
  padding-left: 24px;
}

.news-single-content__body li + li {
  margin-top: 10px;
}

.news-single-content__body a {
  color: var(--maetel-blue);
  text-decoration-color: var(--maetel-turquoise);
  text-underline-offset: 4px;
}

/* =========================================================
   Imágenes
   ========================================================= */

.news-single-content__body figure,
.news-single-content__body .wp-block-image {
  width: 100%;
  max-width: 680px;
  margin: 38px auto;
}

.news-single-content__body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.news-single-content__body figure img,
.news-single-content__body .wp-block-image img {
  margin: 0 auto;
}

.news-single-content__body .alignwide,
.news-single-content__body .alignfull {
  width: 100%;
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

.news-single-content__body figcaption {
  margin-top: 10px;
  color: #506070;
  font-size: var(--maetel-font-size-button, 12px);
  line-height: 1.5;
  text-align: center;
}

/* =========================================================
   Vídeos
   ========================================================= */

.news-single-content__body .wp-block-video,
.news-single-content__body .wp-block-embed {
  margin: 38px auto;
  text-align: center;
}

.news-single-content__body video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.news-single-content__body .wp-block-embed__wrapper {
  text-align: center;
}

.news-single-content__body iframe {
  display: block;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

/* =========================================================
   Noticias recientes
   ========================================================= */

.news-single-recent {
  position: sticky;
  top: 130px;
  min-width: 0;
  padding: 30px;
  border-top: 3px solid var(--maetel-turquoise);
  background: #eef3f5;
}

.news-single-recent__title {
  margin: 0 0 26px;
  color: var(--maetel-blue);
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.2;
}

.news-single-recent__list {
  display: flex;
  flex-direction: column;
}

.news-single-recent__item {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 46, 94, 0.14);
}

.news-single-recent__item:first-child {
  padding-top: 0;
}

.news-single-recent__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-single-recent__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-single-recent__date {
  display: block;
  margin: 0 0 8px;
  color: var(--maetel-turquoise);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.news-single-recent__item-title {
  margin: 0;
  color: var(--maetel-blue);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  transition: color 220ms ease;
}

.news-single-recent__link:hover .news-single-recent__item-title,
.news-single-recent__link:focus-visible .news-single-recent__item-title {
  color: var(--maetel-turquoise);
}

/* =========================================================
   Botón
   ========================================================= */

.news-single-content__back {
  margin-top: 48px;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 980px) {
  .news-single-content {
    padding: 80px 0;
  }

  .news-single-content__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .news-single-content__main,
  .news-single-content__intro,
  .news-single-content__body {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
  }

  .news-single-recent {
    position: relative;
    top: auto;
    width: 100%;
  }

  .news-single-recent__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

/* =========================================================
   Móvil
   ========================================================= */

@media (max-width: 640px) {
  .news-single-content {
    padding: 64px 0;
  }

  .news-single-content__grid {
    gap: 44px;
  }

  .news-single-content__date {
    margin-bottom: 18px;
  }

  .news-single-content__intro {
    margin-bottom: 32px;
    font-size: var(--maetel-font-size-content-title-mobile, 22px);
    line-height: 1.42;
  }

  .news-single-content__body {
    font-size: var(--maetel-font-size-body-mobile, 16px);
    line-height: 1.68;
  }

  .news-single-content__body p {
    margin-bottom: 20px;
  }

  .news-single-content__body h2 {
    margin-bottom: 20px;
    font-size: var(--maetel-font-size-content-title-mobile, 22px);
  }

  .news-single-content__body h2:not(:first-child) {
    margin-top: 42px;
  }

  .news-single-content__body h3 {
    margin-top: 36px;
    font-size: var(--maetel-font-size-area-title-mobile, 18px);
  }

  .news-single-content__body figure,
  .news-single-content__body .wp-block-image,
  .news-single-content__body .alignwide,
  .news-single-content__body .alignfull {
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .news-single-content__body .wp-block-video,
  .news-single-content__body .wp-block-embed {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .news-single-recent {
    padding: 26px 22px;
  }

  .news-single-recent__title {
    margin-bottom: 22px;
    font-size: 22px;
  }

  .news-single-recent__list {
    grid-template-columns: 1fr;
  }

  .news-single-recent__item-title {
    font-size: 14px;
  }

  .news-single-content__back {
    margin-top: 38px;
  }
}
