:root {
  --brand-blue: #0022E1;
  --brand-navy: #000E3A;
  --brand-black: #000000;
  --brand-gold: #FFE070;
  --brand-white: #FFFFFF;
  --ink: #11182b;
  --muted: #61708b;
  --line: #dfe5ef;
  --surface: #f4f7ff;
  --surface-blue: #eaf0ff;
  --surface-gold: #fff9df;
  --shadow: 0 18px 50px rgba(0, 14, 58, .10);
  --shadow-soft: 0 10px 28px rgba(0, 14, 58, .07);
  --radius: 14px;
  --max-width: 1180px;
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; }
img { max-width: 100%; height: auto; border-radius: var(--radius); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 16px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--brand-gold);
  color: #000;
  font-weight: 800;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(0, 34, 225, .28); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(223, 229, 239, .95);
  backdrop-filter: blur(14px);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(0, 14, 58, .09); }
.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 190px; height: auto; border-radius: 0; }
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: #29344e;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav a:hover, .nav a:focus-visible, .nav a.is-active { background: var(--surface-blue); color: var(--brand-blue); }
.nav .nav-cta {
  margin-left: 7px;
  padding-inline: 15px;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 9px 22px rgba(0, 34, 225, .18);
}
.nav .nav-cta:hover, .nav .nav-cta:focus-visible { background: var(--brand-navy); color: #fff; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; border-radius: 4px; background: var(--brand-navy); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Type and buttons */
h1, h2, h3 { margin: 0; color: var(--brand-navy); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 780px; font-size: clamp(2.45rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.lead { max-width: 680px; color: #56637c; font-size: 1.125rem; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; flex: 0 0 28px; background: var(--brand-gold); }
.kicker { display: block; margin-bottom: 10px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: inherit;
  font-size: .875rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn-explore { background: var(--brand-blue); color: #fff; box-shadow: 0 12px 24px rgba(0, 34, 225, .18); }
.btn-primary:hover, .btn-primary:focus-visible, .btn-explore:hover, .btn-explore:focus-visible { background: var(--brand-navy); color: #fff; }
.btn-secondary { border-color: #cfd7e6; background: #fff; color: var(--brand-blue); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--brand-blue); background: var(--surface-blue); }
.btn-gold { background: var(--brand-gold); color: #000; }
.btn-gold:hover, .btn-gold:focus-visible { background: #ffe991; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 68px 0 78px; background: linear-gradient(135deg, #fff 0%, #f6f8ff 55%, #e9efff 100%); }
.hero::before { content: ""; position: absolute; top: -150px; right: -160px; width: 360px; height: 360px; border-radius: 50%; background: rgba(0, 34, 225, .07); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 52px; align-items: center; }
.hero h1 { margin-top: 18px; }
.hero h1 span { color: var(--brand-blue); }
.hero .lead { margin: 24px 0 28px; }
.hero-media { position: relative; min-width: 0; }
.hero-media::after { content: ""; position: absolute; right: -18px; bottom: -18px; z-index: 0; width: 140px; height: 140px; border-radius: 28px; background: var(--brand-gold); }
.hero-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1280 / 698; object-fit: cover; box-shadow: var(--shadow); }
.hero-note { margin-top: 13px; color: #6a758c; font-size: .8125rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .82); }
.stat strong { display: block; color: var(--brand-navy); font-size: .9375rem; }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.5; }

/* Sections, grids, cards */
.section { position: relative; padding: 88px 0; }
.section.alt { background: linear-gradient(180deg, #f7f9ff 0%, #edf2ff 100%); }
.section.alt::before { content: ""; position: absolute; top: 0; left: 0; width: 96px; height: 5px; border-radius: 0 8px 8px 0; background: var(--brand-blue); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 34px; }
.section-head > div, .section-head > p { min-width: 0; }
.section-head > p { max-width: 620px; color: var(--muted); }
.grid-3, .grid-4, .service-grid, .portfolio-grid, .feature-grid, .process, .gateway { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gateway { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .service-card, .portfolio-item { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 7px 24px rgba(15, 31, 68, .045); }
.card { padding: 24px; }
.card:hover, .service-card:hover, .portfolio-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card, .service-card, .portfolio-item { transition: transform .2s ease, box-shadow .2s ease; }
.card p, .service-card p, .portfolio-copy p { margin-top: 9px; color: var(--muted); }
.icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid #d6def4; border-radius: var(--radius); background: var(--surface-blue); color: var(--brand-blue); font-size: .8125rem; font-weight: 900; }
.service-card { padding: 25px; }
.service-card .tag { display: inline-flex; margin-bottom: 15px; padding: 6px 9px; border-radius: 999px; background: var(--surface-blue); color: var(--brand-blue); font-size: .625rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.service-card h3 { font-size: 1.3125rem; }
.service-card ul { padding-left: 18px; color: #5c6880; font-size: .875rem; }
.service-card .more, .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 17px; color: var(--brand-blue); font-size: .875rem; font-weight: 900; }
.more:hover { color: var(--brand-navy); }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid #d8e0f4; border-radius: var(--radius); background: linear-gradient(135deg, #eef2ff, #fff8d7); color: var(--brand-blue); }
.service-icon img { width: 28px; height: 28px; border-radius: 0; object-fit: contain; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 54px; align-items: center; }
.split > * { min-width: 0; }
.split img { width: 100%; box-shadow: var(--shadow); }
.checklist { display: grid; gap: 12px; margin: 23px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-blue); color: var(--brand-blue); font-weight: 900; }
.portfolio-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px 14px 0 0; }
.portfolio-copy { padding: 20px; }
.portfolio-meta { color: var(--brand-blue); font-size: .6875rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

/* Page hero and CTA */
.page-hero { position: relative; overflow: hidden; padding: 66px 0; color: #fff; background: linear-gradient(135deg, var(--brand-navy), #09256d); }
.page-hero::after { content: ""; position: absolute; right: -100px; bottom: -140px; width: 330px; height: 330px; border-radius: 50%; background: rgba(0, 34, 225, .4); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 740px; margin-top: 15px; color: #d6deed; font-size: 1.125rem; }
.breadcrumbs { margin-bottom: 18px; color: #aebbd2; font-size: .8125rem; }
.breadcrumbs a { color: #fff; }
.cta { position: relative; overflow: hidden; padding: 50px; border-radius: var(--radius); color: #fff; background: var(--brand-navy); }
.cta::after { content: ""; position: absolute; top: -120px; right: -90px; width: 270px; height: 270px; border-radius: 50%; background: rgba(255, 224, 112, .12); }
.cta h2 { max-width: 720px; color: #fff; }
.cta p { max-width: 680px; margin-top: 10px; color: #cbd5e8; }
.cta .actions { position: relative; z-index: 1; margin-top: 24px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.detail-hero > * { min-width: 0; }
.detail-hero img { width: 100%; box-shadow: 0 22px 50px rgba(0, 0, 0, .22); }
.faq { display: grid; gap: 10px; }
.faq details { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { color: var(--brand-navy); font-weight: 800; cursor: pointer; }
.note { padding: 18px 20px; border-left: 4px solid var(--brand-gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface-gold); color: #5c553c; }
.legal { max-width: 850px; }
.legal h2 { margin-top: 38px; font-size: 1.875rem; }
.legal p, .legal li { color: #58637a; }
.legal ul { padding-left: 20px; }
.gateway .card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 22px; }
.contact-panel { padding: 30px; border-radius: var(--radius); color: #fff; background: linear-gradient(145deg, var(--brand-navy), #06184c); }
.contact-panel h2 { color: #fff; }
.contact-panel p { color: #cbd5e8; }
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item b { display: block; }
.contact-item span { display: block; color: #cbd5e8; font-size: .875rem; }
.contact-form { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 48px; padding: 12px 13px; border: 1px solid #d3dbe9; border-radius: var(--radius); outline: none; background: #fff; color: var(--ink); }
.field textarea { min-height: 155px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(0, 34, 225, .09); }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-blue); color: var(--brand-navy); }
.form-status.show { display: block; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* WhatsApp */
.whatsapp { position: fixed; right: 18px; bottom: 105px; z-index: 190; width: 58px; height: 58px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #25D366; box-shadow: 0 15px 32px rgba(0, 0, 0, .22); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp img { width: 30px; height: 30px; border-radius: 0; filter: brightness(0) invert(1); }
.whatsapp:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 38px rgba(0, 0, 0, .28); }
.whatsapp-pulse { position: absolute; inset: -5px; border: 2px solid rgba(37, 211, 102, .25); border-radius: 50%; pointer-events: none; animation: waPulse 2.5s infinite; }
@keyframes waPulse { 0%, 70%, 100% { opacity: 0; transform: scale(.88); } 20% { opacity: 1; } 45% { opacity: 0; transform: scale(1.15); } }

/* Footer */
.site-footer { padding: 64px 0 24px; background: #050b21; color: #d9e0ef; }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr)); gap: 34px; }
.footer-brand img { width: 190px; margin-bottom: 14px; border-radius: 0; }
.footer-brand p { max-width: 390px; color: #aeb8cd; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer-whatsapp { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); color: #fff; font-size: .875rem; font-weight: 850; }
.footer-whatsapp:hover { border-color: #25D366; color: #25D366; }
.footer-title { margin-bottom: 14px; color: #fff; font-weight: 900; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #aeb8cd; font-size: .875rem; }
.footer-links a:hover { color: var(--brand-gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8792aa; font-size: .8125rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* Responsive layout */
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    max-height: calc(100dvh - 94px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { justify-content: flex-start; min-height: 46px; padding: 11px 13px; }
  .nav .nav-cta { justify-content: center; margin: 5px 0 0; }
  .hero-grid, .split, .detail-hero, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 820px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-row: span 2; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .container { padding-inline: 12px; }
  .brand img { width: 150px; }
  .hero { padding: 46px 0 58px; }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .hero .lead, .page-hero p { font-size: 1rem; }
  .hero-media::after { right: -10px; bottom: -10px; width: 90px; height: 90px; border-radius: 20px; }
  .stats { grid-template-columns: 1fr; }
  .actions { width: 100%; }
  .actions .btn { width: 100%; flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .section-head { display: block; margin-bottom: 26px; }
  .section-head > p { margin-top: 12px; }
  .grid-4, .grid-3, .service-grid, .portfolio-grid, .feature-grid, .process, .gateway { grid-template-columns: minmax(0, 1fr); }
  .card, .service-card { padding: 21px; }
  .cta { padding: 32px 22px; }
  .page-hero { padding: 52px 0; }
  .page-hero h1 { font-size: clamp(2.2rem, 10vw, 3.1rem); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .field.full { grid-column: auto; }
  .contact-form, .contact-panel { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 6px; }
  .whatsapp { right: 14px; bottom: 88px; width: 56px; height: 56px; }
  .whatsapp img { width: 29px; height: 29px; }
}

@media (max-width: 440px) {
  .brand img { width: 132px; }
  .nav-wrap { gap: 10px; }
  .hero { padding-top: 40px; }
  .btn { width: 100%; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-actions .btn, .footer-whatsapp { width: 100%; }
  .whatsapp { bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .whatsapp-pulse { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.detail-service-icon { margin-bottom: 20px; }
