/* static/css/base.css */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #24467b;
  padding: 12px 32px;
}

header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

header nav a,
header nav .enlace {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

header nav a:hover,
header nav .enlace:hover {
  text-decoration: underline;
}

header nav form {
  margin: 0;
}

.enlace {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
}

main {
  max-width: 760px;
  width: 100%;
  box-sizing: border-box;
  margin: 32px auto;
  padding: 0 16px;
  flex: 1;
}

h1 {
  color: #24467b;
}

.aviso-sesion {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 24px;
  color: #0c4a6e;
}

.aviso-sesion p {
  margin: 0;
}

.aviso-sesion a {
  color: #24467b;
  font-weight: 600;
  text-decoration: none;
}

.aviso-sesion a:hover {
  text-decoration: underline;
}

.publicacion {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 24px;
  margin-bottom: 24px;
}

.publicacion h2 a {
  color: #24467b;
  text-decoration: none;
}

.publicacion h2 a:hover {
  text-decoration: underline;
}

.meta {
  color: #64748b;
  font-size: 14px;
}

.formulario {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
}

.formulario > div,
.formulario .campo {
  margin-bottom: 16px;
}

.formulario label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.formulario input,
.formulario select,
.formulario textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.helptext {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
}

.errorlist {
  color: #b91c1c;
  margin: 6px 0 0 0;
  padding-left: 20px;
  font-size: 14px;
}

.boton {
  background: #24467b;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 8px 20px;
  margin-right: 12px;
  font: inherit;
  cursor: pointer;
}

.boton:hover {
  opacity: 0.92;
}

.boton-peligro {
  background: #b91c1c;
}

.acciones a {
  color: #24467b;
  font-weight: 500;
  margin-right: 16px;
  text-decoration: none;
}

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

.volver {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.volver a {
  color: #24467b;
  font-weight: 600;
  text-decoration: none;
}

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

footer {
  background: #1e293b;
  color: #cbd5e1;
  text-align: center;
  padding: 16px 24px;
  font-size: 14px;
  margin-top: 32px;
}

footer p {
  margin: 0;
}
