@import url("https://fonts.googleapis.com/css2?family=Jost:wght@600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand&display=swap");

:root {
  --light-gray: #eceef1;
  --gray: darken(#eceef1, 30%);
  /* --slate: darken(#eceef1, 70%); */
  --dark-grey: #949fb0;
  --light-black: #333a45;
  --green: #0e723a;
  --light-green: #21a366;
  --white: #ffffff;
  --strong-gray: #242038;
  --black: #000000;
}

body {
  overflow-x: hidden;
}

.title {
  font-family: "Jost", sans-serif;
}

.text {
  font-family: "Quicksand", sans-serif;
}

a,
:link,
:visited {
  text-decoration: none;
  color: #777;
}

.block {
  margin: auto;
  width: 100%;
  padding: 4vh 0;
  position: relative;
  max-width: 1050px;
}

.partners-title {
  color: var(--black);
  width: 87%;
  max-width: 1400px;
  text-align: center;
  font-size: 3rem;
  margin: calc(90px + 4rem) auto 2rem auto;
}

.main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list {
  min-width: min-content;
  list-style: none;
  margin-right: 0.8rem;
}

.card-container {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  flex-grow: 1;
  justify-content: center;
}

.card {
  margin: 15px;
  width: calc((100% / 3) - 50px);
}

/* Textos de las tarjetas */
.card-title {
  color: #333a45;
  font-size: 1.3rem;
}

.card-desc {
  color: #333a45;
  font-size: 1.1rem;
  margin-top: 0.4rem;
}

.expander-info-item {
  color: #333a45;
  font-size: 0.9rem;
  inline-size: 150px;
  word-wrap: break-word;
}

.expander-title {
  color: #333a45;
  font-size: 1.5rem;
  text-align: center;
}

.expander-text {
  color: #333a45;
  font-size: 1.1rem;
  line-height: 1.6rem;
}

.card-inner {
  width: 100%;
  max-width: 300px;
  padding: 15px 0;
  position: relative;
  cursor: pointer;
  background-color: #fff;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  border-radius: 7px;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  -ms-border-radius: 7px;
  -o-border-radius: 7px;
  color: var(--light-gray);
  font-size: 1.5em;
  text-align: center;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
  -webkit-transition: background-color 0.2s ease-in-out,
    transform 0.2s ease-in-out;
  -moz-transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
  -ms-transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
  -o-transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.card:hover .card-inner {
  transform: scale(1.05);
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -ms-transform: scale(1.05);
  -o-transform: scale(1.05);
}

.card-inner .fa {
  width: 100%;
  margin-top: 0.25em;
}

.card-expander {
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  background-color: var(--grey);
  padding: 20px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--light-gray);
  font-size: 1.5em;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  color: rgba(60, 64, 67, 0.3);
}

.close-button > * {
  pointer-events: none;
}

.expander-text-container {
  width: 65%;
}

.expander-title {
  margin-bottom: 0.8rem;
}

.expander-list {
  margin-left: 8%;
}

.expander-contact-info {
  display: flex;
  flex-direction: column;

  gap: 0.2rem;
}

.expander-info-container {
  margin-top: 2rem;
  width: 30%;
  min-width: 200px;
}

.expander-img {
  width: 100%;
  margin-bottom: 1rem;
  object-fit: scale-down;
}

.card-expander .fa:hover {
  opacity: 0.9;
}

.card.is-collapsed .card-inner::after {
  content: "";
  opacity: 0;
}

.card.is-collapsed .card-expander {
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
}

.card.is-expanded .card-inner::after {
  content: "";
  opacity: 1;
  display: block;
  height: 0;
  width: 0;
  position: absolute;
  bottom: -30px;
  left: calc(50% - 15px);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid rgba(60, 64, 67, 0.3);
}

.card.is-expanded .card-expander {
  max-height: 2000px;
  min-height: 200px;
  overflow: visible;
  margin-top: 30px;
  opacity: 1;
}

.card.is-expanded:hover .card-inner {
  transform: scale(1);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
}

.card.is-inactive .card-inner {
  opacity: 0.5;
}

.card.is-inactive:hover .card-inner {
  background-color: var(--gray);
  transform: scale(1);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
}

.card-img {
  height: 200px;
  width: 100%;
  object-fit: scale-down;
  padding: 0.5rem;
}

.card-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 1rem 0.5rem;
  border-top: 1px solid #bcbcbc;
}

.nav-item {
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  /* font-weight: 800; */
  box-shadow: -0.3rem 0 0 0 var(--green);
}

.nav-item:hover {
  box-shadow: -0.6rem 0 0 0 var(--green);
}

