/* =======================
   RESET Y BASE
======================= */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; font-family:'Segoe UI', Roboto, sans-serif; scroll-behavior:smooth; }
body { background:#0a0a0f; color:#fff; overflow-x:hidden; }

/* =======================
   NAVBAR
======================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: rgba(10,10,15,0.0);
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(10,10,15,0.95);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
nav .logo a {
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
}
nav .menu {
  display: flex;
  gap: 25px;
  align-items: center;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  padding: 8px 12px;
  border-radius: 5px;
}
nav a:hover {
  color: #ccc;
  background: rgba(255,255,255,0.1);
}


/* HAMBURGUESA MÓVIL */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 20;
}
.hamburger div {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Efecto animación (X al abrir) */
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}
.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =======================
   HERO
======================= */
#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 0 20px;
  background: #0a0a0f;
  overflow: hidden;
}
#hero h1 {
  font-size: 3em;
  color: #fff;
  margin-bottom: 15px;
  z-index: 2;
  position: relative;
}
#hero p {
  font-size: 1.2em;
  color: #fff;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 30px;
  z-index: 2;
  position: relative;
}
#hero-legal {
  padding: 100px 60px;
  min-height: 25vh;
  background: #0b0d12;
  text-align: center;      /* ← centra el título */
}

/* CANVAS HERO */
canvas#network {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

/* =======================
   SECCIONES
======================= */
section {
  padding: 80px 20px;
  background: #0a0a0f;
  position: relative;
  z-index: 1;
}
section h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
  font-size: 2em;
}
section p {
  text-align: center;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 30px auto;
}


/* =======================
   FOOTER
======================= */
footer {
  background: #0a0a0f;
  color: #ccc;
  padding: 50px 20px 20px 20px;
  font-size: 0.9em;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px;
 text-align: center; /* centra texto en móviles */
}
footer .footer-column {
  flex: 1 1 200px;
  padding: 20px;       /* espacio interno general */
    margin-top: 10px;    /* espacio extra arriba */
}
footer h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1em;
}
footer a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 8px;
  transition: 0.3s;
}
footer a:hover {
  color: #aaa;
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #222;
  padding-top: 15px;
  font-size: 0.8em;
  color: #888;
}
.footer-socials {
  margin-top: 15px;
}
.footer-socials .social-icon {
  display: inline-block;
  margin: 0 5px;
  color: #fff;
  transition: 0.3s;
}
.footer-socials .social-icon:hover {
  color: #aaa;
}
.footer-socials svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* =======================
   RESPONSIVE
======================= */
@media(max-width: 768px) {
  nav { padding: 15px 20px; }
  .hamburger { display: flex; }

  nav .menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 220px;
    height: calc(100% - 60px);
    background: #111;
    flex-direction: column;
    gap: 15px;
    padding: 30px 20px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 15px rgba(0,0,0,0.4);
  }
  nav .menu.active {
    right: 0;
  }

  .service-card, .portfolio img {
    width: 90%;
  }
  footer .footer-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
}

/* =======================
   ANIMACIONES CON AOS
======================= */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ==============
   FOOTER LOGO
================ */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo-img {
  width: 90px;
  height: auto;
  margin-bottom: 5px;
  background: transparent; /* fondo transparente */
  transition: all 0.3s ease;
  
  /* Animación continua de brillo más fluida */
  animation: logoGlow 4s infinite alternate ease-in-out;
}

.footer-logo-img:hover {
  filter: drop-shadow(0 0 10px #ffffff);
}

/* Animación de brillo continuo más suave */
@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 5px #ffffff);
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 12px #ffffff);
    transform: scale(1.03);
  }
  100% {
    filter: drop-shadow(0 0 5px #ffffff);
    transform: scale(1);
  }
}



/* ===== SECCIONES GENERALES ===== */
.section-light {
  background-color: #1a1a1a; /* tono más claro para destacar */
}

/*  ==========

=========/*

/* ==========================
   NUEVAS SECCIONES VISUALES
========================== */
.section-highlight {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  background: #0a0a0f;
  overflow: hidden;
  z-index: 1;
}

