/* Feria Header */

.home-header-feria h1 {
  color: #fff;
  font-size: 72px;
  text-align: center;
  max-width: 1150px;
  line-height: 80px;
  width: 100%;
  font-weight: 700;
  font-stretch: expanded;
  margin: 0px;
}

.home-header-feria a {
  font-size: 26px;
}

@media (max-width: 1400px) {
  .home-header-feria h1 {
    font-size: 52px;
    line-height: 64px;
  }

  .home-header-feria a {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  .home-header-feria h1 {
    font-size: 40px;
    line-height: 48px;
  }
}

/* Home Info What */

.feria-info {
  padding: 120px 40px 0 40px;
  width: 100%;
  box-sizing: border-box;
  background-color: white;
}

.feria-info-what {
  display: flex;
  max-width: 1600px;
  margin: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 56px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
}

.feria-info-what > div {
  box-sizing: border-box;
}

.feria-info-what > div:nth-of-type(1) {
  width: 75%;
}

.feria-info-what > div:nth-of-type(2) {
  width: 25%;
  display: flex;
  align-items: end;
  justify-content: end;
}

.feria-info-what h2 {
  color: #fff;
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: 68px;
  margin: 0 0 40px 0;
}

.feria-info-what p {
  color: #fff;
  font-size: 20px;
  font-style: normal;
  line-height: 26px;
  font-weight: 200;
}

.feria-info-what .button-main {
  color: #fff;
  font-size: 24px;
  font-weight: 400;
}

.feria-info-what .button-main:hover {
  transition: background-color 0.4s ease;
}

.feria-info-what .button-main:hover > img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%)
    hue-rotate(102deg) brightness(100%) contrast(105%);
}

.feria-info-what .button-main:hover {
  color: white;
  background-color: #00af66;
}

.feria-info-text {
  color: #24135f;
  text-align: center;
  font-size: 42px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.84px;
}

@media (max-width: 1400px) {
  .feria-info-what h2 {
    font-size: 52px;
    line-height: 1.2;
  }

  .feria-info-what p {
    font-size: 20px;
    line-height: 28px;
  }

  .feria-info-what .button-main {
    font-size: 20px;
  }
}