.become-partner {
  max-width: 1400px;
  margin: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--strong-gray);
  width: 100vw;
  padding: 15em 2em;
}

.become-partner-containt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.become-partner-title {
  color: var(--white);
  font-size: 3rem;
  font-weight: 100;
  text-align: center;
}

.become-partner-button {
  color: var(--white);
  padding: 0.7rem;
  border: 1rem;
  background-color: var(--green);
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 0.5rem;
  -webkit-border-radius: 0.5rem;
  -moz-border-radius: 0.5rem;
  -ms-border-radius: 0.5rem;
  -o-border-radius: 0.5rem;
}

.figure {
  position: absolute;
}

.square1 {
  top: 10%;
  left: 30%;
}

.square2 {
  top: 30%;
  left: 10%;
}

.square3 {
  top: 10%;
  right: 20%;
}

.square4 {
  bottom: 10%;
  left: 8%;
}

.square5 {
  bottom: 45%;
  right: 10%;
}

.square6 {
  right: 17%;
  bottom: 10%;
}

@media screen and (max-width: 800px) {
  .nav-list {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .nav-item {
    box-shadow: 0 -0.3rem 0 0 #9370db;
    padding-left: 0;
    margin-bottom: 0;
  }
  .nav-item:hover {
    box-shadow: 0 -0.6rem 0 0 #9370db;
  }
  .card-container {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  .card-img {
    height: 55%;
  }
  .card-inner {
    height: 250px;
  }
}

@media screen and (max-width: 991px) {
  .card {
    width: calc((100% / 2) - 140px);
  }
  .square1 {
    top: 10%;
    left: 25%;
  }

  .square2 {
    top: 30%;
    left: 5%;
  }

  .square3 {
    top: 10%;
    right: 15%;
  }

  .square4 {
    bottom: 10%;
    left: 3%;
  }

  .square5 {
    bottom: 45%;
    right: 5%;
  }

  .square6 {
    right: 17%;
    bottom: 5%;
  }
}
@media screen and (max-width: 767px) {
  .card {
    width: 100%;
  }
}

@media screen and (min-width: 992px) {
  .card:nth-of-type(3n + 2) .card-expander {
    margin-left: calc(-100% - 30px);
  }

  .card:nth-of-type(3n + 3) .card-expander {
    margin-left: calc(-200% - 60px);
  }

  .card:nth-of-type(3n + 4) {
    clear: left;
  }

  .card-expander {
    width: calc(300% + 60px);
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .card:nth-of-type(2n + 2) .card-expander {
    margin-left: calc(-100% - 30px);
  }
  .card:nth-of-type(2n + 3) {
    clear: left;
  }
  .card-expander {
    width: calc(200% + 30px);
  }
}

@media screen and (max-width: 768px) {
  .partners-title {
    font-size: 2.5rem;
    margin: calc(75px + 4rem) auto 2rem auto;
  }
  .card-container {
    justify-content: center;
  }
  .card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .card-img {
    object-fit: scale-down;
  }
  .expander-info-container {
    width: 100%;
  }
  .expander-img {
    max-height: 150px;
  }
  .expander-text-container {
    width: 100%;
  }
  .expander-contact-info {
    flex-direction: row;
    justify-content: space-evenly;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }
  .nav-item {
    font-size: 0.9rem;
  }
  /* Textos de las tarjetas */
  .card-title {
    color: #333a45;
    font-size: 1.2rem;
  }

  .card-desc {
    color: #333a45;
    font-size: 1rem;
    margin-top: 0.4rem;
  }

  .expander-info-item {
    color: #333a45;
    font-size: 0.9rem;
  }

  .expander-title {
    color: #333a45;
    font-size: 1.2rem;
    text-align: center;
  }

  .expander-text {
    color: #333a45;
    font-size: 1rem;
    line-height: 1.5rem;
  }
  .become-partner-title {
    font-size: 1.8rem;
  }
  .become-partner-button {
    font-size: 1.1rem;
  }
  .square1 {
    top: 10%;
    left: 60%;
  }

  .square2 {
    top: 15%;
    left: 15%;
  }

  .square3 {
    top: 80%;
    right: 5%;
  }

  .square4 {
    bottom: 20%;
    left: 10%;
  }

  .square5,
  .square6 {
    display: none;
  }
}

@media screen and (max-width: 460px) {
  .partners-title {
    font-size: 2rem;
    margin: calc(60px + 4rem) auto 2rem auto;
  }
  .become-partner-title {
    font-size: 1.5rem;
  }
  .become-partner-button {
    font-size: 0.8rem;
  }
}
