/* =========================================================
   Naub Brand Theme — Electric Indigo (#6366f1) + AI Cyan (#38bdf8) + Violet (#a855f7)
   Inyecta la paleta oficial del SaaS de IA de AnkoraDev manteniendo todo el motor visual.
   ========================================================= */

:root {
  /* Fondo Midnight AI profundo */
  --bg: #070814;
  --bg-2: #0d1024;
  --surface: rgba(19, 24, 48, 0.45);
  --surface-2: rgba(30, 41, 78, 0.55);
  --line: rgba(147, 197, 253, 0.12);
  --line-2: rgba(147, 197, 253, 0.24);

  --ink: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;

  /* Colores de IA / Naub */
  --glow: #38bdf8;
  --glow-2: #818cf8;
  --glow-3: #6366f1;
  --ai-purple: #c084fc;
  --ai-cyan: #22d3ee;
}

body {
  background-color: var(--bg);
}

/* Atmósfera con luces de Inteligencia Artificial */
.ambient {
  background:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(14, 165, 233, 0.14) 0%, transparent 45%);
}

.hero-grid-bg {
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.04) 1px, transparent 1px);
}

/* Nav flotante con tinte Indigo */
.nav {
  background: rgba(13, 16, 36, 0.72);
  border-color: rgba(147, 197, 253, 0.14);
}

.nav-wrap.scrolled .nav {
  background: rgba(10, 12, 28, 0.9);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(147, 197, 253, 0.1);
}

/* Botón CTA del Nav */
.nav-cta {
  background: linear-gradient(135deg, #38bdf8, #6366f1) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 6px 20px rgba(56, 189, 248, 0.35) !important;
}

.nav-cta:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 8px 30px rgba(99, 102, 241, 0.6) !important;
}

/* Botón primario de Naub */
.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .2) inset,
    0 10px 30px -6px rgba(99, 102, 241, .6) !important;
}

.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .3) inset,
    0 16px 50px -6px rgba(56, 189, 248, .75) !important;
}