@media (max-width: 950px) {
  .feria-info-what {
    flex-direction: column;
  }

  .feria-info-what > div {
    padding: 0;
  }

  .feria-info-what > div:nth-of-type(1),
  .feria-info-what > div:nth-of-type(2) {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .feria-info-what {
    padding: 30px;
    gap: 20px;
  }

  .feria-info-what h2 {
    font-size: 34px;
    margin: 0 0 40px 0;
  }

  .feria-info {
    padding: 80px 20px 0 20px;
  }
}

/* Feria Window */

.feria-window-container {
  background-color: white;
  width: 100%;
  padding: 0 40px 120px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 100px;
  box-sizing: border-box;
}

.feria-window {
  max-width: 1600px;
  width: 100%;
  display: flex;
}

.feria-window > div {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feria-window-text p {
  max-width: 640px;
  color: #24135f;
  font-size: 40px;
  font-weight: 300;
}

.home-window-objetives ul {
  color: #24135f;
  font-size: 20px;
  font-weight: 300;
  padding-left: 25px;
}

.home-window-objetives li {
  padding: 15px 0;
  border-bottom: solid 1px #24135f;
  transition: transform 0.2s ease;
}

.home-window-objetives li:hover {
  transform: translateY(5px);
}

.home-window-objetives li:last-of-type {
  border-bottom: none;
}

@media (max-width: 1400px) {
  .feria-window-text p {
    font-size: 28px;
  }

  .home-window-objetives ul {
    font-size: 20px;
  }
}

/* feria text */

.feria-text-container {
  padding: 120px 40px;
  background-color: white;
  box-sizing: content-box;
}

.feria-text {
  display: flex;
  gap: 80px;
  max-width: 1600px;
  margin: auto;
}

.feria-text > div {
  width: 50%;
}

.feria-text-text {
  color: #24135f;
  font-size: 20px;
  font-weight: 200;
  line-height: 26px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-direction: column;
}

.feria-text__title {
  font-size: 64px;
  line-height: 68px;
  margin: 0px;
}

.feria-text-text p {
  max-width: 100%;
  margin-top: 0px;
  font-weight: 200;
}

.feria-text-image {
  display: flex;
  align-items: center;
}

.feria-text-image img {
  width: 100%;
  max-width: 620px;
  height: 380px;
  border-radius: 20px;
  object-fit: cover;
}

@media (max-width: 1450px) {
  .feria-text-text {
    font-size: 20px;
  }

  .feria-text__title {
    font-size: 52px;
    line-height: 50px;
  }
}

@media (max-width: 900px) {
  .feria-text-container {
    padding: 70px 20px;
  }

  .feria-text-text {
    font-size: 24px;
    line-height: 1.2;
  }

  .feria-text-image img {
    max-width: 100%;
  }

  .feria-text {
    flex-direction: column;
  }

  .feria-text > div {
    width: 100%;
  }
}

/* Feria video */

.feria-video {
  padding: 120px 40px 0 40px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  background-color: white;
}

.feria-video iframe,
.feria-video video {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
  max-width: 1600px;
  object-fit: cover;
  border-radius: 20px;
}

@media (max-width: 900px) {
  .feria-video {
    padding: 0 20px 80px 20px;
  }
}

/* Feria Cards */

.feria-cards-container {
  width: 100%;
  background: url("../../img/fis/imagen_fondo_fis.jpeg");
  padding: 140px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 100px;
  box-sizing: border-box;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.feria-cards-container h2 {
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  margin: 0 40px;
  font-stretch: expanded;
}

.feria-cards-container .button-main {
  max-width: 300px;
}

.feria-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.feria-card-row {
  display: flex;
  max-width: 1900px;
  flex-flow: wrap;
  gap: 25px;
  overflow: hidden;
  width: fit-content;
  justify-content: center;
}

.feria-card-row:first-of-type > div:nth-of-type(even) {
  background-color: #0072ce;
}

.feria-card-row:first-of-type > div:nth-of-type(odd) {
  background-color: #fff;
}

.feria-card-row:first-of-type > div:nth-of-type(even) .feria-card-header {
  color: #ffffff;
}

.feria-card-row:first-of-type > div:nth-of-type(odd) .feria-card-header {
  color: #000b1c;
}

.feria-card-row:first-of-type > div:nth-of-type(even) .feria-card-text {
  color: #fff;
}

.feria-card-row:first-of-type > div:nth-of-type(odd) .feria-card-text {
  color: #000b1c;
}

.feria-card {
  height: 300px;
  width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  padding: 30px;
  box-sizing: border-box;
  position: relative;
  cursor: context-menu;
}

.feria-card-text {
  height: 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: 350;
  line-height: 24px;
  opacity: 0;
  transition: height 0.4s ease, opacity 0.2s ease;
  text-align: center;
}

.feria-card:hover .feria-card-text {
  height: 200px;
  opacity: 1;
}

.feria-card:hover .feria-card-image {
  opacity: 0;
}

.feria-card.hover .feria-card-text {
  height: 200px;
  opacity: 1;
}

.feria-card.hover .feria-card-image {
  opacity: 0;
}

.feria-card-image {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.feria-card-description {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
}

.feria-card-image img {
  height: 75px;
  transition: transform 0.2s ease;
}

.feria-card-header {
  width: 100%;
  text-align: center;
  transition: transform 0.2s ease;
  margin-bottom: 12px;
}

.feria-card-header h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
}

.feria-cards-container .button-main {
  font-size: 26px;
  width: 270px;
}

.feria-card-buttons {
  display: flex;
  gap: 80px;
}

@media (max-width: 1400px) {
  .feria-card-header {
    font-size: 28px;
  }
}

@media (max-width: 950px) {
  .feria-card {
    width: 47%;
  }

  .feria-cards-container h2 {
    font-size: 44px;
    line-height: 1.1;
  }
}

@media (max-width: 500px) {
  .feria-cards-container {
    padding: 30px 0;
    gap: 50px;
  }

  .feria-card {
    width: 100%;
  }
}

/* Feria Comprometidos */

.feria-formato-container {
  padding: 120px;
  background-color: white;
  box-sizing: content-box;
}

.feria-formato {
  max-width: 1600px;
  width: 100%;
  margin: auto;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
}

.feria-formato-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feria-formato-image {
  display: flex;
  justify-content: center;
}

.feria-formato-text h2 {
  color: #24135f;
  font-size: 64px;
  font-weight: 700;
  margin: 0 0 40px 0;
  line-height: 68px;
  max-width: 680px;
  font-stretch: expanded;
}

.feria-formato-text p {
  color: #24135f;
  font-size: 20px;
  font-weight: 200;
  max-width: 680px;
  line-height: 26px;
  margin: 0px;
}

.feria-formato-image {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: content-box;
}

.feria-formato-image img {
  width: 500px;
  border-radius: 12px;
  border: 1px solid #d7d7d7;
  transition: all 300ms ease-in-out;
}

.feria-formato-image img:hover {
  transform: scale(1.025);
}

@media (max-width: 1450px) {
  .feria-formato-text h2 {
    font-size: 52px;
    line-height: 50px;
    margin: 0 0 30px 0;
  }

  .feria-formato-text p {
    font-size: 22px;
  }
}

@media (max-width: 1025px) {
  .feria-formato {
    flex-direction: column;
    gap: 40px;
  }

  .feria-formato > div {
    width: 100%;
  }

  .feria-formato-text h2 {
    max-width: 100%;
  }

  .feria-formato-text p {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .feria-formato > div {
    width: 100%;
  }

  .feria-formato-text h2 {
    font-size: 36px;
  }

  .feria-formato-text p {
    font-size: 20px;
    line-height: 28px;
  }
}

@media (max-width: 450px) {
  .feria-formato-container {
    padding: 60px 40px;
  }

  .feria-formato-image img {
    width: 100%;
  }
}

/* Feria video */

.feria-video-embed {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding-top: 120px;
  background: white;
}

.feria-video-embed iframe {
  aspect-ratio: 16 / 9;
  width: 84%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 20px;
}

@media (max-width: 1500px) {
  .feria-video-embed iframe {
    max-width: 100%;
    width: 94%;
  }
}

@media (max-width: 950px) {
  .feria-video-embed {
    padding-top: 70px;
  }
}

@media (max-width: 500px) {
  .feria-video-embed iframe {
    max-width: 100%;
    width: 91%;
  }
}
