:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --blue: #2f80ed;
  --blue-dark: #1c63c4;
  --ink: #16202e;
  --muted: #5a6778;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --ok: #18794e;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 31, 58, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue-dark); }
h1, h2, h3 { font-family: "Montserrat", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: "Montserrat", system-ui, sans-serif; font-size: 1.3rem; font-weight: 500; }
.brand b { font-weight: 700; color: var(--blue); margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--blue-dark); }

/* Buttons */
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: 13px 24px; border-radius: 10px; border: 2px solid var(--blue); cursor: pointer; font: inherit; font-weight: 600; transition: background .15s, transform .15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #9cc4ff; outline-offset: 2px; }
.btn-small { padding: 8px 16px; font-size: .92rem; color: #fff !important; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

/* Servicios (3 columnas) */
.section-lead { color: var(--muted); max-width: 60ch; margin-top: -.2em; }
.services { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.service { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11,31,58,.12); }
.service h3 { font-size: 1.3rem; }
.service > p { color: var(--muted); }
.ticks { list-style: none; margin: 4px 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.ticks li { position: relative; padding-left: 26px; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.more { font-weight: 600; text-decoration: none; color: var(--blue-dark); }
.more:hover { text-decoration: underline; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1d4a8a 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: clamp(64px, 11vw, 132px) 0; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero-inner { max-width: 820px; margin-left: max(16px, calc((100% - 1120px) / 2)); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d3def0; max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: #8fc0ff; margin-bottom: 14px; }
.eyebrow.dark { color: var(--blue-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11,31,58,.12); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: #e8f1fe; display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px; font-family: "Montserrat", system-ui, sans-serif; }

.about { display: grid; gap: 40px; grid-template-columns: 1.3fr 1fr; align-items: start; }
.about p { color: var(--muted); max-width: 62ch; }
.values { list-style: none; margin: 0; padding: 26px; background: var(--bg-alt); border-radius: var(--radius); display: grid; gap: 14px; }
.values li { padding-left: 16px; border-left: 3px solid var(--blue); color: var(--muted); }
.values strong { color: var(--navy); }

/* Contact */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.contact h2 { color: #fff; }
.contact-inner { display: grid; gap: 40px; grid-template-columns: 1fr 1.1fr; align-items: start; }
.contact-copy p { color: #d3def0; }
.mail { color: #fff; font-weight: 600; font-size: 1.15rem; }

.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.field { margin-bottom: 16px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); }
input, textarea, select { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #cfd8e3; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
textarea { resize: vertical; min-height: 120px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 14px 0 0; font-weight: 500; min-height: 1.4em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* Footer */
.site-footer { background: #07162b; color: #b6c4da; padding: 24px 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-inner p { margin: 0; }

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .about, .contact-inner { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
