@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Thin.woff') format('woff');
    font-weight: 200;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
  }

  @font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
  }

  @font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
  }

  @font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
  }

  @font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Black.woff') format('woff');
    font-weight: 1000;
    font-style: normal;
  }
  

/* ------------------------ estils BODY/SECCIONS/FOOTER/HOME ------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 10px;
    overflow-x: hidden;
    background: #ffffff;
}

#landing{
    position: relative;
    width: 100%;
}

#landing section {
    border-radius: 15px;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    color: #131B1F;
    padding: 60px;
    justify-content: center;
}
#footer {
  border-radius: 15px;
  position: sticky;
  top: 0;
}
#home{
    border-radius: 15px;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    transition: background-color 0.3s ease;
    padding: 0;
    background:  #40BBFF;
}
#home.scrolled {
    background-color: white;
    transition: background-color 0.3s ease;
  }

/* ------------------------ HEADER I FLETXA ESTÀTICA ------------------------- */
.img{
    padding: 3px;
    background-color: white;
    width: 45px;
    height: 45px;
}
.header {
    z-index: 7;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-family: Poppins;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px; 
    box-sizing: border-box; 
    margin: 20px 0px;
}
.imglogo a{
    display: flex;
    background-color: white;
    height: 50px;
    width: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    z-index: 10;
}
.imglogo a:hover{
    border-radius: 50px;
box-shadow: 
0px 5px 10px #d2d4d4,  /* Shadow exterior */
-0px -5px 10px #ffffff,  /* Shadow exterior paralela */
inset 0 2px 5px rgba(255, 255, 255, 0.5);  /* Shadow interior */
}

#fletxa{
    position: fixed;
    bottom: 20px;
    right: 60px;
    z-index: 100;
}
.header a{
  text-decoration: none;
}
  .button {
    background:  #131B1F;
    box-shadow: 
    inset 0 2px 5px rgba(255, 255, 255, 0.636);  /* Shadow interior */
    align-items: center;
    display: flex;
    max-width: 400px;
    text-align: center;
    color: white;
    border: none;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.button:hover {
    background: #C7FEA0;
    transition: 0.3s;
    color:  #131B1F;
}
/* Responsive HEADER */
@media (max-width: 834px) {
    
    .header {
        z-index: 7;
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        height: 50px;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px 50px; 
        margin: 20px 0px;
        box-sizing: border-box; 
    }
    
}
@media (max-width: 312px){
    .button{
        display: none;
    }
}
@media (max-width: 412px) {
    
    .header {
        z-index: 7;
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        height: 40px;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px 20px; 
        margin: 20px 0px;
        box-sizing: border-box; 
    }
    
}

/* Responsive HOME, SECCIONS I FLETXA */
@media (max-width: 834px) {

    #home{
        border-radius: 15px;
        position: sticky;
        top: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        transition: background-color 0.3s ease;
        padding: 0;
        background:  #40BBFF;
    }

    #landing section {
    border-radius: 15px;
     position: sticky;
     top: 0;
     width: 100%;
     height: 100vh;
     display: flex;
     color: #131B1F;
     padding: 40px;
    flex-direction: column;
    }
    #fletxa{
    position: fixed;
    bottom: 20px;
    right: 40px;
    z-index: 100;
}

}
@media (max-width: 412px) {

    #home{
        border-radius: 0px;
        position: sticky;
        top: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        transition: background-color 0.3s ease;
        padding: 0;
        background:  #40BBFF;
    }

    #landing section {
    border-radius: 0px;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    color: #131B1F;
    padding: 30px 20px;
    flex-direction: column;
    font-size: 15px;
    }
    body {
        margin: 0px;
        overflow-x: hidden;
        background: #ffffff;
    }
    #fletxa{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}
}

   
   

/* ----------------------------------------------------- SECCIÓ HOME------------------------------------------------------------- */
  
  .parallax-wrapper {
    position: relative;
    height: auto;
    width: 100%;
    bottom: 0;
    z-index: 0;
  }

  .parallax-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
  }
  #home h1 {
    position: absolute;
    top: 22%;
    left: 50%;
    max-width: 650px;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    z-index: 10; 
    opacity: 0;
    animation: fadeIn 1.4s ease-in-out forwards;
  }
/* Necessari per al ScrollTrigger */
.scrollElement {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 4;
  }
