:root {
  --color-primary: #0B1F3A;
  --color-primary-700: #0E2A52;
  --color-accent: #2D7FF9;
  --color-accent-700: #1F66D1;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-text: #1A1A1A;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-whatsapp: #25D366;
  --color-whatsapp-700: #1EBE5B;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .04);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, .08);
  --shadow-lg: 0 20px 40px rgba(11, 31, 58, .12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --container: 1140px;
  --header-h: 72px;
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-700); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--color-primary); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 .8em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.4em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-700); border-color: var(--color-accent-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; border-color: var(--color-whatsapp); }
.btn-whatsapp:hover { background: var(--color-whatsapp-700); border-color: var(--color-whatsapp-700); color: #fff; }
.btn-ico { font-size: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .6em; color: var(--color-primary); }
.brand:hover { color: var(--color-primary); }
.brand-logo { width: 40px; height: 40px; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-name span { color: var(--color-accent); margin-left: .2em; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6em;
  align-items: center;
}
.primary-nav a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: .95rem;
}
.primary-nav a:hover { color: var(--color-accent); }
.primary-nav a.btn { color: #fff; }
.primary-nav a.btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(45,127,249,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(45,127,249,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--color-bg-alt) 100%);
  padding: clamp(48px, 8vw, 96px) 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-top: .2em; }
.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 56ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5em;
}
.hero-visual {
  position: relative;
  height: 280px;
}
.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: var(--shadow-lg);
  opacity: .92;
}
.hero-card-1 { width: 60%; height: 70%; top: 0; left: 0; transform: rotate(-4deg); }
.hero-card-2 { width: 55%; height: 60%; bottom: 0; right: 0; transform: rotate(5deg); background: linear-gradient(135deg, #fff, #DCEAFE); border: 1px solid var(--color-border); }
.hero-card-3 { width: 35%; height: 35%; top: 30%; right: 10%; transform: rotate(-8deg); background: linear-gradient(135deg, var(--color-accent), #6FA9FF); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-bottom: .4em; }
.section-sub { color: var(--color-text-muted); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.about-text p { font-size: 1.05rem; }
.about-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.about-highlights li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.hl-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -.02em;
}
.hl-label { color: var(--color-text-muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45,127,249,.4);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.service-card p { color: var(--color-text-muted); margin: 0; }

/* ---------- Products ---------- */
.product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), #6FA9FF);
}
.product-badge {
  display: inline-block;
  background: rgba(45,127,249,.1);
  color: var(--color-accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-title {
  font-size: 2rem;
  margin: 0 0 4px;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.product-tagline {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0 0 16px;
  font-weight: 500;
}
.product-description {
  color: var(--color-text);
  margin: 0 0 18px;
  line-height: 1.65;
}
.product-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.product-features li {
  position: relative;
  padding-left: 26px;
  color: var(--color-text-muted);
  font-size: .95rem;
}
.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.product-use-cases-title,
.product-features-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 8px 0 12px;
}
.product-use-cases {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 540px) {
  .product-use-cases { grid-template-columns: 1fr 1fr; }
}
.product-use-cases li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(45,127,249,.06);
  border: 1px solid rgba(45,127,249,.15);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .92rem;
  color: var(--color-text);
}
.product-use-cases .uc-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}
.product-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-card-visual {
  display: none;
}
.product-mock-img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.product-mock-frame {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius);
  padding: 28px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 720px) {
  .product-card {
    grid-template-columns: 1.4fr .8fr;
    align-items: center;
    padding: 40px;
  }
  .product-card-visual { display: block; }
}

/* ---------- Legal pages (privacy, terms) ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.legal-page h1 {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.2rem);
  margin-bottom: 8px;
}
.legal-page .legal-meta {
  color: var(--color-text-muted);
  font-size: .9rem;
  margin-bottom: 28px;
}
.legal-page .legal-summary {
  background: rgba(45,127,249,.08);
  border-left: 3px solid var(--color-accent);
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--color-primary);
  margin-bottom: 28px;
}
.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 10px;
}
.legal-page p { color: var(--color-text-muted); }
.legal-page strong { color: var(--color-text); }
.legal-page hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 36px 0 20px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--color-accent);
  font-weight: 600;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.portfolio-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.portfolio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.portfolio-thumb {
  height: 160px;
  background: linear-gradient(135deg, #0B1F3A, #2D7FF9);
}
.portfolio-thumb[data-color="2"] { background: linear-gradient(135deg, #1F66D1, #6FA9FF); }
.portfolio-thumb[data-color="3"] { background: linear-gradient(135deg, #0E2A52, #25D366); }
.portfolio-body { padding: 20px 24px 24px; }
.portfolio-body p { color: var(--color-text-muted); }
.tags {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote { margin: 0 0 12px; }
.testimonial blockquote p { font-size: 1.05rem; color: var(--color-text); }
.testimonial figcaption { color: var(--color-text-muted); font-size: .95rem; }
.testimonial figcaption strong { color: var(--color-primary); margin-right: .4em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-info p { margin-bottom: .6em; }
.contact-info a { color: var(--color-accent); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-self: center; }
.contact-note { color: var(--color-text-muted); font-size: .9rem; text-align: center; margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: #C7D1DF;
  padding-top: 56px;
}
.site-footer h4 { color: #fff; margin-bottom: .8em; }
.site-footer a { color: #C7D1DF; }
.site-footer a:hover { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-brand-mark { display: flex; align-items: center; gap: .6em; }
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; }
.footer-brand .brand-name span { color: var(--color-accent); }
.footer-brand p { color: #94A3B8; margin-top: 8px; max-width: 32ch; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 40px;
  padding: 20px 0;
  font-size: .9rem;
  color: #94A3B8;
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  transition: transform .2s ease, background .2s ease;
}
.whatsapp-float:hover { background: var(--color-whatsapp-700); color: #fff; transform: scale(1.05); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-highlights { grid-template-columns: repeat(3, 1fr); }
  .about-highlights li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .hero-visual { height: 420px; }
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 1fr; padding: 48px; gap: 56px; }
  .footer-inner { grid-template-columns: 1fr 2fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .primary-nav li { border-bottom: 1px solid var(--color-border); }
  .primary-nav li:last-child { border-bottom: 0; padding: 12px 20px; }
  .primary-nav a { display: block; padding: 14px 20px; }
  .primary-nav a.btn { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
