:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --border: #e4e7ef;
  --text: #14161f;
  --text-muted: #5a5f72;
  --primary: #2451e8;
  --primary-dark: #1638b0;
  --primary-tint: #eaf0ff;
  --accent: #14b881;
  --accent-tint: #e5faf2;
  --warn-tint: #fff4e0;
  --warn-text: #8a5a00;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(20, 30, 70, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(20, 30, 70, 0.12);
  --font-display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}

.page-header {
  text-align: center;
  padding-bottom: 0;
}

.page-header .eyebrow {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 6px 14px;
  border-radius: 999px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(36, 81, 232, 0.55);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-img {
  display: block;
  height: 24px;
  width: auto;
}

.footer-inner .logo-img {
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 860px) {

  /* nav-inner pasa a envolver en dos líneas: logo + cta/toggle arriba,
     y nav-links (el collapse de Bootstrap) ocupa todo el ancho debajo,
     en vez de compartir la misma fila y quedar centrado verticalmente
     en medio del menú abierto. */
  .nav-inner {
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .nav-cta {
    order: 2;
  }

  /* .nav-links es el target del "collapse" de Bootstrap (data-bs-toggle):
     Bootstrap anima la altura (0 -> auto) y controla el display vía
     .collapse/.show, en vez del viejo hack de position:fixed + transform
     que, combinado con el backdrop-filter de header.nav (que lo vuelve
     containing block del elemento), dejaba el menú trasladado fuera de
     pantalla pero seguía sumando ancho scrolleable a la página. */
  .nav-links {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 24px;
    font-size: 18px;
    background: #fff;
    border-top: 1px solid var(--border);
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta .btn-primary {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (min-width: 861px) {

  /* Arriba de 860px el menú siempre está visible, sin importar el estado
     .show de Bootstrap (que solo se usa para el comportamiento mobile). */
  .nav-links {
    display: flex !important;
  }
}

.nav-toggle.navbar-toggler {
  border: 0;
  border-radius: 8px;
}

.nav-toggle.navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--primary-tint);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

/* .hero-grid ahora es un row de Bootstrap (col-lg-6 / col-lg-6) */

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-top: 18px;
}

.hero .highlight {
  color: var(--primary);
}

.hero p.lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Hero mockup */
.hero-visual {
  position: relative;
}

.mock-window {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1.2deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mock-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.floating-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-badge svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.floating-badge b {
  display: block;
  font-size: 13px;
  font-family: var(--font-display);
}

.floating-badge span {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .floating-badge {
    left: 8px;
    bottom: -14px;
    padding: 10px 14px;
  }
}

/* ---------- Features / rubros grid ---------- */
/* La grilla ahora la arma Bootstrap (row + row-cols-*) en cada página */

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- Rubros teaser (home, compact) ---------- */
/* d-flex flex-wrap justify-content-center gap-3 (Bootstrap) en el HTML */

.rubro-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  font-weight: 600;
  font-size: 14px;
}

.rubro-mini .feature-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 0;
  border-radius: 9px;
}

.rubro-mini .feature-icon svg {
  width: 16px;
  height: 16px;
}

/* ---------- See more link ---------- */
.see-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.see-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--primary);
  text-decoration: none;
}

.see-more-link:hover {
  text-decoration: underline;
}

.see-more-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- Why offline ---------- */
.why-section {
  background: #10162e;
  color: #fff;
  border-radius: 28px;
  margin: 0 24px;
  padding: 42px 40px;
}

@media (max-width: 720px) {
  .why-section {
    padding: 48px 22px;
    border-radius: 20px;
    margin: 0 12px;
  }
}

.why-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.why-section .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #9fb4ff;
}

.why-section h2 {
  font-size: clamp(26px, 3.6vw, 34px);
  margin-top: 16px;
}

.why-section p.lead {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
  font-size: 16px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-item {
  display: flex;
  gap: 16px;
}

.why-item .num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: #9fb4ff;
}

