/* --- estilos base ya compartidos antes --- */
/* (Incluye todo lo que te mandé antes) */

/* Header simple para todas las páginas */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: 
    linear-gradient(135deg, #601da355 25%, transparent 25%) -9px 0 / 18px 18px,
    linear-gradient(225deg, #601da3 25%, transparent 25%) -9px 0 / 18px 18px,
    linear-gradient(315deg, #601da355 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(45deg, #601da3 25%, #070713 25%) 0 0 / 18px 18px;
  background-repeat: repeat;
  opacity: 0.9;
  color: #ffffff;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 40px 20px;
  line-height: 1.6;
}
header {
  background: #601da3;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 3px 8px rgba(0,86,179,0.5);
}

header h1 {
  margin: 0;
  font-size: 3.0rem;
}

/* Contenedor principal para uniformidad */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 15px 20px;
}

/* --- Estilos para blog.html --- */

/* Lista de entradas */
#lista {
  padding: 0;
  list-style: none;
}

.entrada {
  background: rgb(59,59,59);
  padding: 18px 22px;
  margin-bottom: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: box-shadow 0.25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.entrada:hover {
  box-shadow: 0 7px 18px rgba(0,0,0,0.15);
}

.entrada .info {
  flex-grow: 1;
}

.entrada .info > span {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: #480270;
  margin-bottom: 4px;
}

.entrada .info > small {
  color: #666;
  font-size: 0.9rem;
}

/* --- Estilos para crear.html --- */
form {
  background: rgb(59,59,59);
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  margin-top: 20px;
}

form input[type="text"],
form input[type="date"],
form textarea {
  background: #999999;
  width: 100%;
  padding: 12px 2px;
  border-radius: 6px;
  border: 1px solid #242424;
  color: rgb(0, 0, 0);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="date"]:focus,
form textarea:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 8px rgba(0,86,179,0.3);
}

form textarea {
  min-height: 150px;
}

form button {
  margin-top: 25px;
  width: 100%;
  font-weight: 700;
  font-size: 1.1rem;
  background-color: #601da3;
  border: none;
  color: white;
  padding: 14px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #0056b3;
}

/* Contenedor para botones descargar y subir JSON en crear.html */
#botonesJson {
  margin-top: 20px;
  text-align: center;
}

#botonesJson button {
  display: inline-block;
  margin: 0 10px;
  background-color: #28a745;
}

#botonesJson button:hover {
  background-color: #1e7e34;
}

/* Estilos para inputs file */
input[type="file"] {
  margin-top: 10px;
}

/* Mensajes de éxito o error (opcional) */
.message {
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 600;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
}
