@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Lexend:wght@100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Lexend:wght@100..900&family=Parkinsans:wght@300..800&display=swap');

body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}
*{
    box-sizing: border-box;
}
header {
  height: auto;
  width: 100%;
  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;
  margin:0;
  padding:0
}

.menu-button {
  display: none
}

/*inicio main*/
.espacio{
  height:142px;
}

.carousel{
    width: 100vw;
    height: 120vh;
    position: relative;
    overflow: hidden;
    margin-top: -50px;
}

.list{
    width: 100%;
    height: 100%;
}

.item{
    width: 100%;
    height: 100%;
    background-color: var(--background);
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
}
.item img.fruit{
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    pointer-events: none;
}
.item .content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 12rem;
    color: #eee;
    font-weight: bold;
    font-family: system-ui;
    text-transform: uppercase;
    white-space: nowrap;
}
.item.active{
    display: block;
}
.item.hidden{
    display: block;
    pointer-events: none;
    background-color: transparent;
    z-index: 1;
}


#prev,
#next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #eee9;
    background-color: #eee5;
    color: #eee;
    font-size: x-large;
    font-family: monospace;
    cursor: pointer;
    z-index: 15;
}
#prev{
    left: 20px;
}
#next{
    right: 20px;
}


@keyframes toActive{
    from{
        top: 100%;
        opacity: 0;
    }
}
@keyframes toOut{
    from{
        top: 50%;
        opacity: 1;
    }
}
.item.active img.fruit{
    animation: toActive 0.5s ease-in-out 1;
}
.item.hidden img.fruit{
    animation: toOut 0.8s ease-in-out 1;
    top: -100%;
    opacity: 0;
}
.item.active .content{
    animation: toActive 0.8s ease-in-out 1;
}
.item.hidden .content{
    opacity: 0;
}


.carousel.right .item.active img.fruit{
    animation: toActivePrev 0.5s ease-in-out 1;
}
.carousel.right .item.hidden img.fruit{
    animation: toOut 0.8s ease-in-out 1;
    top: 100%;
    opacity: 0;
}
.carousel.right .item.active .content{
    animation: toActivePrev 0.8s ease-in-out 1;
}


@keyframes toActivePrev{
    from{
        top: 0;
        opacity: 0;
    }
}





:root{
    --width-mockup: calc(371px / 1.5);
    --height-mockup: calc(673px / 1.5);
}

.mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    --left: 0%; /* Control de posición lateral */
    transform: translate(-50%, -50%);
    height: var(--height-mockup);
    width: var(--width-mockup);

}

.leaves{
    position: absolute;
    width: 170px;
    height: 170px;
    background-size: 100%;
    top: calc((50% - (var(--height-mockup) / 1.7)));
    left: calc((50% + (var(--width-mockup) / 5)));
}
.shadow{
    width: var(--width-mockup);
    height: 100px;
    background-color: #0008;
    border-radius: 50%;
    position: absolute;
    top:  calc((50% + (var(--height-mockup) / 2)));
    left: 50%;
    transform: translateX(-50%);
    filter: blur(20px);
}
@media screen and (max-width: 768px) {
    .item .content{
        transform: translate(-50%, -50%) scale(.5);
    }
    .item img.fruit{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#compra {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    text-align:center;
    grid-gap: 30px; 
    margin: 30px;
}

#compra div{
    border: 1px solid gray;
    border-radius: 20px;
    font-size: 35px;
    font-family: "Parkinsans", sans-serif;
    width: 100%
}

#compra div img{
    max-width: 100%;
    height:30vw;
    border-radius:20px;
    margin: 10px;

}

#compra h3{
  font-size: 40%;
}

#compra div button{
    font-size: 40%;
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #2D5643;
    width: 50%
}

@media(max-width: 850px){
  #compra{
    grid-template-columns: 1fr 1fr;
  }
  #compra div{
    width: 40vw;
  }
}



