* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: coco3;
  src: url(./tipografia/creato/CreatoDisplay-Light.otf);
}

@font-face {
  font-family: coco;
  src: url(./tipografia/cocogoose/Cocogoose-Pro-Bold-Italic-trial.ttf);
}

@font-face {
  font-family: coco2;
  src: url(./tipografia/creato/CreatoDisplay-Black.otf);
}

.background {
  position:absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  z-index: -1;
  background-size:cover; /* Cambiado de cover a contain */
  background-repeat: no-repeat; /* Evitar que se repita la imagen */
  background-position:center; /* Centra la imagen en el contenedor */
  animation: changeBackground 13s infinite;
}

.texto {
  position: absolute;
  top: 60%;
  
  color: #004B85;
  font-size: 2rem; /* Tamaño del texto */
 
  padding: 20px;
  background: #ffffff8f; /* Fondo semitransparente */
  border-radius: 10px; /* Bordes redondeados */
  max-width: 90%; /* Ancho máximo */
}

@media (max-width: 768px) {
  .texto {
    position: absolute;
    top: 60%;
    
    color: #004B85;
    font-size: 1.5rem; /* Tamaño del texto */
   
    padding: 20px;
    background: #ffffff8f; /* Fondo semitransparente */
    border-radius: 10px; /* Bordes redondeados */
    max-width: 90%; /* Ancho máximo */
  }
}







@keyframes changeBackground {
  0%, 33% {
      background-image: url('./assets/inicio/4953beaba6947e901f540c264ec8821b.jpg');
  }
  67% {
      background-image: url('./assets/inicio/be56050deeffdf0247d4bc81fdc97dce.jpg');
  }
  100% {
      background-image: url('./assets/inicio/pixelcut-export.jpeg');
  }
}

main {
  padding: 20px;
  color: white;
}

footer {
  padding: 10px;
  color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .section img {
  width: 180px;
  transition: transform 0.3s ease;
}

header .section img:hover {
  transform: scale(1.1);
}

header .sectionnav nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

header .sectionnav nav ul a {
  margin: 0 15px;
  color: hsl(220, 6%, 21%);
  font-size: 1.1rem;
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

header .sectionnav nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(220, 70%, 40%);
  transition: width 0.3s ease;
}

header .sectionnav nav a:hover {
  color: hsl(220, 70%, 40%);
}

header .sectionnav nav a:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px;
  }

  header .section {
    margin-bottom: 15px;
  }

  header .sectionnav nav ul {
    flex-direction: column;
    align-items: center;
  }

  header .section img {
    width: 150px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px;
  }

  header .section img {
    width: 120px;
  }

  header .sectionnav nav a {
    font-size: 1rem;
  }
}

/* MAIN */
.presupuestos1 {
  display: flex;
  justify-content: flex-start;
  margin-left: 6%;
  margin-top: 50vh;
}

.presupuestos1 h1 {
  margin-top: 20vh;
  font-size: 6vw; /* Cambiado a unidades relativas */
  font-family: 'coco2', sans-serif;
  color: #004B85;
}

.presupuestos {
  display: flex;
  flex-direction: column; /* Cambiado para apilar elementos */
  align-items: flex-start;
  margin: 3vh 6%;
}

.presupuestos h3 {
  font-family: 'coco2', sans-serif;
  color: black;
  max-width: 90%; /* Ajustado para mejor responsividad */
}

.presupuestos a {
  width: 80%; /* Cambiado a un porcentaje */
  max-width: 400px; /* Limita el ancho en pantallas grandes */
  height: auto; /* Ajustado para que se adapte */
  font-size: 3vw; /* Cambiado a unidades relativas */
  text-align: center;
  text-decoration: none;
  background-color: hsl(220, 70%, 40%);
  color: white;
  padding: 20px; /* Ajustado */
  border-radius: 50px;
  transition: background-color 0.3s ease;
  margin: 20px auto; /* Centra el botón */
}

.servicio h2 {
  margin-top: 15vh;
  font-size: 6vw; /* Cambiado a unidades relativas */
  font-family: 'coco2', sans-serif;
  color: #004B85;
  margin-left: 6%;
}

.servicio2 {
  display: flex;
  flex-direction: column; /* Cambiado para apilar elementos */
  margin-left: 6%;
}

.servicio2 h3 {
  font-family: 'coco2', sans-serif;
  color: black;
  max-width: 90%; /* Ajustado para mejor responsividad */
}

