@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ── */
:root {
  --bg:        #f4f6fb;
  --paper:     #ffffff;
  --ink:       #111827;
  --muted:     #6b7280;
  --muted-light: #9ca3af;
  --line:      #e5e9f2;
  --line-dark: #d0d8e8;

  /* Brand */
  --v1: #6684ea;
  --v2: #735dc4;
  --v3: #7b43a5;
  --gradient: linear-gradient(120deg, #6684ea 0%, #735dc4 52%, #7b43a5 100%);
  --gradient-r: linear-gradient(120deg, #7b43a5 0%, #735dc4 52%, #6684ea 100%);
  --gradient-subtle: linear-gradient(120deg, rgba(102,132,234,.08) 0%, rgba(115,93,196,.08) 100%);

  /* Heading colors */
  --heading: #0f1629;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,22,41,.08), 0 1px 2px rgba(15,22,41,.05);
  --shadow-md: 0 4px 16px rgba(15,22,41,.10), 0 2px 6px rgba(15,22,41,.06);
  --shadow-lg: 0 16px 48px rgba(102,132,234,.18), 0 4px 16px rgba(15,22,41,.10);
  --shadow-screen: 0 32px 80px rgba(102,132,234,.22), 0 8px 24px rgba(15,22,41,.12);

  --radius: 12px;
  --radius-sm: 8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin-top: 0; }
ul { margin: 0; padding-left: 1.4em; }
li + li { margin-top: .45em; }

/* ── Site header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--gradient);
  box-shadow: 0 4px 24px rgba(54,63,130,.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav .nav-cta {
  margin-left: 8px;
  padding: 9px 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-weight: 700;
}
.nav .nav-cta:hover { background: rgba(255,255,255,.26); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: minmax(320px, .62fr) minmax(440px, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 72px);
}
.hero-copy { max-width: 540px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(102,132,234,.2);
  color: var(--v2);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 22px;
  color: var(--heading);
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.03em;
}
h2 {
  margin-bottom: 14px;
  color: var(--heading);
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
}
h3 {
  margin-bottom: 8px;
  color: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(102,132,234,.35);
}
.button.primary:hover { box-shadow: 0 8px 24px rgba(102,132,234,.45); }
.button.secondary {
  background: var(--paper);
  color: var(--v2);
  border-color: var(--line-dark);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover { border-color: var(--v1); box-shadow: var(--shadow-md); }

/* ── Quick facts ── */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 30px 0 0;
}
.quick-facts div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.quick-facts dt {
  color: var(--heading);
  font-size: .85rem;
  font-weight: 800;
  margin-bottom: 3px;
}
.quick-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
}

/* ── Hero screen ── */
.hero-screen {
  position: relative;
}
.hero-screen::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 24px;
  background: var(--gradient-subtle);
  filter: blur(40px);
  z-index: 0;
}
.hero-screen figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1.5px solid rgba(102,132,234,.28);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-screen);
  background: var(--paper);
}
.hero-screen img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center top;
}

/* ── Section base ── */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(60px, 7vw, 96px) clamp(20px, 5vw, 72px);
}
.section-sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 clamp(20px, 5vw, 72px);
}
.section-header {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-header .eyebrow { margin-bottom: 12px; }

/* ── Split intro ── */
.split-intro {
  display: grid;
  grid-template-columns: minmax(280px,.52fr) minmax(320px,.68fr);
  gap: clamp(28px,5vw,72px);
  align-items: start;
}
.split-intro p { color: var(--muted); font-size: 1.05rem; }

/* ── Feature strip ── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  padding-top: 0;
  padding-bottom: clamp(60px,7vw,96px);
}
.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(102,132,234,.3);
}
.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--gradient);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ── Modules grid ── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.module-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.module-card:hover {
  border-color: rgba(102,132,234,.3);
  box-shadow: var(--shadow-md);
}
.module-card strong {
  color: var(--heading);
  font-weight: 700;
  font-size: .97rem;
}
.module-card span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

/* ── Icon modules (homepage) ── */
.icon-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.icon-module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.icon-module-card:hover {
  border-color: rgba(102,132,234,.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.icon-module-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.icon-module-card strong {
  color: var(--heading);
  font-size: .97rem;
  font-weight: 700;
}
.icon-module-card span {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}

/* ── Screenshot in content ── */
.screen-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin: 32px 0;
}
.screen-showcase.single { grid-template-columns: 1fr; }
.screen-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--paper);
}
.screen-figure img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center top;
}
.screen-figure.contain img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}
.screen-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .83rem;
}

/* ── Security section ── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.security-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.security-card strong {
  display: block;
  color: var(--heading);
  font-weight: 700;
  margin-bottom: 6px;
}
.security-card span { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ── Solutions list (compact rows) ── */
/* ── Solutions grid ── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.solution-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.solution-card:hover {
  transform: translateY(-3px);
  border-color: var(--v1);
  box-shadow: var(--shadow-lg);
}
.solution-kicker {
  color: var(--v2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.solution-card strong {
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.solution-card p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  flex: 1;
}
.card-arrow {
  color: var(--v2);
  font-size: .82rem;
  font-weight: 700;
  margin-top: 4px;
}

/* ── FAQ ── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  color: var(--heading);
  font-weight: 700;
  font-size: .97rem;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--v2);
  font-size: 1rem;
  font-weight: 800;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: .95rem;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ── Contact ── */
