* {
  /* outline: 1px solid red; */
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: black;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  columns: 2;
  padding: 32px;
  column-gap: 32px;
}

section img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 32px;

  /* Animacion de las imagenes */
  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 20% cover 30%;
}

h1 {
  color: white;
  text-align: center;
  padding: 16px;

  position: sticky;
  top: 0;
  left: 0;
  z-index: 1;

  /* Animacion del navar (header) */
  animation: enhance-header linear both;
  animation-timeline: scroll(root block);
  animation-range: 0 200px;
}

/* Animacion de las imagenes */
@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 100px;
    scale: .5;
  }
  
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* Animacion del navar (header) */
@keyframes enhance-header {
  to {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    font-size: 18px;
    color: black;
  }
}