/* SELECTORES BÁSICOS */
.imagen {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  position: relative;
  top: 10px;
}

/* Selector por ID */
#principal {
  background-color: #33ffad;
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
}

/* Selector por clase */
.titulo {
  text-align: center;
  font-size: 2.5rem;
  text-shadow: 2px 2px 5px #000;
}

/* Selector de elemento */
ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
}

li {
  margin: 0 15px;
}

/* PSEUDOCLASE */
a.menu:hover {
  color: orange;
  font-weight: bold;
  transition: color 0.3s ease;
}

/* PSEUDOELEMENTO */
h2::after {
  content: " 🌟";
}

/* HERENCIA Y ORGANIZACIÓN */
main {
  padding: 20px;
}

/* POSICIONAMIENTO */
.imagen {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 1rem auto 2rem auto;
  position: relative;
  top: 0; /* Elimina top: 10px */
  border-radius: 10px;
}

/* ANIMACIÓN */
.resaltado {
  background-color: yellow;
  animation: parpadeo 1s infinite alternate;
}

@keyframes parpadeo {
  from {
    background-color: yellow;
  }
  to {
    background-color: transparent;
  }
}

/* VIDEO */
.video-section video {
  display: block;
  margin: 1rem auto;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 1rem;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 100;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}