*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url(image/IMG_0231-768x576.jpg);
  background-size: cover;      /* ajusta la imagen para cubrir todo */
  background-position: center; /* centra la imagen */
  background-repeat: no-repeat;/* evita que se repita */  
}

#header {
  background-color: #f5821f;
} 

#header img {
  width: 100px;
  margin: 20px;
  margin-left: 50px;
}

#main {
  padding: 50px 20px;
  position: relative;
  text-align: center;
  font-family: 'Arial', sans-serif;
  color: white;
  height: 500px;
}

.top-link {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 14px;
}

.top-link a {
  color: #bbb;
  text-decoration: none;
}

h1 {
  font-size: 40px;
  margin: 0;
  letter-spacing: 8px;
  text-shadow: black;

}

.subtitle {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  text-shadow: black;
  font-weight: bold;
  color: #f5f3f3;
  letter-spacing: 4px;
}

.progress-bar {
  width: 30%;
  margin: 0 auto 20px;
  background-color: #666;
  border-radius: 10px;
  height: 10px;
  position: relative;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background-color: #f5821f;
  border-radius: 10px;
  animation: fillProgress 7s forwards;
}

@keyframes fillProgress {
  to {
    width: 75%;
  }
}

.boton-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap; /* fuerza que estén uno al lado del otro */
  margin: 40px 0;
}

.boton-container a{
  text-decoration: none;
}

.boton-servicio-tecnico,
.boton-compras {
  width: 200px;
  height: 200px;
  background-color: #f5821f;
  color: #009090;
  border: none;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  padding: 20px;
  line-height: 1.4;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#footer {
  background-color: black;
  padding: 10px 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icons img {
  width: 30px;
  margin-right: 10px;
  filter: brightness(0) invert(1); /* convierte a blanco */
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  text-align: right;
}


.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: #333;
  font-weight: bold;
  cursor: pointer;
}

.main-overlay {
  background-color: rgba(46, 44, 44, 0.5); /* negro con 50% de opacidad */
  padding: 10px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive para tablet (hasta 1024px) */
@media (max-width: 1024px) {
  #main {
    padding: 40px 10px;
    height: auto;
  }

  h1 {
    font-size: 30px;
    letter-spacing: 4px;
  }

  .subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .progress-bar {
    width: 60%;
  }

  .boton-container {
    gap: 20px;
    flex-wrap: wrap; /* permite que se acomoden en filas si es necesario */
  }

  .boton-servicio-tecnico,
  .boton-compras {
    width: 180px;
    height: 180px;
    font-size: 18px;
  }

 /* Footer igual pero más chico */
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  .social-icons img {
    width: 20px;
    margin-right: 6px;
  }

  .footer-right {
    gap: 10px;
    font-size: 11px;
  }

  .footer-right img {
    width: 20px;
  }
}



@media (max-width: 600px) {
  /* Header completo y centrado */
  #header {
    width: 100%;
    margin-top: -20px;
    text-align: center;
  }

  #header img {
    width: 100px;
    padding: 20px;
    margin: 10px auto;
    display: block;
  }

  h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 12px;
  }

  .progress-bar {
    width: 80%;
  }

  /* Botones iguales uno arriba del otro */
  .boton-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  /* Footer igual pero más chico */
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  .social-icons img {
    width: 20px;
    margin-right: 6px;
  }

  .footer-right {
    gap: 10px;
    font-size: 11px;
  }

  .footer-right img {
    width: 20px;
  }
}

