/* index.css - Diseño Premium Alternante para KARL */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,400;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-color: #050505;
  --bg-card: #0D0D0F;
  --bg-card-hover: #121215;
  --text-main: #F5F5F7;
  --text-muted: #8E8E93;
  --accent: #00FF66;
  --accent-glow: rgba(0, 255, 102, 0.12);
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.1);
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button, .btn-primary, .btn-secondary, .btn-cta-primary, .btn-cta-secondary, .badge-tag, .badge-tag-solution, .faq-question-btn, .carousel-nav-btn, .control-btn {
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* SISTEMA DE ANIMACIONES DE ENTRADA (Reveal on Scroll) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para elementos agrupados */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Navbar Estilo Sticky Blanco Translúcido */
.navbar-container {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  animation: navbarFadeIn 0.8s forwards 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.navbar:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.1);
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.karl-logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo:hover .karl-logo-img {
  transform: scale(1.03);
}

.karl-logo-img-footer {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.karl-logo-img-footer:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d1d1f;
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-primary {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: #000000;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #1d1d1f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Hero Section (Oscuro con Tracker de Brillo del Cursor) */
.hero {
  padding: 5rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
}

/* Brillo Radial Interactivo de Fondo */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(0, 255, 102, 0.04), transparent 50%);
  z-index: 1;
  transition: background 0.1s ease;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextReveal 1s forwards 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.underline-glow {
  position: relative;
  display: inline-block;
}

.underline-glow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #00bb44);
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  animation: expandUnderline 1.2s forwards 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes expandUnderline {
  to {
    transform: scaleX(1);
  }
}

.hero-title em.wave-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  display: block;
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  animation: heroTextReveal 1.2s forwards 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wave-text span {
  display: inline-block;
  animation: sloganWave 2.4s infinite ease-in-out;
}

@keyframes sloganWave {
  0%, 100% {
    transform: translateY(0);
    text-shadow: 0 0 4px rgba(0, 255, 102, 0);
  }
  50% {
    transform: translateY(-6px);
    text-shadow: 0 0 12px rgba(0, 255, 102, 0.4);
  }
}

.wave-text span:nth-child(1) { animation-delay: 0.08s; }
.wave-text span:nth-child(2) { animation-delay: 0.16s; }
.wave-text span:nth-child(3) { animation-delay: 0.24s; }
.wave-text span:nth-child(4) { animation-delay: 0.32s; }
.wave-text span:nth-child(5) { animation-delay: 0.40s; }
.wave-text span:nth-child(6) { animation-delay: 0.48s; }
.wave-text span:nth-child(7) { animation-delay: 0.56s; }
.wave-text span:nth-child(8) { animation-delay: 0.64s; }
.wave-text span:nth-child(9) { animation-delay: 0.72s; }
.wave-text span:nth-child(10) { animation-delay: 0.80s; }
.wave-text span:nth-child(11) { animation-delay: 0.88s; }
.wave-text span:nth-child(12) { animation-delay: 0.96s; }
.wave-text span:nth-child(13) { animation-delay: 1.04s; }
.wave-text span:nth-child(14) { animation-delay: 1.12s; }
.wave-text span:nth-child(15) { animation-delay: 1.20s; }
.wave-text span:nth-child(16) { animation-delay: 1.28s; }
.wave-text span:nth-child(17) { animation-delay: 1.36s; }
.wave-text span:nth-child(18) { animation-delay: 1.44s; }
.wave-text span:nth-child(19) { animation-delay: 1.52s; }
.wave-text span:nth-child(20) { animation-delay: 1.60s; }
.wave-text span:nth-child(21) { animation-delay: 1.68s; }
.wave-text span:nth-child(22) { animation-delay: 1.76s; }
.wave-text span:nth-child(23) { animation-delay: 1.84s; }
.wave-text span:nth-child(24) { animation-delay: 1.92s; }

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 1.5rem auto 2.5rem;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextReveal 1.2s forwards 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-desc strong {
  color: var(--accent);
  font-weight: 600;
}

/* Input de Teléfono */
.phone-demo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextReveal 1s forwards 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.phone-demo-container:focus-within {
  border-color: rgba(0, 255, 102, 0.3);
  box-shadow: 0 8px 30px rgba(0, 255, 102, 0.05);
}

.phone-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.phone-input::placeholder {
  color: var(--text-muted);
}

/* Call Player */
.call-player {
  max-width: 780px;
  margin: 0 auto;
  background: #08080A;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  animation: heroTextReveal 1.2s forwards 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color 0.3s;
}

.call-player:hover {
  border-color: rgba(0, 255, 102, 0.15);
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 255, 102, 0.2);
  animation: pulse 1.6s infinite ease-in-out;
}

/* Visualizador de Ondas de Audio Integrado */
.audio-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 14px;
  margin-left: 0.5rem;
}

