@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Variables de color naranja */
:root {
  --color-naranja: #ff6600;
  --color-naranja-oscuro: #cc5200;
  --color-naranja-claro: #ffe6cc;
  --color-texto: #333333;
}

.news-section {
  font-family: 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--color-texto);
}

.news-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #000000; /* Título principal en negro */
  margin-bottom: 1rem;
}

.news-description {
  max-width: 900px;
  margin: 0 auto 2.5rem auto; /* centrado con espacio inferior */
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #555;
  font-weight: 400;
}

.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Noticia principal */
.news-main {
  flex: 1 1 50%;
  background: #ffffff;
  border: 1px solid #ddd; /* Borde delicado */
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.news-main:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-main img {
  width: 100%;
  display: block;
}

.noticia-subtitulo {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgb(168, 76, 0);
  margin: 1.5rem 0 0.5rem;
}

.subtitulo-principal {
  font-size: 1.5rem;   
  font-weight: 700;    
  color: var(--color-texto);
}

.news-content {
  position: relative; /* para el logo */
  padding: 1rem;
}

.news-tag {
  display: inline-block;
  background: var(--color-naranja-claro);
  color: var(--color-naranja);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin-right: 0.5rem;
}

.news-date {
  font-size: 0.8rem;
  color: #666;
}

.news-content h3 {
  margin: 0.5rem 0 1rem;
  font-size: 1.1rem;
  color: #000;
  font-weight: 600;
}

.news-link {
  color: var(--color-naranja);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: var(--color-naranja-oscuro);
  text-decoration: none;
}

/* Noticias secundarias */
.news-list {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  display: flex;
  background: #fff;
  border: 1px solid #ddd; /* Borde delicado */
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Desktop: Imagen ocupa 40% ancho */
.news-item img {
  width: 40%;
  height: 100%;
  object-fit: cover;
}

.news-item .news-content {
  padding: 1rem;
  flex: 1;
}

/* Botón */
.news-button-container {
  text-align: center;
  margin-top: 2rem;
}

.news-button {
  display: inline-block;
  border: 2px solid var(--color-naranja);
  color: var(--color-naranja);
  background: transparent;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.news-button:hover {
  background: var(--color-naranja);
  color: #fff;
}

/* Logo pequeño en esquina inferior derecha */
.news-logo {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 90px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.news-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.news-main:hover .news-logo,
.news-item:hover .news-logo {
  opacity: 1; /* más visible al hover */
}

/* Responsive: tablet (≤900px) */
@media (max-width: 900px) {
  .news-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .news-main,
  .news-list {
    flex: 1 1 100%;
  }

  .news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .news-item {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  /* Imagen noticia secundaria ocupa 100% ancho */
  .news-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .news-item .news-content {
    flex: 1;
  }

  .news-main {
    margin-bottom: 1.5rem;
    height: auto;
  }

  .news-main img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Logo más pequeño */
  .news-logo {
    width: 50px;
  }
}

/* Responsive: móvil (≤600px) */
@media (max-width: 600px) {
  .news-container {
    flex-direction: column;
  }

  .news-main,
  .news-list {
    flex: 1 1 100%;
  }

  .news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .news-item {
    height: auto;
    flex-direction: column;
  }

  .news-main,
  .news-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .news-logo {
    width: 50px;
  }

  /* Texto descripción más pequeño en móviles */
  .news-description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
}
