:root {
  --slate-900: #16242F;
  --slate-800: #1F3240;
  --slate-700: #2C4858;
  --slate-600: #3F6075;
  --slate-500: #5C7E94;
  --slate-300: #8FA8BB;
  --slate-100: #C5D2DC;
  --paper:     #F8F9FB;
  --paper-2:   #EEF2F5;

  --orange:    #F39C12;
  --orange-d:  #D9890A;
  --lime:      #A8C957;
  --lime-d:    #94B546;
  --purple:    #E9DEF8;
  --purple-b:  #B8A3DC;
  --blue:      #5C9DC9;
  --green:     #3DBA8C;
  --pink:      #C779D0;
  --teal:           #14B8A6;
  --yellow:         #EAB308;
  --olive:          #84CC16;
  --magenta:        #EC4899;
  --purple-strong:  #9333EA;

  --c-text:    var(--slate-900);
  --c-muted:   var(--slate-500);
  --c-bg:      var(--paper);
  --c-card:    #FFFFFF;
  --c-border:  #E1E7EB;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-1:  0 1px 2px rgba(22, 36, 47, 0.06), 0 4px 12px rgba(22, 36, 47, 0.06);
  --shadow-2:  0 10px 40px rgba(22, 36, 47, 0.12);

  --container:  1180px;
  --gap:        clamp(16px, 2.5vw, 28px);
  --section-y:  clamp(64px, 9vw, 120px);

  --t-fast: 160ms cubic-bezier(.2, .8, .2, 1);
  --t-slow: 320ms cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(36px, 5.8vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p  { margin: 0 0 1em; }

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lime); color: var(--slate-900); }
.btn-primary:hover { background: var(--lime-d); box-shadow: var(--shadow-2); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 249, 251, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 36px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 24px;
}
.nav-links a { color: var(--c-text); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--slate-700); }
.nav-links a.btn { color: var(--slate-900); }

.nav-toggle {
  display: none; width: 40px; height: 40px; background: transparent; border: 0; padding: 8px;
  position: relative;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--slate-700); border-radius: 2px; margin: 5px 0;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-bg);
    flex-direction: column; align-items: stretch;
    padding: 12px 20px 24px; gap: 8px;
    border-bottom: 1px solid var(--c-border);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform var(--t-fast), opacity var(--t-fast);
  }
  .nav-links a { padding: 10px 0; }
  .nav-links a.btn { margin-top: 8px; align-self: flex-start; }
  .nav[data-open="true"] .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.hero {
  position: relative;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("../img/hero.svg");
  background-size: cover; background-position: center;
  z-index: -1;
}
.hero-inner {
  padding-top: clamp(80px, 14vw, 180px);
  padding-bottom: clamp(80px, 14vw, 180px);
  max-width: 780px;
}
.hero-logo {
  height: clamp(88px, 10vw, 112px);
  width: auto;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hero h1 { color: var(--paper); }
.hero .eyebrow { color: var(--lime); }
.hero .lead {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--slate-100);
  max-width: 620px;
}
.hero .lead-tagline {
  margin-top: 16px;
  color: var(--lime);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.section { padding: var(--section-y) 0; }
.section-dark {
  background: var(--slate-900);
  color: var(--paper);
}
.section-dark .section-sub { color: var(--slate-100); }
.section-soft { background: var(--paper-2); }
#sistema { padding-bottom: clamp(32px, 4vw, 56px); }
.section-soft + .section { padding-top: clamp(32px, 4vw, 56px); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.section-sub { color: var(--c-muted); font-size: 18px; }

.features {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
.features > li { margin: 0; display: flex; }
.feature {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-1);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--purple-b);
}
.feature:focus-visible {
  outline: 3px solid var(--purple-b);
  outline-offset: 3px;
}
.feature-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 6px;
}
.feature-desc {
  display: block;
  color: var(--c-muted);
  margin: 0;
  flex: 1;
}
.feature-more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--orange);
  transition: transform var(--t-fast);
}
.feature:hover .feature-more { transform: translateX(3px); }
.feature-icon {
  display: block;
  width: 48px; height: 48px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--orange);
  position: relative;
}
.feature-icon::after {
  content: "";
  position: absolute; inset: 12px;
  background: rgba(255,255,255,0.55);
  border-radius: 6px;
}
.feature-icon[data-color="orange"], .modal-icon[data-color="orange"] { background: var(--orange); }
.feature-icon[data-color="purple"], .modal-icon[data-color="purple"] { background: var(--purple-b); }
.feature-icon[data-color="blue"],   .modal-icon[data-color="blue"]   { background: var(--blue); }
.feature-icon[data-color="green"],  .modal-icon[data-color="green"]  { background: var(--green); }
.feature-icon[data-color="pink"],   .modal-icon[data-color="pink"]   { background: var(--pink); }
.feature-icon[data-color="lime"],   .modal-icon[data-color="lime"]   { background: var(--lime); }
.modal-icon[data-color="teal"]           { background: var(--teal); }
.modal-icon[data-color="yellow"]         { background: var(--yellow); }
.modal-icon[data-color="olive"]          { background: var(--olive); }
.modal-icon[data-color="magenta"]        { background: var(--magenta); }
.modal-icon[data-color="purple-strong"]  { background: var(--purple-strong); }

