/* Variables globales */
:root {
  --bg-dark: #0a0f1d;
  --bg-card: rgba(16, 25, 45, 0.6);
  --text-main: #f0f4f8;
  --text-muted: #a0aec0;
  --accent-primary: #00d2ff;
  --accent-secondary: #3a7bd5;
  --accent-glow: rgba(0, 210, 255, 0.3);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.text-accent {
  color: var(--accent-primary);
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Efectos de fondo */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-secondary {
  top: 40%;
  right: -200px;
  left: auto;
  background: radial-gradient(circle, rgba(58, 123, 213, 0.2) 0%, transparent 70%);
}

/* Glassmorphism */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 20px;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  border-top: none;
  border-radius: 0 0 16px 16px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  padding: 15px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--glass-border);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid var(--accent-glow);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-visual {
  position: relative;
  height: 500px;
}

/* Targetas flotantes (Bot y Redes) */
.float-card {
  position: absolute;
  border-radius: 16px;
  padding: 20px;
  animation: float 6s ease-in-out infinite;
}

.card-chatbot {
  width: 320px;
  right: 10px;
  top: 50px;
  z-index: 2;
}

.card-infra {
  width: 260px;
  left: 0;
  bottom: 80px;
  animation-delay: -3s;
  display: flex;
  gap: 15px;
  align-items: center;
}

.card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status {
  font-size: 0.8rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

.bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  max-width: 85%;
}

.bubble-bot {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-top-left-radius: 4px;
}

.bubble-user {
  background: rgba(0, 210, 255, 0.15);
  color: var(--text-main);
  margin-left: auto;
  border-top-right-radius: 4px;
  border: 1px solid var(--accent-glow);
}

.icon-lg {
  width: 32px;
  height: 32px;
}

/* Servicios */
.services {
  padding: 100px 0;
  position: relative;
}

.section-title {
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  border-radius: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hover-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--accent-glow);
  border-color: rgba(0, 210, 255, 0.3);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-primary);
  border: 1px solid var(--glass-border);
}

.bg-accent-glow {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--accent-glow);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-list {
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.service-list li i {
  color: #10b981;
  width: 18px;
  height: 18px;
}

/* Footer */
.footer {
  padding: 60px 0 20px;
  border-top: 1px solid var(--glass-border);
  border-radius: 40px 40px 0 0;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 400px;
}

.footer-links h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links p {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 99;
  text-decoration: none;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20b858;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsivo */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p { margin: 0 auto 30px; }
  .hero-actions { justify-content: center; }
  .hero-visual { height: 400px; margin-top: 40px; }
  .card-chatbot { right: auto; left: 50%; transform: translateX(-50%); }
  .card-infra { left: auto; right: 10px; bottom: 20px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .menu-btn { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding-top: 140px; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  .card-infra { display: none; } /* Ocultar en móviles muy pequeños para no saturar */
}
