
html {
  height: 100%;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{margin: 0;
    padding:0;
    overflow-x:hidden}

header {
  height: auto;
  width: auto;
  background: rgba(0,0,0,0.2);
  position: fixed;
  z-index: 1;
  align-items: center;
  text-align: center;
  justify-content: center;
  font-family: "Moderustic", sans-serif;
  font-weight: bold;
  border-radius: 10px 10px 0px 0px;
  transition: 0.2 ease
}

#navegacion1{
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
}

header img {
  width: 95px;
  height: 85px;
  transition: 0.5s ease;
  border-radius: 15px;
  padding: 5px;
}

header img:hover {
  pointer-events: visibleFill;
}


header ul {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 1fr;
  text-align: center;
  align-items: baseline;
  font-size: 30px;
  gap:90px;  
  margin-top: 30px
}

header li {
  list-style: none;

}

li a {
  color: white;
  text-decoration: none;
  font-size: 5vh;
  transition: 0.8s ease;
  padding: 5px;
}

li a:hover {
  color: black;
  text-decoration: none;
  font-weight: bold;
  background-color: white;
  border-radius: 10px;
}

#carrito{
  height: 100%;
  width: 100%
}

#carrito img{
  height: 60px;
  width: 60px;
  margin-top: 20px
}



.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px black;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar li {
  width: 100%;
}

.sidebar a {
  width: 100%;
  color: black;
}

.menu-button {
  display: none
}

/*esonconder menu normal y mostrar icono de menu*/
@media(max-width: 800px) {
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block; /* Asegura que sea visible */
    position: absolute; /* Para posicionarlo con precisión */
    top: 10px; /* Ajusta hacia arriba */
    right: 10px; /* Alinea hacia la derecha */
    z-index: 10; /* Asegura que esté en la parte superior */
  }

  header {
    grid-template-columns: 1fr; /* Simplifica el diseño del header */
    padding: 10px; /* Ajusta el espacio interno */
    max-height: 70px; /* Reduce la altura máxima */
  }

  .menu-button img {
    width: 80px; /* Tamaño del icono */
    height: 80px;
  }
}

@media(max-width: 630px){
  #info{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
  #Infraestructura, #arboles{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .sidebar {
    width: 100%;
  }
  footer{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
}


/*inicio main*/
.espacio{
  height:70px;
}

#inicio {
  padding-top: 15px;
  align-items: center;
  background-image: url("fotos/portadaFinca.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 60vw;
  padding-top:300px;
}

#texto {
  text-align: center;
  font-family: "Moderustic", sans-serif;
  color: white;
  background-color: black;
  padding-bottom: 15px;
  font-size: 35px;
}

#info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  grid-gap: 10px;
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;
  height: 100%;
  width: 100%;
}

#info a{
  text-decoration: none;
  color:black;
}


#info div {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 10px;
  background-color: white;
  text-align: center;
}

.primera-columna,
.segunda-columna,
.tercera-columna {
  flex: 1;
  /* Cada columna ocupa el mismo espacio */
  padding: 20px;
  margin: 10px;
}

.primera-columna div,
.segunda-columna div,
.tercera-columna div {
  display: flex;
  flex-direction: column;
  /* Asegura que el texto y la imagen estén en columnas */
  justify-content: center;
  align-items: center;
  text-align: center;
}

.primera-columna:hover,
.segunda-columna:hover,
.tercera-columna:hover {
  transform: translateY(-10px);
  /* Mueve la columna hacia arriba */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  /* Añade una sombra para dar un efecto de elevación */
}


#info div img {
  height: 250px;
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
  align-content: center;
  justify-content: center;
}

#info h3 {
  font-size: 25px;
  font-weight: bold;
  color: #b99374;
  text-decoration: underline;
  padding-bottom: 3px
}

/*inicio contadores*/
.counters{
  padding: 3em 2em;
  background: olivedrab;
  color: white;
  text-align:center;
}

.counters > div{
  max-width: 900px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:4em 2em;
}

.counter{
  position:relative;
}

counter h1{
  font-size: 3em;
  margin-bottom: 0.5em
}

.counter:not(:last-child)::before{
  content: "";
  background: white;
  position:absolute;
  width: 2px;
  height:3em;
  top:50%;
  transform: translateY(-50%);
  right:-1em;
}

@media screen and 
(max-width:900px) and (min-width: 501px){
  .counters > div{
    grid-template-columns: 1fr 1fr;
  }
  .counter:nth-child(2)::before{
    display:none;
  }
}

@media screen and (max-width:500px){
  .counters > div{
    grid-template-columns: 1fr;
    row-gap: 5em;
  }
  .counter:not(:last-child)::before{
    width:90%;
    height: 2px;
    top:initial;
    bottom: -3em;
    left:50%
    transform : translateX(-50%);
  }
}

/*final contadores*/



.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0; /* Espacio arriba y abajo del divisor */
    position: relative;
}

.divider-title {
  font-size: 24px; /* Tamaño del texto */
  font-weight: bold;
  text-align: center;
  font-family: "Moderustic", sans-serif; /* Cambia por tu fuente preferida */
  color: #333; /* Color del texto */
  position: relative;
  z-index: 1;
  padding: 0 20px; /* Espacio lateral para las líneas */
  
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex-grow: 1; /* Extiende las líneas para llenar el espacio */
  height: 2px; /* Grosor de las líneas */
  background: #aaa; /* Color de las líneas */
  display: block;
  margin: 0 10px; /* Espacio entre las líneas y el texto */
}