#calidad{
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center; 
    font-family: "Parkinsans", sans-serif;
    align-items: center;
}

#calidad h2{
    font-size: 60px;
}

#calidad p{
    padding: 20px;
}
#calidad img{
    height: auto;
    width: 100%;
    padding: 20px;
    border-radius: 100px;
}

.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: Arial, 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 */
    background: #fff; /* Fondo para que el texto no esté cubierto por 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 */
}

.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;
}

#tiempo{
    display:grid;
    grid-template-rows: 1fr 1fr;
    margin-left: 3vh;
    margin-right: 3vh;
    background-image: url("imghome/gotasAceiteFondo.png");
}

.vertical{
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

#tiempo div{
    border-radius: 20px;
    background-color:transparent;
    text-align:center;
    padding-left: 10px;
    padding-right: 10px;
}

/* Adaptación para dispositivos móviles */
@media (max-width: 768px) {
  #tiempo {
      grid-template-columns: 1fr 1fr;
      padding-top:50px;
      height: 800px;
  }

  #tiempo button {
     width:100px
  }
  #btnCosecha{
    margin-top: 100px;
  }

  .util-space {
      display: none; /* Opcional: Oculta espacios vacíos */
  }
  .util {
    width:100%
 }
  .vertical{
    grid-template-columns: 1fr;
    width:100%
  }
}

.util{
    font-family: "Lexend", serif;/* Calcular el retraso en función del índice */
}

#btnCultivo, #btnCosecha, #btnLimpieza, #btnMolienda, #btnBatido, #btnExtraccion, #btnFiltrado, #btnAlmacenamiento {
    border-radius: 20px;
    background-color:transparent;
    margin-top: 10vh;
    text-align:center;
    padding-left: 10px;
    padding-right: 10px;
    width: 11vw;
    background-color:white;
}

#btnCosecha, #btnMolienda, #btnExtraccion, #btnAlmacenamiento{
    transform: translateY(-110px);

}

#btnCultivo{
    background-image: url("home/imghome/fotoArbolOliva.jpg")
}
.util h1{
    font-size: 6vh;
    font-weight: bold;
    background-color: black;
    border-radius: 10px;
    color: white;
    padding-top: 15px;
    padding-bottom: 15px;
}

.util h2{
    font-size: 2vh;
}   

dialog {
    text-align:center;
    width: 450px;
    font-family: "Lexend", serif;
    border-radius: 20px;
}

dialog img{
    max-width: 400px;
    height:400px;
}

dialog button{
    width:90%;
    padding: 10px;
    background-color: olivedrab;
    font-family:"Lexend", serif;
    border-radius: 20px;
    
}

@keyframes crecer {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
  }

  @keyframes cicloCompleto {
    0% { opacity: 1; }
    100% { opacity: 1; }
  }

#seguinos{
    display: grid;
    grid-template-columns: 1fr 2fr;
    justify-content: center;
}

.columna1{
    border-radius: 90px;
    height: auto;
    width: 30%;
    margin: 40px;
}

.instagram-media{
    height: 380px;
}

.columna2{
    display: grid;
    grid-template-rows: 1fr 1fr;
    place-items: center;
    justify-content: center;
}

.fila1{
    justify-content: left;
    margin-top: 35px;
    text-align: center;
    font-family: "Lexend", serif;
    font-size: 45px;
    padding: 20px
}

.fila2{
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-gap:10px;
    text-align: center;
    
}


.fila2 img{
    height: 100%;
    width: 100%;
    border-radius:20px;
}

footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: olivedrab;
    color: white;
    font-family: "Ubuntu", sans-serif;
    overflow: hidden;
  }
  
  #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 {
    margin: 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; /* 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;
  }
  .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;
  }
  #calidad,
  #seguinos{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px
  }
}

@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%;
    height: 100%;
  }
  .columna1{
    display: none;
  }
  footer{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }

}
