/* =========================
   AJUSTE GENERAL DE PÁGINA
========================= */

body {
  padding-left: 110px; /* espacio visual para la barra */
}

/* =========================
   BARRA LATERAL
========================= */

.barra-lateral {
  position: fixed;
  left: 0;
  top: 0;
  width: 110px;
  height: 100vh;
  background-image: url("noticias.png");
  background-size: cover;
  background-position: center;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* no interfiere con clicks */
}

.texto-barra {
  writing-mode: vertical-rl;
  color: white;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
}

/* =========================
   CONTENIDO
========================= */

.noticias-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 5%;
  display: flex;
  gap: 40px;
}

.blog-lateral {
  width: 260px;
  background: url("fondo-blog.jpg") center/cover no-repeat;
  padding: 40px 15px;
  border-radius: 8px;
  text-align: center;
  color: white;
}

.blog-lateral h2 {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 3rem;
}

.blog-lateral p {
  margin-top: 20px;
}

.noticias-content {
  flex: 1;
}

.tag {
  background: #1f6332;
  color: white;
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 25px;
  display: inline-block;
}

.noticias-content h1 {
  font-size: 2.3rem;
  margin-bottom: 30px;
}

.nota img {
  width: 100%;
  max-width: 420px;
  border-radius: 6px;
  margin: 20px 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  body {
    padding-left: 0;
  }

  .barra-lateral {
    position: relative;
    width: 100%;
    height: 120px;
  }

  .texto-barra {
    writing-mode: horizontal-tb;
    font-size: 1.6rem;
  }

  .noticias-container {
    flex-direction: column;
    padding: 40px 5%;
  }

  .blog-lateral {
    width: 100%;
  }
}

