/* Mobile-first: estilos base pensados para pantallas chicas, luego se amplian con media queries. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #ffffff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #003366;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  background: #003366;
  color: #ffffff;
  padding: 1rem;
}

.site-header h1 {
  margin: 0;
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  flex-direction: column;
  margin-top: 0.75rem;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.05rem;
}

.site-nav a:last-child {
  border-bottom: none;
}

.site-nav a.activo {
  font-weight: 700;
  text-decoration: underline;
}

main {
  padding: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

a {
  color: #003366;
}

.site-footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

.draft-banner {
  background: #fff4d6;
  border: 2px solid #b8860b;
  color: #4a3800;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.draft-banner strong {
  display: block;
  margin-bottom: 0.25rem;
}

.draft-tag {
  display: inline-block;
  background: #fff4d6;
  border: 1px solid #b8860b;
  color: #4a3800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

section + section {
  margin-top: 1.75rem;
}

section h2 {
  color: #003366;
}

section h3 {
  margin-bottom: 0.35rem;
}

.lista-normativas li {
  margin-bottom: 0.5rem;
}

.lista-eventos {
  list-style: none;
  margin: 0;
  padding: 0;
}

.evento {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.evento-tipo {
  display: inline-block;
  background: #e6edf5;
  color: #003366;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.evento--practica .evento-tipo {
  background: #eaf3ea;
  color: #205020;
}

.evento-titulo {
  margin: 0 0 0.5rem;
}

.evento-detalle {
  margin: 0;
}

.evento-detalle dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: #555;
}

.evento-detalle dd {
  margin: 0 0 0.5rem;
}

.boton-inscribirse,
.form-inscripcion button {
  display: inline-block;
  background: #003366;
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.aviso-cupo {
  color: #7a4b00;
  font-weight: 700;
}

.aviso-error {
  background: #fdeaea;
  border: 1px solid #b83232;
  color: #6b1010;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.form-inscripcion {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 26rem;
}

.form-inscripcion label {
  font-weight: 700;
  margin-top: 0.75rem;
}

.form-inscripcion input {
  font-size: 1rem;
  padding: 0.6rem;
  border: 1px solid #999;
  border-radius: 6px;
}

.form-inscripcion .nota-privacidad {
  font-size: 0.9rem;
  color: #444;
  margin: 0.75rem 0;
}

.form-inscripcion button {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.lista-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.post-titulo {
  margin: 0 0 0.35rem;
}

.post-titulo a {
  text-decoration: none;
}

.post-fecha {
  color: #555;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.post-resumen {
  margin: 0 0 0.5rem;
}

.post-leer-mas {
  font-weight: 700;
}

.post-volver {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.post-seccion {
  margin-top: 1.5rem;
}

.post-fuentes {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
}

.post-nota {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #d9d9d9;
  color: #555;
  font-size: 0.85rem;
}

/* Pantallas mas grandes (tablet/desktop) */
@media (min-width: 768px) {
  body {
    font-size: 20px;
  }

  .site-header h1 {
    font-size: 1.6rem;
  }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .site-nav {
    flex-direction: row;
    margin-top: 0;
    gap: 1.25rem;
  }

  .site-nav a {
    border-bottom: none;
    padding: 0.25rem 0;
  }
}
