@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;500;900&display=swap');
@import 'mediaqueries.css';
@font-face {
  font-family: "Good";
  src: url("good.ttf") format("truetype");
}

@font-face {
  font-family: "nimbus";
  src: url("/font/nimbus.otf") format("opentype");
}

@font-face {
  font-family: "cool";
  src: url("/font/cool.otf") format("opentype");
}


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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
}


.hero {
  width: 100vw;
  height: 100vh;
  background-image: url(../img/vectores/vector-1.png);
  max-width: 100%;
}

.fruta{
  display: none;
}

.top-header {
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url(../img/fondoweb.jpg) ;
  background-size: cover;
  color: white;
  font-size: 12px;
  height: 35px;
  display: flex;
  justify-content: right;
  align-items: center;
  
}

.felip_font{
  font-family: "nimbus";
  text-align: center;
  align-items: center;
  font-size: 15px;
  margin: 0 50px;
  transition: 0.5s;
  text-decoration: none;
  
}

.felip_font:hover{
  color: black;
  animation: wave 2s infinite;
}


@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.social{
  margin-right: 25px;
}

.social a {
  color: white;
  margin-right: 15px;
  font-size: 16px;
  transition: 0.3s;

}

.social a i:hover {
  color: black;
  animation: wave 2s infinite;
}

.social2{
  margin-right: 25px;
}

.social2 a {
  color: white;
  margin-right: 15px;
  font-size: 24px;
  transition: 0.3s;

}