.contact-section {
  display: grid;
  grid-template-columns: minmax(280px,.55fr) minmax(340px,.52fr);
  gap: clamp(28px,5vw,60px);
  align-items: start;
}
.contact-intro p { color: var(--muted); font-size: 1.02rem; }
.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
label {
  display: grid;
  gap: 6px;
  color: var(--heading);
  font-size: .88rem;
  font-weight: 600;
}
input, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--v1);
  box-shadow: 0 0 0 3px rgba(102,132,234,.15);
}
textarea { resize: vertical; }
.form-note {
  min-height: 20px;
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}
.form-note a { color: var(--v2); font-weight: 700; }

/* ── Footer ── */
.footer {
  background: var(--gradient-r);
  color: #fff;
  padding: 40px clamp(20px,5vw,72px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}
.footer-brand span {
  font-size: .95rem;
  font-weight: 600;
  opacity: .9;
}
.footer-contact {
  display: grid;
  gap: 4px;
  font-size: .88rem;
  opacity: .85;
}
.footer-links {
  display: grid;
  gap: 4px;
  font-size: .88rem;
}
.footer-links a {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }

/* ── Page inner layout ── */
.page-header {
  background: linear-gradient(110deg, #1e1b4b 0%, #2e1f6e 50%, #3b1f7a 100%);
  border-bottom: 1px solid rgba(102,132,234,.2);
  padding: clamp(20px,2.5vw,32px) clamp(20px,5vw,72px);
}
.page-header-inner {
  max-width: 860px;
  margin: 0 auto;
}
.page-header .eyebrow {
  background: rgba(102,132,234,.2);
  border-color: rgba(102,132,234,.3);
  color: #b0c4ff;
  margin-bottom: 10px;
}
.page-header h1 {
  color: #fff;
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.page-header .lead {
  color: rgba(255,255,255,.62);
  max-width: 640px;
  font-size: .93rem;
  line-height: 1.6;
  margin: 0;
}

.page-body {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px,5vw,72px) clamp(20px,5vw,72px) clamp(60px,7vw,96px);
}
.content-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.content-block h2 { font-size: 1.35rem; }
.content-block p { color: var(--muted); margin-bottom: 14px; }
.content-block p:last-child { margin-bottom: 0; }
.content-block ul { color: var(--muted); }
.notice-block {
  border-color: #f0c060;
  background: #fffbf0;
}
.notice-block h2 { color: #7a4f00; }
.notice-block p { color: #7a4f00; }
.cta-block {
  background: var(--gradient-subtle);
  border-color: rgba(102,132,234,.2);
}
.cta-block h2 { color: var(--heading); }

.screen-card {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--paper);
}
.screen-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.screen-card.contain-shot img {
  aspect-ratio: auto;
  object-fit: contain;
}
.screen-card figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .83rem;
}

.signature-flow {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}
.signature-flow .screen-card { margin-bottom: 0; }
.signature-flow .screen-card:nth-child(2) {
  max-width: 420px;
  justify-self: center;
}

.page-cta {
  display: grid;
  gap: 10px;
  align-items: start;
}
.page-cta .button { width: fit-content; }

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.related-links a {
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--v2);
  background: var(--paper);
  font-size: .88rem;
  font-weight: 700;
  transition: border-color .15s, box-shadow .15s;
}
.related-links a:hover { border-color: var(--v1); box-shadow: var(--shadow-sm); }

/* ── Aviso de privacidad ── */
.prose-page {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px,5vw,72px) clamp(20px,5vw,72px);
}
.prose-page h2 { font-size: 1.4rem; margin-top: 32px; }
.prose-page p, .prose-page li { color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .icon-module-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-screen { display: none; }
  .split-intro { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .feature-strip,
  .module-grid,
  .solution-grid,
  .security-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .icon-module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-section { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 64px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    background: #735dc4;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
  }
  .nav.is-open { display: flex; }
  .nav a, .nav .nav-cta { margin: 0; text-align: center; }
  .quick-facts,
  .faq-grid { grid-template-columns: 1fr; }
  .screen-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .feature-strip,
  .module-grid,
  .solution-grid,
  .security-grid,
  .icon-module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  .brand img { width: 36px; height: 36px; }
}

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

/* ── Utility: small h2 ── */
.h2-sm {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--heading);
  margin-bottom: 0;
  line-height: 1.3;
}

/* ── Breadcrumb ── */
.breadcrumb {
  margin: 0 0 24px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--line-dark);
}
.breadcrumb a {
  color: var(--v2);
  font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li:last-child { color: var(--muted-light); }
