/* ========================================
   FUTURISTIC ISP SOLUTION - CSS MODERNO
======================================== */

:root {
  /* Colores principales */
  --primary-dark: #0a0f1c;
  --primary-blue: #1e40af;
  --primary-cyan: #06b6d4;
  --primary-purple: #7c3aed;
  
  /* Gradientes */
  --gradient-main: linear-gradient(135deg, #1e40af 0%, #06b6d4 50%, #7c3aed 100%);
  --gradient-hero: linear-gradient(135deg, #0a0f1c 0%, #1e40af 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  
  /* Colores de texto */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Efectos */
  --shadow-glow: 0 0 20px rgba(30, 64, 175, 0.3);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Tipografía */
  --font-heading: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
}

/* ========================================
   RESET Y BASE
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--primary-dark);
  overflow-x: hidden;
}

/* ========================================
   TIPOGRAFÍA
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ========================================
   CONTENEDORES
======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   NAVEGACIÓN
======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-main);
  color: var(--text-white);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(30, 64, 175, 0.5);
}

/* Estilos del menú móvil */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 100;
}

.mobile-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 10px; }
.mobile-toggle span:nth-child(3) { top: 20px; }

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-dark);
        padding: 2rem;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link,
    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .nav-cta {
        margin-top: 1rem;
    }
}

/* ========================================
   HERO SECTION
======================================== */
section.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero) !important;
  background-image: none !important;
  overflow: hidden;
}

section.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(white 1px, transparent 1px) !important;
  background-size: 50px 50px;
  opacity: 0.1;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0% { opacity: 0.1; }
  50% { opacity: 0.2; }
  100% { opacity: 0.1; }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(30, 64, 175, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #1e40af, transparent),
    radial-gradient(2px 2px at 40px 70px, #06b6d4, transparent),
    radial-gradient(1px 1px at 90px 40px, #7c3aed, transparent);
  background-repeat: repeat;
  background-size: 150px 150px;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-150px, -150px); }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 8rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.title-line {
  display: block;
}

.highlight {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-cyan);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-main);
  color: var(--text-white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(30, 64, 175, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  max-width: 600px;
}

.visual-container {
  position: relative;
  animation: pulse 3s infinite;
}

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

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}

.visual-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
}

.tech-badge {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   SECCIONES
======================================== */
.services, .products, .contact {
  padding: 6rem 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   SERVICIOS
======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.service-card {
  background: var(--gradient-card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.featured {
  background: linear-gradient(145deg, #1e40af 0%, #06b6d4 100%);
  color: var(--text-white);
}

.service-card.featured .card-title,
.service-card.featured .card-description {
  color: var(--text-white);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-main);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--text-white);
}

.card-icon img {
  width: 50px;
  height: auto;
}

.card-content {
  position: relative;
}

.card-badge {
  background: var(--primary-cyan);
  color: var(--text-white);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-description {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.card-features {
  list-style: none;
  margin-bottom: 2rem;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.card-features i {
  color: var(--primary-cyan);
  font-size: 0.9rem;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 0;
  transition: var(--transition);
}

.card-cta:hover {
  color: var(--primary-cyan);
  transform: translateX(5px);
}

/* ========================================
   PRODUCTOS
======================================== */
.products {
  background: var(--primary-dark);
  color: var(--text-white);
}

.products .section-title,
.products .section-subtitle {
  color: var(--text-white);
}

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-badge {
  background: var(--gradient-main);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.product-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.product-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--primary-cyan);
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.product-visual img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    padding: 6rem 2rem;
    gap: 3rem;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .product-main {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
  }

  .nav-menu.active {
    left: 0;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Aplicar animaciones */
.service-card {
  animation: slideInUp 0.6s ease-out;
}

.contact-method {
  animation: slideInLeft 0.6s ease-out;
}

.hero-badge {
  animation: fadeIn 1s ease-out;
}

.hero-title {
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-description {
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.hero-actions {
  animation: slideInUp 0.8s ease-out 0.8s both;
}

/* ========================================
   UTILIDADES
======================================== */
@media (max-width: 480px) {
    .contact {
        padding: 2rem 1rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-method {
        padding: 1rem;
    }

    .method-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .method-info h4 {
        font-size: 1rem;
    }

    .method-info p {
        font-size: 0.9rem;
    }
}

/* ======================================== */
/* Utilidades y clases auxiliares */
/* ======================================== */

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-effect {
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.5));
}

.blur-bg {
    backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}