/* Importar fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;700&display=swap');

/* Reset de márgenes y paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos generales */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #001125;
  color: #F2F2F2;
}

/* Navbar */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: #00214A;
  border-bottom: 1px solid rgba(142, 253, 254, 0.1);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  margin: 0 auto;
}

.logo img {
  max-height: 60px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(142, 253, 254, 0.3));
}

/* Menú de navegación */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-right: 20px;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  text-decoration: none;
  color: #F2F2F2;
  font-weight: bold;
  padding: 10px 20px;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 20px;
}

.nav-menu li a:hover {
  color: #8EFDFE;
  background: linear-gradient(
    to right,
    rgba(142, 253, 254, 0.1),
    transparent
  );
  box-shadow: -5px 0 15px rgba(142, 253, 254, 0.1);
}

/* Menú desplegable */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #00214A;
  top: 100%;
  left: 0;
  width: 250px;
  list-style: none;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(142, 253, 254, 0.1);
}

.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu li {
  padding: 5px;
}

.dropdown-menu li a {
  display: block;
  color: white;
  border-radius: 15px;
  padding: 12px 20px;
}

.dropdown-menu li a:hover {
  background: linear-gradient(
    to right,
    rgba(142, 253, 254, 0.1),
    rgba(142, 253, 254, 0.05)
  );
}

/* Menú móvil */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
}

/* Secciones de Servicios */
.service-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  position: relative;
  background-color: #001125;
  transition: all 0.5s ease;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
}

/* Fondos de servicios */
#desarrollo {
  background: url('images/desarrollo.webp') no-repeat center center;
  background-size: cover;
}

#infraestructura {
  background: url('images/infraestructura.webp') no-repeat center center;
  background-size: cover;
}

#cableado {
  background: url('images/cableado.webp') no-repeat center center;
  background-size: cover;
}

/* Contenedor principal de texto */
.service-text {
  position: relative;
  z-index: 1;
  max-width: 500px;
  text-align: center;
  padding: 30px 45px;
  background: linear-gradient(
    135deg,
    rgba(0, 33, 74, 0.85),
    rgba(0, 33, 74, 0.75)
  );
  border-radius: 30px;
  backdrop-filter: blur(8px);
  animation: pulse 4s ease-in-out infinite;
  border: 1px solid rgba(142, 253, 254, 0.1);
  box-shadow: 0 0 30px rgba(0, 33, 74, 0.5);
  transform: perspective(1000px) rotateX(0.5deg);
}

/* Efecto decorativo */
.service-text::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 30px;
  background: linear-gradient(
    45deg,
    rgba(142, 253, 254, 0.1),
    rgba(29, 40, 117, 0.1)
  );
  z-index: -1;
  animation: rotate 20s linear infinite;
}

/* Animaciones */
@keyframes pulse {
  0% { transform: perspective(1000px) rotateX(0.5deg) scale(1); }
  50% { transform: perspective(1000px) rotateX(0.5deg) scale(1.02); }
  100% { transform: perspective(1000px) rotateX(0.5deg) scale(1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Textos */
.service-text h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #8EFDFE;
  text-shadow: 0 0 15px rgba(142, 253, 254, 0.3);
  letter-spacing: 1px;
}

.service-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Botón CTA */
.service-text .cta-button {
  display: inline-block;
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: bold;
  color: #FFFFFF;
  background: linear-gradient(
    45deg,
    rgba(29, 40, 117, 0.9),
    rgba(0, 33, 74, 0.9)
  );
  border: 2px solid rgba(142, 253, 254, 0.3);
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 20px rgba(0, 33, 74, 0.5);
}

.service-text .cta-button:hover {
  background: linear-gradient(
    45deg,
    rgba(142, 253, 254, 0.9),
    rgba(142, 253, 254, 0.7)
  );
  color: #001125;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(142, 253, 254, 0.4);
  border-color: transparent;
}

/* Footer */
footer {
  background: linear-gradient(
    135deg,
    rgba(0, 33, 74, 0.95),
    rgba(0, 33, 74, 0.85)
  );
  backdrop-filter: blur(10px);
  padding: 40px 20px;
  text-align: center;
  color: #F2F2F2;
  border-top: 1px solid rgba(142, 253, 254, 0.1);
}

footer h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #8EFDFE;
  text-shadow: 0 0 15px rgba(142, 253, 254, 0.3);
}

footer p {
  font-size: 1.2rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #00214A;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
  }

  .menu-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    display: none;
    background: rgba(0, 33, 74, 0.95);
    box-shadow: none;
    border: none;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
  }

  .dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown > a::after {
    content: '▼';
    font-size: 12px;
    margin-left: 5px;
  }

  .dropdown.active > a::after {
    content: '▲';
  }

  .dropdown-menu li {
    padding: 0;
  }

  .dropdown-menu li a {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .service-text {
    padding: 25px 35px;
    max-width: 85%;
    border-radius: 25px;
    margin: 0 15px !important;
  }

  .service-text h1 {
    font-size: 2rem;
  }

  .service-text p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 10px 15px;
  }

  .logo img {
    max-height: 50px;
  }

  .dropdown-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .service-text {
    padding: 20px 25px;
    border-radius: 20px;
    max-width: 90%;
  }

  .service-text h1 {
    font-size: 1.8rem;
  }

  .service-text p {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
}