.servicio2 a {
  width: 80%; /* Cambiado a un porcentaje */
  max-width: 400px; /* Limita el ancho en pantallas grandes */
  height: auto; /* Ajustado para que se adapte */
  font-size: 3vw; /* Cambiado a unidades relativas */
  text-align: center;
  text-decoration: none;
  background-color: hsl(220, 70%, 40%);
  color: white;
  padding: 20px; /* Ajustado */
  border-radius: 50px;
  transition: background-color 0.3s ease;
  margin: 20px auto; /* Centra el botón */
}

.img1 img,
.img2 img {
  width: 100%; /* Asegura que las imágenes ocupen todo el ancho */
  margin-top: 10vh;
  margin-bottom: 12vh;
}

















.presupuestos a:hover {
  background-color: hsl(220, 70%, 50%);
}

/* Media Queries para Responsividad */

/* Pantallas menores a 1024px (Tablets y pantallas medianas) */
@media (max-width: 1024px) {
  .presupuestos1 h1 {
    font-size: 6vh; /* Reducir el tamaño del título */
    margin-top: 20vh;
  }

  .presupuestos {
    flex-direction: column; /* Cambiar a layout vertical en pantallas más pequeñas */
    margin-left: 0;
    margin-right: 0;
    align-items: center; /* Centrar los elementos */
    text-align: center;
  }

  .presupuestos h3 {
    max-width: 90%; /* Limitar el ancho del texto */
  }

  .presupuestos a {
    margin-right: 0;
    margin-top: 2vh;
  }
}

/* Pantallas menores a 768px (Móviles grandes y tablets en vertical) */
@media (max-width: 768px) {
  .presupuestos1 h1 {
    font-size: 5vh;
    margin-top: 6vh;
    margin-left: 0;
    text-align: center;
  }

  .presupuestos h3 {
    font-size: 2.5vh;
    max-width: 95%; /* Ajuste del ancho del texto */
    line-height: 1.5; /* Aumentar el espacio entre líneas para mejorar la legibilidad */
  }

  .presupuestos a {
    padding: 8px 15px; /* Ajustar el tamaño del botón */
    font-size: 1rem;
  }
}

/* Pantallas menores a 480px (Móviles pequeños) */
@media (max-width: 480px) {
  .presupuestos1 h1 {
    font-size: 4vh;
    margin-top: 6vh;
    margin-left: 0;
  }

  .presupuestos h3 {
    font-size: 2vh; /* Reducir el tamaño del texto */
  }

  .presupuestos a {
    padding: 7px 12px;
    font-size: 0.9rem; /* Ajustar tamaño del botón */
  }
}






/*WPP FLOTANTE*/

body .btn-wsp{
  position: fixed;
  width: 55px;
  height: 55px;
  line-height: 55px;
  bottom: 30px;
  right: 30px;
  background-color: rgb(50, 205, 53);
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

body .btn-wsp:hover{
  text-decoration: none;
  background-color: #0E4980;
}

body .iconowpp{
  max-width: 70%;
  margin-top: 15%;
}


/*NOSOTROS*/
.nosotros1{
  display: flex;
  justify-content: center;
}
.nosotros1 img{
  width: 80%;
}








/*SERVICIOS*/
.servicios1{
  display: flex;
  justify-content: center;
}
.servicios1 img{
  width: 80%;
}













/*CONTACTO*/



.contactanos img{
  width: 100%;
}

.map-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Aspect ratio 16:9 */
  height: 0;
  overflow: hidden;
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}















/*CATALOGO*/

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

.catalogo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  margin: 20px auto;
  margin-top: 50px;
  max-width: 80%;
}

.producto {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
}

.producto:hover {
  transform: translateY(-5px);

}

.producto img {
  width: 30vh;
  border-radius: 10px;
  margin-bottom: 15px;
}

.producto a {
  display: flex;
  justify-content: center;
  margin-top: 0;
  font-size: 24px;
  color: black;

}

.producto p {
  color: #555;
  margin-bottom: 15px;
}

.precio {
  font-weight: bold;
  margin-bottom: 15px;
}


button:hover {
  background-color: #0056b3;
}

/*CATALOGO PUERTAS prowindows pvc*/
.catpuerta img{
  width: 40%;
  margin-left: 30%;
  margin-top: 5%;
}
.catprowindows img{
  width: 40%;
  margin-left: 30%;
  margin-top: 5%;
}
.catpvc img{
  width: 40%;
  margin-left: 30%;
  margin-top: 5%;
}

