.social2 a i:hover {
  color: #f7b733;
  animation: wave 2s infinite;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.header{
  position: relative;
  background-image: url(../img/header3.jpg);
  height: 120px;
  background-size: 100% 100%;
  box-shadow:
  0 -1px 4px rgba(0,0,0,0.8),
  0 1px 4px rgba(0,0,0,0.8);
  border-bottom: 2px solid #38322d;
  align-items: center;
  display: flex;

  
}



.badge {
  position: absolute;
  top: 5px;
  right: 5px;  /* esquina superior derecha */
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.badge2 {
  position: absolute;
  top: 5px;
  left: 5px;  /* esquina superior derecha */
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.badge3 {
  position: absolute;
  top: 5px;
  left: 50%;  /* esquina superior derecha */
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.navbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar .brand {
  color: #f7b733;
  margin-top: 5px;
  padding-left: 20px;
  margin-left: 20px;
}

.navbar .menu {
  grid-column: 6 / 9;
  display: flex;
  margin-top: 18px;

  justify-self: end; 
}



.menu li {
  list-style: none;
}

.menu li a {
  text-decoration: none;
  margin-right: 3em;
  font-size: 1.3em;
  color: #fff;
  font-weight: 200;
  padding: 10px 20px;
  margin-left: -35px;
}
.menu li a:hover {
  background-color: #f7b733;
  transition: all .5s;
  color: #000;
}

#active {
  color: #f7b733;
}

#active:hover {
  color: black;
}


.menu-bar {
  display: none;
}



.titol{

  font-family: "Good";
  font-size: 35px;
  user-select: none;
  color: #f7b733;
   -webkit-text-stroke: 0.2px #f7b733;
}

.titol2{
  font-family: "Good";
  color: white;
  font-size: 55px;
  user-select: none;
  color: white;
  text-shadow:
    -2px -2px 0 rgb(85, 162, 85),
     2px -2px 0 rgb(85, 162, 85),
    -2px  2px 0 rgb(85, 162, 85),
     2px  2px 0 rgb(85, 162, 85);
}

.titol3{
  font-family: "Good";
  color: white;
  font-size: 35px;
  user-select: none;
  color: white;
  text-shadow:
    -2px -2px 0 rgb(85, 162, 85),
     2px -2px 0 rgb(85, 162, 85),
    -2px  2px 0 rgb(85, 162, 85),
     2px  2px 0 rgb(85, 162, 85);
}

/* MAIN SECTION */

.main {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.content-info {
  margin-top: 5em;
  color: #fff;
}

button {
  cursor: pointer;
  color: #fff;
  box-shadow: 0px 3px 14px -8px rgba(0,0,0,0.78);
}
button:hover {
  box-shadow: none;
}

.btn-toBuy, .read-more {
  background-color: #ca4172;
  padding: 8px 40px;
  font-size: 1.2em;
  border-radius: 20px;
  border: none;
}

.read-more {
  background: none;
  border: 1px solid #fff;
  margin: 20px;
}

.main img {
  margin-top: 3em;
}

/* ABOUT SECTION */

.fondo{
  border-radius: 50px;
  width: 500px;
}

.fondo:hover{
  border-radius: 50px;
  width: 500px;
  filter: opacity(.8);
}

.logo{
  width: 500px;
  padding-right: -100px;
}

.logo:hover{
  width: 500px;
  padding-right: -100px;
  filter: opacity(.6);
}

.about h2 {
  display: block !important;    /* Força que ocupi tota la línia */
  width: 100% !important;       /* Ocupa el 100% de la pantalla */
  text-align: center !important;/* Força el centrat absolut */
  font-size: 2em;
  font-weight: bold;
  margin-left: auto !important; /* Centrat de marges */
  margin-right: auto !important;
  margin-bottom: .3em;
}

.about .divider, .products .divider {
  background-color: rgb(85, 162, 85);
  width: 50px;
  height: 3px;
  margin: 0 auto;
}

.about .about-content {
  width: 100%;
  justify-content: center;
  display: grid;
  display: flex;
  align-items: center;
}

.about .about-info {
  margin: 4em;
}

.about .about-info h3 {
  text-transform: uppercase;
  margin-bottom: 1em;
}

/* PRODUCTS SECTION */

.products{
  padding-top: 120px;
}

.card{
  min-width: 300px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 4px 10px rgba(0,0,0,0.1);

  scroll-snap-align: start;
  flex-shrink: 0;
}

.card img{
  width: 100%;
  display: block;
}

.card h2{
  margin: 15px;
}

.card p{
  margin: 0 15px 15px;
}

.marcas{
  width: 190px;
  height: 190px;
}

.marcasp{
  width: 190px;
  height: 190px;
}

.products h2 {
  text-align: center;
  font-weight: bold;
}

.products .divider {
  margin-bottom: 8em;
}

.products .container-products {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  padding: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.container-products::-webkit-scrollbar{
  height: 8px;
}

.container-products::-webkit-scrollbar-thumb{
  background: #999;
  border-radius: 10px;
}
.content-products-info,
.content-price,
.btn-content {
  display: flex;
  justify-content: center;
}

.content-product-info {
  display: flex;
  justify-content: center;
}

.content-product-info .stars {
  margin-right: 20px;
  text-align: center;

}
.content-product-info h4 {
  text-transform: uppercase;
  text-align: center;
}

.products .content-price .last-price {
  text-decoration: line-through;
  font-weight: lighter;
  margin-right: 20px;
}

.products .content-price .new-price {
  background-color: #ca4172;
  padding: 5px 10px;
  color: #fff;
}

.products .btn-product {
  margin: 20px;
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  color: #000;
}



/* SUPPORT SECTION */

.dubte{
  width: 250px;
  height: 250px;
}

.support {
  margin-top: 5em;
  background-color: rgb(85, 162, 85);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
  font-family: 'cool';
}

.support h2 {
  font-family: 'cool';
  color: #fff;
  font-size: 3em;
  font-weight: 300;
}

/*  BANNER SECTION */

.mercat{
  width: 100%;
  height: 100%;
}

.banner {

  background-image:
    url(../img/fondo2.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: auto;
  width: 100vw;
  max-width: 100%;
  align-items: center;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  height: 100vh;
  display: flex;
  justify-content: center;
}

.contenedor {
  display: grid;
  /* Defineix 3 columnes fixes per a pantalles grans */
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  padding: 20px;
  margin-bottom: 60px;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

/* ─── AQUÍ ESTÀ EL TRUC PER A LES LÍNIES ─── */
.item:not(:last-child) {
  /* Afegeix una línia a la dreta de cada ítem, excepte a l'últim */
  border-right: 3px solid green; /* Pots canviar el color (#ccc) pel que vulguis */
  padding-right: 20px;          /* Espai entre el text i la línia perquè no quedi enganxat */
}


/* Opcional: Para asegurarte de que las imágenes no hagan cosas raras */
.item img {
  display: block;
  object-fit: contain;
  width: 50px;
}

@media (min-width: 769px) {
  .item:not(:last-child) {
    border-right: 3px solid green; /* Línia a la dreta */
    padding-right: 20px;          
  }
}

/* ─── RESPONSIVE SENSE LÍNIES (MÒBILS) ─── */
@media (max-width: 768px) {
  .contenedor {
    grid-template-columns: 1fr; /* Es posen un sota l'altre */
    gap: 40px; /* Un pèl més d'espai lliure entre elements perquè es vegi endreçat */
  }

  .item:not(:last-child) {
    border: none; /* Ens assegurem que no hi hagi cap vora */
    padding-bottom: 0;
  }
}

/* Opcional: Imatges */
.item img {
  display: block;
  object-fit: contain;
  width: 50px;
}

.contenedor .divider{
  background-color: rgb(85, 162, 85);
  width: 3px;
  height: 50px;
  
}

.banner .rating {
  grid-column: 3 / 4;
}
.banner .rating {
  text-align: center;
}

.maps{
      width: 100vh;
    }


.banner h2 {
  font-size: 3em;
}

.secundary-info h2,
.secundary-info h3 {
  margin-bottom: 10px;
}

/*  FOOTER SECTION */

.footer {
  background-image: url(../img/header3.jpg);
  background-size: 100% 100%;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  padding: 30px;
  display: flex;
  height: 70px;
  justify-content: space-around;
  align-items: center;
}

.footer .menu li {
  margin-top: 20px;
}

.footer .social-network .fab {
  font-size: 1.8em;
  margin: 10px;
}

.footer .social-network .fab:hover {
  color: #f7b733;
}

.brand-name{
  font-family: "good";
  font-size: 35px;
  color: #f7b733;
  user-select: none;
}

.footer h2,
.footer p{
  margin: 0;
}

/* SLIDER */

#container-slider
{
    position: relative;
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}
#slider {
    position: relative;
    display: block;
    width: 100%;
    height: 70vh;
    min-height: 300px;
}
#slider li {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 100%;
    display: block;
    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -ms-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;
    z-index: -1;
    opacity: 0;
}
#container-slider .arrowPrev, #container-slider .arrowNext{
    font-size: 30pt;
    color: rgba(204, 204, 204, 0.65);
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50px;
    z-index: 2; 
    text-shadow:
  0 -1px 1px rgba(0,0,0,0.5),
  0 1px 1px rgba(0,0,0,0.5);

}
#container-slider .arrowNext {
    left: initial;
    right: 50px !important;
}
.content_slider{
    padding: 15px 30px;
    color: #FFF;
    width: 70%;
    height: 100%;
}
.content_slider div{
    text-align: left;
    color: black;
}
.content_slider h2{
    font-family: 'cool';
    font-size: 40pt;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-style: bold;
    color: green;
}
.content_slider p {
    font-size: 15pt;
    font-family: 'cool';
    color: black;
    margin-bottom: 20px;
}
#slider li .content_slider{

    padding: 10px 125px;
}
.content_slider{
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btnSlider{
    color: #FFF;
    font-size: 25pt;
    font-family: 'arial';
    letter-spacing: 1px;
    padding: 10px 50px;
    border: 1px solid #CCC;
    background: green;
    border-radius: 31px;
    text-decoration: none;
    transition: .5s all;
}
.btnSlider:hover{
    background: #111;
    border: 1px solid #111;
    color: white;
}
.listslider {
    position: absolute;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 50%;
    bottom: 5%;
    list-style: none;
    z-index: 2;
    transform: translateX(-50%);
}
.listslider li {
    border-radius: 50%;
    width: 10px;
    height: 10px;
    cursor: pointer;
    margin: 0 5px;
}
.listslider li a {
    background: #CCC;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: block;
}
.item-select-slid {
    background: #FFF  !important;
}

@media screen and (max-width: 460px){
	.content_slider h2 {
	    font-size: 15pt !important;
	}
	.content_slider p {
	    font-size: 12pt !important;
	}
	#container-slider .arrowPrev, #container-slider .arrowNext{
		font-size: 20pt;
	}
	#container-slider .arrowPrev{
		left: 15px;
	}
	#container-slider .arrowNext{
		right: 15px !important;
	}
	#slider{
		height: 400px;
		min-height: 400px;
	}
	#slider li .content_slider{
		padding: 10px 35px;
	}
	.btnSlider{
		padding: 10px 30px;
    	font-size: 10pt;
	}

}

