/* Importar fuentes elegantes y modernas */
@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@500;700&family=Manrope:wght@400;600&display=swap');

/* ==== Global ==== */
* {
 margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif; /* Fuente para párrafos */
}
body {
  margin: 0;
 
  background: #111827;

}
h1, h2, h3, h4, h5, h6 {
  font-family: "Clash Display", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
     color: #e2e8f0;
}
/* ==== Hero ==== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,245,160,.1);
}

/* ===== Hero ===== */
.hero{position:relative; overflow:hidden; border-bottom:1px solid rgba(0,245,160,.1)}
.hero .bg{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(0,245,160,.25), transparent),
              radial-gradient(1200px 600px at 80% 10%, rgba(0,97,255,.20), transparent);
}
.hero .content{position:relative; z-index:1; padding:84px 0 60px}
.hero .content {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
  text-align: center;
}
.h1{
       font-size: 2rem;
  margin-top: 45px;
  font-weight: 800;
  margin-bottom: 16px;
  background: #00ffbf;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: #f1f5f9;
  opacity: .9;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==== KPIs ==== */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}
.kpi {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.kpi h4 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #00f5a0;
}
.kpi small {
  font-size: 0.95rem;
  color: #9ca3af;
}
.kpi:hover {
  transform: translateY(-8px);
  background: rgba(0, 245, 160, 0.08);
}
.kpi i {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #00f5a0;
  animation: bounce 1.8s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==== Servicios ==== */
.servicios-section {
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.servicio-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(15px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 212, 255, 0.4);
}
.servicio-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #00f5a0;
}
.servicio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}
.servicio-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* ==== WhatsApp ==== */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  font-size: 2rem;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.3s;
}
.btn-whatsapp:hover {
  transform: scale(1.1);
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  .servicio-card {
    padding: 1.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
   .hero{
   padding: 25px;
   margin-top: -55px;
  }
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Ocultar con fade-out */
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
} 

/* Spinner elegante */
.spinner {
  width: 80px;
  height: 80px;
  border: 6px solid rgba(0, 255, 200, 0.2);
  border-top: 6px solid #00ffc8;
  border-radius: 50%;
  animation: spin 1.2s linear infinite, glow 2s ease-in-out infinite alternate;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.4);
}

/* Animación de rotación */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Efecto de brillo intermitente */
@keyframes glow {
  from { box-shadow: 0 0 10px rgba(0, 255, 200, 0.4); }
  to { box-shadow: 0 0 30px rgba(0, 255, 200, 0.9); }
}
/* Texto elegante */
.loader-text {
  margin-top: 20px;
  font-size: 1.2rem;
  font-family: 'Clash Display', sans-serif;
  background: linear-gradient(90deg, #00ffc8, #007bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 1.5s ease-in-out infinite alternate;
  letter-spacing: 1px;
}
/* Animación del texto */
@keyframes fadeIn {
  from { opacity: 0.5; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(-3px); }
}