.why-item h4 {
  font-size: 15.5px;
  margin-bottom: 4px;
}

.why-item p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

/* ---------- Screenshots ---------- */
.shot-card {
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 15px;
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Screens, full-size stacked (pantallas.html) ---------- */
.screens-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.screen-block-head {
  max-width: 640px;
  margin: 0 auto 22px;
  text-align: center;
}

.screen-block-head .eyebrow {
  margin-bottom: 4px;
}

.screen-block-head h3 {
  font-size: clamp(22px, 3vw, 27px);
  margin-top: 8px;
}

.screen-block-head p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15.5px;
}

.check-list {
  margin: 20px auto 0;
  text-align: left;
}

/* ---------- Botón "volver arriba" ---------- */
.back-to-top {
  /* env(safe-area-inset-bottom) suma el espacio de la barra/gesto inferior
     del navegador en celulares (iOS/Android) — sin esto el botón puede
     quedar tapado por esa barra en vez de simplemente no mostrarse. */
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Pricing ---------- */
/* La grilla (row + col-md-6) la arma Bootstrap; acá solo el ancho máximo */
.pricing-grid {
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card>.btn {
  margin-top: auto;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.price-card.featured::before {
  content: "Recomendado para empezar";
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 19px;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
}

.price-amount small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
}

.price-feats,
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-feats li,
.check-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
  align-items: flex-start;
}

.price-feats svg,
.check-list svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-item .faq-a {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- CTA banner (used on detail pages) ---------- */
.cta-banner {
  text-align: center;
  background: var(--primary-tint);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-banner h2 {
  font-size: clamp(24px, 3.4vw, 30px);
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 15.5px;
}

.cta-banner .btn {
  margin-top: 6px;
}

/* ---------- Contact ---------- */
/* .contact-wrap ahora es un row de Bootstrap (col-lg-5 / col-lg-7) */

.contact-info h2 {
  font-size: clamp(26px, 3.6vw, 34px);
}

.contact-info p.lead {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-weight: 600;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail .icon svg {
  width: 19px;
  height: 19px;
  color: var(--primary);
}

.contact-detail a {
  text-decoration: none;
  color: var(--text);
}

.contact-detail a:hover {
  color: var(--primary);
}

.trial-callout {
  margin-top: 30px;
  background: var(--warn-tint);
  border: 1px solid #f2dca6;
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.trial-callout b {
  color: var(--warn-text);
  font-family: var(--font-display);
  font-size: 14.5px;
}

.trial-callout p {
  margin-top: 4px;
  font-size: 13.5px;
  color: #8a6a2e;
}

form#contactForm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* .form-row ahora es un row de Bootstrap (col-sm-6) */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13.5px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  cursor: pointer;
}

.consent-check input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent-check a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.consent-check a:hover {
  text-decoration: underline;
}

#formStatus {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: none;
  padding: 12px;
  border-radius: 10px;
}

#formStatus.ok {
  display: block;
  background: var(--accent-tint);
  color: #0d7a53;
}

#formStatus.err {
  display: block;
  background: #fdeaea;
  color: #b3261e;
}

/* ---------- Legal / doc pages (privacidad, terminos) ---------- */
.doc-main {
  padding: 56px 0 80px;
}

.doc-header {
  margin-bottom: 40px;
}

.doc-header h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 10px;
}

.doc-header p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

section.doc-section {
  padding: 0;
  margin-bottom: 32px;
}

.doc-section h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.doc-section p {
  margin: 0 0 12px;
  color: #2b2e3a;
  font-size: 15px;
}

.doc-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: #2b2e3a;
  font-size: 15px;
}

.doc-section li {
  margin-bottom: 6px;
}

.callout-info {
  background: var(--primary-tint);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14.5px;
  color: #17318f;
}

.callout-neutral {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.doc-section a,
.callout-info a,
.callout-neutral a {
  color: var(--primary);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-legal {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 13px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-legal-sep {
  color: var(--border);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 12px;
}