/* GENERAL */
body {
  margin: 0;
  font-family: 'Aptos Mono', sans-serif;
  background: #001219; /* Fondo oscuro */
  color: #E0F7FA;
  scroll-behavior: smooth;
}

/* NAVBAR - Conserva degradado y diseño original */
header {
  background-color: rgba(0, 18, 25, 0.85); /* oscuro con transparencia */
  border-bottom: 2px solid #00FF85; /* borde verde neón */
  padding: 20px 40px;
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: flex-end;
  padding: 0;
  gap: 50px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  color: #E0F7FA;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 25px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.menu li a:hover {
  background: linear-gradient(90deg, #00FF85, #00BFFF);
  color: #0A192F;
  transform: scale(1.05);
}

/* SLOGAN - fondo oscuro para armonía con body y footer */
.slogan-container {
  background-color: #001219;
  border-radius: 15px;
  padding: 60px 40px;
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
  color: #00FF85;
  box-shadow: 0 0 10px rgba(0, 255, 133, 0.3);
}

/* Logo y texto slogan */
.logo-slogan {
  width: 220px;
  height: auto;
}

.slogan-text {
  font-size: 1.7rem;
  margin-top: 15px;
  color: #00FF85;
}

/* FOOTER - fondo oscuro igual que body */
footer {
  background-color: #001219;
  color: #B2EBF2;
  text-align: center;
  padding: 20px 40px;
  border-radius: 0 0 15px 15px;
  font-size: 0.9rem;
}

.social-icons a {
  color: #00FF85;
  margin: 0 15px;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #E0F7FA;
}


/* SECCIONES */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

/* FONDOS POR SECCIÓN */
#nosotros {
  background-color: #001F29;
}

#servicios {
  background-color: #002B36;
}

#contacto {
  background-color: #001219;
  color: #E0F7FA;
}

/* TARJETAS DE SERVICIOS */
#servicios h2 {
  font-size: 2.8rem;
  text-align: center;
  color: #fff; /* letras blancas */
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  position: relative;
  text-shadow: 
    0 0 8px #00FF85,
    0 0 16px #00FF85,
    0 0 24px #00FF85,
    0 0 40px rgba(0, 255, 133, 0.7);
}


#servicios h2::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, #00FF85, transparent);
  box-shadow: 0 0 12px #00FF85;
  border-radius: 2px;
}

/* --- Servicios: 3 por fila y última fila centrada --- */
/* --- Servicios: 3 columnas fijas, última fila centrada --- */
.servicios-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;   /* 👈 centra la fila incompleta */
  margin-top: 30px;
}

.card {
  flex: 0 0 250px;           /* 👈 cada tarjeta mide 250px fijo */
}


/* Tablet: 2 columnas */
@media (max-width: 1024px) {
  .card {
    flex: 0 0 calc(50% - 30px);
    max-width: 300px;
  }
}

/* Móvil: 1 columna */
@media (max-width: 600px) {
  .card {
    flex: 0 0 100%;
    max-width: 350px;
  }
}


.card {
  background: #012B36;
  box-shadow: 0 0 15px rgba(0, 255, 133, 0.15);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  width: 250px;
  transition: all 0.35s ease;
  border: 1px solid rgba(0,255,133,0.3);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 133, 0.6);
  border-color: #00FF85;
}

.card i {
  font-size: 2.5rem;
  color: #00FF85;
  margin-bottom: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover i {
  transform: scale(1.2) rotate(-5deg);
  color: #2FFD5E;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2FFD5E;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: #00FF85;
}

.card p {
  font-size: 0.95rem;
  color: #B2EBF2;
  line-height: 1.4rem;
}


/* FOOTER */
footer {
  text-align: center;
  font-size: 0.9rem;
  border-radius: 0 0 15px 15px;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: #E0F7FA;
  margin: 0 15px;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #0A192F;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .menu {
    flex-direction: column;
    align-items: center;
  }

  .servicios-container {
    flex-direction: column;
    align-items: center;
  }

  .slogan-text {
    font-size: 1.3rem;
  }

  .card {
    width: 90%;
  }
}

/* ANIMACIONES */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.separator-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00BFFF, #00FF85, #00BFFF);
  background-size: 200% 100%;
  animation: moveLine 4s linear infinite;
  margin: 0 auto;
  border: none;
}

@keyframes moveLine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.full-bg {
  width: 100%;
  padding: 60px 20px;
}

.bg-nosotros {
  background-color: #001F29;
}

.bg-servicios {
  background-color: #002B36;
}

.bg-contacto {
  background-color: #001219;
  color: #E0F7FA;
}

/* FORMULARIO DE CONTACTO */
.contact-form {
  max-width: 600px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: rgba(0, 255, 133, 0.05);
  padding: 25px 30px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 255, 133, 0.2);
}

