/* ==========================================================================
   NOX BOT — Página de inicio
   Estilo: limpio y técnico (inspirado en Nuxt), con el morado de marca como
   único color de acento. Sin degradados ni sombras difusas: la elevación se
   marca con anillos de 1px.
   ========================================================================== */

:root {
  /* Neutros */
  --bg: #020618;
  --panel: #080e21;
  --slate: #0f172b;
  --ring: #1d293d;
  --ring-2: #314158;
  --muted: #90a1b9;
  --frost: #e2e8f0;
  --white: #ffffff;

  /* Marca */
  --brand: #6B1EFF;         /* rellenos: botones, burbujas */
  --brand-hover: #7C36FF;
  --brand-text: #A47BFF;    /* morado legible para texto e iconos sobre fondo oscuro */
  --brand-soft: rgba(107, 30, 255, 0.14);

  --radius: 6px;
  --radius-card: 8px;
  --radius-panel: 12px;
  --font: "Public Sans", Inter, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--brand); color: var(--white); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color .15s, box-shadow .15s;
}
.btn-sm { padding: 5px 10px; font-size: 13px; }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-hover); }

.btn-outline {
  color: var(--frost);
  box-shadow: inset 0 0 0 1px var(--ring-2);
}
.btn-outline:hover { background: var(--slate); }

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(2, 6, 24, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ring);
}

.header-inner,
.hero,
.section,
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.site-brand img { height: 26px; width: auto; }

.site-nav {
  display: none;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a { transition: color .15s; }
.site-nav a:hover { color: var(--frost); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-action { padding: 6px 12px; font-size: 14px; }

.nav-ghost {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  transition: color .15s;
}
.nav-ghost:hover { color: var(--frost); }

@media (min-width: 900px) {
  .site-nav { display: flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

/* Lavado morado muy tenue bajo la cabecera */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 -50vw auto;
  height: 220px;
  background: linear-gradient(to bottom, rgba(107, 30, 255, .14), transparent);
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 56px;
    padding-top: 112px;
    padding-bottom: 96px;
  }
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 3px 10px;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(164, 123, 255, .35);
  border-radius: 999px;
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .15s;
}
.release-pill:hover { background: rgba(107, 30, 255, .22); }

.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 3.7vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 span { display: block; color: var(--brand-text); }

.hero-copy > p {
  max-width: 560px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.command {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--ring-2);
  color: var(--frost);
  font-family: var(--mono);
  font-size: 14px;
  text-align: left;
  transition: background-color .15s;
}
.command:hover { background: var(--panel); }
.command > iconify-icon:first-child { color: var(--muted); }
.command span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-icon { color: var(--muted); transition: color .15s; }
.command.is-copied .command-icon { color: var(--brand-text); }

/* Panel del producto */
.product-panel {
  min-width: 0;
  padding: 12px;
  background: var(--panel);
  border-radius: var(--radius-panel);
  box-shadow: 0 0 0 1px var(--ring);
}

.panel-body {
  display: grid;
  min-height: 360px;
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px var(--ring);
  overflow: hidden;
}
@media (min-width: 640px) {
  .panel-body { grid-template-columns: 200px minmax(0, 1fr); }
  .panel-body.is-single { grid-template-columns: minmax(0, 1fr); }
}

/* Lista de chats (columna izquierda) */
.chat-list {
  display: none;
  padding: 12px 8px;
  border-right: 1px solid var(--ring);
}
@media (min-width: 640px) {
  .chat-list { display: block; }
}
.chat-list > p {
  margin: 0 8px 8px;
  color: var(--frost);
  font-size: 14px;
  font-weight: 600;
}
.chat-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
}
.chat-list li.is-active { background: var(--slate); }
.chat-list img,
.pane-head img {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.chat-list div { min-width: 0; }
.chat-list strong,
.chat-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list strong { color: var(--frost); font-size: 13px; font-weight: 600; }
.chat-list small { font-size: 12px; }

.pane { min-width: 0; }

.pane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ring);
  color: var(--frost);
  font-size: 14px;
  font-weight: 600;
}
.pane-head img { width: 26px; height: 26px; }
.pane-head iconify-icon { color: var(--brand-text); }