#texto1{
  font-size: 44px; /* Tamaño del texto */
  font-weight: bold;
  text-align: center;
  font-family: "Moderustic", sans-serif; /* Cambia por tu fuente preferida */
  color: #333; /* Color del texto */
  position: relative;
  z-index: 1;
  padding: 0 20px; /* Espacio lateral para las líneas */
   
  margin-top: 40px;
  margin-bottom: 20px

}

#Infraestructura {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  justify-content: center;
  text-align: center;
 
}

#Infraestructura img {
  width: 90%;
  height: 80%;
  border-radius: 10px;
}

#Infraestructura p {
  align-items: center;
  text-align: center;
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
  justify-content: center;
  
  line-height: 30.4px;
  padding: 10px;
  border-radius: 5px;
  position: relative;
  left: -18px;
}

#Infraestructura h2 {
  align-items: center;
  text-align: center;
  font-family: "Moderustic", sans-serif;
  font-size: 40px;
  justify-content: center;
  margin-bottom: 10px;
}

#Infraestructura a {
  text-decoration: none;
  font-family: "Ubuntu", sans-serif;
  padding: 5px 35px;
  background-color: darkgreen;
  border-radius: 5px;
  display:block;
  width: 60%;
  color: white;
  justify-content: center;
   box-shadow: 5px 5px 0px 0px #000000;
  text-align: center;
  margin-left: 70px;
}

#Infraestructura a:hover {
  box-shadow:0px 0px 0px 0px #000000
}

#arboles {
  display: grid;
  grid-template-columns: 2fr 3fr;
  align-items: center;
  justify-content: center;
}

#arboles img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

#arboles p {
  align-items: center;
  text-align: center;
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
  justify-content: center;
  line-height: 30.4px;
  padding: 10px;
  border-radius: 5px;
}

#arboles h2 {
  align-items: center;
  text-align: center;
  font-family: "Moderustic", sans-serif;
  font-size: 40px;
  justify-content: center;
  margin-bottom: 10px;
}

#arboles a {
  text-decoration: none;
  font-family: "Ubuntu", sans-serif;
  padding: 5px 15px;
  background-color: darkgreen;
  border-radius: 5px;
  display:block;
  width: 60%;
  margin-left:100px;
  color: white;
  justify-content: center;
   box-shadow: 5px 5px 0px 0px #000000;
  text-align: center;
  padding-right: 2px;
}

#arboles a:hover {
  box-shadow: 0px 0px #000000
}

#arboles .textoArboles {
  align-items: center;
  justify-content: center;
}

.slider {
  width: 100%;
  height:var(--height);
  overflow: hidden;
  mask: linear-gradient(
  to right,
  transparent,
  #000 15% 75%,
  transparent);
   align-items: center;
   margin-top: 20px;
   margin-bottom:20px;
   padding-top: 20px;
   padding-bottom:20px;
}

.slider .participacion{
  display: flex;
  width: 100%;
  min-width:calc(var(--width) * var(--quantity));
  position: relative;
}

.slider .participacion .logo{
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 11s linear infinite;
  animation-delay: calc((11s / var(--quantity)) * (var(--position) - 1) );
}

.slider .participacion .logo img{
  width: 100%;
  align-items: center;
  object-fit: contain;
}

@keyframes autoRun{
  from{
  left: 100%;
  }to{
  left: calc(var(--width) * -1);
  }
}

.slider:hover .logo{
animation-play-state: paused!important;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: olivedrab;
  color: white;
  font-family: "Ubuntu", sans-serif;
  max-width: 100%;
  overflow: hidden;
  padding: 10px
}

#columna1f {
  display: grid;
  grid-template-rows: 1fr 1fr;
  justify-content: center
}

footer img {
  height: 50px;
  width: 50px;
}

footer h3 {
  padding: 10px;
  font-size: 30px;
}

footer p {
  padding: 10px;
  font-size: 15px;
}

#redes a img {
  height: 40px;
  width: 40px;
  margin-left: 5px;
  border-radius: 10px;
  margin-top: 5px;
  transition: 0.2s ease
}


.logof {
  justify-content: center;
  align-items: center;
}

.logof img {
  height: 100px;
  width: 100px;
  background-color: white;
  border-radius: 20px;
  margin-top: 20px;
  padding: 10px;
}

#ubicacion iframe{
  height:150px
}

/* animacion de imagenes en la que mientras bajas aparecen */
@keyframes show {
  from {
    opacity: 0;
    scale: 25%
  }

  to {
    opacity: 1;
    scale: 100%
  }
}

#info img,
#Infraestructura img,
#arboles img {
  view-timeline-name: --image;
  view-timeline-axis: block;

  animation-timeline: --image;
  animation-name: show;

  animation-range: entry 25% cover 30%;
  animation-fill-mode: both
}

/*esonconder menu normal y mostrar icono de menu*/
@media(max-width: 800px) {
  .hideOnMobile {
    display: none;
  }
  header ul{
    margin-top:0px;
  }
  .menu-button {
    display: block;
    align-items: right;
    justify-content: right;
  }
  .menu-button img{
    justify-self: right;
  }
  li{
    margin-top:0;
    padding:0;
  }
  header{
    grid-template-columns: 3fr 1fr ;
    max-height: 90px;
  }
  #logo {
    align-items: left;
  }
  #navegacion2{
    align-items: right;
    justify-content: right;
  }
}

@media(max-width: 630px){
  #info{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
  #Infraestructura, #arboles{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .sidebar {
    width: 100%;
  }
  footer{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
}

