/* Hub de vendoenlinea.com: tema claro y oscuro (sigue al sistema; hub.js permite elegir), Montserrat local
   (assets/comun/fuentes.css) y nada de terceros. Los colores salen del logo: azul y naranja. */

:root {
  --bg: #f6f8fc;
  --bg-alt: #edf1f8;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --border: #dde3ee;
  --text: #0f172a;
  --muted: #4b5870;
  --primary: #1a5fd0;
  --primary-strong: #144aa6;
  --primary-soft: rgba(26, 95, 208, 0.1);
  --on-primary: #ffffff;
  --accent: #e8620c;
  --accent-soft: rgba(232, 98, 12, 0.12);
  --ok: #157a4a;
  --ok-soft: rgba(21, 122, 74, 0.1);
  --danger: #b42318;
  --danger-soft: rgba(180, 35, 24, 0.08);
  --draft: #8a5300;
  --draft-soft: rgba(214, 140, 0, 0.14);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --glow-1: rgba(26, 95, 208, 0.16);
  --glow-2: rgba(232, 98, 12, 0.12);
  --header-bg: rgba(246, 248, 252, 0.85);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-alt: #0e1729;
    --surface: #111b2e;
    --surface-2: #16223a;
    --border: #22304b;
    --text: #e7ecf5;
    --muted: #a3b0c6;
    --primary: #5b9cff;
    --primary-strong: #86b6ff;
    --primary-soft: rgba(91, 156, 255, 0.14);
    --on-primary: #08101f;
    --accent: #ff8a3d;
    --accent-soft: rgba(255, 138, 61, 0.14);
    --ok: #4ad295;
    --ok-soft: rgba(74, 210, 149, 0.12);
    --danger: #ff8a80;
    --danger-soft: rgba(255, 138, 128, 0.1);
    --draft: #ffc266;
    --draft-soft: rgba(255, 194, 102, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    --glow-1: rgba(91, 156, 255, 0.18);
    --glow-2: rgba(255, 138, 61, 0.1);
    --header-bg: rgba(11, 18, 32, 0.82);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0e1729;
  --surface: #111b2e;
  --surface-2: #16223a;
  --border: #22304b;
  --text: #e7ecf5;
  --muted: #a3b0c6;
  --primary: #5b9cff;
  --primary-strong: #86b6ff;
  --primary-soft: rgba(91, 156, 255, 0.14);
  --on-primary: #08101f;
  --accent: #ff8a3d;
  --accent-soft: rgba(255, 138, 61, 0.14);
  --ok: #4ad295;
  --ok-soft: rgba(74, 210, 149, 0.12);
  --danger: #ff8a80;
  --danger-soft: rgba(255, 138, 128, 0.1);
  --draft: #ffc266;
  --draft-soft: rgba(255, 194, 102, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
  --glow-1: rgba(91, 156, 255, 0.18);
  --glow-2: rgba(255, 138, 61, 0.1);
  --header-bg: rgba(11, 18, 32, 0.82);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-strong);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
  color: var(--on-primary);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

/* Cabecera */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 44px;
  height: auto;
}

.brand-name span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-2);
}

/* Sin JavaScript no hay boton de tema ni de menu: el menu queda siempre visible. */
.menu-toggle,
.theme-toggle {
  display: none;
}

.js .theme-toggle {
  display: inline-flex;
}

.icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: none;
  }

  :root:not([data-theme="light"]) .icon-moon {
    display: block;
  }
}

@media (max-width: 759px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
  }

  .js .menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .js .theme-toggle {
    order: 1;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.25rem 0 0.75rem;
  }

  .js .site-nav.is-open a {
    padding: 0.75rem;
  }
}

/* Botones */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button-primary:hover {
  background: var(--primary-strong);
  color: var(--on-primary);
  transform: translateY(-1px);
}

.button-primary:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.button-ghost {
  color: var(--text);
}

.button-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
}

.button-outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Presentacion */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(40rem 22rem at 12% 0%, var(--glow-1), transparent 70%),
    radial-gradient(34rem 20rem at 95% 15%, var(--glow-2), transparent 70%);
}

.hero-inner {
  max-width: 880px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.points li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.points .icon {
  color: var(--ok);
}

/* Secciones */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
}

.section-head p {
  color: var(--muted);
}

/* Tarjetas de las soluciones */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.card p {
  font-size: 0.95rem;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.card-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.card-icon-lg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
}

.card-icon-lg .icon {
  width: 1.9rem;
  height: 1.9rem;
}

.card-audience {
  color: var(--muted);
  font-weight: 600;
}

.markets {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.markets .icon {
  color: var(--accent);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}

.card-link .icon {
  transition: transform 0.15s ease;
}

.card-link:hover .icon {
  transform: translateX(3px);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-disponible {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge-demo {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-proximamente {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Como funciona */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* A la medida */

.custom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(28rem 14rem at 100% 0%, var(--glow-2), transparent 70%),
    var(--surface);
}

.custom h2 {
  font-size: 1.4rem;
}

.custom p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 759px) {
  .custom {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Proximamente y lista de espera */

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.soon {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.soon .card-top {
  justify-content: flex-start;
}

.soon h1 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
}

.soon-box {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.soon-box h2 {
  font-size: 1.25rem;
}

.checks {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checks .icon {
  flex: none;
  margin-top: 0.2rem;
  color: var(--ok);
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.waitlist-row input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.waitlist-row input:focus-visible {
  border-color: var(--primary);
}

.waitlist-row .button {
  flex: 0 0 auto;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fine-print {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.notice-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.notice-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.notice-draft {
  background: var(--draft-soft);
  color: var(--draft);
  margin-bottom: 1.75rem;
}

/* Legales */

.legal h1 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.legal p {
  color: var(--muted);
}

/* 404 */

.notfound {
  text-align: center;
  padding: 2rem 16px 1rem;
}

.notfound-code {
  margin: 0;
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  opacity: 0.25;
}

/* Pie */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.footer-brand img {
  width: 32px;
  height: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
