#backVideo {
  position: fixed; /* Fix the video to the background */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Cover the entire viewport */
  z-index: -1; /* Place it behind other content */
  object-fit: cover; /* Ensure the video covers the entire area */
}

.cajaGeneral{
  height: 90vh;
}


.grid-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-evenly;
  padding-left: 2rem;
  height: 90vh;

}

.grid-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s;
  justify-content: center;
}

.grid-item:hover {
  transform: scale(1.02);
}

.media-link {
  /* height: 70%; */
  display: block;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.media-link img {
  /* width: 100%; */
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  margin: auto;
}

.media-link:hover img {
  transform: scale(1.05);
}

.media-link video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}




.text-link {
  height: 1rem;
  padding: 1rem;
  text-align: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.2rem;
}


.titulo-inicio{
  font-family: "Nunito Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  
}



.footer{
  position: absolute;
  bottom: 0;
}

#hover-video1 ,#hover-video2, #hover-video3, #hover-video4 {
  display: none; /* Hide the video initially */
}

a{
  text-decoration: none;
}

.videoFondo{
  display: none;
}

@supports (-webkit-touch-callout: none) {
  .media-link img {
   padding-left: 2rem;
  }
}


/* REGLAS TABLET -------------------------------------------- */
@media only screen and (min-width: 480px) {
    
  .videoFondo{
    display:block
  }

  .media-link:hover img {
    visibility: hidden;
  }

  .media-link:hover video {
    display: block;
  }
  

  
}
#backVideo {
  position: fixed; /* Fix the video to the background */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Cover the entire viewport */
  z-index: -1; /* Place it behind other content */
  object-fit: cover; /* Ensure the video covers the entire area */
}

.cajaGeneral{
  height: calc(var(--vh, 1vh) * 90); /* Use custom --vh variable, fallback to 90vh */
}


.grid-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-evenly;
  padding-left: 2rem;  
  height: calc(var(--vh, 1vh) * 90); /* Use custom --vh variable, fallback to 90vh */

}

.grid-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s;
  justify-content: center;
}

.grid-item:hover {
  transform: scale(1.02);
}

.media-link {
  height: 70%;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.media-link img {
  /* width: 100%; */
  /* height: 100%; */
  object-fit: cover;
  transition: transform 0.3s;
  margin: auto;
}

.media-link:hover img {
  transform: scale(1.05);
}

.media-link video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}




.text-link {
  height: 1rem;
  padding: 1rem;
  text-align: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.2rem;
}


.titulo-inicio{
  font-family: "Nunito Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  
}



.footer{
  position: absolute;
  bottom: 0;
}

#hover-video1 ,#hover-video2, #hover-video3, #hover-video4 {
  display: none; /* Hide the video initially */
}

a{
  text-decoration: none;
}

.videoFondo{
  display: none;
}

@supports (-webkit-touch-callout: none) {
  .media-link img {
   padding-left: 2rem;
  }
}


/* REGLAS TABLET -------------------------------------------- */
@media only screen and (min-width: 480px) {
    
  .videoFondo{
    display:block
  }

  .media-link:hover img {
    visibility: hidden;
  }

  .media-link:hover video {
    display: block;
  }
  

  
}


/* REGLAS DESKTOP -------------------------------------------- */
@media only screen and (min-width: 767px) {
  
  .cajaGeneral{
    /* display: inline; */
    text-align: center;
    align-content: center;
    height: 90vh;

  }

  .grid-container {
    display: flex;
    /* max-width: 1500px; */
    flex-direction: column;
    align-items: flex-end;
    margin-right: 12%;
 
  }  

  /* .grid-item{
    align-items: center;
  } */

  .media-link:hover img {
    transform: scale(1.05);
  }

  .media-link video {
    width: auto; /* Allow width to be determined by aspect ratio and height */
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: none;
    
  }
  .media-link {
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
  }

  .media-link:hover video {
    display: block;
  }

  .media-link:hover img {
    visibility: hidden;
  }

  .text-link {
    height: 1rem;
    padding: 1rem;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.2rem;
    width: 268px;
  }
  
  .holder{
    display: none;
  }
  
}

/* REGLAS LARGE DESKTOP -------------------------------------------- */
@media only screen and (min-width: 2000px) {
  
}

@media only screen and (max-height: 662px) and (min-width: 480px) {
  .grid-container{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }
}

/* REGLAS DESKTOP -------------------------------------------- */
@media only screen and (min-width: 767px) {
  
  .cajaGeneral{
    /* display: inline; */
    text-align: center;
    align-content: center;
    height: 90vh;

  }

  .grid-container {
    display: flex;
    /* max-width: 1500px; */
    flex-direction: column;
    align-items: flex-end;
    padding-bottom: 2rem;
 
  }  

  .grid-item{
    align-items: center;
    /* height: 100%; */
  }

  .media-link:hover img {
    transform: scale(1.05);
  }

  .media-link video {
    width: auto; /* Allow width to be determined by aspect ratio and height */
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: none;
    
  }

  .media-link:hover video {
    display: block;
  }

  .media-link:hover img {
    visibility: hidden;
  }

  .text-link {
    height: 1rem;
    padding: 1rem;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.2rem;
    width: 268px;
  }
  
  .holder{
    display: none;
  }
  
}

/* REGLAS LARGE DESKTOP -------------------------------------------- */
@media only screen and (min-width: 2000px) {
  
}

@media only screen and (max-height: 662px) and (min-width: 480px) {
  .grid-container{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }
}