/* Importar Bootstrap */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Variables de colores */
:root {
  --primary-dark: #0a0a0f;
  --secondary-dark: #12121f;
  --primary-blue: #003366;
  --accent-blue: #0066cc;
  --accent-light-blue: #00a8ff;
  --accent-cyan: #00ffff;
  --text-light: #e0e0e0;
  --text-white: #ffffff;
  --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  --gradient-secondary: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  --shadow-glow: 0 0 15px rgba(0, 168, 255, 0.5);
}

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fondo de partículas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--primary-dark);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 168, 255, 0.2);
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  text-shadow: var(--shadow-glow);
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--accent-cyan);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Navegación */
.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  margin-left: 30px;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav a:hover {
  color: var(--accent-cyan);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* Main content */
.main-content {
  margin-top: 80px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.2), rgba(0, 10, 20, 0.8));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 168, 255, 0.1), transparent 70%);
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero .line1, .hero .line2, .hero .line3, .hero .line4, .hero .line5 {
  display: block;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.hero .line1 { color: var(--accent-cyan); }
.hero .line2 { color: var(--accent-light-blue); }
.hero .line3 { color: var(--accent-blue); }
.hero .line4 { color: var(--text-light); }
.hero .line5 { color: var(--accent-cyan); }

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

/* Botones */
.btn-primary {
  display: inline-block;
  background: var(--gradient-secondary);
  color: var(--text-white);
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 168, 255, 0.4);
  color: var(--text-white);
}

.btn-calendar {
  font-size: 1.1rem;
  padding: 15px 40px;
}

/* Secciones generales */
h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--accent-cyan);
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.content-box, .origen-text, .educacion-texto {
  background: rgba(18, 18, 31, 0.7);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(0, 168, 255, 0.2);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(10px);
}

.content-box p, .origen-text p, .educacion-texto p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.content-box strong, .origen-text strong, .educacion-texto strong {
  color: var(--accent-cyan);
}

.content-box em, .origen-text em {
  color: var(--accent-light-blue);
  font-style: italic;
}

/* Pilares tecnológicos */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tech-card {
  background: rgba(18, 18, 31, 0.7);
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 168, 255, 0.2);
  backdrop-filter: blur(10px);
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 168, 255, 0.3);
  border-color: var(--accent-cyan);
}

.tech-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.tech-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent-cyan);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Clientes */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.cliente {
  background: rgba(18, 18, 31, 0.7);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 168, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.cliente:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 168, 255, 0.3);
}

.cliente img {
  max-width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

.btn-ver-mas {
  background: var(--gradient-secondary);
  color: var(--text-white);
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ver-mas:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

/* Modales */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--secondary-dark);
  margin: 5% auto;
  padding: 30px;
  width: 90%;
  max-width: 800px;
  border-radius: 15px;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  max-height: 80vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: var(--text-white);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.modal-logo {
  text-align: center;
  margin-bottom: 20px;
}

.modal-logo img {
  max-width: 150px;
  height: auto;
}

.modal h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.8rem;
}

.modal p {
  margin-bottom: 25px;
  line-height: 1.7;
}

.btn-link {
  display: inline-block;
  background: var(--gradient-secondary);
  color: var(--text-white);
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 168, 255, 0.4);
  color: var(--text-white);
}

/* Sección educativa */
.fases-wrapper {
  margin-top: 50px;
}

.fases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.fase-card {
  background: rgba(18, 18, 31, 0.7);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 168, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.fase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-secondary);
}

.fase-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 168, 255, 0.3);
}

.fase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  color: var(--text-white);
  border-radius: 50%;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.fase-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent-cyan);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Contacto */
.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

.contact-note {
  margin-top: 30px;
  font-style: italic;
  color: var(--accent-light-blue);
}

/* Footer */
.footer {
  background: var(--secondary-dark);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 168, 255, 0.2);
}

.footer p {
  margin: 0;
  color: var(--text-light);
}

/* Media Queries para Responsividad */

/* Media Queries para Responsividad */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }
  
  .nav.active {
    max-height: 300px;
  }
  
  .nav ul {
    flex-direction: column;
    padding: 20px 0;
  }
  
  .nav li {
    margin: 10px 0;
    text-align: center;
  }
  
  /* AJUSTES ESPECÍFICOS PARA EL HERO */
  .main-content {
    margin-top: 60px; /* Reducir espacio del header */
  }
  
  .hero {
    min-height: 80vh;
    padding: 30px 0;
    justify-content: center;
  }
  
  .hero .container {
    padding-top: 30px; /* Empujar contenido hacia arriba */
  }
  
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .modal-content {
    width: 95%;
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 70vh;
    padding: 20px 0;
  }
  
  .hero .container {
    padding-top: 10px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .btn-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  
  .content-box, .origen-text, .educacion-texto {
    padding: 20px;
  }
  
  .tech-grid, .clientes-grid, .fases-grid {
    grid-template-columns: 1fr;
  }
}

/* Estilos específicos para enlaces externos */
.btn-primary[target="_blank"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary[target="_blank"]::after {
  content: "↗";
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.btn-primary[target="_blank"]:hover::after {
  transform: translate(2px, -2px);
}

/* Asegurar que los enlaces sean clickeables en móviles */
.btn-primary {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
}

/* Mejorar la accesibilidad táctil en móviles */
@media (max-width: 768px) {
  .btn-primary {
    min-height: 44px; /* Tamaño mínimo recomendado para botones táctiles */
    padding: 12px 24px;
  }
}