body{margin:0;font-family:Segoe UI,Arial;background:#0a0f1c;color:#fff}
/* .header{text-align:center;padding:40px;background:linear-gradient(90deg,#0f2027,#203a43,#2c5364)} */
.nav{display:flex;justify-content:center;gap:20px;background:#111;padding:15px}
.nav a{color:#00d9ff;text-decoration:none}
.hero img{width:25%}
.medio{text-align:center;padding:40px}
.footer{text-align:center;padding:20px;background:#000;color: var(--blanco);}
@media(max-width:768px){.nav{flex-direction:column}.header h1{font-size:24px}}


/* ================================
   VARIABLES DE MARCA
================================ */
:root{
  --negro:#000000;
  --blanco:#ffffff;
  --azul:#0055BB;
  --beige:#ffd195;
  --cafe:#4a2c1d;
  --verde:#00BB00;
  --rojo: #ff0000;
}

/* ================================
   RESET BÁSICO
================================ */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Montserrat',sans-serif;
}

body{
  background:var(--azul);
  color:var(--verde);
  line-height:1.6;
  overflow-x:hidden;
}

/* ================================
   HERO MOBILE FIRST
================================ */

.hero {
  position: relative;
  display: grid;
  place-items: center; /* centra vertical y horizontal */

  min-height: 100vh;
  padding: 20px;

  background: url("../images/cyber1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
  color: #ffffff;
}

.hero-cyber {
  position: relative;
  display: grid;
  place-items: center; /* centra vertical y horizontal */

  min-height: 100vh;
  padding: 20px;

  background: 
    linear-gradient(rgba(5,15,30,0.75), rgba(5,15,30,0.85)),
    url("../images/cyber2.jpg");
  /* background: url("../images/cyber2.jpg");
  background-size: cover; */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  color: #ffffff;
}

.hero-infra {
  position: relative;
  display: grid;
  place-items: center; /* centra vertical y horizontal */
  min-height: 100vh;
  padding: 20px;
  background: 
    linear-gradient(rgba(5,15,30,0.75), rgba(5,15,30,0.85)),
    url("../images/it1.jpg");
  /* background: url("../images/it1.jpg"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #ffffff;
}

.hero-fw {
  position: relative;
  display: grid;
  place-items: center; /* centra vertical y horizontal */
  min-height: 100vh;
  padding: 20px;
  background: 
    linear-gradient(rgba(5,15,30,0.75), rgba(5,15,30,0.85)),
    url("../images/fw1.png");
  /* background: url("../images/fw1.png"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #ffffff;
}

.hero-ia {
  position: relative;
  display: grid;
  place-items: center; /* centra vertical y horizontal */
  min-height: 100vh;
  padding: 20px;
  background: 
    linear-gradient(rgba(5,15,30,0.75), rgba(5,15,30,0.85)),
    url("../images/ia1.jpg");
  /* background: url("../images/ia1.jpg"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #ffffff;
}

.hero-desarrollo {
  position: relative;
  display: grid;
  place-items: center; /* centra vertical y horizontal */
  min-height: 100vh;
  padding: 20px;
  background: 
    linear-gradient(rgba(5,15,30,0.75), rgba(5,15,30,0.85)),
    url("../images/desarrollo2.png");
  /* background: url("../images/desarrollo1.jpg"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #ffffff;
}

.hero-cotiza {
  position: relative;
  display: grid;
  place-items: center; /* centra vertical y horizontal */
  min-height: 100vh;
  padding: 20px;
  background: 
    linear-gradient(rgba(5,15,30,0.75), rgba(5,15,30,0.85)),
    url("../images/cotiza2.jpg");
  /* background: url("../images/desarrollo1.jpg"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #ffffff;
}

.btn-dm {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 25px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-dm.whatsapp {
    background-color: #25D366; /* verde WhatsApp */
}

.btn-dm.whatsapp:hover {
    background-color: #1ebe57;
}

.btn-dm.messenger {
    background-color: #0084FF; /* azul Messenger */
}

.btn-dm.messenger:hover {
    background-color: #006fd6;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
}

/* 
.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.hero-content h2 {
  font-size: clamp(1rem, 3vw, 1.5rem);
} 
font-size: clamp(1.8rem, 5vw, 3rem);
font-size: clamp(1rem, 3vw, 1.5rem);
*/



.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  /* font-size: 2rem; */
  margin-bottom: 15px;
  font-weight: 700;
  color: #00BB00;
}

.hero-content h2 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  /* font-size: 1.1rem; */
  font-weight: 400;
  color: var(--verde);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(5,15,30,0.75), rgba(5,15,30,0.85));
  z-index: 1;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    /* font-size: 2rem; */
  }

  .hero-content h2 {
    /* font-size: 1rem; */
    font-size: clamp(1rem, 3vw, 1.5rem);
  }

  .hero {
    padding: 20px;
    min-height: 80vh; /* no demasiado alto */
  }
}

/* @media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content h2 {
    font-size: 1.4rem;
  }
} */


/* ================================
   DESKTOP
================================ */
@media (min-width: 768px) {
  .hero {
    min-height: 90vh;
    padding: 0 40px;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    /* font-size: 3rem; */
  }

  .hero-content h2 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    /* font-size: 1.4rem; */
  }
}

