/* =====================
   ESTILOS NOTICIAS SIDEBAR
====================== */
.noticias-section {
  padding: 0;
}
.noticias-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.noticias-title .close-sidebar {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--gray);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  margin-left: 0.2rem;
  align-self: center;
}
.noticias-title .close-sidebar:hover {
  background: #eee;
  color: #e53935;
}
.noticias-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.noticia-card {
  background: var(--light);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.noticia-titulo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.noticia-descripcion {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
}
.noticia-preview {
  margin-bottom: 0.7rem;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.noticia-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 10px;
  text-decoration: none;
  transition: background 0.2s;
  text-align: center;
}
.noticia-btn:hover {
  background: var(--secondary);
}

/* Instagram */
.noticia-instagram {
  border-left: 5px solid #E1306C;
}
.noticia-instagram .noticia-header i {
  color: #E1306C;
  margin: 0;
}
.noticia-instagram .noticia-btn {
  background: #E1306C;
}

/* Facebook */
.noticia-facebook {
  border-left: 5px solid #1877F3;
}
.noticia-facebook .noticia-header i {
  color: #1877F3;
}
.noticia-facebook .noticia-btn {
  background: #1877F3;
}

/* TikTok */
.noticia-tiktok {
  border-left: 5px solid #000000;
}
.noticia-tiktok .noticia-header i {
  color: #000000;
}
.noticia-tiktok .noticia-btn {
  background: #000000;
}

/* Imagen personalizada */
.noticia-img {
  border-left: 5px solid #888888;
}
.noticia-img .noticia-header i {
  color: #888888;
}
.noticia-img .noticia-btn {
  background: #888888;
}

/* Web/Default */
.noticia-web {
  border-left: 5px solid #234f9e;
}
.noticia-web .noticia-header i {
  color: #234f9e;
}
.noticia-web .noticia-btn {
  background: #234f9e;
}

.noticia-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;

}
.noticia-preview-base {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 1.5rem 0;
  background: #f7f7f7;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}
.noticia-img-preview {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}

/* Estilos para el encabezado de noticias y botón de cerrar */
.noticias-header {
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
  padding-right: 0.2rem;
}
.noticias-icon {
  font-size: 1.3rem;
  color: var(--primary);
  display: flex;
  align-items: center;
}
.noticias-title-text {
  font-size: 1.15rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}
.close-sidebar {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--gray);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  margin-left: 0.2rem;
  align-self: center !important;
  vertical-align: middle;
}
.close-sidebar:hover {
  background: #eee;
  color: #e53935;
}

/* Nuevos estilos para la fila de medios digitales */
.noticias-medios {
  margin-bottom: 1.2rem;
}
.noticias-medios-title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.noticias-medios-row {
  display: flex;
  flex-direction: row;
  gap: 0;
  justify-content: space-around;
  margin: 0;
  padding: 0;
}
.noticias-medio {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
  border: none;
}
.noticias-medio:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.noticias-medio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 0;
  padding: 0;
}
.search-modal {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  z-index: 10000;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  border-radius: 0 0 16px 16px;
  padding: 1.2rem 1rem 1.5rem 1rem;
  transition: top 0.2s;
}
@media (max-width: 600px) {
  .search-modal {
    top: 16px;
    max-width: 100vw;
    border-radius: 0 0 12px 12px;
    padding: 1rem 0.5rem 1.2rem 0.5rem;
  }
}
@media (max-width: 425px) {
  .noticias-title {
    font-size: 1rem;
  }
  .noticia-card {
    padding: 0.7rem;
  }
  .noticia-titulo {
    font-size: 0.95rem;
  }
  .noticia-descripcion {
    font-size: 0.9rem;
  }
  .noticias-medios-row {
    gap: 0;
  }
  .noticias-medio {
    width: 40px;
    height: 40px;
    max-width: 40px;
    margin: 0;
  }
  .noticias-medio-img {
    width: 100%;
    height: 100%;
  }
}