/* PRODUCTES */

#productes{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;
}

.products h2 {
     font-size: 50px;
   }


#productes .wrapper{
  margin:0;
}

.wrapper{
  width: 300px;
  height: 500px;
  background: white;
  margin: auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 10px 10px;
  box-shadow: 0;
  transform: scale(0.95);
  transition: box-shadow 0.5s, transform 0.5s;
  &:hover{
    transform: scale(1);
    box-shadow: 5px 20px 30px rgba(0,0,0,0.2);
  }
  
  .container{
    width:100%;
    height:100%;
    .top{
      height: 80%;
      width:100%;
      background: url(https://nectarfruit.es/wp-content/uploads/2020/05/Nectarfruit-57.png) no-repeat center center; 
  -webkit-background-size: 100%;
  -moz-background-size: 100%;
  -o-background-size: 100%;
  background-size: 100%;
    }
    .bottom{
      width: 200%;
      height: 20%;
      transition: transform 0.5s;
      &.clicked{
        transform: translateX(-50%);
      }
      h1{
          margin:0;
          padding:0;
      }
      p{
          margin:0;
          padding:0;
      }
      .left{
        height:100%;
        width: 50%;
        background: #f4f4f4;
        position:relative;
        float:left;
        .details{
          padding: 20px;
          float: left;
          width: calc(70% - 40px);
        }
        .buy{
          float:right;
          width: calc(30% - 2px);
          height:100%;
          background: #f1f1f1;
          transition: background 0.5s;
          border-left:solid thin rgba(0,0,0,0.1);
          i{
            font-size:30px;
            padding:30px;
            color: #254053;
            transition: transform 0.5s;
          }
          &:hover{
            background: #A6CDDE;
          }
          &:hover i{
            transform: translateY(5px);
            color:#00394B;
          }
        }
      }
      .right{
        width: 50%;
        background: #A6CDDE;
        color: white;
        float:right;
        height:200%;
        overflow: hidden;
        .details{
          padding: 20px;
          float: right;
          width: calc(70% - 40px);
        }
        .done{
          width: calc(30% - 2px);
          float:left;
          transition: transform 0.5s;
          border-right:solid thin rgba(255,255,255,0.3);
          height:50%;
          i{
            font-size:30px;
            padding:30px;
            color: white;
          }
        }
        .remove{
          width: calc(30% - 1px);
          clear: both;
          border-right:solid thin rgba(255,255,255,0.3);
          height:50%;
          background: #BC3B59;
          transition: transform 0.5s, background 0.5s;
          &:hover{
            background: #9B2847;
          }
          &:hover i{
            transform: translateY(5px);
          }
          i{
            transition: transform 0.5s;
            font-size:30px;
            padding:30px;
            color: white;
          }
        }
        &:hover{
          .remove, .done{
            transform: translateY(-100%);
          }
        }
      }
    }
  }
  
  .inside{
    z-index:9;
    background: #92879B;
    width:140px;
    height:140px;
    position: absolute;
    top: -70px;
    right: -70px;
    border-radius: 0px 0px 200px 200px;
    transition: all 0.5s, border-radius 2s, top 1s;
    overflow: hidden;
    .icon{
      position:absolute;
      right:85px;
      top:85px;
      color:white;
      opacity: 1;
    }
    &:hover{
      width:100%;
      right:0;
      top:0;
      border-radius: 0;
      height:80%;
      .icon{
        opacity: 0;
        right:15px;
        top:15px;
      }
      .contents{
        opacity: 1;
        transform: scale(1);
        transform: translateY(0);
      }
    }
    .contents{
      padding: 5%;
      opacity: 0;
      transform: scale(0.5);
      transform: translateY(-200%);
      transition: opacity 0.2s, transform 0.8s;
      table{
        text-align:center;
        width:100%;
      }
      h1, p, table{
        color: white;
      }
      p{
        font-size:13px;
      }
    }
  }
}

/* Forcem que totes les seccions de productes es comportin igual */
body .products {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* Això obliga a que TOT el que hi ha dins es centri */
  width: 100% !important;
}

/* Forcem el text de tots els H2 de productes al centre */
body .products h2 {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: .3em;
}

/* Forcem les línies divisòries al centre exacte */
body .products .divider {
  background-color: rgb(85, 162, 85) !important;
  width: 50px !important;
  height: 3px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 3em !important;
}

/* Re-assegurem que els blocs de productes es quedin ben centrats a sota */
body .products #productes {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

/* ==========================================================================
   CENTRAT ABSOLUT DEL TÍTOL "ON SOM?" I EL MAPA
   ========================================================================= */

/* Corregim el contenidor de la secció del mapa */
body .banner {
  display: flex !important;
  flex-direction: column !important; /* Posem els elements un sota de l'altre */
  align-items: center !important;    /* Centra el títol i el mapa a la pantalla */
  justify-content: center !important;
  height: auto !important;           /* Deixem que s'adapti al contingut */
  padding: 60px 20px !important; 
  margin-bottom: 100px;    /* Un bon espaiat a dalt i a baix */
}

/* Forcem el div intern a ocupar tot l'espai i centrar el text */
body .secundary-info {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;    /* Força que l'iframe del mapa es centri */
  text-align: center !important;     /* Força que el text de l'H2 es centri */
}

/* Assegurem que l'H2 de "On som?" es quedi clavat al mig */
body .secundary-info h2 {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  color: black !important;
  font-size: 3em;
  margin-bottom: 20px !important;    /* Espai entre el títol i el mapa */
}

/* Fem que el mapa sigui responsiu i es vegi bé a tot arreu */
body .maps {
  max-width: 100% !important;        /* Evita que el mapa surti de la pantalla en mòbils */
  border-radius: 15px !important;    /* Un toc estètic amb les vores arrodonides, a joc amb la web */
}