/* =========================================================
   VIRADIO DIGITAL - ESTILO DE NOTICIA
   Responsive para escritorio, tablet y móvil
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
}

.news-page {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px 60px;
}

.news-article {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

/* -------------------------
   TITULAR
   ------------------------- */

.article-header {
  padding-top: 12px;
}

.article-header h1 {
  margin: 0 0 22px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -1.4px;
  color: #111111;
}

/* -------------------------
   INFORMACIÓN DEL ARTÍCULO
   ------------------------- */

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 35px;
  color: #888888;
  font-size: 13px;
  line-height: 1.5;
}

.author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.author strong,
.article-meta strong {
  color: #e21c2a;
  font-weight: 700;
}

.author-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #0073a8;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.separator {
  color: #b7b7b7;
}

.comments {
  margin-left: auto;
  color: #111111;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.comment-icon {
  font-size: 17px;
}

/* -------------------------
   IMAGEN PRINCIPAL
   ------------------------- */

.article-image {
  width: 100%;
  margin: 0 0 29px;
  padding: 0;
  overflow: hidden;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

/* -------------------------
   BOTONES SOCIALES
   ------------------------- */

.share-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 44px;
  gap: 5px;
  margin-bottom: 34px;
}

.share-button {
  min-height: 39px;
  border: 0;
  border-radius: 3px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-button:hover {
  opacity: 0.88;
}

.share-button:active {
  transform: translateY(1px);
}

.facebook {
  background: #4267a9;
}

.x {
  background: #050505;
}

.whatsapp {
  background: #087c70;
}

.more {
  background: #b7b7b7;
}

.share-symbol {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

/* -------------------------
   CUERPO DE LA NOTICIA
   ------------------------- */

.article-content {
  font-size: 16px;
  line-height: 1.65;
  color: #171717;
}

.article-content p {
  margin: 0 0 23px;
}

.article-content p strong {
  font-weight: 500;
}

/* -------------------------
   PIE
   ------------------------- */

.article-footer {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: #888888;
  font-size: 12px;
}

.footer-brand {
  color: #0073a8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

  .news-page {
    padding: 0 18px 45px;
  }

  .article-header h1 {
    font-size: 36px;
  }

  .article-meta {
    margin-bottom: 27px;
  }

  .article-image {
    margin-bottom: 20px;
  }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

  .news-page {
    padding: 0 14px 35px;
  }

  .news-article {
    max-width: 100%;
  }

  .article-header {
    padding-top: 8px;
  }

  .article-header h1 {
    margin-bottom: 17px;
    font-size: 29px;
    line-height: 1.13;
    letter-spacing: -0.7px;
  }

  .article-meta {
    gap: 5px 8px;
    margin-bottom: 20px;
    font-size: 11.5px;
  }

  .comments {
    width: 100%;
    margin-left: 0;
    margin-top: 3px;
  }

  .article-image {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 14px;
  }

  .article-image img {
    max-height: 360px;
  }

  .share-bar {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 27px;
  }

  .share-button {
    min-height: 42px;
    font-size: 12px;
    padding: 8px 6px;
  }

  .share-button.more {
    display: none;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.62;
  }

  .article-content p {
    margin-bottom: 20px;
  }

  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 380px) {

  .article-header h1 {
    font-size: 26px;
  }

  .article-meta {
    font-size: 11px;
  }

  .share-button {
    font-size: 11px;
  }
}
