:root {
  --primary: #001B44;
  --secondary: #006BFF;
  --blue-mid: #0B4FD8;
  --bg: #F6F8FC;
  --white: #FFFFFF;
  --text: #1B2A41;
  --muted: #5F6B7A;
  --border: #DDE5F0;
  --shadow: 0 18px 55px rgba(0, 27, 68, .12);
  --shadow-soft: 0 10px 30px rgba(0, 27, 68, .08);
  --gradient: linear-gradient(135deg, #001B44 0%, #003B8F 45%, #006BFF 100%);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; padding: 10px 14px; background: var(--primary); color: white; z-index: 10000; }
.skip-link:focus { left: 10px; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221,229,240,.7);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-soft); background: rgba(255,255,255,.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 22px; }
.brand-logo { width: 210px; display: block; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; color: var(--primary); }
.main-nav a { position: relative; padding: 8px 0; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--secondary); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: white; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--primary); transition: .25s; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 22px; border-radius: 999px;
  font-weight: 800; border: 1px solid transparent; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary { color: white; background: var(--gradient); }
.btn-secondary { color: white; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.btn.full { width: 100%; }

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  padding: 138px 0 70px;
  background: var(--primary) url('../img/hero-fallback.jpg') center/cover no-repeat;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #001B44;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.hero-video.active {
  opacity: .72;
  visibility: visible;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,27,68,.96) 0%, rgba(0,27,68,.78) 46%, rgba(0,107,255,.35) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: radial-gradient(circle at 22% 30%, rgba(0,107,255,.28), transparent 25%), linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, 92px 92px, 92px 92px;
  opacity: .65;
}

.hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .75fr);
  gap: 60px;
  align-items: center;
}
.eyebrow { margin: 0 0 8px; color: #9fc6ff; font-weight: 900; letter-spacing: .16em; }
.hero-slogan { margin: 0 0 16px; font-weight: 800; color: rgba(255,255,255,.78); letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(42px, 6vw, 78px); line-height: .98; margin: 0 0 24px; letter-spacing: -0.055em; max-width: 840px; }
.hero-text { max-width: 760px; color: rgba(255,255,255,.82); font-size: 18px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span { border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.88); background: rgba(255,255,255,.08); padding: 9px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hero-dashboard { position: relative; min-height: 460px; }
.dashboard-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0,0,0,.18); border-radius: 28px; padding: 24px; }
.main-card { width: 100%; margin-top: 40px; }
.dashboard-top, .metric-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.dashboard-top span, .metric-row span, .small-card span { color: rgba(255,255,255,.72); }
.dashboard-top strong { color: #8ec2ff; }
.progress { height: 10px; background: rgba(255,255,255,.16); border-radius: 999px; margin: 24px 0; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #69a7ff, white); border-radius: inherit; }
.metric-row { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12); }
.small-card { position: absolute; width: 270px; right: -18px; bottom: 34px; }
.accent-card { left: -26px; right: auto; bottom: 0; background: rgba(0,107,255,.24); }
.small-card strong { display: block; margin-top: 8px; font-size: 18px; }

.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg); }
.section-heading { text-align: center; max-width: 850px; margin: 0 auto 48px; }
.section-heading.align-left { text-align: left; margin-left: 0; margin-right: 0; }
.section-kicker { display: inline-flex; color: var(--secondary); font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; margin-bottom: 12px; }
h2 { color: var(--primary); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 18px; }
.section-heading p { color: var(--muted); font-size: 17px; margin: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cards-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .service-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 5px 20px rgba(0,27,68,.03); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover, .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(0,107,255,.35); }
.card-icon { display: inline-flex; width: 46px; height: 46px; border-radius: 14px; align-items: center; justify-content: center; color: white; font-weight: 900; background: var(--gradient); margin-bottom: 20px; }
h3 { color: var(--primary); line-height: 1.2; font-size: 20px; margin: 0 0 12px; letter-spacing: -.02em; }
p { color: var(--muted); }
.card p, .service-card p { margin: 0; }
.service-card { position: relative; overflow: hidden; min-height: 225px; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient); opacity: .9; }
.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: center; }
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.problem-grid span { display: flex; gap: 10px; align-items: flex-start; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 16px 16px 16px 42px; color: var(--text); font-weight: 700; position: relative; }
.problem-grid span::before { content: '✓'; position: absolute; left: 16px; color: var(--secondary); font-weight: 900; }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; position: relative; }
.timeline-item { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 5px 20px rgba(0,27,68,.03); }
.timeline-item span { display: inline-flex; color: var(--secondary); font-weight: 900; margin-bottom: 18px; }
.timeline-item p { margin: 0; font-size: 14px; }
.experience-section { background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-grid span { background: var(--primary); color: white; border-radius: 999px; padding: 12px 16px; font-weight: 800; box-shadow: var(--shadow-soft); }
.compact-cards .card { min-height: 175px; }
.differentials-section { background: white; }
.contact-section { background: var(--gradient); color: white; overflow: hidden; }
.contact-section h2, .contact-section h3 { color: white; }
.contact-section p, .contact-section .section-kicker { color: rgba(255,255,255,.82); }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.contact-list { display: grid; gap: 12px; margin: 30px 0; }
.contact-list a, .contact-list div { display: grid; gap: 3px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); }
.contact-list strong { color: white; }
.contact-list span { color: rgba(255,255,255,.78); }
.map-box { min-height: 260px; overflow: hidden; border-radius: 24px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; padding: 20px; }
.map-box iframe { width: 100%; height: 300px; border: 0; }
.map-box p { text-align: center; color: rgba(255,255,255,.75); max-width: 360px; }
.contact-form { background: white; color: var(--text); border-radius: 30px; padding: 34px; box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; color: var(--primary); font-weight: 800; margin-bottom: 8px; font-size: 14px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; border: 1px solid var(--border); border-radius: 14px; min-height: 48px; padding: 12px 14px; outline: none; color: var(--text); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(0,107,255,.10); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-message { min-height: 20px; margin: 0 0 14px; font-weight: 700; }
.form-message.error { color: #b42318; }
.form-message.success { color: #027a48; }
.recaptcha-box { margin-bottom: 16px; }
.site-footer { background: #061733; color: rgba(255,255,255,.78); padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.footer-logo { width: 220px; background: white; border-radius: 16px; padding: 10px; }
.footer-slogan { color: white; font-weight: 800; letter-spacing: .06em; }
.site-footer h3 { color: white; font-size: 16px; }
.site-footer a, .site-footer span { display: block; margin: 8px 0; color: rgba(255,255,255,.74); }
.site-footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.11); margin-top: 38px; padding-top: 22px; font-size: 14px; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 58px; padding: 0 18px; border-radius: 999px; background: #19C65A; color: white; font-weight: 900; box-shadow: 0 14px 40px rgba(25,198,90,.35); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .header-cta { display: none; }
  .main-nav { gap: 14px; }
  .services-grid, .cards-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: 82px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: white; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 12px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .hero-content, .split-layout, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-dashboard { display: none; }
  .hero { min-height: auto; padding-top: 132px; }
  .cards-grid, .cards-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand-logo { width: 170px; }
  .header-inner { min-height: 72px; }
  .main-nav { top: 72px; }
  .hero { padding: 116px 0 56px; }
  h1 { font-size: 42px; }
  .hero-text { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 70px 0; }
  .cards-grid, .cards-grid.three, .cards-grid.four, .services-grid, .timeline, .problem-grid, .two-cols { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; border-radius: 24px; }
  .footer-logo { width: 190px; }
  .whatsapp-float { right: 14px; bottom: 14px; min-height: 52px; font-size: 13px; }
}
