/* RESET Y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  height: 100%;
  width: 100%;
}

/* HEADER / NAV */


/* CONTENEDOR PRINCIPAL */
.container {
  max-width: 900px;
  background-color: white;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* TITULO */
.container h1 {
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: #666666;
}

/* INFORMACION DE USUARIO */
.usuario-info {
  margin-bottom: 1rem;
  font-weight: 500;
}

.usuario-info a {
  color: #007BFF;
  text-decoration: none;
}

.usuario-info a:hover {
  text-decoration: underline;
}

/* BOTONES DE ACCIÓN */
.boton-redireccion {
  display: inline-block;
  margin-bottom: 1.5rem;
  background-color: #007BFF;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.boton-redireccion:hover {
  background-color: #0056b3;
}

/* DIVISOR */
hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* TEMAS */
.tema {
  background-color: #fafafa;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.tema h3 {
  margin-bottom: 0.4rem;
}

.tema h3 a {
  color: #007BFF;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

.tema h3 a:hover {
  text-decoration: underline;
}

.meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.tema p {
  white-space: pre-line; /* respeta saltos de línea */
  color: #444;
  font-size: 1rem;
  line-height: 1.4;
}

/* ACCIONES DE TEMA */
.acciones {
  margin-top: 1rem;
}

.acciones a {
  margin-right: 1rem;
  color: #007BFF;
  text-decoration: none;
  font-weight: 600;
  transition: text-decoration 0.3s ease;
}

.acciones a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  nav.navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .container {
    margin: 1rem;
    padding: 1.5rem;
  }
}