@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

section {
    overflow: hidden;
}

section.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 100vh auto 130vh;
  background-color: #fff;
  grid-template-areas:
  "header header header"
  "content content content"
  "footer footer footer"
}

/*------- Estructura sitio -------*/
.grid-container header{
  grid-area: header;
  background-image: url('../img/bg_ferias_municipalidad.png');
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 85vh;
  position: relative;
}

.grid-container main {
  grid-area: content;
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
  min-height: 25vh;
  justify-content: center;
  background-image: url('../img/bg_trama_verde.svg');
  background-position: left;
  background-repeat: repeat-x;
  background-size: cover;
  background-color: #88ea7d;
  border-bottom: 10px solid #56bcc5;
}

.grid-container aside {
  grid-area: footer;
  background-image: url('../img/bg_fena.png');
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
  background-position: bottom;
  min-height: 130vh;
}

/*------- Estructura sitio -------*/

/* ----------------------header: titulo superior + llamado principal ----------------------*/

section.header .texto_negro {
  background-color: black;
  border-radius: 0px 0px 25px 25px;
  padding: 10px;
  position: relative;
  top: 0;
  width: 720px;
  left: 30%;
}

.texto_negro h3{
  font-family: 'Exo 2', sans-serif;
  color: #fff;
  margin: 0;
  padding: 5px;
  text-align: center;
  font-size: 18px;
}

section.header .texto_negro::after {
  content: '';
  display: block;
  border-top: 5px solid #7aea82;
  position: absolute;
  width: 50%;
  bottom: 0;
  left: 25%;
}

.llamado_principal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 10px;
}

.llamado_principal img {
  width: 25%;
}

.call_to_ferias {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.call_to_ferias h2 {
  font-size: 4em;
  font-family: 'Exo 2', sans-serif;
  color: black;
  font-weight: 900;
  margin: 0;
  line-height: 1em;
  text-align: center;
}

.call_to_ferias h3 {
  font-size: 1.5em;
  font-family: 'Exo 2', sans-serif;
  color: black;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

.call_to_ferias img.img-responsive.center-block {
  width: 99%;
}

header img.frutitas{
  position: absolute;
  bottom: 0;
  width: 100%;
}

/*---------- section content-principal: texto Calendario + texto Notebook ------*/

section.content-principal .col-md-12 {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

section.content-principal img{
  width: 10%;
}

section.content-principal p{
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2em;
  color: black;
  width: 65%;
}

section.content-principal2 .col-md-12 {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 35px;
}

section.content-principal2 img{
  width: 10%;
}

section.content-principal2 img.flecha {
  width: 7%;
}

section.content-principal2 p{
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2em;
  color: black;
  width: 60%;
  text-align: right;
}

section.boton .col-md-12{
  display: flex;
  flex-flow: row nowrap;
  min-height: 100px;
  justify-content: center;
  align-items: center;
}

.boton_inscripcion {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  background-color: black;
  width: fit-content;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  gap: 5px;
}

.boton_inscripcion h4 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2em;
  color: #fff;
  margin: 0;
  text-align: center;
}

.boton_inscripcion h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.6em;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-align: center;
}

.boton_inscripcion h2::after {
  content: '';
  display: block;
  border-top: 5px solid #7aea82;
  position: absolute;
  width: 150px;
  top: 85px;
}

/* ------------------main: Contenido persona verde------------------*/

section.ventana_informacion {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #d3eef1;
  padding: 2% 0;
}

section.ventana_informacion img{
  width: 45%;
  transition: all 0.5s;
}

section.ventana_informacion img:hover{
  transform: scale(1.05);
}

.content_ventana {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  width: 30%;
}

.content_ventana h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.5em;
  font-weight: 800;
  color: black;
  margin: 0;
  width: 55%;
}

.content_ventana p {
  font-family: 'Exo 2', sans-serif;
  font-size: 1em;
  color: black;
  font-weight: 500;
  margin: 25px 0;
  width: 75%;
}

.content_ventana img {
  width: 55%!important;
}

.contenido_verde  {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 35%;
  gap: 10px;
}

main img.feriante {
  width: 15%;
  position: absolute;
  bottom: -377px;
  right: 230px;
  z-index: 3;
}

.contenido_verde h4 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2em;
  color: black;
  text-align: center;
  margin: 0;
}

.contenido_verde img{
  width: 25%;
}

/*------------------aside: Video principal + Normativas ------------------*/

.col-md-12.video {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 50vh;
  padding: 3% 0;
}

.llamado_video_principal {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.llamado_video_principal h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4em;
  color: black;
  text-align: center;
  margin: 0;
}

.llamado_video_principal h3.verde {
  background-color: #7bb471;
  padding: 10px 30px;
  border-radius: 30px;
}

video.video_ferias {
  width: 560px;
}

