/* -------------------------------------------
   Estilos Principales IQDOTNET
-------------------------------------------- */

/* Variables de colores */
:root {
    --azul-iqdotnet: #1A2E4A;
    --gris-claro: #f8f9fa;
    --amarillo-iqdotnet: #FFD100;
    --blanco: #ffffff;
  }
  
  /* Estilos generales */
  body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: var(--blanco);
    margin: 0;
    padding: 0;
  }
  
  
  /* Hero Principal */
  #inicio {
    background: linear-gradient(var(--azul-iqdotnet), #434D5A);
    color: var(--blanco);
  }
  
  #inicio h1 {
    font-weight: 700;
  }
  
  #inicio p {
    font-size: 1.2rem;
  }
  
  #inicio img {
    animation: float 4s ease-in-out infinite;
  }
  
  /* Navbar Estilo Inicial */
.navbar {
  background-color: #1A2E4A;
  transition: all 0.3s ease;
  padding: 20px 0;
}

/* Navbar cuando haces scroll (shrink) */
/* Navbar principal con gradiente IQDOTNET */
/* --- NAVBAR NORMAL CON GRADIENTE IQDOTNET --- */
.navbar {
  background: linear-gradient(90deg, #FFD100, #ED1C24, #0066FF, #39B54A);
  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite;
  transition: all 0.4s ease;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- NAVBAR SHRINK (SCROLL) CON GRADIENTE PROFESIONAL --- */
.navbar.shrink {
  padding: 8px 0;
  background: linear-gradient(90deg, #1A2E4A, #434D5A, #FC5200);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --- ENLACES --- */
.nav-link {
  color: white !important;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #FFD100 !important;
}

/* --- DARK MODE AUTOMÁTICO --- */
@media (prefers-color-scheme: dark) {
  .navbar {
    background: linear-gradient(90deg, #1A2E4A, #434D5A, #101010);
    background-size: 400% 400%;
    animation: gradientFlowDark 10s ease infinite;
  }

  .navbar.shrink {
    background: rgba(20, 20, 20, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  .nav-link {
    color: #CCCCCC !important;
  }

  .nav-link:hover {
    color: #FFD100 !important;
  }
}

@keyframes gradientFlowDark {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}




  
  /* Botones */
  .btn-warning {
    background-color: var(--amarillo-iqdotnet);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  
  .btn-warning:hover {
    background-color: #FFC300;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .btn-primary {
    background-color: var(--azul-iqdotnet);
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: #15223B;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  /* Encabezados */
  h2 {
    font-weight: 700;
  }
  
  p {
    font-size: 1rem;
  }
  
  /* Tarjetas de Servicios */
  .card {
    border: none;
    transition: all 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  
  /* Imagenes */
  .img-fluid {
    border-radius: 15px;
  }
  
  /* Secciones */
  section {
    padding: 80px 0;
  }
  
  /* Footer */
  footer {
    background-color: var(--azul-iqdotnet);
    color: var(--blanco);
  }
  
  footer a {
    color: var(--amarillo-iqdotnet);
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  /* Botón Back to Top */
  #back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #0066FF, #ED1C24, #FFD100, #39B54A);
    background-size: 400% 400%;
    animation: gradientMove 8s ease infinite;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: none;
    z-index: 1000;
  }
  
  /* Efecto de hover */
  #back-to-top:hover {
    transform: scale(1.1) rotate(5deg);
  }
  
  /* Animación del gradiente */
  @keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  

/* Efecto hover en tarjetas */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
  }
  
  /* Efecto hover en botones */
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }
  /* Hover suave en íconos */
  .icon-hover:hover {
    transform: rotate(5deg) scale(1.2);
    transition: all 0.4s ease;
  }

/* Hover suave en tarjetas */
.card:hover, .p-4.border:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
}

/* Hover suave en botones */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
#cta {
  background-color: #1A2E4A;
}

#cta .btn-warning {
  font-weight: bold;
  padding: 12px 30px;
  font-size: 1.2rem;
}

/* Hover efecto en pasos circulares */
.p-4.border.rounded-circle:hover {
  transform: scale(1.1);
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
/* Navbar normal */
.navbar {
  transition: all 0.3s ease;
  padding: 20px 0;
}

/* Navbar reducido al hacer scroll */
.navbar.shrink {
  padding: 8px 0;
  background: rgba(26, 46, 74, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}


/* Microinteracción en inputs y textarea */
input:focus, textarea:focus {
  border-color: var(--amarillo-iqdotnet);
  box-shadow: 0 0 5px rgba(255, 209, 0, 0.5);
  outline: none;
  transition: all 0.3s ease;
}

/* Microinteracción en botones */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Microinteracción en íconos */
.icon-hover:hover {
  transform: scale(1.15);
  transition: all 0.3s ease;
}

/* -------------------------------------------
   Hero Principal Glassmorphism IQDOTNET
-------------------------------------------- */

/* Sección Hero */
#inicio {
  background: linear-gradient(135deg, var(--azul-iqdotnet), #434D5A);
  overflow: hidden;
  position: relative;
}

/* Tarjeta efecto vidrio */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  z-index: 1;
  position: relative;
}

/* Logo flotante */
.logo-float {
  max-width: 180px;
  height: auto;
  animation: floatLogo 6s ease-in-out infinite;
}

/* Animación flotante para el logo */
@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Botón Contáctanos personalizado */
.custom-btn:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Fondo de partículas suaves */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('assets/particles-light.png') repeat;
  opacity: 0.04;
  animation: moveBackground 60s linear infinite;
  z-index: 0;
}

@keyframes moveBackground {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

/* Logo flotante suave */
.logo-float {
  animation: floatLogo 6s ease-in-out infinite;
}

/* Flotación elegante */
@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Preloader Estilos */
#preloader {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--azul-iqdotnet);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid var(--amarillo-iqdotnet);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Testimonios mejorados */
.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.testimonial-icon i {
  font-size: 2.5rem;
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.15rem;
  color: #333;
  line-height: 1.6;
}

/* Corregir empresa en Testimonios */
.testimonial-company {
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1A2E4A; /* Azul IQDOTNET */
  background: transparent; /* 🔥 Elimina fondo azul oscuro */
  border: none; /* 🔥 Sin líneas o bordes */
  display: block; /* Asegura que sea línea propia */
  padding-top: 10px;
}


/* Anuncios */

.anuncio-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  visibility: hidden;
  opacity: 0;
}
.anuncio-contenido {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  transform: scale(0.5);
  box-shadow: 0 0 30px #00000040;
  font-family: 'Poppins', sans-serif;
}
.barra-progreso-container {
  width: 100%;
  height: 6px;
  background-color: #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.barra-progreso {
  height: 100%;
  width: 0%;
  background-color: #FC5200;
  transition: width 7s linear;
}

/*hambueguesa */
.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.8%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  transition: transform 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
  transform: rotate(90deg);
}