/* Fondo y tipografía general */
body {
  background-image: url('../img/fondo.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}
/* Contenedor principal del contenido del blog */
.container {
  max-width: 860px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

/* Título principal */
h1 {
  color: #0d6efd;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Subtítulos */
h2, h3 {
  margin-top: 2rem;
  color: #343a40;
  border-left: 5px solid #0d6efd;
  padding-left: 0.5rem;
}

/* Fecha del artículo */
.fecha {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Listas */
ul {
  padding-left: 1.8rem;
  list-style-type: square;
}

/* Código fuente */
pre {
  background-color: #f8f9fa;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 8px;
  font-size: 0.95rem;
  border-left: 4px solid #0d6efd;
  color: #495057;
}

/* Botón de regreso */
.volver {
  display: inline-block;
  margin-top: 2.5rem;
  text-decoration: none;
  background-color: #0d6efd;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.volver:hover {
  background-color: #0b5ed7;
}

/* Imágenes dentro del contenido */
.container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Párrafos */
p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Enlaces dentro del texto */
a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
