/* ============================================= */
/*                NOTICIAS.CSS                   */
/* ============================================= */

/* HERO */
#noticias-hero {
  background-color: var(--black-color);
  color: var(--white-color);
  text-align: center;
  padding: clamp(6rem, 10vw, 8rem) 5vw 5rem;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--white-color);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--white-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.subtitle-escritorio {
  display: block;
}

.subtitle-movil {
  display: none;
}

@media (max-width: 768px) {
  .subtitle-escritorio {
    display: none;
  }

  .subtitle-movil {
    display: block;
    font-size: 1rem;
    padding: 0 1.5rem;
    margin-top: 1rem;
    line-height: 1.6;
  }
}

/* ============================================= */
/*        SECCIÓN: NOTICIAS Y TENDENCIAS         */
/* ============================================= */

#noticias-section {
  padding: clamp(5rem, 8vw, 9rem) 5vw;
  min-height: 100vh;
  background-color: var(--white-color);
  text-align: center;
  min-height: auto;

}

.noticias-header {
  text-align: center;
  margin-bottom: 3rem;
}

.noticias-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

/* Tabs de navegación */
.noticias-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tab-button {
  padding: 0.6rem 1.4rem;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  background: transparent;
  color: var(--black-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/* Contenedor de noticias */
.noticias-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Contenido por tab */
.noticias-tab-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  width: 100%;
  transition: opacity 0.4s ease;
}

.noticias-tab-content.active {
  opacity: 1;
  visibility: visible;
  position: static;
  pointer-events: auto;
}

/* Tarjeta de noticia */
.noticia-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

.noticia-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.noticia-content {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.noticia-categoria {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: inline-block;
}

.noticia-content h3 {
  color: var(--black-color);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
}

.noticia-content p {
  color: var(--black-color);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
}

.noticia-content a {
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.noticia-content a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1024px) {
  .noticias-tab-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .noticias-tab-content {
    grid-template-columns: 1fr;
  }

  .noticias-title {
    font-size: 1.8rem;
  }

  .noticia-card img {
    height: 160px;
  }
}