body{
background:#000;
color:white;
font-family:Poppins;
margin:0;
}

/*
.navbar{
display:flex;
justify-content:space-between;
padding:20px 8%;
background:#000;
position:sticky;
top:0;
z-index:1000;
}
*/

.navbar ul{
display:flex;
gap:30px;
list-style:none;
}

.navbar a{
color:white;
text-decoration:none;
}

.hero{
height:100vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
background:radial-gradient(circle,#06172c,#000);
}

.hero-logo{
/*width:320px;
margin-bottom:20px;*/
    width: 500px;
    max-width: 100%;            /* limita ancho del logo */
    /*filter: drop-shadow(0 0 15px rgba(0,212,255,0.6)); *//* glow tecnológico */
    /*animation: glowPulse 4s infinite; *//* pulso suave si quieres */
}

.hero-text{
  max-width: 600px;          /* restringe ancho del texto */
  text-align: justify;       /* texto justificado */
}

.hero h1{
  font-size:35px;
  background:linear-gradient(90deg,#00d4ff,#0066ff);
  -webkit-background-clip:text;
  color:transparent;
  margin: -10px;
}

.hero p {
  text-align: justify;        /* justificado */
  text-justify: inter-word;   /* mejor separación de palabras */
  line-height: 1.6;           /* más legible */
  max-width: 700px;           /* ancho máximo del párrafo */
  margin: 10px auto 1em auto;    /* centrado horizontal, con margen inferior */
}

@media (max-width: 768px){
  .hero-content{
    flex-direction: column;  /* pone logo arriba y texto debajo en pantallas pequeñas */
    gap: 20px;
    text-align: center;
  }

  .hero-text{
    text-align: justify;     /* o center si prefieres en móvil */
  }
}

.btn{
display:inline-block;
margin-top:20px;
padding:14px 30px;
background:linear-gradient(90deg,#00d4ff,#0072ff);
border-radius:8px;
text-decoration:none;
color:white;
}

section{
scroll-margin-top: 80px; /* Ajusta según la altura de tu navbar */
}

.section-title{
text-align:center;
font-size:34px;
margin:60px 0;
color:#00d4ff;
}

.services{
  display:grid;
/*grid-template-columns:repeat(auto-fit,minmax(250px,1fr));*/
/*gap:25px;
padding:40px;*/
  grid-template-columns: repeat(3,1fr);
  gap:20px;
  margin-left: 2em;
  margin-right: 2em;
}

@media (max-width:900px){
    .services{
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:600px){
    .services{
        grid-template-columns: 1fr;
    }
}

.service-card{
background:#111;
padding:25px;
border-radius:12px;
transition:.3s;
}

.service-card:hover{
transform:translateY(-6px);
border:1px solid #928c6a;
}

.why-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
padding:40px;
}

.contact-form{
display:flex;
flex-direction:column;
max-width:500px;
margin:auto;
gap:12px;
}

input,textarea{
padding:12px;
background:#111;
border:1px solid #333;
color:white;
border-radius:6px;
}

button{
padding:12px;
background:#00d4ff;
border:none;
color:white;
border-radius:6px;
}

.whatsapp{
  position:fixed;
  bottom:25px;
  right:25px;
  background:#25D366;
  width:60px;
  height:60px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  color:white;
  z-index:2000;
  box-shadow:0 0 15px rgba(0,0,0,0.4);
  transition:0.3s;
}

.whatsapp:hover{
  transform:scale(1.1);
}

@media (max-width:768px){

  .whatsapp{
    bottom:20px;
    right:20px;
    padding:12px 16px;
    font-size:14px;
  }

}

.contact-form{
  display: flex;
  flex-direction: column; /* apila los elementos verticalmente */
  gap: 15px; /* espacio entre inputs */
  max-width: 500px; /* ancho máximo del formulario */
  margin: 0 auto; /* centra horizontalmente */
  padding: 20px;
}

.contact-form input,
.contact-form textarea{
  width: 100%; /* ocupa todo el ancho del contenedor */
  padding: 12px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #111;
  color: white;
  font-size: 16px;
  box-sizing: border-box; /* importante para que padding no rompa ancho */
}

.contact-form textarea{
  min-height: 120px;
  resize: vertical; /* opcional, permite cambiar tamaño vertical */
}

.contact-form button{
  padding: 12px;
  background: linear-gradient(90deg,#00d4ff,#0072ff);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover{
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,212,255,0.6);
}

.alert-success{
  background: #00d4ff;
  color: black;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align:center;
}

.alert-error{
  background: #ff4444;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align:center;
}

/* NAVBAR */

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 8%;
background:#000;
position:sticky;
top:0;
z-index:1000;
}

.logo img{
height:45px;
}

/* LINKS */

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

.nav-links a{
color:white;
text-decoration:none;
font-weight:500;
}

/* HAMBURGUESA */

.burger{
display:none;
flex-direction:column;
cursor:pointer;
}

/*
.burger span{
width:25px;
height:3px;
background:white;
margin:4px 0;
transition:0.3s;
}
*/
/* RESPONSIVE */

@media (max-width:768px){

  .nav-links{
  position:absolute;
  top:70px;
  right:0;
  background:#000;
  flex-direction:column;
  width:220px;
  padding:20px;
  gap:20px;
  transform:translateX(100%);
  transition:0.3s;
  }

  .nav-links.active{
  transform:translateX(0);
  }
  
  .burger{
    display:flex;
  }

}

.hero{
position:relative;
height:100vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
overflow:hidden;
}

#particles-js {
  position: absolute;       /* o fixed si quieres que cubra toda la pantalla */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;               /* enviar atrás */
  pointer-events: none;     /* importante: deja pasar clics al contenido */
}

.hero-content{
/*position:relative;
z-index:2;*/
    display: flex;
    align-items: center;       /* centra verticalmente el texto con el logo */
    justify-content: center;   /* centra horizontalmente todo */
    gap: 40px;                 /* espacio entre logo y texto */
    flex-wrap: wrap;           /* permite que el contenido baje cuando la pantalla es pequeña */
    padding: 50px 20px;
}

/*.services{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
padding:40px;
}*/

/*
.service-card{
background:#111;
padding:30px;
border-radius:12px;
text-align:center;
transition:0.3s;
}
*/
.service-card i{
font-size:40px;
color:#00d4ff;
margin-bottom:15px;
}
/*
.service-card:hover{
transform:translateY(-8px);
box-shadow:0 0 20px rgba(0,212,255,0.3);
}
*/
html{
scroll-behavior:smooth;
}

.logo img{
height:45px;
transition:0.4s;
filter: drop-shadow(0 0 4px rgba(0,212,255,0.6));
}

.logo img:hover{
filter:
drop-shadow(0 0 6px rgba(0,212,255,0.8))
drop-shadow(0 0 12px rgba(0,212,255,0.6))
drop-shadow(0 0 20px rgba(0,212,255,0.5));
transform:scale(1.05);
}
/*
@keyframes glowPulse{

0%{
filter: drop-shadow(0 0 4px rgba(0,212,255,0.5));
}

50%{
filter:
drop-shadow(0 0 10px rgba(0,212,255,0.9))
drop-shadow(0 0 18px rgba(0,212,255,0.7));
}

100%{
filter: drop-shadow(0 0 4px rgba(0,212,255,0.5));
}

}

.logo img{
animation:glowPulse 3s infinite;
}
.hero-logo{
width:320px;
margin-bottom:20px;

filter:
drop-shadow(0 0 10px rgba(0,212,255,0.8))
drop-shadow(0 0 25px rgba(0,212,255,0.6));

animation:glowPulse 4s infinite;
}
.hero::before{
content:"";
position:absolute;
width:400px;
height:400px;
background:radial-gradient(circle,rgba(0,212,255,0.25),transparent);
filter:blur(80px);
z-index:1;
}*/

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

.nav-links.active {
  transform: translateX(0); /* menú visible en móvil */
}
/*
.burger {
  display: none;          
  cursor: pointer;
  z-index: 100;           
}
*/
@media (max-width: 768px){
  .burger {
    display: block;       /* se muestra en móvil/tablet */
  }

  .nav-links {
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: 60%;           /* ancho del menú lateral */
    background-color: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%); /* oculto por defecto */
    transition: transform 0.3s ease-in;
    z-index: 50;          /* debajo del icono hamburguesa */
  }

  .nav-links.active {
    transform: translateX(0); /* mostrar menú */
  }
}

