@media screen and (max-width:800px){
header {
  background-image: url(../imagenes/Melilla2.jpg);
}
}
  
/* Los eventos y actividades realizadas */

.body {
  padding: 5vh 0 10vh 0;
  background: url(../imagenes/fondofree2.jpg)
    center center/cover no-repeat;
  display: flex;
  display: -webkit-flex;
  -webkit-justify-content: center;
  -webkit-align-items: center;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width:800px){
  .body{
    overflow: hidden;
    padding: 5vh 0;
    margin: 0;
  }
}

.cards {
    width: 70%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    row-gap: 30px;
    column-gap: 30px;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
}

@media screen and (max-width:800px){
  .cards {
    display: flex;
    width: 95%;
    margin: 0 auto;
    row-gap: 5vh;
    column-gap: 0px;
  }
}

@media screen and (max-width: 800px) {
  .cards {
    flex-direction: column; 
    align-items: center; /* Centra las tarjetas horizontalmente */
  }
}

.card--1 .card__img, .card--1 .card__img--hover {
    background-image: url('../imagenes/evento1.png');
}
.card--2 .card__img, .card--2 .card__img--hover {
    background-image: url('../imagenes/evento2.png');
}
.card--3 .card__img, .card--3 .card__img--hover {
    background-image: url('../imagenes/evento3.png');
}
.card--4 .card__img, .card--4 .card__img--hover {
    background-image: url('../imagenes/evento4.png');
}

.card__img {
  visibility: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 235px;
  border-top-left-radius: 12px;
border-top-right-radius: 12px;
  
}

.card__info-hover {
    position: absolute;
    padding: 16px;
  width: 100%;
  opacity: 0;
  top: 0;
}

.card__img--hover {
  transition: 0.2s all ease-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
  position: absolute;
    height: 235px;
  border-top-left-radius: 12px;
border-top-right-radius: 12px;
top: 0;
  
}
.card {
  margin-right: 25px;
  transition: all .4s cubic-bezier(0.175, 0.885, 0, 1);
  background-color: #fff;
  width: 33.3%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 13px 10px -7px rgba(0, 0, 0,0.1);
  max-width: 400px;
  min-width: 300px;
  max-height: 400px
  min-height: 45vh;
}
.card:hover {
  box-shadow: 0px 30px 18px -8px rgba(0, 0, 0,0.1);
    transform: scale(1.10, 1.10);
}
@media screen and (max-width:800px){
  .card{
    margin: 0;
  }
}

.card__info {
z-index: 2;
  background-color: #fff;
  border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
   padding: 16px 24px 24px 24px;
}

.card__category {
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 500;
    color: #ccb370;
}

.card__title {
    margin-top: 5px;
    margin-bottom: 10px;
    font-family: 'Roboto Slab', serif;
}

.card__by {
    font-size: 12px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.card__author {
    font-weight: 600;
    text-decoration: none;
    color: #AD7D52;
}

.card:hover .card__img--hover {
    height: 100%;
    opacity: 0.6;
}

.card:hover .card__info {
    background-color: transparent;
    position: relative;
}

.card:hover .card__info-hover {
    opacity: 1;
}

/*
 * ## Cards Container Class
 */

h1{
  font-weight: 200;
  margin: 0;
  padding: 20px 0;
  text-align: center;
  font-size: 4vw;
   background: linear-gradient(45deg, #ccb370, #646a82);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 800px) {
  h1{ font-size: 12vw;} }

.cards-container {
  /* List Styling Clean-Up */
  list-style: none;
  padding: 50px 0; margin: 0;

  /* Alignment */
  margin: auto;
  img{
    width: 50px;
    height: 60px;
  }
  h2{
    color: #646a82;
  }
  p{
     color: #1a1a1a;
    font-size: 1em;
    line-height: 1.3;
    letter-spacing:  1px;
  }
}

@media screen and (max-width: 800px) {
  .cards-container { padding-top: 0; } }

@media (min-width: 788px) {
  .cards-container { 
    width: 728px;

    img{
    width: 30px;
    height: 40px;
  }
  }

  /* Clear Fix */
  .cards-container::after {
    content: "";
    clear: both;
    display: table;
  }
}

@media (min-width: 1166px) {
  .cards-container {
    width: 1106px;
  }
}

/*
 * ## Feature Card Class
 */

[class$='feature-card'] {
  /* Positioning and Sizing */
  position: relative;
  box-sizing: border-box;
  width: 350px; height: 250px;

  /* Alignment */
  margin: 0;
  padding: 32px;

  /* Box Details */
  border-radius: 10px;
  border-top: solid 5px black;
  box-shadow: 2px 5px 20px rgb(0,0,0,0.1);
}
 
/*
 * ### Inner Elements
 */

[class$='feature-card'] h2, [class$='feature-card'] p { margin: 0; }

[class$='feature-card'] img {
  position: absolute;
  bottom: 32px; right: 32px;
}

/*
 * ### Top Border Colors Rules
 */

[class$='feature-card'][class*='cyan'] {
  border-color: hsl(180, 62%, 55%);
}

[class$='feature-card'][class*='red'] {
  border-color: hsl(0, 78%, 62%);
}

[class$='feature-card'][class*='orange'] {
  border-color: hsl(34, 97%, 64%);
}

[class$='feature-card'][class*='blue'] {
  border-color: hsl(212, 86%, 64%);
}


@media (min-width: 788px) {
  [class$='feature-card'] {
    float: left;
  }

  @media (min-width: 1166px) {
    
    [class$='feature-card']:first-child {
      margin: 140px 0;
    }
   
    [class$='feature-card']:nth-child(2),
    [class$='feature-card']:nth-child(3) {
      margin: 0 22px;
    }

    [class$='feature-card']:last-child {
      margin-top: -110px;
    }

    [class$='feature-card']:nth-child(3) {
      margin-top: 30px;
    }
  }

  @media (max-width: 1165px) {

    [class$='feature-card']:nth-child(3),
    [class$='feature-card']:nth-child(4) {
      margin-top: 30px;
    }

    [class$='feature-card']:nth-child(2),
    [class$='feature-card']:nth-child(4) {
      margin-left: 28px;
    }
  }
}

@media (max-width: 787px) {

  [class$='feature-card'] {
    width: 300px; height: 330px;
    margin: auto;
  }

  [class$='feature-card']:not(:first-child) {
    margin-top: 22px;
  }
}