/* reset mínimo */
* { box-sizing: border-box; margin:0; padding:0; }

body {
  font-family: "Robot", sans-serif;
  color: #3b3b3b;
  background-color: transparent;
;
}
a, h2{
      text-decoration: none;
      color: rgb(37 33 89);
}
.logo{
  width: 16rem;
}

/* header blanco */
.main-header {
  padding: 20px;
  text-align: center;
}

header{
  margin: 0 auto;
  border-bottom: 1px solid #bfbfbf;
  margin-bottom: 30px;
}

.main-title {
  font-family: "Aboreto", system-ui;
  font-size: clamp(1.5rem, 8vw, 4rem);
  color: #222;
  letter-spacing: 4px;
  font-weight: bolder;
}
.title-portada{
    font-size: 2rem;
    font-weight: bolder;
}
.sub-title{
  font-family: "Aboreto", system-ui;
  color: rgb(37 33 89);
  font-weight:bolder;
}
.img-fluid{
  object-fit: fill;
  width: 100%;
}

/* contenedor de noticias como grid */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
  padding-top: 0px;
  margin-top: 0px !important;
}
.video-container {
  position: relative;
  width: 100%;
  /* Ratio 16:9 -> 9/16 = 56.25% */
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#noticias-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* siempre 4 columnas */
  gap: 10px;
  border-top: 1px solid #000000;
  padding-top: 40px;
}

/* clases para tamaños */
.article {
  background: #fff;
  display: flex;
  flex-direction: column;
  max-height: 350px;
  padding-top: 10px;
}

.article img, .image img {
  display: block;
  width: 100%;
  object-fit: cover;
  height: auto; 
  max-width: 600px;
  max-height: 190px;
  margin: 0 auto;
}
.article img .noticias{
  max-height: 400px !important;
}

/* contenido */
.article-content {
  padding-top: 15px;
  display:flex;
  flex-direction:column;
  flex-grow:1;
  white-space: pre-line;
  padding-bottom: 15px;
}
.article-content .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.scraped-date {
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
  display: grid;
  grid-template-columns: 1fr auto;

}
.article-content .category {
  font-size: .6rem;
  color: #888;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.article-content h3 {
  font-size:20px;
  margin-bottom:.5rem;
  font-weight: 700;
  line-height: 1.3;
}
.article-content h3 a {
  text-decoration:none;
  color:rgb(37 33 89);
}
.article-content p {
  flex-grow:1;
  font-size:.75rem;
}
.article-item{
  font-size:1rem !important;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: normal;
  white-space: pre-wrap;
  text-align: left;
  word-wrap: break-word;
}

/* mensajes */
.no-news {
  grid-column: 1/-1;
  text-align:center;
  color:#777;
  font-style:italic;
}
.bg-primary{
    background-color: #ffffff !important;
}
.title{
  padding: 10px;
  padding-left: 0px;
}


@media (max-width: 900px) {
  #noticias-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
  }
}

@media (max-width: 600px) {
  #noticias-container {
    grid-template-columns: 1fr; /* 1 columna en móvil */
  }
}
