/* ============================================
   ESTILOS GLOBALES - APEX INTELLIGENCE
   Colores: Negro (#0b0d10), Azul (#2a7aff), Blanco (#ffffff)
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0b0d10;
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
  color: #f0f4ff;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ----- HEADER / NAV ----- */
.navbar {
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(42, 122, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(145deg, #ffffff 20%, #4a8bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  -webkit-text-fill-color: #2a7aff;
  font-size: 2rem;
  filter: drop-shadow(0 0 12px #1a5fcf66);
  animation: pulse 3s infinite;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: #d6e5ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
  padding: 6px 12px;
  border-radius: 8px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2a7aff;
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: #5b9aff;
  background: rgba(42, 122, 255, 0.1);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a.active {
  color: #ffffff;
  background: rgba(42, 122, 255, 0.15);
}

.nav-links a.active::after {
  width: 80%;
}

.nav-links .btn-nav {
  background: linear-gradient(135deg, #1a5fcf, #2a7aff);
  color: white !important;
  padding: 8px 24px !important;
  border-radius: 30px !important;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(42, 122, 255, 0.3);
  transition: all 0.3s;
}

.nav-links .btn-nav::after {
  display: none;
}

.nav-links .btn-nav:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(42, 122, 255, 0.5);
  background: linear-gradient(135deg, #2a6fe0, #3a8aff);
}

/* ===== SECCIONES GENERALES ===== */
.page-section {
  padding: 80px 0 60px;
  flex: 1;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title i {
  color: #2a7aff;
  font-size: 2.5rem;
  filter: drop-shadow(0 0 12px #1a5fcf55);
}

.section-subtitle {
  color: #8aa4d0;
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.card-text {
  background: linear-gradient(145deg, #14181f, #1a2029);
  padding: 40px 44px;
  border-radius: 28px;
  border-left: 6px solid #2a7aff;
  box-shadow: 0 8px 32px rgba(0, 20, 60, 0.5);
  color: #e2edff;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.card-text:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42, 122, 255, 0.15);
}

.card-text p {
  margin: 18px 0;
}

.card-text strong {
  color: #7bb1ff;
}

/* ===== HOME - HERO ===== */
#hero {
  padding: 20px 0 60px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 20% 30%, #0d1b2b, #06080b 70%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(42, 122, 255, 0.08), transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 122, 255, 0.05), transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-text .badge {
  display: inline-block;
  background: rgba(42, 122, 255, 0.15);
  border: 1px solid rgba(42, 122, 255, 0.3);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: #7bb1ff;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-text .badge i {
  margin-right: 8px;
}

.hero-text h1 {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #7bb1ff 50%, #2a7aff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, #4a8bff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .sub-headline {
  font-size: 1.4rem;
  margin: 24px 0 16px;
  color: #b8ceff;
  font-weight: 300;
  max-width: 500px;
}

.hero-text .benefits {
  display: flex;
  gap: 24px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}

.hero-text .benefits span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b0caff;
  font-size: 0.95rem;
}

.hero-text .benefits i {
  color: #2a7aff;
  font-size: 1.1rem;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #1a5fcf, #2a7aff);
  color: white;
  padding: 18px 48px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 0 40px rgba(26, 95, 207, 0.4);
  transition: all 0.3s;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 60px rgba(26, 95, 207, 0.6);
}

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

.btn-cta i {
  margin-right: 12px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

.hero-image .hero-icon-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image .hero-icon-wrapper .orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(42, 122, 255, 0.3), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.hero-image .hero-icon-wrapper .orb:nth-child(1) {
  width: 300px;
  height: 300px;
  animation-delay: 0s;
}

.hero-image .hero-icon-wrapper .orb:nth-child(2) {
  width: 400px;
  height: 400px;
  animation-delay: 2s;
  background: radial-gradient(circle at 70% 70%, rgba(42, 122, 255, 0.15), transparent 70%);
}

.hero-image i {
  font-size: 10rem;
  color: #2a7aff;
  filter: drop-shadow(0 0 60px rgba(42, 122, 255, 0.4));
  position: relative;
  z-index: 2;
}

/* ===== ESTADÍSTICAS (HOME) ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(42, 122, 255, 0.1);
  border-bottom: 1px solid rgba(42, 122, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2a7aff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .label {
  color: #8aa4d0;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ===== SERVICIOS (HOME) ===== */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.servicio-card {
  background: linear-gradient(145deg, #14181f, #1a222c);
  padding: 36px 28px;
  border-radius: 24px;
  border: 1px solid rgba(42, 122, 255, 0.1);
  transition: all 0.4s;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a5fcf, #2a7aff, #00d4ff);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.servicio-card:hover {
  transform: translateY(-10px);
  border-color: rgba(42, 122, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.servicio-card:hover::before {
  transform: scaleX(1);
}

.servicio-card i {
  font-size: 3rem;
  color: #2a7aff;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(42, 122, 255, 0.2));
}

.servicio-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.servicio-card p {
  color: #8aa4d0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.contact-card {
  background: linear-gradient(145deg, #14181f, #1a2029);
  padding: 40px 32px;
  border-radius: 28px;
  border: 1px solid rgba(42, 122, 255, 0.1);
  transition: all 0.4s;
  text-align: center;
  box-shadow: 0 6px 24px #00000033;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(42, 122, 255, 0.05), transparent 70%);
  border-radius: 50%;
}

.contact-card:hover {
  border-color: #2a7aff;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.contact-card i {
  font-size: 3.5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(42, 122, 255, 0.2));
  position: relative;
  z-index: 1;
}

.contact-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #f0f8ff;
  position: relative;
  z-index: 1;
}

.contact-card p {
  color: #b0caff;
  margin: 10px 0 20px;
  position: relative;
  z-index: 1;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(26, 42, 58, 0.8);
  color: white;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid rgba(42, 122, 255, 0.2);
  position: relative;
  z-index: 1;
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(42, 122, 255, 0.2);
}

.contact-btn i {
  font-size: 1.2rem;
  margin: 0;
  filter: none;
}

.whatsapp-btn {
  background: rgba(26, 58, 42, 0.8);
  border-color: rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
  color: #25D366;
}

.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25D366;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.2);
}

.email-btn {
  background: rgba(26, 42, 74, 0.8);
  border-color: rgba(42, 122, 255, 0.3);
}

.email-btn i {
  color: #7bb1ff;
}

.email-btn:hover {
  background: rgba(42, 122, 255, 0.15);
  border-color: #2a7aff;
  box-shadow: 0 0 30px rgba(42, 122, 255, 0.2);
}

/* ===== PÁGINAS LEGALES ===== */
.legal-page .card-text {
  border-left-color: #4a8bff;
  padding: 44px 48px;
}

.legal-page .card-text h2 {
  color: #7bb1ff;
  font-size: 2rem;
  margin: 40px 0 16px;
  border-bottom: 1px solid rgba(42, 122, 255, 0.15);
  padding-bottom: 12px;
}

.legal-page .card-text h2:first-of-type {
  margin-top: 0;
}

.legal-page .card-text h3 {
  color: #b8ceff;
  font-size: 1.3rem;
  margin: 28px 0 12px;
}

.legal-page .card-text p {
  color: #d6e5ff;
  margin: 14px 0;
  line-height: 1.8;
}

.legal-page .card-text ul {
  color: #d6e5ff;
  margin: 14px 0 20px 24px;
  line-height: 1.8;
}

.legal-page .card-text ul li {
  margin: 8px 0;
}

.legal-page .card-text .highlight-box {
  background: rgba(42, 122, 255, 0.08);
  border: 1px solid rgba(42, 122, 255, 0.15);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 20px 0;
}

.legal-page .last-updated {
  color: #7a8aaa;
  margin-bottom: 30px;
  font-size: 0.95rem;
  display: inline-block;
  background: rgba(42, 122, 255, 0.08);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(42, 122, 255, 0.1);
}

/* ===== QUIENES SOMOS ===== */
.quienes-page .card-text {
  border-left-color: #4a8bff;
}

.quienes-page .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.quienes-page .team-card {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(145deg, #14181f, #1a2029);
  border-radius: 20px;
  border: 1px solid rgba(42, 122, 255, 0.1);
  transition: all 0.3s;
}

.quienes-page .team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(42, 122, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.quienes-page .team-card i {
  font-size: 3rem;
  color: #2a7aff;
  margin-bottom: 12px;
}

.quienes-page .team-card h4 {
  color: #ffffff;
  font-size: 1.1rem;
}

.quienes-page .team-card p {
  color: #8aa4d0;
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  background: #06090c;
  padding: 40px 0 30px;
  text-align: center;
  color: #7a8aaa;
  border-top: 1px solid rgba(42, 122, 255, 0.1);
  margin-top: auto;
}

.footer a {
  color: #4a8bff;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: #7bb1ff;
  text-decoration: underline;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(42, 122, 255, 0.1);
  border: 1px solid rgba(42, 122, 255, 0.15);
  transition: all 0.3s;
  color: #8aa4d0;
  font-size: 1.1rem;
  text-decoration: none;
}

.footer .social-links a:hover {
  background: rgba(42, 122, 255, 0.2);
  border-color: #2a7aff;
  color: #ffffff;
  transform: translateY(-3px);
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text .sub-headline {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-text .benefits {
    justify-content: center;
  }
  
  .hero-image .hero-icon-wrapper {
    width: 300px;
    height: 300px;
  }
  
  .hero-image i {
    font-size: 7rem;
  }
  
  .hero-text h1 {
    font-size: 3.2rem;
  }
  
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .legal-page .card-text {
    padding: 30px 24px;
  }
  
  .navbar .container {
    flex-direction: column;
    gap: 12px;
  }
  
  .nav-links {
    justify-content: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text .sub-headline {
    font-size: 1.1rem;
  }
  
  .hero-image .hero-icon-wrapper {
    width: 200px;
    height: 200px;
  }
  
  .hero-image i {
    font-size: 5rem;
  }
  
  .card-text {
    padding: 24px 20px;
  }
  
  .btn-cta {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .stat-item .number {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .legal-page .card-text {
    padding: 20px 16px;
  }
}