/* ================================
   HEADER / LOGO
================================ */
/* LOGO */
.logo img {
  height: 100px;
  width: auto;
  display: block;
}
header{
  background:var(--negro);
  color:var(--blanco);
  padding:15px 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:1000;
}
header strong{
  font-size:1.4rem;
  display:none;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }

  .logo img {
    height: 80px; /* más pequeño para móviles */
  }

  header h1 {
    font-size: 1.5rem;
    margin: 10px 0 5px;
  }

  header p {
    font-size: 0.9rem;
    margin: 0;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .nav a {
    font-size: 1rem;
  }
}

/* ================================
   HEADER / LOGO
================================ */
.services-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #e7ecd9;
}

.service-item svg {
  /* width: 26px;
  height: 26px;
  fill:#3fa9f5; 
  flex-shrink: 0;
  display: block; */
  width: 40px;
  height: 40px;
  fill: #3fa9f5;
  transition: fill 0.3s ease;
}

.service-item:hover svg {
  fill: #010869;
}

.service-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3fa9f5;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}






.service-itemia svg {
  width: 48px;
  height: 48px;
  fill: #FF6600; /* engranaje naranja */
  transition: fill 0.3s;
}

.service-itemia svg line,
.service-item svg circle {
  stroke: #00BB00; /* verde IA */
  fill: #00BB00;
}

.service-itemia:hover svg {
  fill: #FF9900; /* engranaje más brillante al hover */
}

.service-itemia:hover svg line,
.service-itemia:hover svg circle {
  stroke: #00FF00; /* verde más brillante al hover */
  fill: #00FF00;
}





/* 
@media (max-width: 768px) {
  .services-icons-wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }
  .service-item {
    flex: 0 0 45%; 
    margin-bottom: 20px;
  }
} */

/* Tablet */
@media (max-width: 992px) {
  .services-icons-wrapper {
    gap: 30px;
  }
}

/* Celular */
@media (max-width: 768px) {
  .services-icons-wrapper {
    gap: 25px;
  }

  .service-item {
    width: 45%;  /* 2 por fila */
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  .service-item {
    width: 100%; /* 1 por fila */
  }
}

/* Desktop */
@media (min-width: 768px) {
  .services-icons {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ================================
   Menu Subrayado
================================ */
.nav a {
  position: relative;
  text-decoration: none;
  padding-bottom: 6px;
}

/* Estado activo */
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #3fa9f5; /* azul corporativo */
}

/* ================================
   Iconos para Servicios
================================ */
.services-hero {
  display: flex;
  justify-content: center; /* centra horizontal todo el hero */
  align-items: center;     /* centra vertical si hay altura */
  flex-direction: column;
  background-color: #0b1c2d;
  color: #fff;
  padding: 90px 20px;
  text-align: center;
}

.services-hero-content {
  width: 100%;
  max-width: 1200px; /* evita que se estire demasiado en pantallas grandes */
}

.services-hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  /* font-size: 1.8rem; */
  font-weight: 700;
  margin-bottom: 10px;
}

.services-hero-content h2 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  /* font-size: 1.2rem; */
  font-weight: 400;
  margin-bottom: 30px;
  color: #b6c4d1;
}

@media (min-width: 768px) {
  .services-hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    /* font-size: 2.2rem; */
  }
  .services-hero-content h2 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    /* font-size: 1.4rem; */
  }
  .service-item svg {
    width: 48px;
    height: 48px;
  }
}

/* CENTRADO REAL DE ICONOS */
.services-icons-wrapper {
  display: flex;
  justify-content: center; /* distribuye los iconos de manera uniforme */
  align-items: center;
  flex-wrap: wrap;              /* evita que los iconos se rompan en otra fila */
  width: 100%;
  max-width: 1100px;               /* ancho máximo de la fila */
  margin: 0 auto;                 /* centra la fila horizontalmente */
  gap: 40px;                          /* quitamos gap para que space-between haga el espaciado */
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;              /* ancho fijo elegante */
  text-align: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #e8ecd9;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease;
}

/* .service-item { */
  /* display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;                        */
   /* cada ícono ocupa la misma proporción */
  /* gap: 6px;
  font-size: 0.95rem;
  color: #e8ecd9;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease;
} */

.service-item:hover {
  transform: translateY(-6px);
}

/* ================================
   Boton para regresar a Servicios
================================ */
.btn-back {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  background-color: #3fa9f5;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-back:hover {
  background-color: #6fc2ff;
}

/* ================================
   PARTICULAS TECNOLOGICAS
================================ */

.hero {
  position: relative;
  overflow: hidden;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.particles::before,
.particles::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(#ff0000 1px, transparent 1px);
  background-size: 50px 50px;
  animation: particlesMove 25s linear infinite;
  opacity: 0.15;
}

.particles::after {
  animation-duration: 40s;
  background-size: 70px 70px;
  opacity: 0.08;
}

/* Animación movimiento */
@keyframes particlesMove {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-200px, -200px);
  }
}

.wall {
  fill: #00d9ff;
}

.service-item:hover .wall {
  fill: #0050aa;
}

.service-item.firewall svg g {
  fill: url(#brickGrad); /* normal */
  transition: fill 0.3s ease;
}

.service-item.firewall:hover svg g {
  fill: #0050aa; /* azul más oscuro */
}
