:root {
  --navy: #17233f;
  --navy-2: #24365f;
  --ink: #1a2340;
  --muted: #5c6780;
  --line: #e4e9f2;
  --bg: #f5f7fb;
  --card: #ffffff;
  --primary: #2f6fe0;
  --electric: #3aa0ff;
  --radius: 18px;
  --shadow: 0 12px 30px -18px rgba(23, 35, 63, 0.45);
  --max: 1120px;
  --font: "Barlow", "Segoe UI", sans-serif;
  --display: "Archivo", "Arial Black", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
}
body.mbs-has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.4em; }
h1, h2 { font-style: italic; font-weight: 800; }
p { margin: 0 0 1em; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 10000;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: var(--navy); color: #d5def0; font-size: 0.92rem;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 70; background: #fff; border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; cursor: pointer;
  text-decoration: none; font-family: inherit; font-size: 1rem;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--electric)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { color: #fff; text-decoration: none; filter: brightness(1.05); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { color: #fff; text-decoration: none; }
.btn-light { background: #fff; color: var(--primary); }
.menu-btn { display: none; background: var(--navy); color: #fff; }

.hero {
  position: relative; color: #fff; background: var(--navy); overflow: hidden; min-height: 420px;
  display: flex; align-items: center;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(23,35,63,.94) 18%, rgba(47,111,224,.55) 100%); }
.hero .wrap { position: relative; padding: 72px 0; }
.eyebrow { color: var(--electric); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 16ch; }
.hero p { max-width: 62ch; color: rgba(255,255,255,.88); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -36px; position: relative; z-index: 2; }
.stat, .card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 16px 18px; }
.stat strong { display: block; font-family: var(--display); font-style: italic; }
.stat span { color: var(--muted); font-size: .95rem; }

.section { padding: 64px 0; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { overflow: hidden; color: inherit; text-decoration: none; }
a.card:hover { text-decoration: none; transform: translateY(-2px); }
.card img { width: 100%; height: 150px; object-fit: cover; }
.card .pad, .pad { padding: 18px; }
.card h3 { font-style: normal; font-size: 1.05rem; }
.muted { color: var(--muted); }
.band { background: #eef3fb; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.split img { border-radius: 24px; width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.prose h2 { margin-top: 1.3em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chip {
  background: #e7eefb; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 650; font-size: .92rem; text-decoration: none;
}
.chips a:hover { background: #d7e4fb; text-decoration: none; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.side { position: sticky; top: 92px; }
.side .card { padding: 18px; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check li { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); }
.crumbs { padding-top: 18px; color: var(--muted); font-size: .95rem; }
.crumbs a { color: var(--muted); }

.cta-band { margin: 20px auto 64px; background: linear-gradient(135deg, var(--primary), var(--electric)); color: #fff; border-radius: 28px; padding: 36px; }
.cta-band h2 { color: #fff; }
.faq details { background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; }
.form { display: grid; gap: 12px; }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff;
}
.hp { position: absolute; left: -9999px; }

.site-footer { background: var(--navy); color: #d5def0; padding: 48px 0 24px; }
.site-footer a { color: #d5def0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h3 { font-style: normal; color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.legal-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; font-size: .92rem; }
.copy { text-align: center; border-top: 1px solid rgba(255,255,255,.1); margin-top: 18px; padding-top: 16px; font-size: .85rem; }

.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar { grid-template-columns: repeat(5, 1fr); }
.tabbar a { text-align: center; text-decoration: none; color: var(--muted); font-size: .75rem; font-weight: 700; padding: 8px 0 10px; }
.tabbar a strong { display: block; font-size: 1.15rem; }
.tabbar .call { color: var(--primary); margin-top: -22px; }
.tabbar .call span {
  width: 56px; height: 56px; margin: 0 auto 2px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--primary), var(--electric));
  box-shadow: var(--shadow); border: 4px solid #fff;
}

.drawer { display: none; }
.notice { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.notice.ok { border-left: 4px solid #1f8a4c; }
.notice.bad { border-left: 4px solid #b42318; }

@media (max-width: 900px) {
  .nav, .topbar { display: none; }
  .menu-btn { display: inline-flex; }
  .stats, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-2, .split, .layout, .foot-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .tabbar { display: grid; }
  .drawer.open { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(23,35,63,.55); }
  .drawer nav {
    position: absolute; right: 0; top: 0; bottom: 0; width: min(84vw, 360px); background: #fff;
    padding: 18px; overflow: auto; display: grid; align-content: start; gap: 8px;
  }
  .drawer a { color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px 8px; }
}

@media (min-width: 901px) {
  body.mbs-has-bar { padding-bottom: 0; }
}
