:root {
  --navy: #0b3d91;
  --blue: #1a5fd0;
  --sky: #2f80ed;
  --ice: #eaf2ff;
  --ink: #0d1b33;
  --muted: #5a6b86;
  --line: #d6e2f5;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -200px, #1a5fd0 0%, transparent 70%),
    linear-gradient(180deg, var(--navy) 0, var(--navy) 260px, #f4f8ff 260px);
  padding: max(16px, env(safe-area-inset-top)) 14px 32px;
}

.card {
  max-width: 520px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 28px;
  padding: 26px 18px 22px;
  box-shadow: 0 20px 50px -20px rgba(11, 61, 145, .45), 0 2px 6px rgba(11, 61, 145, .08);
}

.brand { text-align: center; }
.logo svg { display: block; width: 56px; height: 56px; margin: 0 auto 10px; box-shadow: 0 8px 20px -6px rgba(11,61,145,.5); border-radius: 16px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
}

h1, h2 { font-family: Archivo, Inter, sans-serif; margin: 0; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
h1 span { display: block; font-weight: 700; font-size: .62em; letter-spacing: .02em; text-transform: uppercase; color: var(--blue); margin-top: 4px; }
h2 { font-size: 1.5rem; }

.tagline { margin: 10px auto 0; max-width: 34ch; color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); margin: 6px 0 18px; }

.actions { display: grid; gap: 12px; margin-top: 26px; }

.btn {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { border-color: var(--sky); background: var(--ice); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(26,95,208,.6); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.btn svg { flex: none; width: 30px; height: 30px; }
.btn span { display: flex; flex-direction: column; text-align: left; }
.btn strong { font-family: Archivo, Inter, sans-serif; font-size: 1.15rem; font-weight: 700; }
.btn small { font-size: .85rem; color: var(--muted); margin-top: 2px; }

.btn-whatsapp svg { color: #1aa84f; }

/* Botones de contacto: rejilla 2×2 compacta para que quepan en la primera pantalla del móvil */
.contact { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.contact .btn { flex-direction: column; justify-content: center; gap: 6px; min-height: 96px; padding: 12px 8px; text-align: center; }
.contact .btn span { align-items: center; text-align: center; min-width: 0; max-width: 100%; }
.contact .btn strong { font-size: 1.05rem; }
.contact .btn small { font-size: .74rem; overflow-wrap: anywhere; }
.cta { margin-top: 10px; min-height: 64px; justify-content: center; }

.btn-primary { background: linear-gradient(135deg, var(--blue), var(--navy)); border-color: transparent; color: #fff; }
.btn-primary small { color: #cfe0ff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--sky), var(--blue)); border-color: transparent; }

.services {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.services li {
  font-size: .82rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--ice);
  padding: 7px 12px;
  border-radius: 999px;
}

.quote { scroll-margin-top: 20px; }
form { display: grid; gap: 14px; }
.row { display: grid; gap: 14px; }
@media (min-width: 480px) { .row { grid-template-columns: 1fr 1fr; } }

label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); }
input, select, textarea {
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); background: #fff; }
textarea { resize: vertical; }

.submit { justify-content: center; font-family: Archivo, Inter, sans-serif; font-weight: 700; font-size: 1.1rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }

footer { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 8px; }

.thanks { text-align: center; margin-top: 10vh; }
.check {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 2rem; font-weight: 700;
}
.thanks .btn { justify-content: center; }