.burger {
  display: none;        /* oculto en escritorio */
  cursor: pointer;
  z-index: 1000;        /* encima de todo */
}

.burger div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px){
  .burger {
    display: flex;       /* ahora sí se muestra en móvil */
    flex-direction: column;
    justify-content: center;
  }
}

/**SERVICIOS TARJETAS**/
.servicio-card{
  background:#111;
  padding:25px;
  border-radius:12px;
  transition:.3s;  
  cursor:pointer;
  transition:all .3s ease;
}

.servicio-card:hover{
  transform:translateY(-6px);
  border:1px solid #00d4ff;
}

.servicio-card i{
  font-size:40px;
  color:#00d4ff;
  margin-bottom:15px;
}

.servicio-detalle{
    max-height:0;
    overflow:hidden;
    transition:max-height .4s ease;
}

.servicio-card.active .servicio-detalle{
    max-height:250px;
    margin-top:10px;
}

.servicio-card .servicio-detalle p{
  color: #f0e1b3;
  text-align: justify;        /* justificado */
  text-justify: inter-word;   /* mejor separación de palabras */
  line-height: 1.6;           /* más legible */
}

.servicio-card .servicio-header h3{
   color: #00d4ff;;
}

.servicio-card .servicio-header p{
  text-align: justify;        /* justificado */
  text-justify: inter-word;   /* mejor separación de palabras */
   line-height: 1.6;           /* más legible */
}

.servicio-card.active{
    transform:scale(1.02);
}