/* =================== RESET Y BASE =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;

}

body {
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  background: #0a0a0a;
}

/* =================== VARIABLES CSS =================== */
:root {
  --primary-blue: #1a365d;
  --secondary-blue: #2d5aa0;
  --accent-cyan: #00d4ff;
  --accent-purple: #6366f1;
  --text-light: #f7fafc;
  --text-gray: #a0aec0;
  --dark-bg: #0a0a0a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* =================== NAVBAR MEJORADA =================== */
.navbar {
  background: rgba(10, 10, 10, 0.98) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--accent-cyan);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  min-height: 70px;
  z-index: 1050;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid var(--accent-cyan);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

.navbar-brand img:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  transform: rotate(5deg);
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--text-light) !important;
  font-weight: 500;
  margin: 0 10px;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.navbar-nav .nav-link:hover::before {
  opacity: 0.1;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2800, 212, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =================== HERO FUTURISTA =================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(26, 54, 93, 0.9) 0%, 
    rgba(45, 90, 160, 0.8) 50%, 
    rgba(99, 102, 241, 0.7) 100%),
    url("https://res.cloudinary.com/dgzfknw2l/image/upload/v1751387297/fondo_mapcoficfuturista_lual9n.webp") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
  animation: float-lights 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-lights {
  0%, 100% { 
    background: 
      radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
  }
  50% { 
    background: 
      radial-gradient(circle at 30% 60%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 50% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(0, 212, 255, 0.05) 50%, transparent 51%);
  animation: scan-line 4s linear infinite;
  pointer-events: none;
}

@keyframes scan-line {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    var(--accent-cyan) 30%, 
    var(--accent-purple) 70%, 
    #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero h1 i {
  display: inline-block;
  margin-right: 15px;
  filter: drop-shadow(0 0 10px var(--accent-cyan));
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

#rotating-text {
  display: block;
  min-height: 80px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero img {
  border: 3px solid var(--accent-cyan);
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.4),
    0 0 60px rgba(99, 102, 241, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 
    0 0 40px rgba(0, 212, 255, 0.6),
    0 0 80px rgba(99, 102, 241, 0.3);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =================== BOTÓN FUTURISTA =================== */
.btn-shine-contacto {
  position: relative;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 25px rgba(0, 212, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
  display: inline-block;
}

.btn-shine-contacto::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-shine-contacto:hover::before {
  left: 100%;
}

.btn-shine-contacto:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(0, 212, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

.btn-shine-contacto:active {
  transform: translateY(-1px);
}

/* =================== SECCIONES CON GLASS MORPHISM =================== */
.bg-light {
  /* background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.05) 100%) !important; */
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.bg-primary {
  background: linear-gradient(135deg, 
    var(--primary-blue) 0%, 
    var(--secondary-blue) 50%, 
    var(--accent-purple) 100%) !important;
  position: relative;
  z-index: 1;
}

.bg-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="1"/></g></svg>');
  opacity: 0.3;
  pointer-events: none;
}

/* =================== TARJETAS MEJORADAS =================== */
.shadow {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out;
}

.shadow:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: var(--accent-cyan);
}

.shadow h4,
.shadow h5 {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.shadow p {
  color: var(--text-gray);
  line-height: 1.6;
}

.benefit-card, .mission-card, .service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.benefit-card:hover, .mission-card:hover {
  border-color: var(--accent-cyan);
}

/* =================== ICONOS ANIMADOS =================== */
.text-primary {
/*   background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)) !important;
 */  -webkit-background-clip: text;
  background-clip: text;
/*   -webkit-text-fill-color: transparent;
 */}

.bi {
  filter: drop-shadow(0 4px 8px rgba(0, 212, 255, 0.2));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-hover:hover,
.shadow:hover .bi {
  filter: drop-shadow(0 8px 16px rgba(0, 212, 255, 0.4));
  transform: scale(1.2) rotate(10deg);
}

.icon-hover {
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.icon-hover:hover {
  transform: rotate(10deg) scale(1.2);
  color: #ffcc00 !important;
}

/* =================== SERVICIOS HOVER =================== */
.servicio-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* =================== CARRUSEL MEJORADO =================== */
.carousel-item {
  padding: 60px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
/*   margin: 0 10px;
 */  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-item h5,
.carousel-item h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-item p {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.carousel-content {
  max-width: 600px;
  margin: 0 auto;
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--accent-cyan);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--accent-cyan);
  border: none;
  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
}

/* =================== FORMULARIO FUTURISTA =================== */
.form-control {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 15px 20px;
  color: var(--text-light);
  font-size: 1rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder {
  color: white;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 
    0 0 0 0.2rem rgba(0, 212, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.contact-form-wrapper {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.form-floating > label {
  color: white;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--accent-cyan);
}

/* =================== FOOTER FUTURISTA =================== */
footer {
  background: linear-gradient(135deg, 
    rgba(10, 10, 10, 0.95) 0%, 
    rgba(26, 54, 93, 0.8) 100%);
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--accent-cyan);
  position: relative;
  margin-top: auto;
  z-index: 1;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--accent-cyan), 
    var(--accent-purple), 
    transparent);
  animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

footer img {
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

footer img:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

footer p {
  color: var(--text-gray);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.social-links a {
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--accent-cyan) !important;
  transform: translateY(-3px);
}

/* =================== TÍTULOS MEJORADOS =================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  position: relative;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
}

section .lead {
  color: var(--text-gray);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* =================== RESPONSIVE MEJORADO =================== */

/* =================== CORRECCIONES ADICIONALES =================== */
/* Prevenir overflow horizontal */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Asegurar que las secciones no se solapen */
section {
  position: relative;
  width: 100%;
}

/* Fix para evitar que las animaciones causen scroll horizontal */


.row {
  margin-left: 0;
  margin-right: 0;
}

.col {
  padding-left: 12px;
  padding-right: 12px;
}

/* =================== EFECTOS DE PARTÍCULAS =================== */
#particles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: whitesmoke;
  overflow: hidden;
}

#particles-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(0, 212, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(99, 102, 241, 0.3), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(0, 212, 255, 0.4), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(99, 102, 241, 0.4), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(0, 212, 255, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 150px;
  animation: particle-float 20s linear infinite;
}

@keyframes particle-float {
  0% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-10px) translateX(10px); }
  66% { transform: translateY(5px) translateX(-5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  #rotating-text {
    min-height: 60px;
  }
  
  .btn-shine-contacto {
    padding: 14px 30px;
    font-size: 1rem;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .carousel-item {
    padding: 40px 15px;
  }
  
  .carousel-item h5,
  .carousel-item h4 {
    font-size: 1.5rem;
  }
  
  .carousel-item p {
    font-size: 1rem;
  }
  
  /* Fix para secciones en mobile */
  section {
    position: relative;
    z-index: 1;
  }
  
  .bg-light {
    margin-top: 0;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  /* Navbar mobile mejorada */
  .navbar {
    padding: 0.8rem 0;
  }
  
  .navbar-toggler {
    border: 1px solid var(--accent-cyan);
    padding: 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem !important;
    margin: 0.2rem 0;
    border-radius: 8px;
  }
  
  /* Fix para partículas de fondo en mobile */
  #particles-background::before {
    animation: none;
    opacity: 0.3;
  }
  
  /* Mejorar el contraste del texto en mobile */
  .text-muted {
    color: #a0aec0 !important;
  }
  
  .shadow p {
    color: #cbd5e0 !important;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .btn-shine-contacto {
    padding: 12px 25px;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  
  /* Asegurar que todo el contenido esté dentro del viewport */
  body {
    overflow-x: hidden;
  }
  
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mejorar spacing en mobile */
  section {
    padding: 3rem 0 !important;
  }
  
  .hero {
    padding: 90px 0 50px;
  }
}

/* =================== ANIMACIONES ADICIONALES =================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================== MAIN WIDTH MEJORADO =================== */
@media (min-width: 1200px) {
  main {
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

       
  
    
   