@media (max-width: 900px){

  /*CATALOGO*/
  .catalogo {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 20px;
    margin: 20px auto;
    margin-top: 50px;
    margin-bottom: 20%;
    max-width: 70%;
  }
  
  .producto {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1px;
    text-align: center;
    transition: transform 0.3s;
  }
  
  .producto:hover {
    transform: translateY(-5px);
  
  }
  
  .producto img {
    width: 30vh;
    border-radius: 10px;
    margin-bottom: 15px;
  }
  
  .producto a {
    display: flex;
    justify-content: center;
    margin-top: 0;
    font-size: 24px;
    color: black;
  
  }
  
  .producto p {
    color: #555;
    margin-bottom: 15px;
  }
  
  .precio {
    font-weight: bold;
    margin-bottom: 15px;
  }
  
  
  button:hover {
    background-color: #0056b3;
  }


  /*header*/
  header nav a {
    color: rgb(0, 0, 0);
    font-size: 100%;
    font-family: coco2;
    text-decoration: none;
    padding-left: 0px;
    padding-right: 30px;
  }

  header nav ul {
    margin-right: 50px;
  }

  /*main*/

  main .section2{
    display: block;
  } 
  
  main .section2 h1{
    color: rgb(0, 0, 0);
    font-size: 5vh;
    padding-top: 10px;
    padding-left: 30px;
    text-transform: uppercase;
    display: flex;
    font-family: coco2;
  }
  
  main .section2 h2{
    color: rgb(0, 0, 0);
    font-size: 2vh;
    padding-top: 15%;
    padding-left: 30px;
    text-transform: uppercase;
    display: flex;
   font-family: coco3;
  }
  
  main .section2 h3{
    color: rgb(0, 0, 0);
    font-size: 2vh;
    padding-top: 10px;
    padding-left: 30px;
    text-transform: uppercase;
    font-family: coco3;
  }
  
  main .section2 img{
    max-width: 60% ;
    margin: 10px auto;
    margin-top: 20px;
    margin-left: 20%;
  }

}

@media (max-width: 650px){

   /*header*/
   header nav a {
    color: rgb(0, 0, 0);
    font-size: 100%;
    font-family: coco2;
    text-decoration: none;
    padding-left: 0px;
    padding-right: 15px;
  }

  header nav ul {
    margin-right: 0px;
  }

  /*main*/

  main .section2{
    display: block;
  } 


  main .section2 h1{
    color: rgb(0, 0, 0);
    font-size: 4vh;
    padding-top: 10px;
    padding-left: 30px;
    text-transform: uppercase;
    display: flex;
    font-family: coco2;
  }
  
  main .section2 h2{
    color: rgb(0, 0, 0);
    font-size: 2vh;
    padding-top: 10%;
    padding-left: 30px;
    text-transform: uppercase;
    display: flex;
   font-family: coco3;
  }
  
  main .section2 h3{
    color: rgb(0, 0, 0);
    font-size: 2vh;
    padding-top: 10px;
    padding-left: 30px;
    text-transform: uppercase;
    font-family: coco3;
  }
  
  main .section2 img{
    max-width: 50% ;
    margin: 30px auto;
    margin-top: 5px;
    margin-left: 25%;
  }

}

@media (max-width: 535px){

   /*header*/
   header nav a {
    color: rgb(0, 0, 0);
    font-size: 90%;
    font-family: coco2;
    text-decoration: none;
    padding-left: 0px;
    padding-right: 15px;
    padding-bottom: 2px;
    display: flex;
  }

  header nav ul {
    margin-right: 0px;
  }

  /*main*/
  


  main .section2 h1{
    color: rgb(0, 0, 0);
    font-size: 3.2vh;
    padding-top: 10px;
    padding-left: 30px;
    text-transform: uppercase;
    display: flex;
    font-family: coco2;
  }
  
  main .section2 h2{
    color: rgb(0, 0, 0);
    font-size: 2vh;
    padding-top: 18%;
    padding-left: 30px;
    text-transform: uppercase;
    display: flex;
   font-family: coco3;
  }
  
  main .section2 h3{
    color: rgb(0, 0, 0);
    font-size: 1.8vh;
    padding-top: 10px;
    padding-left: 30px;
    text-transform: uppercase;
    font-family: coco3;
  }
  
  main .section2 img{
    max-width: 60% ;
    margin: 0px auto;
    margin-top: 20px;
    margin-left: 20%;
  }


}