.section-highlight:nth-child(even) {
  background: #131318; /* alterna tono más claro */
}

.section-highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, #0a0a0f 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.section-highlight h2 {
  font-size: 2em;
  margin-bottom: 25px;
  color: #fff;
}

.section-highlight p {
  font-size: 1.1em;
  color: #ddd;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.section-highlight .btn {
  display: inline-block;
  padding: 12px 28px;
  background: #444;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}
.section-highlight .btn:hover {
  background: #666;
}

/* =======================
   SECCIÓN: POR QUÉ ELEGIRNOS
======================= */
.section-fade {
  position: relative;
  background: #0a0a0f;
  padding: 100px 5% 150px 5%;
  text-align: center;
  overflow: hidden;
}

.section-fade h2 {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #fff;
}

.section-fade p {
  color: #bbb;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.choose-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 40px;
  z-index: 2;
  position: relative;
}

.choose-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  padding: 40px 25px;
  border-radius: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 25px rgba(255,255,255,0.05);
  transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}
.choose-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 35px rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

.choose-icon {
  color: #00c8f8;
  margin-bottom: 20px;
  opacity: 0.9;
}

.choose-card h3 {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.choose-card p {
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.6;
}

/* efecto degradado de disolución al final */
.fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(10,10,15,0) 0%, rgba(10,10,15,1) 100%);
  pointer-events: none;
}

/* RESPONSIVE */
@media(max-width: 900px) {
  .choose-grid {
    flex-direction: column;
    align-items: center;
  }
  .choose-card {
    width: 90%;
  }
}


/* ==========================
   EFECTO DESVANECIDO SUAVE
========================== */
.fade-bottom {
  position: relative;
}
.fade-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, #0a0a0f, transparent);
}

/* ==========================
   SECCIONES TIPO SPLIT (como "discos")
========================== */
.section-split {
  padding: 100px 5%;
  background: #0a0a0f;
  position: relative;
  overflow: hidden;
}

.section-split.section-alt {
  background: #131318; /* tono más claro para alternar */
}

.split-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.split-content.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1 1 45%;
}

.split-text h2 {
  font-size: 2.2em;
  color: #fff;
  margin-bottom: 20px;
}

.split-text p {
  color: #ccc;
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
}

.split-text .btn {
  display: inline-block;
  padding: 12px 28px;
  background: #444;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.split-text .btn:hover {
  background: #666;
}

.split-img {
  flex: 1 1 45%;
  text-align: center;
}

.split-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(255,255,255,0.1);
  transition: transform 0.6s ease;
}
.split-img img:hover {
  transform: scale(1.05);
}

/* RESPONSIVE */
@media(max-width: 900px) {
  .split-content {
    flex-direction: column;
    text-align: center;
  }
  .split-img, .split-text {
    flex: 1 1 100%;
  }
}
/*───────────────────────────────*/
/* 💻 SECCIÓN DE SERVICIOS - SOLO BLANCO/NEGRO */
/*───────────────────────────────*/
.servicios-section {
  background: linear-gradient(180deg, #0e0e0e 0%, #151515 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 60px;
}

.servicios-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

.servicio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 25px;
  width: 320px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.servicio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.service-icon {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.servicio-card:hover .service-icon {
  transform: scale(1.1);
}

.servicio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #fff;
}

.servicio-card p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 25px;
  line-height: 1.6;
}

.service-btn {
  display: inline-block;
  background: #1e1e1e;
  color: #fff;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center; /* asegura que el texto esté centrado */
}
.split-text .service-btn {
  display: inline-block;
  margin: 20px 0 0 0; /* separa un poco del párrafo */
}

/* Botón centrado */
.split-text-center {
  text-align: center;
}


}

.service-btn:hover {
  background: #2a2a2a;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.btn-servicio.premium {
  background: transparent;
  color: #00c8f8;
  border: 2px solid #00c8f8;
}

.btn-servicio.premium:hover {
  background: #00c8f8;
  color: #fff;
}

/* Adaptabilidad */
@media (max-width: 900px) {
  .servicios-grid {
    flex-direction: column;
    align-items: center;
  }

  .servicio-card {
    width: 90%;
  }
}

