/* Reset y básicos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto", sans-serif;
  color: #0b0d2a;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Navbar */
header {
  background: #050a30;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.logo-img {
  height: 120px;
  width: auto;
}
.menu-toggle {
  display: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #399bdc;
}
.nav-links a.active {
  border-bottom: 2px solid #399bdc;
}

/* Hero */
.hero {
  background: linear-gradient(to right, #050a30, #0b0d2a);
  color: #fff;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}
.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.btn {
  background: #399bdc;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-family: "Montserrat", sans-serif;
  transition: 0.3s;
  display: inline-block;
}
.btn:hover {
  background: #2b7aa9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Slider */
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  margin-top: 2px;
  text-align: center;
}
.slides {
  position: relative;
  height: auto;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
  position: relative;
} /* importante para que el primer slide se vea */
.slide img {
  width: 90%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.slider:hover .slide.active img {
  transform: scale(1.05);
}

/* Flechas */
.navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
  user-select: none;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}
.dots span {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}
.dots span.active {
  background: #399bdc;
}

/* Servicios */
.services {
  padding: 4rem 2rem;
  text-align: center;
}
.services h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}
.service {
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}
.service i {
  font-size: 2rem;
  color: #399bdc;
  margin-bottom: 1rem;
  transition: 0.3s;
}
.service h3 {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 0.5rem;
}
.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.service:hover i {
  color: #2b7aa9;
}

/* Contacto */
.contact {
  padding: 4rem 2rem;
  background: #f5f5f5;
  text-align: center;
}
#contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#contact-form input,
#contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}
#contact-form button {
  align-self: center;
}

/* Footer */
footer {
  background: #050a30;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
footer .socials {
  margin-top: 0.5rem;
}
footer .socials a {
  color: #399bdc;
  font-size: 1.5rem;
  margin: 0 0.5rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsivo */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }
  .logo-img {
    height: 90px;
    margin-bottom: 10px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: #050a30;
    margin-top: 0;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    margin: 2px 0;
  }

  .slide img {
    max-height: 300px;
    object-fit: contain;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}
