/* ===== Variables para consistencia ===== */
:root {
  --bg: #0a0a0a;
  --header: #0b0b0b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --line: #1f2937;
  --brand: #dd1729;
  --brand-dark: #b31222;
  --brand-light: #ff1a2e;
  --accent: #3b82f6;
  --purple: #8b5cf6;
  --orange: #f97316;
  --green: #06d6a0;
  --yellow: #ffd166;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
  --shadow-heavy: 0 25px 60px rgba(0,0,0,.6);
  --radius: 14px;
  --radius-lg: 20px;
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== Sección Hero Chatbots ===== */
.chatbots-hero {
  padding: 140px 24px 80px;
  background: 
    radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg) 0%, #0f0f0f 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.chatbots-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="rgba(139, 92, 246, 0.03)" fill-opacity="0.4"><circle cx="30" cy="30" r="1"/></g></g></svg>') repeat;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Contenido del Hero */
.hero-content {
  animation: fadeInLeft 1s var(--ease-smooth) forwards;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.chatbots-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  animation: glow-purple 2s ease-in-out infinite alternate;
}

@keyframes glow-purple {
  from { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
  to { box-shadow: 0 0 30px rgba(139, 92, 246, 0.5); }
}

.hero-title {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.highlight-purple {
  background: linear-gradient(135deg, var(--purple) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
}

.highlight-orange {
  background: linear-gradient(135deg, var(--orange) 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.3));
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 18px);
  color: var(--text-muted);
  margin: 0 0 40px;
  line-height: 1.6;
  max-width: 500px;
  text-align: justify;
  text-justify: inter-word;
}

.btn-chatbot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--orange) 100%);
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  border-radius: 14px;
  border: 2px solid transparent;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-chatbot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s var(--ease-smooth);
}

.btn-chatbot:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.6);
}

.btn-chatbot:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

/* ===== Demo del Chatbot ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s var(--ease-smooth) 0.3s both;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.chatbot-demo {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s var(--ease-smooth);
}

.chatbot-demo:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-avatar svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.chat-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.status {
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
}

.chat-messages {
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.6s var(--ease-smooth);
}

.bot-message {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.user-message {
  background: rgba(249, 115, 22, 0.2);
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.typing-animation {
  position: relative;
}

.typing-animation::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  margin-left: 8px;
  animation: typing-dot 1.4s infinite;
}

@keyframes typing-dot {
  0%, 20% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  80%, 100% { transform: scale(1); opacity: 1; }
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.chat-input input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.chat-input input::placeholder {
  color: var(--text-muted);
}

.chat-input button {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.chat-input button:hover {
  transform: scale(1.1);
}

.chat-input button svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

/* ===== Banda de logos (reutilizando estilos existentes) ===== */
.logo-band{
  background:#0b0b0b;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:18px 0;
}
.logo-marquee{
  max-width:1400px;
  margin:0 auto;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.logo-track{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:clamp(48px, 6vw, 96px);
  will-change:transform;
  animation:logo-marquee 28s linear infinite;
}
.logo-item{
  height:clamp(36px, 5vw, 56px);
  width:auto;
  flex:0 0 auto;
  opacity:.95;
  filter:drop-shadow(0 2px 8px rgba(139, 92, 246,.18));
  transition:transform .25s cubic-bezier(.4,0,.2,1), opacity .25s cubic-bezier(.4,0,.2,1);
}
.logo-item:hover{
  transform:translateY(-2px) scale(1.04);
  opacity:1;
  filter:drop-shadow(0 4px 14px rgba(139, 92, 246,.35));
}
.logo-marquee:hover .logo-track{ animation-play-state:paused; }
@keyframes logo-marquee{
  from{ transform:translateX(0); }
  to  { transform:translateX(-50%); }
}

/* ===== Sección Beneficios ===== */
.benefits-section {
  padding: 120px 24px;
  background: #0f0f0f;
  position: relative;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.benefits-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(249, 115, 22, 0.05));
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  z-index: 2;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--purple);
}

.benefit-card:hover .benefit-icon {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.1);
}

.benefit-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  position: relative;
  z-index: 2;
}

.benefit-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
  text-align: justify;
  text-justify: inter-word;
}

/* ===== Proceso Interactivo ===== */
.interactive-process {
  padding: 120px 24px;
  background: #0a0a0a;
  position: relative;
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
}

.process-header {
  text-align: center;
  margin-bottom: 60px;
}

.step-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  font-size: 14px;
  font-weight: 600;
}

.step-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--orange));
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.step-num {
  font-weight: 800;
  font-size: 12px;
}

.step-content {
  position: relative;
  min-height: 450px;
}

.step-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-smooth);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.step-panel.active {
  opacity: 1;
  transform: translateY(0);
}

.step-info h3 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
}

.step-info p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
  text-align: justify;
  text-justify: inter-word;
}

.step-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 15px;
}

.step-features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.step-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-card {
  width: 300px;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: all 0.3s var(--ease-smooth);
}

.visual-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
}

.visual-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.chart-placeholder,
.ai-brain,
.integration-graphic,
.optimization-chart {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CTA Final ===== */
.final-cta {
  padding: 120px 24px;
  background: 
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
    #0f0f0f;
  text-align: center;
}

.cta-container {
  max-width: 1000px;
  margin: 0 auto;
}

.cta-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--purple);
  display: block;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 40px;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--orange) 100%);
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%) skewX(-20deg);
  transition: transform 0.6s var(--ease-smooth);
}

.btn-cta-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.6);
}

.btn-cta-primary:hover::before {
  transform: translateX(100%) skewX(-20deg);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-subtitle {
    max-width: none;
    text-align: center;
  }
  
  .step-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .step-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .chatbots-hero {
    padding: 120px 20px 60px;
    min-height: 90vh;
  }
  
  .hero-container {
    gap: 40px;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }
  
  .chatbots-badge {
    font-size: 11px;
    padding: 6px 16px;
  }
  
  .chatbot-demo {
    max-width: 100%;
  }
  
  .btn-chatbot,
  .btn-cta-primary {
    padding: 16px 28px;
    font-size: 15px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .benefit-card {
    padding: 24px 20px;
  }
  
  .step-selector {
    gap: 4px;
  }
  
  .step-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .step-content {
    min-height: 350px;
  }
  
  .step-info h3 {
    font-size: 22px;
  }
  
  .visual-card {
    width: 100%;
    max-width: 280px;
    height: 160px;
  }
  
  .cta-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .process-header .section-subtitle,
  .benefits-header .section-subtitle,
  .cta-subtitle {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .step-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .step-num {
    font-size: 11px;
  }
  
  .step-name {
    display: none;
  }
  
  .chat-messages {
    padding: 16px;
  }
  
  .message {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* ===== Accesibilidad ===== */
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
  
  .chatbots-hero::before {
    animation: none;
  }
  
  .typing-animation::after {
    animation: none;
  }
}

/* ===== Focus states para accesibilidad ===== */
.step-btn:focus-visible,
.btn-chatbot:focus-visible,
.btn-cta-primary:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.chat-input input:focus {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}