/* ===============================
   SECCIÓN CTA — INICIA TU PROYECTO
=============================== */
.cta-split {
  position: relative;
  overflow: hidden;
  background: #0a0a0f; /* fallback por si la red neuronal no carga */
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-split canvas#network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cta-split .split-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
}

.cta-split .split-text {
  flex: 1 1 500px;
  color: #fff;
}

.cta-split .split-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-split .split-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-split .split-img {
  flex: 0 0 auto;
}

.cta-split .btn-digital {
  display: inline-block;
  background: #1e1e1e;
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.cta-split .btn-digital:hover {
  background: #2a2a2a;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

/* Adaptabilidad */
@media (max-width: 900px) {
  .cta-split .split-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  .cta-split .split-img {
    margin-top: 15px;
  }
}
.cta-split {
  background: linear-gradient(180deg, #0e0e0e 0%, #151515 100%);
  color: #fff;
  padding: 100px 20px;
}

.cta-split .split-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-split .split-text {
  flex: 1 1 60%; /* Texto ocupa más espacio */
}

.cta-split .split-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-split .split-text p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 0;
  line-height: 1.6;
}

.cta-split .split-img {
  flex: 1 1 35%; /* Botón ocupa espacio de “imagen” */
  display: flex;
  justify-content: flex-end; /* Botón a la derecha */
  align-items: center;
}

.cta-split .btn-digital {
  display: inline-block;
  background: #1e1e1e;
  color: #fff;
  padding: 16px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.cta-split .btn-digital:hover {
  background: #333;
  box-shadow: 0 0 15px rgba(255,255,255,0.15);
}

/* Adaptabilidad móvil */
@media(max-width: 900px) {
  .cta-split .split-content {
    flex-direction: column;
    text-align: center;
  }
  .cta-split .split-img {
    justify-content: center;
    margin-top: 30px;
  }
}
/* ===========================
   CENTRADO DE SPLIT-TEXT Y BOTONES
=========================== */
.split-text {
  text-align: center; /* centra el texto */
}

.split-text .btn,
.split-text .service-btn {
  display: inline-block; /* asegura que los botones se comporten como inline-block */
  margin: 10px auto 0 auto; /* centra y separa del párrafo */
}

/* RESPONSIVE: asegura que todo siga centrado en pantallas pequeñas */
@media(max-width: 900px) {
  .split-text {
    text-align: center;
  }
  .split-text .btn,
  .split-text .service-btn {
    display: inline-block;
    margin: 10px auto 0 auto;
  }
}
/* Efecto “flip” para botones de .split-text */
.split-text .btn,
.split-text .service-btn {
  display: inline-block;
  margin: 10px auto 0 auto;
  padding: 12px 30px;
  border-radius: 8px;
  border: 0px solid #fff;       /* contorno inicial */
  background: #1e1e1e;          /* fondo inicial */
  color: #fff;                   /* texto inicial */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;    /* transición suave */
}

/* Hover: se “da vuelta” el color y contorno */
.split-text .btn:hover,
.split-text .service-btn:hover {
  background: transparent;       /* fondo se vuelve transparente */
  color: #fff;                   /* texto ahora blanco al pasar el mouse */
  border: 0px solid #fff;       /* contorno blanco */
  transform: scale(1.05);       /* pequeño zoom para efecto flip */
}

/* BOTÓN SUBIR ARRIBA (AZUL NIARUX) */
#btn-up {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: rgba(0, 120, 255, 0.25); /* glass azul */
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 140, 255, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4db8ff; /* icono azul brillante */
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s, box-shadow .3s, background .3s;
    box-shadow: 
        0 0 14px rgba(0, 140, 255, 0.4),
        inset 0 0 12px rgba(70, 170, 255, 0.20);
    z-index: 9999;
}

#btn-up svg {
    width: 26px;
    height: 26px;
}

#btn-up:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 0 20px rgba(0, 140, 255, 0.6),
        inset 0 0 16px rgba(70, 170, 255, 0.35);
    background: rgba(0, 120, 255, 0.45);
}