.contact-form label {
  font-weight: bold;
  color: #00FF85;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
  background-color: #fff;
  color: #0A192F;
  transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px #00FF85;
}

.contact-form button {
  background: linear-gradient(90deg, #00BFFF, #00FF85);
  color: #0A192F;
  padding: 12px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: linear-gradient(90deg, #00FF85, #00BFFF);
  transform: scale(1.05);
}


/* Botón CTA en hero */
.btn-cta {
  display: inline-block;
  margin-top: 25px;
  background: linear-gradient(90deg, #00BFFF, #00FF85);
  color: #0A192F;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0, 255, 133, 0.5);
  transition: all 0.3s ease;
}
.btn-cta:hover {
  background: linear-gradient(90deg, #00FF85, #00BFFF);
  transform: scale(1.07);
  box-shadow: 0 0 18px rgba(0, 255, 133, 0.7);
}

/* Texto destacado */
.highlight {
  color: #00BFFF;
}

/* Testimonios */
.bg-testimonios {
  background-color: #012B36;
}
.testimonios-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}
.testimonio {
  background: rgba(0, 18, 25, 0.7);
  border: 1px solid rgba(0,255,133,0.3);
  border-radius: 15px;
  padding: 25px;
  max-width: 300px;
  color: #E0F7FA;
  box-shadow: 0 6px 20px rgba(0,255,133,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonio:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,255,133,0.4);
}
.testimonio p {
  font-style: italic;
  margin-bottom: 15px;
}
.testimonio h4 {
  text-align: right;
  font-size: 0.9rem;
  color: #00FF85;
}

/* Inputs animados estilo neon */
.contact-form input,
.contact-form textarea {
  transition: 0.3s ease-in-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: none;
  outline: none;
  transform: scale(1.03);
  box-shadow: 0 0 12px #00FF85;
}

.logo-slogan {
  width: 220px;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.btn-cta {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 12px rgba(0, 255, 133, 0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 22px rgba(0, 255, 133, 0.8); }
  100% { transform: scale(1); box-shadow: 0 0 12px rgba(0, 255, 133, 0.5); }
}

/* Efecto máquina de escribir controlado con JS */
#typewriter {
  font-size: 1.7rem;
  color: #00FF85;
}

.cursor {
  display: inline-block;
  color: #00FF85;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* CONTENEDOR PRINCIPAL */
.testimonios-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

/* CARRUSEL */
.testimonios-carousel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CADA TESTIMONIO COMO CARD */
.testimonios-content {
  display: flex;
  align-items: center;   /* centra verticalmente */
  justify-content: space-between; /* separa carrusel e imagen */
  gap: 40px; /* espacio entre ambos */
}

.testimonios-carousel {
  flex: 1; /* ocupa todo el espacio posible */
}

.imagen {
  flex: 0 0 40%; /* ancho fijo aprox. 40% */
  display: flex;
  justify-content: center;
}


.testimonio {
  display: none;
  background: #1a1a1a; /* sutil diferencia con fondo */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeIn 0.7s ease-in-out;
}

.testimonio.active {
  display: block;
}

.quote {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #f0f0f0;
  position: relative;
}

.quote::before {
  content: "❝";
  font-size: 3rem;
  color: #00c46a; /* puedes cambiarlo después */
  position: absolute;
  left: -15px;
  top: -10px;
}

.author {
  font-size: 1rem;
  margin-bottom: 5px;
  opacity: 0.9;
}

.empresa {
  font-weight: bold;
  font-size: 1rem;
}

/* CONTROLES */
.testimonios-controls {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.testimonios-controls button {
  background: #222;
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: transform 0.2s, background 0.3s;
}

.testimonios-controls button:hover {
  background: #00c46a;
  transform: scale(1.1);
}

/* IMAGEN LATERAL */
.imagen img {
  width: 150%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Estilo para el subtítulo de Testimonios con efecto máquina de escribir */
#subtitle-testimonios {
  font-size: 1.7rem;       /* Tamaño del texto */
  font-weight: 700;      /* Negrita */
  color: #00FF85;        /* Cambia por el color que quieras */
  font-family: 'Poppins', sans-serif; /* Fuente similar al slogan */
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}
}

/* Cursor parpadeante */
#subtitle-testimonios .cursor {
  display: inline-block;
  background-color: #ff6f61; /* Color del cursor */
  width: 2px;
  margin-left: 2px;
  animation: blink 0.7s infinite;
  vertical-align: bottom;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* --- Redes sociales flotantes --- */
.redes-flotantes {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;    /* ancla los items por la derecha */
  gap: 10px;
  width: 45px;              /* CONTENEDOR FIJO: no crece */
  overflow: visible;        /* permite que el hover se salga a la izquierda */
  z-index: 9999;
}

.redes-flotantes a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 45px;              /* solo icono visible */
  background: #333;
  color: #fff;
  text-decoration: none;
  padding: 10px;
  border-radius: 5px 0 0 5px;
  overflow: hidden;
  transition: width 0.25s ease;
  will-change: width;
}

.redes-flotantes a i {
  font-size: 20px;
  min-width: 20px;          /* fija el ancho del ícono */
  text-align: center;
}

.redes-flotantes a span {
  margin-left: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;       /* que no ocupe espacio mientras está oculto */
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Se expande SOLO el botón en hover, el contenedor no cambia */
.redes-flotantes a:hover {
  width: 160px;             /* se “sale” hacia la izquierda */
}

.redes-flotantes a:hover span {
  opacity: 1;
  visibility: visible;
}

/* Colores por red social */
.redes-flotantes a.facebook { background: #3b5998; }
.redes-flotantes a.instagram { background: #e1306c; }
.redes-flotantes a.whatsapp { background: #25d366; }
/*.redes-flotantes a.tiktok   { background: #010101; } */


/* === QUIÉNES SOMOS (Versión Tech / Neon Glow) === */
#nosotros {
  text-align: center;
  padding: 0rem 0rem;
  color: #fff;
}

#nosotros h2 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #00ffcc, #00aaff, #9b4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Cards con efecto glow */
.nosotros-card {
  background: rgba(15, 15, 30, 0.9);
  border: 2px solid transparent;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

/* Borde con gradiente animado */
.nosotros-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 1.5rem;
  padding: 2px;
  background: linear-gradient(270deg, #00ffcc, #00aaff, #9b4dff, #ff0080);
  background-size: 400% 400%;
  z-index: -1;
  animation: glowBorder 6s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, 
                linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes glowBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nosotros-card i {
  font-size: 2.5rem;
  margin-bottom: -1rem;
  color: #00ffcc;
  text-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
  transition: color 0.3s, transform 0.3s;
}

.nosotros-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

.nosotros-card p {
  font-size: 1rem;
  color: #aaa;
  line-height: 1.6;
}

.nosotros-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0px 0px 25px rgba(0, 255, 204, 0.3);
}

.nosotros-card:hover i {
  background: linear-gradient(90deg, #00ffcc, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(0, 255, 204, 0.8);
  transform: scale(1.2);
}


/* Video */
.nosotros-video {
  margin-top: 4rem;
  text-align: center;
}

.nosotros-video video {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0px 10px 30px rgba(0,255,204,0.3);
}
.slogan-stats .stat h3 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00BFFF; /* Azul eléctrico de tu branding */
}

.slogan-stats .stat p {
  font-size: 1rem;
  color: #fff;
  margin-top: 0.5rem;
}
/* ------------------- LOGO ------------------- */
.logo-slogan {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 10px;
  animation: floatGlow 3s ease-in-out infinite;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-slogan:hover {
  transform: translateY(-5px) scale(1.05);
  filter: drop-shadow(0 0 25px #00FF85);
}

@keyframes floatGlow {
  0% {
    transform: translateY(0);
    filter: drop-shadow(0 0 8px #00bfff);
  }
  50% {
    transform: translateY(-12px);
    filter: drop-shadow(0 0 20px #2ffd5e);
  }
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 8px #00bfff);
  }
}

/* ------------------- STATS ------------------- */
.slogan-stats {
  display: flex;
  flex-direction: row; /* horizontal */
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: nowrap;
  text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
  .slogan-stats {
    flex-direction: column; /* apila vertical */
    gap: 1.5rem;
  }
}

.slogan-stats .stat {
  flex: 1 1 auto;         /* Permite que los contadores se distribuyan equitativamente */
  min-width: 120px;       /* Evita que se encojan demasiado */
}

.slogan-stats .stat h3 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.slogan-stats .stat p {
  font-size: 1rem;
  margin: 0.5rem 0 0;
}

.counter-green {
  background: linear-gradient(90deg, #00FF85, #00CC66);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counter-blue {
  background: linear-gradient(90deg, #00BFFF, #0077FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counter-cyan {
  background: linear-gradient(90deg, #00FFFF, #00CCCC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}




/* Responsive: en móviles apilar verticalmente */
@media (max-width: 768px) {
  .slogan-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

#btnUp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: #333;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px); /* empieza un poquito abajo */
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);

  display: flex;
  align-items: center;
  justify-content: center;
}

#btnUp:hover {
  background: #555;
  transform: translateY(-3px); /* leve levantón al hover */
}

/* cuando aparece */
#btnUp.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* vuelve a su lugar */
}

/* Asegura que lo que tenga data-aos arranque oculto */
[data-aos] {
  opacity: 0;
  transform: translateY(16px);
  transition-property: opacity, transform;
}

/* Visible solo cuando AOS pone la clase */
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

[data-aos]:not(.aos-animate) {
  opacity: 0 !important;
  transform: translateY(30px);
}