/* Pill superior */
.pill {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.pill-dot {
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
}

/* Título con gradiente entre Cyan eléctrico, Blanco y Violeta IA */
.shine {
  background: linear-gradient(100deg, #38bdf8 0%, #e0f2fe 30%, #c084fc 65%, #818cf8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(56, 189, 248, 0.4));
}

/* Halo del hero con mezcla Cyan e Indigo */
.hero-halo {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(99, 102, 241, 0.18) 45%, transparent 70%);
}

/* Dashboard Mockup en el Hero */
.dashboard-frame {
  position: relative;
  width: min(420px, 100%);
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(30, 41, 78, 0.8), rgba(13, 16, 36, 0.95));
  border: 1px solid rgba(147, 197, 253, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 60px -15px rgba(99, 102, 241, 0.4);
  transform-style: preserve-3d;
  animation: float 7s ease-in-out infinite;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.dash-dots i:nth-child(1) { background: #ef4444; }
.dash-dots i:nth-child(2) { background: #f59e0b; }
.dash-dots i:nth-child(3) { background: #10b981; }

.dash-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.dash-channels {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.ch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.ch-pill.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.dash-post-preview {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-post-preview p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

/* Tarjetas flotantes */
.float-card {
  background: rgba(15, 20, 42, 0.88);
  border-color: rgba(147, 197, 253, 0.2);
  box-shadow: 0 20px 40px -10px rgba(5, 8, 20, 0.8);
}

/* Bento y Cards */
.card {
  background: linear-gradient(180deg, rgba(26, 34, 68, 0.4), rgba(13, 16, 36, 0.3));
  border-color: rgba(147, 197, 253, 0.12);
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 30px 60px -20px rgba(5, 8, 20, 0.9), 0 0 30px -10px rgba(99, 102, 241, 0.4);
}

.stats {
  border-color: rgba(147, 197, 253, 0.12);
  background: rgba(19, 24, 48, 0.25);
}

.stat {
  border-right-color: rgba(147, 197, 253, 0.12);
}

.stat-num {
  background: linear-gradient(180deg, #fff, #93c5fd 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marquee {
  border-block-color: rgba(147, 197, 253, 0.12);
  background: rgba(19, 24, 48, 0.2);
}

.marquee b {
  color: var(--glow);
}

/* PRICING SECTION ESPECTACULAR */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(26, 34, 68, 0.45), rgba(13, 16, 36, 0.35));
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 50px -15px rgba(5, 8, 20, 0.8);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(37, 48, 98, 0.6), rgba(18, 23, 50, 0.5));
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 45px -10px rgba(56, 189, 248, 0.25);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 30px 60px -10px rgba(56, 189, 248, 0.4);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.price-val {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 16px 0 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

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

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3) inset;
}

/* Banner CTA Final */
.cta-band {
  border-color: rgba(147, 197, 253, 0.2);
  background: linear-gradient(180deg, rgba(37, 48, 98, 0.45), rgba(13, 16, 36, 0.35));
}

.cta-glow {
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.32) 0%, rgba(99, 102, 241, 0.28) 40%, transparent 70%);
}

.footer {
  border-top-color: rgba(147, 197, 253, 0.12);
  background: linear-gradient(180deg, transparent, rgba(19, 24, 48, 0.4));
}

.footer-mega {
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.18), rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

/* =========================================================
   BENTO GRID DE NAUB (Layout Proporcional y Widgets)
   ========================================================= */
.bento-naub {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.bento-card {
  position: relative;
  padding: 34px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(26, 34, 68, 0.45), rgba(13, 16, 36, 0.35));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 25px 50px -15px rgba(5, 8, 20, 0.8), 0 0 30px -10px rgba(99, 102, 241, 0.35);
}

.span-4 { grid-column: span 4; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-6 { grid-column: span 6; }

.bento-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 12px 0 10px;
  line-height: 1.25;
}

.bento-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
}

/* Widget 1: Generador IA Mockup */
.ai-generator-widget {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(147, 197, 253, 0.16);
  border-radius: 16px;
  padding: 16px 18px;
}

.ai-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ai-model-tabs {
  display: flex;
  gap: 6px;
}

.ai-tab {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.ai-tab.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-weight: 600;
}

.ai-prompt-box {
  background: rgba(13, 16, 36, 0.8);
  border: 1px solid rgba(147, 197, 253, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Widget 2: WhatsApp Chat Preview */
.wa-widget {
  margin-top: auto;
  background: rgba(11, 20, 26, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-msg {
  background: #005c4b;
  color: #e9edef;
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 12px 12px 2px 12px;
  position: relative;
}

.wa-msg-meta {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.68rem;
  color: #8696a0;
  margin-top: 4px;
}

.wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
}

/* Widget 3: Visual Calendar Strip */
.cal-widget {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(147, 197, 253, 0.14);
  border-radius: 16px;
  padding: 14px;
}

.cal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cal-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}

.cal-col.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.4);
}

.cal-day {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
}

.cal-item {
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Widget 4: Roles y Aprobación */
.approval-widget {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(147, 197, 253, 0.14);
  border-radius: 14px;
  padding: 12px 16px;
  gap: 8px;
}

.app-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.app-step.done {
  color: #10b981;
  font-weight: 500;
}

.app-step.active {
  color: #38bdf8;
  font-weight: 600;
}

/* Widget 5: Pipeline RSS Automático */
.pipeline-widget {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto 1.3fr auto 1fr;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(147, 197, 253, 0.16);
  border-radius: 16px;
  padding: 16px 20px;
}

.pipe-box {
  background: rgba(13, 16, 36, 0.7);
  border: 1px solid rgba(147, 197, 253, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  text-align: center;
  color: #e2e8f0;
}

.pipe-arrow {
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: 700;
}

/* =========================================================
   SECCIÓN COMPARATIVA REDISEÑADA: SIN NAUB VS CON NAUB
   ========================================================= */
.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}

.comp-card {
  position: relative;
  padding: 36px 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(26, 34, 68, 0.4), rgba(13, 16, 36, 0.3));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.comp-card.bad {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(13, 16, 36, 0.4) 100%);
  box-shadow: 0 20px 45px -15px rgba(239, 68, 68, 0.15);
}

.comp-card.good {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.1) 0%, rgba(99, 102, 241, 0.06) 50%, rgba(13, 16, 36, 0.4) 100%);
  box-shadow: 0 25px 50px -15px rgba(56, 189, 248, 0.22);
}

.comp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 16px;
}

.comp-badge.bad {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.comp-badge.good {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.comp-card h3 {
  font-size: 1.55rem;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.comp-card.bad h3 { color: #fca5a5; }
.comp-card.good h3 { color: #fff; }

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comp-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.comp-row-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.comp-card.bad .comp-row-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.comp-card.good .comp-row-icon {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.comp-row-content {
  flex: 1;
}

.comp-row-content strong {
  display: block;
  font-size: 0.95rem;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.comp-row-content p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.comp-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  align-self: center;
}

.comp-tag.bad {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.comp-tag.good {
  background: rgba(56, 189, 248, 0.15);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

@media (max-width: 960px) {
  .bento-naub {
    grid-template-columns: 1fr;
  }
  .span-4, .span-2, .span-3, .span-6 {
    grid-column: span 1 !important;
  }
  .pipeline-widget {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pipe-arrow {
    transform: rotate(90deg);
  }
  .comp-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