/* Burbujas estilo WhatsApp */
.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.45;
}
.wa-in,
.wa-out {
  position: relative;
  max-width: 88%;
  padding: 6px 9px 18px;
  border-radius: var(--radius-card);
}
.wa-in {
  align-self: flex-start;
  background: var(--slate);
  box-shadow: inset 0 0 0 1px var(--ring);
  color: var(--frost);
}
.wa-out {
  align-self: flex-end;
  background: #4A16B8;
  color: var(--white);
}
.wa-in time,
.wa-out time {
  position: absolute;
  right: 9px;
  bottom: 3px;
  font-size: 10.5px;
  opacity: .6;
}
.wa-name {
  display: block;
  margin-bottom: 2px;
  color: #F472B6;
  font-size: 12.5px;
  font-weight: 600;
}
.wa-link {
  color: var(--brand-text);
  text-decoration: underline;
  word-break: break-all;
}
.wa-in > span:not(.wa-link) { display: block; font-weight: 600; }

.wa-quote {
  margin-bottom: 6px;
  padding: 5px 8px;
  border-left: 3px solid #F472B6;
  border-radius: 4px;
  background: rgba(2, 6, 24, .28);
  font-size: 12px;
}
.wa-quote b { display: block; color: #F9A8D4; font-weight: 600; }
.wa-quote span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .8;
}
.wa-out p + p { margin-top: 8px; }
.wa-out iconify-icon,
.wa-quote iconify-icon { vertical-align: -2px; }
.wa-out em { color: #D9C6FF; font-style: normal; font-weight: 600; }

/* Imágenes enviadas */
.wa-img {
  width: 150px;
  height: 110px;
  margin: 4px 0 6px;
  border-radius: var(--radius);
}
.img-photo {
  background:
    radial-gradient(circle at 70% 35%, #FCD34D 0 14%, transparent 15%),
    linear-gradient(160deg, transparent 55%, #1E3A8A 56%),
    linear-gradient(200deg, #93C5FD, #C4B5FD);
}
.img-stripes {
  background:
    repeating-linear-gradient(115deg, transparent 0 14px, #F5B700 14px 18px, transparent 18px 40px),
    linear-gradient(115deg, #fff 45%, #12285E 46%);
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
}
.sheet th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--ring);
  font-weight: 400;
  text-align: left;
}
.sheet td {
  padding: 9px 16px;
  border-bottom: 1px solid rgba(29, 41, 61, .6);
  color: var(--frost);
}
.sheet td:last-child { color: var(--brand-text); text-align: right; }

.pane-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--ring);
  scroll-margin-top: 64px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--brand-text);
  font-size: 15px;
  font-weight: 600;
}
.section h2 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section h2 span { color: var(--brand-text); }
.section-head > p:last-child:not(.eyebrow) {
  margin-top: 16px;
  font-size: 17px;
}

.section-note {
  margin-top: 24px;
  font-size: 15px;
}
.section-note a { color: var(--brand-text); font-weight: 600; }

/* Funciones: celdas sin tarjeta */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
}
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-grid iconify-icon { color: var(--brand-text); }
.feature-logo { width: 22px; height: 22px; border-radius: 5px; }
.feature-grid h3 {
  margin: 12px 0 4px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.feature-grid p { font-size: 14px; }

/* Productos */
.product-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--panel);
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--ring);
  transition: box-shadow .15s;
}
.product-card:hover { box-shadow: 0 0 0 1px var(--brand-text); }

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-top iconify-icon { color: var(--brand-text); }

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ring-2);
  font-size: 12px;
  font-weight: 500;
}

.product-card h3 {
  margin-top: 4px;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
}
.product-card > p { font-size: 14px; }

.product-card ul {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
.product-card li {
  position: relative;
  padding-left: 16px;
  color: var(--frost);
  font-size: 14px;
}
.product-card li::before {
  content: "";
  position: absolute;
  top: .6em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-text);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 600;
  transition: gap .15s;
}
.product-card:hover .product-link { gap: 10px; }

/* Pasos */
.steps {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  padding: 20px;
  background: var(--panel);
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--ring);
}
.steps span {
  color: var(--brand-text);
  font-family: var(--mono);
  font-size: 13px;
}
.steps h3 {
  margin: 12px 0 4px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}
.steps p { font-size: 14px; }
.steps code {
  padding: 1px 5px;
  background: var(--slate);
  border-radius: 4px;
  color: var(--frost);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* CTA final */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  background: var(--panel);
  border-radius: var(--radius-panel);
  box-shadow: 0 0 0 1px var(--ring);
}
.cta h2 + p { margin-top: 12px; font-size: 17px; }
.cta .hero-actions { margin-top: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--ring);
}

.footer-copy {
  display: block;
  font-size: 12px;
}

@media (max-width: 600px) {
  .cta { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
