@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@font-face {
  font-family: 'TheSeasons'; /* El nombre que tú quieras darle */
  src: url('../fonts/fonnts.com-theseasons-lt.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* 👈 Esto evita que el texto sea invisible mientras carga */
}

@font-face {
  font-family: 'TheSeasons2'; /* El nombre que tú quieras darle */
  src: url('../fonts//The\ Seasons\ Light-normal-400-100.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* 👈 Esto evita que el texto sea invisible mientras carga */
}

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

body{
  font-size: 16px;
  font-family: 'Quicksand', sans-serif;
 line-height: 1.5rem;
 overflow-x: hidden;

}

h1,h2,h3{
  font-family: 'TheSeasons2',serif;
  font-weight: normal;
}

h2{
  font-size: clamp(4rem, 7vh, 6rem); /* Tamaño flexible según pantalla */
  text-align: center;
  line-height: 90%;
}

h3{
  font-size: 1.6rem;
  display: inline;
  padding: 5px;
}

h4{
  font-family: 'Inter';
  font-size: 1rem;
  font-weight: 200;

}

p{
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  white-space: balance;
}


/* HEADER */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.container{
max-width: 1024px;
width: 100%;
margin: 0px auto;
padding: 20px 40px;

}

.box-logo{
  grid-column: 2;
  display: flex;
  justify-content: center;
  z-index: 4;
}
.logo {
  width: 100px;
}

/* ICONO MENÚ HAMBURGUESA */


.navbar {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #777;
}



   /* Botón hamburguesa / X */
.menu-toggle {
  grid-column: 3;
  justify-self: end;
  margin: 20px;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  z-index: 3001; /* por encima del overlay */
  color: #333;
  transition: color 0.3s ease;
 
}

/* Cuando el menú está abierto, muestra la X blanca */
.nav-links.active ~ .menu-toggle {
  color: #fff;
}

/* 🔹 Botón cerrar "X" */
.menu-close {
  display: none;
  position: fixed;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 3001; /* por encima del overlay */
}

/* Mostrar "X" solo cuando el menú está activo */
.nav-links.active ~ .menu-close {
  display: block;
}

  .nav-links {
    position: fixed;             /* 🔹 Fijo a toda la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;               /* Pantalla completa */
    background: rgba(0, 0, 0, 0.8); /* 🔹 Fondo semitransparente */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    list-style: none;
    display: none;
    z-index: 2000;
    backdrop-filter: blur(6px);  /* 🔹 efecto moderno de difuminado */
    transition: opacity 0.4s ease;
    font-family: 'TheSeasons';
    letter-spacing: 2px;
    text-transform: uppercase;
    
  }

  .logo{
    width: 100px;
  }

  .nav-links.active {
    display: flex;
    z-index: 2000;
    animation: fadeIn 0.4s ease forwards;
  
  }


  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .nav-links li a {
    color: #fff;                 /* 🔹 texto blanco sobre fondo oscuro */
    font-size: 1.4rem;
    text-decoration: none;
  }

  .nav-links li a:hover {
    color: #f7c08a;              /* color acento */
  }


  .logo {
    width: 100px;
  }

  .images {
    flex-direction: column;
  }

  .overlay-text {
    position: static;
    margin-top: 10px;
  }

  .list {
    columns: 2;
  }


/* HERO */

.hero{
  position: relative;
  display: flex;
  flex-direction: column; /* Alinea imagen arriba y texto abajo */
  align-items: center;    /* Centra ambos horizontalmente */
  justify-content: center;
  padding: 40px 20px;
  min-height: 80vh; 
  max-width: 1024px;
width: 100%;
margin: 0px auto;
overflow: hidden;
}

.hero-image {
  position: relative;
  max-width: 600px;
  width: 70vw;
  aspect-ratio: 3/4;
  overflow: hidden;

}

.hero-image img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-image img.active{
  opacity: 1;
}

.hero-text-box {
  position: absolute; 
  bottom: 8%;
  left: 5%; 
   transform: translateY(0);
    width: 90%; 
    max-width: 600px;
}

.rectangle {
  position: absolute;
  top: 0;
  height: 600px;
  background-color: #cecece;
  width: 100%;
  margin: 0px auto;
}

.hero-text-box h1 {
  font-size: clamp(4rem, 6vw, 6rem);
  letter-spacing: 0px;
  color: #1a1a1a;
  line-height: 90%;
}



@media (max-width: 800px) {


  .hero-text-box {
    margin: 20px auto;
    position: static;
    text-align: center;
     color: #000000;
     width: 90%;
  }

    .hero-text-box h1{
    font-size: 12vw;
  
    
  }
  

  .hero-image{
    width: 80%;  

  }

  .hero{
  padding-top: 40px;
  padding-bottom: 5px;
  height: auto;
  width: auto;
  position: relative;
  display: flex;
  flex-direction: column; /* Alinea imagen arriba y texto abajo */
  align-items: center;    /* Centra ambos horizontalmente */
  justify-content: center;
  width: 100%;
   margin:0;
  }

  .rectangle{
    height: 100vw;
    
  }

h2{
  font-size: clamp(2rem, 7vh, 5rem); /* Tamaño flexible según pantalla */
  text-align: center;
  line-height: 90%;
}


}

/* TEXT HERO */

.text-content {
  text-align: center;
  max-width: 600px;
	width: 100%;
	margin: 10px auto;
	background-color: #FFFFFF;
	padding: 30px;
  padding-top: 0PX;
  text-align: center;
  line-height: 2rem;
  white-space: balance;
}

/* PORTFOLIO */
.galeria{
  position: relative;
  width: 100%;
  padding-bottom: 10%;

}

.slider{
  position: relative;
  width: 100vw;
  overflow: hidden;
  
  
  margin: 0 auto;

}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* 👈 Este padding es el que permite que se asomen las fotos laterales */
  padding: 0 10%;
  gap: 8px;
}

.slider-track::-webkit-scrollbar {
  display: none; /* Oculta barra en Chrome/Safari */
}

.items{
  flex: 0 0 auto; /* Cada foto ocupa todo el ancho */
  scroll-snap-align: center; /* Se alinea al centro */
  transition: transform 0.5s ease;
}

.items img{
  width: 100%;
  height: 80vw; 
  object-fit: cover;
  display: block;
  max-width: 600px;
  max-height: 600px;

}

.items:last-child {
  margin-right: -10%;
}

.items:first-child {
  margin-left: -10%;
}

@media (max-width: 768px) {

  .slider{
  position: relative;
  overflow: hidden;

}
  
.items img{
  width: 100%;
  height: 120vw; 
  object-fit: cover;
  display: block;
  max-height: 800px;
  max-width: 600px;

}

  .items{
 flex: 0 0 90%; /* Cada foto ocupa todo el ancho */
  scroll-snap-align: center; /* Se alinea al centro */
  transition: transform 0.5s ease;
}



  
}

/* Botones Estilo Minimalista */
.botons{
  max-width: 1024px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  margin: 0 auto;
  
}


.nav-btn {
  pointer-events: auto;
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  transition: 0.3s;
  background-color: transparent;
}

.nav-btn:hover { color: grey; }




/* QUIENES SOMOS */

.quisom{
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.quisom img{
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: cover;
}

.quisom p{
  text-align: justify;
  max-width: 450px;

}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  padding: 40px;
  gap: 30px;
  justify-content: center;
  max-width: 1024px;
  margin: 0 auto;
}

.btn-contacto{
  background-color: transparent;
  border: 0.5px solid #000;
  padding: 5px;
  font-family: 'Quicksand';
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-contacto:hover{
  background-color: #000;
  color: white;
}

a {
   color: inherit; /* usa el color del texto del contenedor */ 
   text-decoration: none; /* quita el subrayado */
  }
  
  a:visited { color: inherit; /* evita el color lila */ }
    
  a:hover { text-decoration: none; /* evita subrayado al pasar el ratón */ }


@media (max-width: 950px) {
  .grid{
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }

}




/* que capturamos */

.serveis{
  background-color: #cecece;

}

.titol h2{
  text-align: start;
  

}

.foto-serveis{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 60px;
  padding: 40px;
  justify-content: center;
  justify-items: center;
  align-items: center;
}

.foto-serveis figure{
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.foto-serveis figure img{
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 300px;
}

figcaption{
  text-align: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-top: 10px;
}

@media (max-width: 1100px) { .foto-serveis { gap: 30px; /* 🔥 es redueix l’espai, no la imatge */ } }

@media (max-width: 800px) {
  .foto-serveis{
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    width: 100%;
  
    
  }

  .titol h2{
  text-align: center;
  justify-content: center;
  font-size: clamp(2rem, 6vw, 8rem); /* Tamaño flexible según pantalla */
  
}


}

  .foto-serveis figure img{
  object-fit: cover;

}



/* CONTACTO */

.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Style inputs with type="text", select elements and textareas */
input, select, textarea {
  font-family: 'Quicksand', sans-serif;
  text-align: center;
  width: 50%; /* Full width */
  padding: 12px; /* Some padding */ 
  border: 1px;
  border-bottom: #111111;
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
  
}



/* textarea sí puede redimensionarse */ textarea { resize: vertical; }

form label{
  display: block;
  font-family: 'Quicksand', sans-serif;
  text-align: center;  
  color: #333;
  font-size: 0.9rem;
  padding-bottom: 0px;
  margin: 0px;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  width: 50%;
  margin: 0 auto;
}

/* Placeholders en todos los inputs y textarea */
input::placeholder,
textarea::placeholder {
  color: #333;      /* el color que quieras */
  opacity: 1;       /* importante para que no se vea transparente */
  font-family: 'Quicksand', sans-serif;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  
}

/* Firefox */
input::-moz-placeholder,
textarea::-moz-placeholder {
   font-family: 'Quicksand', sans-serif;
  color: #333;
  opacity: 1;
}



/* ESTILO ESPECIAL PARA EL DATE */
input[type="date"] {
 appearance: none; -webkit-appearance: none; 
 color: #333;
 } 
 
 



/* Style the submit button with a specific background color etc */
input[type=submit] {
  background-color: transparent;
  color: #000;
  padding: 14px 20px;
  border: 0.5px solid #000;
  cursor: pointer;
  width: 50%;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
  background-color: #111111;
  color: white;
}


/* Add a background color and some padding around the form */
.container-form {
  border: none;
  padding: 40px 0px;
  text-align: center;
}



/* ---------FOOTER----------- */

footer{
  padding: 20px;
  background-color: #cecece;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
}

footer a{
  color: #333;
}

.footer-text{
  display: flex;
  flex-direction: column;
  gap: 25px;
  font-size: 0.9rem;
  background-color: transparent;
  text-align: center;
  justify-content: center;
}

footer ul{
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none; 
  text-transform: uppercase;
  font-family: 'Quicksand';
  font-weight: 500;
}

footer img{
  width: 100%;
  max-width: 100px;
  margin: 0 auto;
}


footer p{
  font-weight: 200;
  line-height: 1.5rem;
}

.credits{
  display: flex;
  flex-direction: column;
  gap: 25px;
}

@media (min-width: 950px) {

 .credits{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
 
 }

 .credits > * {
  flex: 1;
  align-items: center;
  
 }

 

 }

 

.aviso{
  line-height: 1.8rem;
  
}

.aviso h3{
  font-family: 'Quicksand';
}


