:root {
  --bg-dark: #050505;
  --bg-darker: #000000;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #d946ef 100%);
  --surface-glass: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.08);
  --primary-accent: #60a5fa;
  --whatsapp-green: #22c55e;
  --matrix-green: #00ff41;
  /* Computer green */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --glow-color: rgba(96, 165, 250, 0.2);
}

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

.text-matrix {
  color: var(--matrix-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

body {
  background-color: var(--bg-dark);
  font-family: var(--font-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  /* Subtle mesh background */
  background-image:
    radial-gradient(circle at 50% 0%, #1e1b4b 0%, transparent 40%),
    radial-gradient(circle at 100% 50%, #2e1065 0%, transparent 40%);
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.6);
  border-bottom: 1px solid var(--surface-border);
}

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

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
}

.btn-nav-cta {
  background: #fff;
  color: #000;
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-nav-cta:hover {
  background: #e2e8f0;
}

/* --- Hero Section --- */
.hero {
  padding-top: 12rem;
  padding-bottom: 8rem;
  text-align: center;
  position: relative;
}

/* Glow effect behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-accent) 0%, transparent 70%);
  z-index: -1;
  filter: blur(60px);
  opacity: 0.6;
}

h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  /* Break line for emphasis */
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid var(--surface-border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Bento Grid Section --- */
.solutions {
  padding: 6rem 0;
}

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

.card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  padding: 2.5rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.card-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: block;
}

/* --- Chat Animation (WhatsApp Bot) --- */
/* --- Chat Animation (WhatsApp Bot) --- */
.chat-demo {
  position: relative;
  max-width: 340px;
  /* Slightly wider */
  margin: 0 auto 4rem;
  background: #0b141a;
  border-radius: 24px;
  border: 4px solid #333;
  overflow: hidden;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6);
}

.chat-header {
  background: #202c33;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-body {
  padding: 1.5rem 1.25rem 2rem;
  /* More bottom padding */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-image: radial-gradient(#2a3942 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: 380px;
  /* Taller min-height instead of fixed height */
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.msg-user {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.msg-bot {
  background: #202c33;
  color: #e9edef;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

/* Typing Indicator (Pseudo-element for Bot) */
.msg-bot.typing::after {
  content: '•••';
  letter-spacing: 2px;
  animation: typing 1s infinite;
}

/* Enhanced Animation Delays */
.msg-1 {
  animation-delay: 0.5s;
}

/* User: Hola */
.msg-2 {
  animation-delay: 2.0s;
}

/* Bot: Response */
.msg-3 {
  animation-delay: 4.0s;
}

/* User: Precio */
.msg-4 {
  animation-delay: 5.5s;
}

/* Bot: Final */

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

@keyframes typing {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

/* --- Demos Section --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.video-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  padding: 1rem;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  background: linear-gradient(45deg, #1f2937, #111827);
}

.play-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(4px);
  transition: transform 0.2s;
}

.video-card:hover .play-btn {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.video-title {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

/* --- Pricing Section --- */
.pricing-section {
  padding: 6rem 0;
}

.pricing-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular {
  border-color: #8b5cf6;
  /* Purple border */
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #8b5cf6;
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 1.5rem 0 0.5rem;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  min-height: 3rem;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.features-list li {
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-arrow {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Make the center card pop slightly */
.card:nth-child(2) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--surface-border);
  margin-top: 4rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  /* Hide links on mobile for simplicity */
}