.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  overflow: auto;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}
.popup {
  /*margin: 70px auto;*/
  margin: 120px auto;
  padding: 80px;
  font-size: 12px;
  line-height: 1.4em;
  background: #fff;
  color:#333;
  text-align: justify;
  border-radius: 5px;
  width: 80%;
  position: relative;
  transition: all 1s ease-in-out;
}
.popup .close {
  position: absolute;
  top: 30px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #c89a69;
}
.popup .close:hover {
  color: #000000;
}
.popup .content {
  max-height: 30%;
  overflow: auto;
}

.espacio {
  padding: 3em 0 0 0;
}
@media only screen and (max-width : 900px) {
  .popup {
  /*margin: 70px auto;*/
  margin: 200px auto;
  padding: 40px;
  font-size: 11px;
  background: #fff;
  color:#333;
  text-align: justify;
  border-radius: 5px;
  width: 95%;
  position: relative;
  transition: all 5s ease-in-out;
  }
  .espacio {
    padding: 0 0 0 0;
  }
}







.faq-content {
  margin: 0 auto;
  z-index: 99;
}

.faq-question {
  padding: 10px 0;
  border-bottom: 1px dotted #ccc;
}

.panel-title {
  font-size: 12px;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 10px 10px 0 30px;
  display: block;
  cursor: pointer;
}

.panel-content {
  font-size: 12px;
  padding: 0px 14px;
  margin: 0 16px;
  height: 0;
  overflow: hidden;
  /*z-index: -1;*/
  position: relative;
  opacity: 0;
  -webkit-transition: .4s ease;
  -moz-transition: .4s ease;
  -o-transition: .4s ease;
  transition: .4s ease;
}

.panel:checked ~ .panel-content{
  height: auto;
  opacity: 1;
  padding: 14px;
}

.plus {
  position: absolute;
  color: #c89a69;
  margin-left: 10px;
  margin-top: 8px;
  z-index: 5;
  font-size: 20px;
  line-height: 100%;
  -webkit-user-select: none;    
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  -webkit-transition: .2s ease;
  -moz-transition: .2s ease;
  -o-transition: .2s ease;
  transition: .2s ease;
}

.panel:checked ~ .plus {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

.panel {
  display: none;
}







body {
  background: #171717;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

/*section {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
  padding-block: min(20vh, 6rem);
  text-align: center;
  width: calc(min(90rem, 90%));
  margin-inline: auto;
}*/
section .cards {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 2rem;
}
@media screen and (min-width: 51rem) {
  section .cards {
    gap: 0;
    padding-bottom: 2.5rem;
  }
}
section .cards .card {
  position: relative;
  cursor: pointer;
}

section .cards .card::before {
  position: absolute;
  content: "";
  width: 5rem;
  height: 6.25rem;
  z-index: 0;
  transition: 0.3s ease-in-out;
  background: #f2709c;
  background: -webkit-linear-gradient(to left, #ff9472, #f2709c);
  background: linear-gradient(to left, #ff9472, #c89a69);
  top: -0.375rem;
  left: -0.375rem;
}
/*section .cards .card::after {
  position: absolute;
  inset: 0;
  content: "";
  width: 100%;
  height: 100%;
  background: #232526;
  background: -webkit-linear-gradient(to bottom, rgba(65, 67, 69, 0.2), rgba(8, 8, 8, 0.9));
  background: linear-gradient(to bottom, rgba(65, 67, 69, 0.2), rgba(8, 8, 8, 0.9));
}*/
section .cards .card img {
  filter: grayscale(100%);
  transition: 0.5s ease;
}
section .cards .card-content {
  position: absolute;
  bottom: 0;
  z-index: 99;
  left: 0;
  color: #fff;
  width: 100%;
  padding: 1.875rem 1.25rem;
  text-align: center;
}

section .cards .card:hover img {
  filter: grayscale(0%);
}
section .cards .card:hover::before {
  transform: scale(1.03);
}




section .cards .card:nth-child(2)::before {
  bottom: -0.375rem;
  left: -0.375rem;
  top: auto;
}
section .cards .card:nth-child(4)::before {
  bottom: -0.375rem;
  left: -0.375rem;
  top: auto;
}
section .cards .card:nth-child(1)::before {
  top: -0.375rem;
  left: -0.375rem;
}
section .cards .card:nth-child(3)::before {
  top: -0.375rem;
  left: -0.375rem;
}