body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #21457e;
}

header {
  background: #fff;
  padding: .5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.branding {
  display: flex;
  align-items: center;
}

.branding img {
  height: 75px;
  width: auto;
  margin-right: 0.5rem;
}

.logo img {
  height: 75px; /* Ajusta según el tamaño que desees */
  width: auto;
  margin-right: 1rem;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #21457e;
}

.hero {
  text-align: center;
  padding: 2rem 1rem;
  background: #e8f0fe;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero button {
  padding: 0.8rem 1.5rem;
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.cursos {
  background-color: snow;
  padding: 2rem;
  text-align: center;
}

.cursos ul {
  list-style: none;
  padding: 0;
}

.cursos li {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #fff;
  border-top: 1px solid #eee;
}

.imagen-aleatoria {
  width: 800px;
  max-height: 500px;
  overflow: hidden;
  margin:auto;
}

.imagen-aleatoria img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.tabla-categorias {
  width: 200px;
  margin: 2rem 0;
  margin: auto;
  font-size: 1.2em;
}

.derecha {
  text-align: right;
}

.izquierda {
  text-align: left;
}

.liga{
  color: #21457e;
  text-decoration: none;
  cursor: pointer;
}

.liga:hover {
  color: #3ba6b2;
}

.negro{
  color: black;
}

.azul{
  color: #21457e;
}

.celeste{
  color: #3ba6b2;
}

.naranjaApagado{
  color: #ce8835;
}

.naranja{
  color: #e9b154;
}

.logoTexto{
  font-size: 1.5rem;
}

a {
  color: #21457e;
  text-decoration: none;
}

/* Estado :visited (enlace visitado) */
a:visited {
  color: #21457e;
}

/* Estado :hover (cursor sobre el enlace) */
a:hover {
  color: #3ba6b2;
  text-decoration: none; /* Quita el subrayado al pasar el cursor */
}

/* Estado :active (enlace siendo clicado) */
a:active {
  color: #21457e;
}