.normativa_ley {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #74b474;
  width: fit-content;
  border-radius: 50px;
  padding: 0px 40px;
  margin: 0 auto;
  height: 70px;
}

.normativa_ley h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2em;
  background-color: #f7f7f7;
  color: black;
  margin: 0;
  padding: 5px 10px;
  border-radius: 12px;
}

.ley {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
}

.ley img {
  height: 35px;
}

.ley h5{
  font-family: 'Exo 2', sans-serif;
  font-size: 1em;
  color: #fff;
  text-align: center;
  margin: 0;
}

.ley a {
  color: #fff;
  text-decoration: none;
}

aside img.frutitas{
  position: absolute;
  bottom: 0;
  width: 100%;
}

.web-sii footer {
  margin: 0;
}

/*--------------- Botón -------------- */

button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  text-align: left;
}

button.learn-more {
  width: 70rem;
  height: auto;
}

button.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #88ea7d;
  border-radius: 1.625rem;
}

button.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

button.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

button.learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.2rem 0;
  margin: 0 0 0 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
/*text-transform: uppercase;*/
  font-family: 'Exo 2', sans-serif;
  font-size: 1.5em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
/*align-content: center; */
  justify-content: center;
  align-items: center;
}

button:hover .circle {
 width: 100%;
}

button:hover .circle .icon.arrow {
 background: #fff;
 transform: translate(1rem, 0);
}

button:hover .button-text {
 color: #fff;
}

.boton_principal{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin: 70px 0 10px 0;
}

/* FADE */
.box {
  background: none repeat scroll 0 0;
}

.animate {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

/*==== FADE IN UP ===*/
@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}

/*=== FADE IN UP Big ===*/

.fadeInUpBig {
  -webkit-animation-name: fadeInUpBig;
  animation-name: fadeInUpBig;
}

@-webkit-keyframes fadeInUpBig {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 2000px, 0);
    transform: translate3d(0, 2000px, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInUpBig {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 2000px, 0);
    transform: translate3d(0, 2000px, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
/*------------------ Media Queries ------------------*/

@media (width <= 1260px) {
section.header {
    min-height: 320px;
    background-size: contain;
}

.box.animate.fadeInUp img {
    width: 40%;
    position: relative;
    bottom: -10px;
    left: 32%;
    right: 0;
}

}

@media (width <= 1366px) {

section.grid-container {
  grid-template-rows: 140vh 45vh 180vh;
}

.grid-container header {
    min-height: 85vh;
}

.grid-container main {
    min-height: 35vh;
}

.grid-container aside {
    min-height: 80vh;
}

.col-md-12.video {
  min-height: 65vh;
}

main img.feriante {
    bottom: -684px;
    width: 22%;
    right: 90px;
}

}

@media (width <= 767px) {
section.header {
    min-height: 420px;
}

.box.animate.fadeInUp img {
    bottom: -100px;
}
}

@media (width <= 430px) {

.llamado_principal img {
  width: 45%;
}

section.grid-container {
  grid-template-rows: 115vh 45vh 100vh;
}

section.content-principal img {
  display: none;
}

section.content-principal p {
    width: fit-content;
    text-align: justify;
}

section.content-principal2 img.flecha {
    display: none;
}

section.content-principal2 p {
    width: fit-content;
    text-align: justify;
}

section.content-principal2 img {
    display: none;
}

.boton_inscripcion {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    background-color: black;
    width: fit-content;
    margin: 0;
    padding: 14px;
    border-radius: 16px;
}

header img.frutitas {
    position: absolute;
    bottom: 0;
    width: 350%;
}

.grid-container main {
    grid-area: content;
    background-color: #88ea7d;
    border-bottom: 10px solid #56bcc5;
    /* min-height: 35vh; */
    display: flex;
    flex-flow: row nowrap;
    gap: 10px;
    justify-content: center;
    background-image: url(../img/bg_trama_verde.svg);
    background-position: left;
    background-repeat: repeat-x;
    background-size: cover;
}

.contenido_verde {
    width: 85%;
}

.contenido_verde h4 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.6em;
    color: black;
    text-align: center;
    margin: 0;
}

.contenido_verde img {
    width: 45%;
}

main img.feriante {
  display: none;
}

section.ventana_informacion {
    flex-direction: column;
}

.content_ventana {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    width: 80%;
    gap: 10px;
}

.content_ventana h3 {
    width: initial;
}

.content_ventana img {
    width: 55% !important;
    margin: 0 auto;
}

.content_ventana p {
    text-align: center;
}

section.ventana_informacion img {
    width: 85%;
}

.llamado_video_principal h3.verde {
    background-color: #7bb471;
    padding: 10px 30px;
    border-radius: 50px;
    width: 80%;
}

iframe {
  width: 95%;
}

.normativa_ley{
  flex-direction: row;
  flex-wrap: nowrap;
  border-radius: 0;
}

.grid-container aside {
    grid-area: footer;
    background-image: none;
}

}