/* ========================================
   AD Technology - Estilos Principales
   ======================================== */
/* Variables CSS */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-secondary: #1a1a24;
  --text-primary: #ffffff;
  --text-muted: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.1);
  --primary: #06b6d4;
  --primary-glow: #22d3ee;
  --accent: #a855f7;
  --gradient-primary: linear-gradient(135deg, #06b6d4, #a855f7);
  --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.3);
}
/* Reset y Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* Utilidades */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-desktop {
  display: none;
  gap: 2rem;
}
.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-desktop a:hover {
  color: var(--text-primary);
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: all 0.3s;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}
.nav-toggle.active .hamburger {
  background: transparent;
}
.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}
.nav-mobile.active {
  display: flex;
}
.nav-mobile a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-mobile a:hover {
  color: var(--text-primary);
}
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .nav-toggle {
    display: none;
  }
}
/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.4;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(128px);
  animation: pulse 4s ease-in-out infinite;
}
.glow-1 {
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(6, 182, 212, 0.2);
}
.glow-2 {
  bottom: 25%;
  right: 25%;
  width: 20rem;
  height: 20rem;
  background: rgba(168, 85, 247, 0.2);
  animation-delay: 1.5s;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.05);
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-out;
}
.badge-icon {
  color: var(--primary);
}
.badge span:last-child {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease-out 0.1s both;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 3rem;
  animation: fadeIn 0.6s ease-out 0.2s both;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  animation: fadeIn 0.6s ease-out 0.4s both;
}
.stat {
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--bg-dark), transparent);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stat-value {
    font-size: 2rem;
  }
}
/* ========================================
   Services
   ======================================== */
.services {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-card));
}
.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}
.section-header h2 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}
.services-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
.service-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.5s ease;
}
.service-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: var(--shadow-glow);
}
.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--gradient-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s;
}
.service-card:hover .service-icon {
  transform: scale(1.1);
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-tags span {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.2);
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ========================================
   Stats Section
   ======================================== */
.stats-section {
  padding: 6rem 0;
  background: var(--bg-card);
}
.stats-cards {
  display: grid;
  gap: 1.5rem;
}
.stats-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}
.stats-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.stats-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.stats-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .stats-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* ========================================
   CTA
   ======================================== */
.cta {
  padding: 6rem 0;
}
.cta-card {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 1.5rem;
  background: rgba(18, 18, 26, 0.8);
  border: 1px solid rgba(6, 182, 212, 0.3);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.cta-card::before,
.cta-card::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.cta-card::before {
  top: 0;
}
.cta-card::after {
  bottom: 0;
}
.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--gradient-primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-glow);
}
.cta h2 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--gradient-primary);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
}
.cta-note {
  display: block;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .cta-card {
    padding: 4rem;
  }
}
/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid var(--border-color);
  background: rgba(18, 18, 26, 0.5);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 20rem;
}
.footer-links h4,
.footer-contact h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-links ul,
.footer-contact ul {
  list-style: none;
}
.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}
.footer-links a,
.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary);
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.social-links a:hover {
  color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.social-links a .icon {
  color: inherit;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-legal a:hover {
  color: var(--primary);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}