.audio-wave span {
  width: 2px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleY(0.2);
  transform-origin: bottom;
}

.audio-wave.playing span {
  animation: audioWavePulse 1.2s infinite ease-in-out;
}

.audio-wave.playing span:nth-child(1) { animation-delay: 0.1s; }
.audio-wave.playing span:nth-child(2) { animation-delay: 0.3s; }
.audio-wave.playing span:nth-child(3) { animation-delay: 0.5s; }
.audio-wave.playing span:nth-child(4) { animation-delay: 0.2s; }
.audio-wave.playing span:nth-child(5) { animation-delay: 0.4s; }

@keyframes audioWavePulse {
  0%, 100% {
    transform: scaleY(0.2);
  }
  50% {
    transform: scaleY(1);
  }
}

.player-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.control-btn:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.05);
}

.control-btn.play {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.control-btn.play:hover {
  background: #00e65c;
  transform: scale(1.08);
}

.player-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.transcript-container {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.transcript-line {
  display: flex;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  animation: lineReveal 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.speaker-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 60px;
}

.speaker-label.client {
  color: #8ab4f8;
}

.speaker-label.karl {
  color: var(--accent);
}

.line-content {
  color: #eaeaea;
  flex: 1;
}

.badge-status {
  margin-top: 1rem;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.15);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: lineReveal 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estilos Globales de Cabeceras de Sección */
.section-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

/* Estilos Base de Tarjetas de Características */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-icon svg {
  display: block;
}

.card-step {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Sección "Cómo Funciona" (FONDO BLANCO Y ALTO CONTRASTE) */
.features {
  padding: 6.5rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.features .section-tag {
  color: #8E8E93;
}

.features .section-title {
  color: #0d0d0f;
}

.features .section-title em {
  color: #00bb44;
}

.grid-3col {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #f9f9fb;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  background: #ffffff;
  border-color: rgba(0, 187, 68, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.feature-card .card-icon {
  background: rgba(0, 0, 0, 0.03);
  color: #0d0d0f;
}

.feature-card:hover .card-icon {
  background: rgba(0, 187, 68, 0.08);
  color: #00bb44;
}

.feature-card .card-step {
  color: #00bb44;
}

.feature-card .card-title {
  color: #0d0d0f;
}

.feature-card .card-desc {
  color: #4e4e52;
}

/* Sección "Industrias" con Carrusel Interactivo (OSCURO) */
.industries {
  padding: 6.5rem 1.5rem;
  background: var(--bg-color);
}

.carousel-outer {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.carousel-nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-main);
  transform: scale(1.05);
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: border-color 0.3s;
}

.carousel-track:hover {
  border-color: rgba(0, 255, 102, 0.15);
}

.carousel-slide {
  display: none;
  background: var(--bg-card);
  padding: 3rem;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  animation: fadeInSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide.active {
  display: grid;
}

@media (min-width: 768px) {
  .carousel-slide {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

/* Badges Container */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge-tag-solution {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge-tag-solution.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 102, 0.04);
}

.split-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.split-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.split-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 480px) {
  .split-list {
    grid-template-columns: 1fr 1fr;
  }
}

.split-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.split-list li span.check {
  color: var(--accent);
  font-weight: bold;
}

/* MOCKUP DASHBOARD */
.dashboard-preview {
  background: #060608;
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide:hover .dashboard-preview {
  transform: scale(1.02) rotate(0.5deg);
}

.db-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.db-header-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.db-header-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
}

.db-header-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s infinite ease-in-out;
}

.db-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.db-metrics {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.db-metric-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  flex: 1;
  text-align: center;
  transition: background 0.3s;
}

.db-metric-card:hover {
  background: rgba(0, 255, 102, 0.02);
}

.db-metric-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

.db-metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.db-row {
  display: grid;
  grid-template-columns: 45px 1fr 65px;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-top: 1px dashed var(--border);
  align-items: center;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.db-row:hover {
  background: rgba(255,255,255,0.01);
}

.db-time {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.db-name {
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-align: center;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.db-status.live {
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.15);
  color: var(--accent);
}

.db-status.done {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Preguntas Frecuentes (FAQ SECTION - LIGHT) */
.faq-section {
  padding: 6.5rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.faq-section .section-tag {
  color: #8E8E93;
}

.faq-section .section-title {
  color: #0d0d0f;
}

.faq-section .section-title em {
  color: #00bb44;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #f9f9fb;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d0d0f;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question-btn:hover {
  color: #00bb44;
}

.faq-icon-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #8E8E93;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: #00bb44;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border-top: 0px solid rgba(0,0,0,0.05);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Ajuste responsivo */
  padding: 1.5rem;
  border-top-width: 1px;
}

.faq-answer-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4e4e52;
}

.faq-answer-text strong {
  color: #00bb44;
}

.social-proof-alert {
  position: fixed;
  bottom: 32px;
  left: 32px;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.2rem;
  width: 360px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(150px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  touch-action: none;
}

.social-proof-alert.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.spa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

.spa-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spa-avatar {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  filter: brightness(0) invert(1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.spa-system {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 1px;
  font-weight: 700;
}

.spa-time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.spa-content {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e4e4e7;
}

.spa-content strong {
  color: #ffffff;
  font-weight: 600;
}

/* WIDGET FLOTANTE DE WHATSAPP */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #25d366;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
}

.whatsapp-widget:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.wa-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 1.6s infinite ease-in-out;
}

/* MODALES DE SOLUCIÓN */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: rgba(13, 13, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 85dvh;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--text-main);
  transform: rotate(90deg);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.modal-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.modal-content-section {
  margin-bottom: 2rem;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section-title::before {
  content: "●";
  font-size: 0.55rem;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

.modal-section-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
}

.modal-section-body strong {
  color: var(--accent);
}

.modal-section-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.modal-section-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.modal-section-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: bold;
  font-family: var(--font-mono);
}

/* FLOWCHART VISUAL */
.flowchart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 480px) {
  .flowchart {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.flow-node {
  flex: 1;
  text-align: center;
  background: #060608;
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.flow-node.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.05);
}

.flow-arrow {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: bold;
}

@media (max-width: 480px) {
  .flow-arrow {
    transform: rotate(90deg);
    margin: 0.2rem 0;
  }
}

/* Sección de Industrias Adicionales */
.industries-more {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 2rem;
}

.industries-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-tag:hover {
  border-color: var(--text-main);
  transform: translateY(-2px);
}

/* Testimonial Quote Section (FONDO BLANCO) */
.testimonial {
  padding: 6.5rem 1.5rem;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  color: #0d0d0f;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.testimonial-quote span {
  color: #00bb44;
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #8E8E93;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* CTA Section (OSCURO) */
.cta-section {
  padding: 8rem 1.5rem;
  background: var(--bg-color);
}

.cta-card {
  max-width: 1200px;
  margin: 0 auto;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 255, 102, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #0F0F11 0%, #050505 100%);
  border: 1px solid var(--border);
  padding: 5rem 2rem;
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.cta-card:hover {
  border-color: rgba(0, 255, 102, 0.15);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.cta-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-main);
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta-secondary {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: 1px solid var(--border-hover);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.btn-cta-primary {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 255, 102, 0.35);
}

.cta-small {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Footer (OSCURO) */
.footer {
  background: #08080A;
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-logo-desc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
}

.social-btn:hover {
  background: var(--text-main);
  color: #000;
  border-color: var(--text-main);
  transform: scale(1.05);
}

.footer-column h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom span.heart {
  color: var(--accent);
}

/* Animaciones y Keyframes */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
    box-shadow: 0 0 10px var(--accent);
  }
}

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

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

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes backgroundShift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}



/* Ficha Técnica de Capacidad Cognitiva */
.cognitive-specs {
  max-width: 1200px;
  margin: 4.5rem auto 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 4.5rem;
}

.specs-header {
  text-align: center;
  margin-bottom: 3rem;
}

.specs-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #8E8E93;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.specs-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #0d0d0f;
  letter-spacing: -0.02em;
}

.specs-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #00bb44;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-card {
  background: #f9f9fb;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-card:hover {
  background: #ffffff;
  border-color: rgba(0, 187, 68, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03);
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #8E8E93;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #00bb44;
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.spec-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4e4e52;
}

/* Ajustes de optimización móvil para ficha técnica */
@media (max-width: 580px) {
  .cognitive-specs {
    margin-top: 3rem;
    padding-top: 3rem;
  }
  
  .specs-title {
    font-size: 1.4rem;
  }
  
  .spec-card {
    padding: 1.5rem;
  }
  
  .spec-value {
    font-size: 1.8rem;
  }
}

/* Estilos para Páginas Legales */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.legal-header {
  margin-bottom: 3.5rem;
  text-align: left;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  transition: transform 0.2s;
}

.btn-back:hover {
  transform: translateX(-4px);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.legal-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.legal-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #eaeaea;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.legal-content p {
  margin-bottom: 1.2rem;
  color: #c5c5c7;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-content li {
  color: #c5c5c7;
}

.legal-content strong {
  color: var(--accent);
  font-weight: 600;
}

/* Estilos para Biblioteca de API KARL OS */
.api-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .api-layout {
    grid-template-columns: 1fr;
  }
}

.api-sidebar {
  background: #08080A;
  border-right: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .api-sidebar {
    height: auto;
    position: relative;
    padding: 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.api-sidebar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.api-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.api-nav-item a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

.api-nav-item.active a, .api-nav-item a:hover {
  color: var(--accent);
  background: rgba(0, 255, 102, 0.04);
}

.api-nav-group-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #4e4e52;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
}

.api-main-content {
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  background: var(--bg-color);
}

@media (min-width: 1024px) {
  .api-main-content {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 580px) {
  .api-main-content {
    padding: 2.5rem 1.25rem;
  }
}

.api-section {
  display: none;
  animation: fadeInSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.api-section.active {
  display: block;
}

.api-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.api-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.api-method-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.15);
  color: var(--accent);
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}

.api-method-path {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #ffffff;
  background: rgba(255,255,255,0.02);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  margin-left: 0.5rem;
  border: 1px solid var(--border);
}

.api-param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.85rem;
}

.api-param-table th, .api-param-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.api-param-table th {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.api-param-name {
  font-family: var(--font-mono);
  color: #ffffff;
  font-weight: 600;
}

.api-param-type {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.75rem;
}

.api-code-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 3rem;
}

.api-terminal {
  background: #08080A;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.api-terminal-tabs {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  display: flex;
  gap: 0.5rem;
}

.api-terminal-tab {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.api-terminal-tab.active, .api-terminal-tab:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.api-terminal-body {
  padding: 1.5rem;
  overflow-x: auto;
}

.api-code-block {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #eaeaea;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.api-response-panel {
  background: #060608;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.api-response-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

/* Neural Core Monitor (Estilo Apple / Siri) */
.neural-monitor-card {
  background: rgba(8, 8, 10, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.neural-monitor-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.neural-core-container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Esfera Neural Giratoria */
.neural-orb {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(0, 255, 102, 0.4) 0%, rgba(0, 187, 68, 0.1) 60%, transparent 100%);
  border-radius: 50%;
  position: relative;
  filter: blur(4px);
  animation: orbPulse 3s infinite ease-in-out;
  transition: all 0.3s;
}

.neural-orb.active {
  background: radial-gradient(circle, rgba(0, 255, 102, 0.8) 0%, rgba(0, 255, 102, 0.25) 50%, rgba(0, 187, 68, 0.1) 70%, transparent 100%);
  filter: blur(2px);
  transform: scale(1.2);
  animation: orbActivePulse 0.5s infinite alternate ease-in-out;
}

.neural-ring-svg {
  position: absolute;
  width: 90px;
  height: 90px;
  animation: rotateRing 8s linear infinite;
  transition: all 0.3s;
}

.neural-ring-svg-inner {
  position: absolute;
  width: 110px;
  height: 110px;
  animation: rotateRingBack 12s linear infinite;
  opacity: 0.5;
  transition: all 0.3s;
}

.neural-orb.active ~ .neural-ring-svg {
  animation: rotateRing 1.5s linear infinite;
  width: 100px;
  height: 100px;
}

.neural-orb.active ~ .neural-ring-svg-inner {
  animation: rotateRingBack 2.5s linear infinite;
  width: 125px;
  height: 125px;
  opacity: 0.8;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); filter: blur(4px); opacity: 0.8; }
  50% { transform: scale(1.15); filter: blur(2px); opacity: 1; }
}

@keyframes orbActivePulse {
  0% { transform: scale(1.15); filter: blur(2px); }
  100% { transform: scale(1.35); filter: blur(1px); }
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateRingBack {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Gráfico de Latencia Real-Time SVG */
.latency-graph-container {
  height: 55px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.latency-line {
  stroke: #00bb44;
  stroke-width: 2;
  fill: none;
  transition: all 0.1s;
}

/* ==========================================
   OPTIMIZACIONES Y ESTRATEGIA PARA MÓVIL (iPHONE / ANDROID)
   ========================================== */

/* WhatsApp Mobile default styles */
.wa-mobile-icon {
  display: none !important;
}

@media (max-width: 768px) {
  /* Reducción general de padding de secciones para evitar cansancio visual */
  .hero {
    padding: 4rem 1rem 5rem;
  }
  
  .features, .industries, .testimonial, .faq-section, .cta-section {
    padding: 5rem 1.2rem;
  }

  /* Ajustes en los headers de sección */
  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Carrusel de Industrias */
  .carousel-slide {
    padding: 1.75rem;
    gap: 2rem;
  }
  
  .split-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }

  .split-desc {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  .split-list {
    margin-bottom: 1.75rem;
  }

  .dashboard-preview {
    padding: 1rem;
    border-radius: 16px;
  }

  .db-title {
    font-size: 1.15rem;
  }

  /* WhatsApp Widget Adaptable */
  .whatsapp-widget {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-widget span.wa-dot {
    display: none !important;
  }

  .whatsapp-widget .wa-text-label {
    display: none !important;
  }

  .whatsapp-widget .wa-mobile-icon {
    display: block !important;
    color: #ffffff;
  }
}

@media (max-width: 640px) {
  /* Limpieza y simplificación de barra de navegación */
  .navbar {
    padding: 0.4rem 1rem;
  }
  
  .navbar .nav-links .btn-secondary {
    display: none !important;
  }

  .karl-logo-img {
    height: 38px;
  }

  .navbar .btn-primary {
    font-size: 0.75rem;
    padding: 0.45rem 1rem;
  }
}

@media (max-width: 580px) {
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem) !important;
    line-height: 1.1;
  }

  .grid-3col {
    grid-template-columns: 1fr !important;
  }

  .carousel-slide {
    padding: 1.25rem;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  /* Entrada de teléfono y simulación de llamada */
  .phone-demo-container {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .phone-input {
    width: 100%;
    text-align: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
  }
  
  .phone-demo-container .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.65rem;
    border-radius: 9999px;
    font-size: 0.85rem;
  }

  /* Player de audio interactivo */
  .call-player {
    padding: 1rem;
    border-radius: 16px;
  }
  
  .player-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .player-controls {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
  }

  .player-meta {
    font-size: 0.6rem;
  }

  .transcript-line {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .speaker-label {
    min-width: 50px;
  }

  /* Social Proof Alert estilo Push iOS */
  .social-proof-alert {
    bottom: auto;
    top: 12px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: translateY(-150%);
  }

  .social-proof-alert.show {
    transform: translateY(0);
  }

  /* Botones del CTA y Modales en bloque */
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta-primary, .btn-cta-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }

  .modal-container {
    padding: 2rem 1.25rem;
    border-radius: 20px;
    max-height: 88dvh;
  }

  .modal-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .flowchart {
    padding: 0.75rem;
    margin: 1rem 0;
  }

  .flow-node {
    font-size: 0.6rem;
    padding: 0.4rem;
  }
}

@media (max-width: 375px) {
  /* Micro-pantallas (iPhones más antiguos o pequeños) */
  .hero-title {
    font-size: 1.8rem !important;
  }

  .section-title {
    font-size: 1.8rem !important;
  }
  
  .split-title {
    font-size: 1.5rem !important;
  }

  .spec-value {
    font-size: 1.6rem !important;
  }
}
