/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  color: #222;
  line-height: 1.5;
  padding: 1rem;
}

main {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
}

/* Tarjetas de noticias */
.notice {
  background: #fff;
  border-left: 6px solid #4f46e5; /* color vivo */
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.notice:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.notice-date {
  font-size: 0.85rem;
  color: #6366f1; /* mismo color que la barra lateral */
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.notice-tittle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.notice-content {
  font-size: 1rem;
  color: #374151;
}

/* Animación entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividad */
@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }

  .notice {
    padding: 1rem 1.2rem;
  }

  .notice-tittle {
    font-size: 1.1rem;
  }
}
