body{
  background: linear-gradient(to top, #333333, #FFFFFF);
}

@media screen and (max-width:800px){
header {
  background-image: url(../imagenes/Melilla3.jpg);
}
}
  
 /* Seccion de las Noticias*/

.band {
  padding:  20px 0;
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-gap: 20px;
  
  @media (min-width: 30em) {
    grid-template-columns: 1fr 1fr;
  }
  @media (min-width: 60em) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: #FFFFFF;
  text-decoration: none;
  color: #444;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-height: ;
  
  // sets up hover state
  position: relative;
  top: 0;
  transition: all .1s ease-in;
    
  &:hover {
    top: -2px;
    box-shadow: 0 4px 5px rgba(0,0,0,0.2);
  }
  
  article {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  h1 {
    font-size: 20px;
    margin: 0;
    color: #333;
  }
  
  p {
    flex: 1;
    line-height: 1.4;
  }
  
  span {
    font-size: 12px;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 2em 0 0 0;
  }
  
  .thumb {
    padding-bottom: 60%;
    background-size: cover;
    background-position: center center;
  }
}

.item-1 {
  @media (min-width: 60em) {
    grid-column: 1 / span 2;
    
    h1 {
      font-size: 24px;
    }
  }
}

/* Estilos para el botón */

.modern-button {
    display: block;
    width: 200px;
    margin: 0px auto;
    margin-bottom: 20px;
    padding: 15px 30px;
    font-size: 16px;
    color: #ffffff;
    background-color: #ccb370;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    text-decoration: none; /* Elimina el subrayado del enlace */
    transition: transform 0.2s ease-in-out, background-color 0.3s ease;
    outline: none;
}

/* Animación de salto al hacer clic */
@keyframes happyJump {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-15px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-7px); }
}

.modern-button:active {
    animation: happyJump 0.6s ease-in-out;
    background-color: #bda054; /* Color más oscuro al hacer clic */
}