.system-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 560px) {
  .system-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.system-grid > li { margin: 0; display: flex; }
.system-tile {
  width: 100%;
  background: var(--c-card);
  border: 1.5px solid var(--purple-b);
  border-radius: 14px;
  padding: 26px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.system-tile:hover {
  transform: translateY(-2px);
  background: #F4ECFC;
  box-shadow: var(--shadow-2);
  border-color: var(--purple-strong);
}
.system-tile:focus-visible {
  outline: 3px solid var(--purple-b);
  outline-offset: 3px;
}
.system-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--orange);
}
.system-icon svg { width: 100%; height: 100%; display: block; }
.system-icon[data-color="orange"]         { color: var(--orange); }
.system-icon[data-color="blue"]           { color: var(--blue); }
.system-icon[data-color="teal"]           { color: var(--teal); }
.system-icon[data-color="pink"]           { color: var(--pink); }
.system-icon[data-color="green"]          { color: var(--green); }
.system-icon[data-color="yellow"]         { color: var(--yellow); }
.system-icon[data-color="olive"]          { color: var(--olive); }
.system-icon[data-color="purple-strong"]  { color: var(--purple-strong); }
.system-icon[data-color="magenta"]        { color: var(--magenta); }
.system-label {
  font-weight: 700;
  color: var(--c-text);
  font-size: 15px;
  text-align: center;
  line-height: 1.2;
}

.closing-cta {
  background: var(--paper-2);
  text-align: center;
  padding: clamp(56px, 7vw, 96px) 0;
}
.closing-inner {
  max-width: 760px;
}
.closing-lead {
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--c-text);
  margin: 0 0 16px;
  line-height: 1.45;
  font-weight: 500;
}
.closing-tag {
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--orange);
  margin: 0;
  letter-spacing: -0.02em;
}
.closing-tag strong { font-weight: 800; }

.modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--c-card);
  color: var(--c-text);
  max-width: 600px;
  width: calc(100% - 24px);
  box-shadow: 0 30px 80px rgba(22, 36, 47, 0.28);
  position: relative;
}
.modal::backdrop {
  background: rgba(22, 36, 47, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal[open] {
  animation: modal-in 200ms cubic-bezier(.2, .8, .2, 1);
}
.modal[open]::backdrop {
  animation: backdrop-in 200ms ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-body {
  padding: clamp(24px, 4vw, 40px);
}
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--c-muted);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.modal-close:hover {
  background: var(--paper-2);
  color: var(--slate-700);
}
.modal-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  margin-bottom: 22px;
  background: var(--orange);
  position: relative;
}
.modal-icon::after {
  content: "";
  position: absolute; inset: 14px;
  background: rgba(255,255,255,0.55);
  border-radius: 6px;
}
.modal-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
}
.modal-summary {
  color: var(--c-muted);
  margin: 0 0 22px;
  font-size: 16px;
}
.modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
.modal-features li {
  position: relative;
  padding-left: 30px;
  color: var(--slate-700);
  line-height: 1.45;
  font-size: 15px;
}
.modal-features li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  background: var(--lime);
  color: var(--slate-900);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.modal-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-link {
  background: transparent;
  color: var(--c-muted);
  padding: 14px 12px;
  border: none;
  font-weight: 600;
  text-decoration: underline;
  border-radius: 0;
}
.btn-link:hover {
  color: var(--slate-700);
  transform: none;
}
body.modal-open { overflow: hidden; }

.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: var(--gap);
}
@media (max-width: 720px) {
  .screens { grid-template-columns: 1fr; }
}
.screen {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-800);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-2);
}
.screen img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 10; object-fit: cover;
}
.screen figcaption {
  padding: 14px 18px;
  color: var(--slate-100);
  font-weight: 600;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-copy h2 { margin-bottom: 12px; }
.contact-copy p { color: var(--c-muted); }
.contact-meta { list-style: none; padding: 0; margin: 18px 0 0; color: var(--c-muted); }
.contact-meta a { color: var(--slate-700); border-bottom: 1px solid var(--c-border); }
.contact-meta a:hover { color: var(--orange); border-bottom-color: var(--orange); }

.contact-form {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--slate-700); }
.field label span { color: var(--orange); }
.field input, .field textarea {
  font: inherit; font-size: 15px;
  padding: 11px 13px;
  background: var(--paper);
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple-b);
  box-shadow: 0 0 0 4px rgba(184, 163, 220, 0.25);
  background: #FFFFFF;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #D9534F;
  box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.15);
}
.honeypot {
  position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 6px;
}
.form-status { margin: 0; font-size: 14px; color: var(--c-muted); }
.form-status[data-state="ok"]    { color: #1f9d6c; }
.form-status[data-state="error"] { color: #c74541; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.site-footer {
  background: var(--slate-900);
  color: var(--slate-100);
  padding: clamp(40px, 6vw, 72px) 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .brand-logo { height: 32px; filter: brightness(0) invert(1); }
.footer-brand p { margin: 14px 0 0; color: var(--slate-300); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-self: end;
}
@media (max-width: 720px) {
  .footer-links { justify-self: start; }
}
.footer-links a { color: var(--slate-100); font-weight: 600; font-size: 15px; }
.footer-links a:hover { color: var(--paper); }
.footer-copy {
  grid-column: 1 / -1;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--slate-500);
  font-size: 13px;
}