/* -----------------------------------------------estils svg parallax------------------------------------------------- */

/* Container dels núvols */
.nuvols {
    position: absolute;
    bottom: 0;
    left: -5;
    width: 100%;
    height: auto;
    pointer-events: none;
  }
  
  /* Estils per als núvols */
  .nuvol {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
  }

  
#nuvol1 {
    z-index: 3;
    bottom: 0px;
  }
  
  #nuvol2 {
    z-index: 1;
    bottom: 15px;
  }
  
  #nuvol3 {
    z-index: 2;
    bottom: 60px;
    opacity: 0.8;
  }
  
  .cohet{
    position: absolute;
    top: 35%;
    left: 44%;
    width: 10%;
  }
  
@keyframes fadeIn {
    from {
        opacity: 0; 
    }
    to {
        opacity: 1; 
    }
}

/* Responsive */
@media (max-width: 850px) {

#home h1 {
    position: absolute;
    top: 22%;
    left: 50%;
    padding: 40px;
    width: 100%;
    max-width: 650px;
    transform: translate(-50%, -50%);
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    z-index: 10; 
    opacity: 0;
    animation: fadeIn 1.8s ease-in-out forwards;
  }
    
#nuvol3 {
  z-index: 2;
  bottom: 30px;
  opacity: 0.8;
}
.cohet{
  position: absolute;
  top: 70%;
  left: 44%;
  width: 15%;
}
}

@media (max-width: 412px) {
#home h1 {
  position: absolute;
  top: 25%;
  left: 50%;
  padding: 20px;
  width: 100%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  z-index: 10; 
  opacity: 0;
  animation: fadeIn 1.4s ease-in-out forwards;
}
.cohet{
  position: absolute;
  top: 75%;
  left: 42%;
  width: 20%;
}

}

/* ---------------------------------------SECCIÓ DESCRIPCIÓ--------------------------------------------------- */
#descripcio {
    background: #ffffff;
    z-index: 2;
    align-items: center;
    display: flex;
    gap: 50px;
    font-family: Poppins;
}

.text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 20px;
    max-width: 500px;
}
.text h2{
  font-size: 26px;
}
.text img{
    position: relative;
    left: 0px;
    max-width: 350px;
}
.visual{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    height: 100%;
}
.visual video{
    width: 100%;
    height: auto;
    object-fit: cover; 
    border-radius: 15px;
}
@media (max-width: 836px) {
  #descripcio {
    background: #ffffff;
    z-index: 2;
    justify-content: space-between;
    align-items: center;
    display: flex;
    width: 100%;
    font-family: Poppins;
    flex-direction: column;
}
.text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    height: auto;
    gap: 20px;
}
.visual{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    height: auto;
}
    .text img{
        position: relative;
        left: 0px;
        max-width: 250px;
    }
    .visual2{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 500px;
        height: 100%;
    }
    .text h2{
        font-size: 18px;
    }
}
/* ------------------------------------------SECCIÓ SERVEIS------------------------------------------------ */
#serveis {
    background: #F4F6F7;
    z-index: 3;
    justify-content: start;
    align-items: center;
    font-family: Poppins;
    gap: 40px;
    flex-direction: column;
}
.text-serveis{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    height: auto;
    gap: 20px;
    align-items: center;
    text-align: center;
}
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  width: 100%; 
  overflow: auto; 
}
  .card {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative; 
    display: flex;
    align-items: center;
    padding: 15px;
    color: #131B1F;
    overflow: hidden; 
    transition: all 0.3s ease;
  }
  .card:hover{
    background-color: #40BBFF;
    background-size: 0%;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); 
  }
   
  /* Estil del text per sobre */
  .card h3 {
    position: relative;
    text-align: center;
    z-index: 1;
    margin: 0;
    font-size: 26px;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 1);
  }

.card:hover h3 {
  display: none;
}

.card p {
  display: none;
  font-size: 16px;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.card:hover p {
  display: flex;
  color: white;
  z-index: 3;
}



  @media (max-width: 1200px) {
    .card h3 {
      position: relative;
      z-index: 1;
      margin: 0;
      text-shadow: 0px 0px 10px rgba(255, 255, 255, 1);
      font-size: 20px;
      font-weight: 600;
      font-family: Poppins;
    }
    .card {
      height: 200px;
      background-size: cover;
      background-position: center;
      border-radius: 12px;
      position: relative; 
      display: flex;
      align-items: center;
      padding: 15px;
      color: #131B1F;
      overflow: hidden; 
      transition: all 0.3s ease;
      }
  }
@media (max-width: 565px) {
    .container{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .container .card{
        width: 100%;
        max-width: 500px;
        height: auto;
        padding: 15px;
        display: flex;
        border-radius: 10px;
        justify-content: space-between;
    }
    .card h3 {
        position: relative;
        z-index: 1;
        margin: 0;
        text-shadow: 0px 0px 10px rgba(255, 255, 255, 1);
        font-size: 16px;
        font-weight: 600;
        font-family: Poppins;
      }
      .text-serveis{
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        gap: 10px;
        align-items: center;
        text-align: start;
    }
}
/* --------------------SECCIÓ DESCARREGAR------------------------- */
#descargar {
    background: #57c4ff;
    z-index: 4;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
    font-family: Poppins;
    display: flex;
}
.links{
    flex-direction: column;
    display: flex;
    width: 100%;  
    gap: 15px;  
}
.visual video{
  max-height: 400px;
}
#descargar img{
  width: 40%;
}
@media (max-width: 835px) {
  #descargar{
     flex-direction: column;
     gap: 100px;
  }

  .links{
        flex-direction: row;
        gap: 10px;
        display: flex;
        width: 200px;     
    }
    #descargar img{
  width: 100%;
}

}
/* ----------------------SECCIÓ CONTACTE------------------------- */
#contacte {
    background: #ffffff;
    z-index: 5;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins';
}
.fons-vector {
  position: absolute;
  opacity: 0.6;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none; /* perquè no intercepti clics */
}

.contenidor-contacte {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  max-width: 1800px;
  flex-wrap: wrap;
  z-index: 2;
}
.visual2{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    height: 100%;
}
.visual2 img{
  width: 100%;
  height: 100%;
  max-width: 450px;
  object-fit: cover;    
}
form h3{
  font-weight: 500;
  font-size: 1rem;
}
.visual2 {
  flex: 1;
  min-width: 300px;
}

.visual2 video {
  width: 100%;
  border-radius: 10px;
}

.formulari-container {
  background-color: white;
  flex: 1;
  min-width: 300px;
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 1000px;
}

input, textarea {
  font-family: 'Poppins';
  padding: 12px;
  font-size: 0.9rem;
  border: none;
  color: #131B1F;
  border-radius: 8px;
  width: 100%;
  background-color: #F4F6F7;
}

button {
  background:  #40BBFF;
  box-shadow: 
  inset 0 2px 5px rgba(255, 255, 255, 0.5); 
  width: 100%; 
  color: white;
  border: none;
  margin-top: 20px;
  padding: 10px;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 10px;
  }
button:hover {
  background: #007acc;
}
.missatge-exit {
  background-color: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: none;
}

/* Responsive */
@media (max-width: 835px) {
  .contenidor-contacte {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {

  .visual2 {
    display: none;
  }

  input, textarea, button {
    font-size: 0.8rem;
    padding: 10px;
  }
}


/* -------------------------------------------FOOTER--------------------------------------------- */
#footer {
    background: #131B1F;
    height: auto;
    color: white;
    text-align: center;
    padding: 30px 100px;
    z-index: 6;
    justify-content: space-between;
    align-items: end;
    font-family: 'Poppins';
}

.footer-contenidor {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  max-height: 1200px;
  gap: 15px;
  text-align: start;
}

.footer-col {
  flex: 1;
  min-width: 150px;
  height: 100%;
}
.footer-col a{
  font-size: 0.85rem;
}

.footer-contenidor p {
  color: white;
  font-size: 0.65rem;
  text-decoration: none;
}



.footer-col a:hover {
  text-decoration: underline;
}

.xarxes-socials  a{
  margin-right: 10px;
  font-size: 2rem;
  gap: 15px;
  color: white;
}

.enllacos {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}

.logo img {
  max-width: 80px;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-contenidor {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .xarxes-socials {
    justify-content: center;
  }

  .logo {
    margin-top: 20px;
  }
}
@media (max-width: 412px) {
  #footer{
    padding: 20px;
    border-radius: 0px;
  }
}

