:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #edf2f8;
  --text: #1f2a36;
  --muted: #586575;
  --brand: #123b72;
  --brand-dark: #0d2d56;
  --line: #d8dde5;
  --shadow: 0 20px 50px rgba(18, 59, 114, 0.09);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(18, 59, 114, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 40%, #f3f5f8 100%);
  color: var(--text);
  font-family: Inter, sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   HEADER
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.nav-wrap {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(18, 59, 114, 0.06);
}

.nav-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(150px, 16vw, 220px);
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 15px;
}

.nav a:not(.btn):hover {
  background: rgba(18, 59, 114, 0.06);
}

/* =========================
   BUTTONS
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
}

.btn-primary {
  background: linear-gradient(180deg, #184987 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 12px 25px rgba(18, 59, 114, 0.18);
}

.btn-secondary {
  background: #fff;
  border-color: rgba(18, 59, 114, 0.14);
  color: var(--brand);
}

.nav-contact-btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;

  background: linear-gradient(180deg, #1f4a86 0%, #123b72 100%);
  color: #ffffff !important;

  box-shadow: 0 8px 18px rgba(18, 59, 114, 0.18);
}

/* Hover más limpio */
.nav-contact-btn:hover {
  background: #0f2f5c;
  color: #ffffff !important;
}

/* =========================
   HERO / LAYOUT
   ========================= */

.hero {
  padding: 24px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 24px;
  align-items: stretch;
}

.panel,
.panel-soft,
.proof-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel {
  background: rgba(255, 255, 255, 0.94);
}

.panel-soft,
.proof-item {
  background: var(--surface);
}

.panel-lg,
.card,
.step-card,
.mini-card,
.cta-single {
  padding: 30px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand);
}

.hero-copy h1,
.section-header h2,
.cta-single h2 {
  margin: 0;
  color: var(--brand);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 12ch;
}

.hero-text {
  margin: 18px 0 0;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.proof-item {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.proof-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 1.02rem;
}

.proof-item span {
  color: var(--muted);
  font-size: .95rem;
}

.hero-visual {
  overflow: hidden;
  padding: 0;
}

.hero-media {
  position: relative;
  min-height: 100%;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 24, 42, 0.06) 0%, rgba(9, 24, 42, 0.48) 100%);
}

.hero-overlay-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 22px;
  border-radius: 18px;
  background: rgba(12, 28, 48, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #fff;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 8px;
}

.hero-overlay-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.hero-overlay-card p {
  margin: 0;
  color: rgba(255,255,255,.84);
}

.section {
  padding: 46px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(18, 59, 114, 0.05) 0%, rgba(18, 59, 114, 0) 100%);
}

.section-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-header.narrow {
  max-width: 900px;
}

.section-header h2,
.cta-single h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-header p,
.card p,
.step-card p,
.mini-card p,
.cta-single p {
  color: var(--muted);
}

.section-header p:last-child {
  margin-top: 12px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-equal > * {
  height: 100%;
}

.card,
.step-card,
.mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.card h3,
.step-card h3,
.mini-card h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  line-height: 1.15;
}

/* =========================
   FLOW
   ========================= */

.flow-stack {
  display: grid;
  gap: 22px;
}

.flow-visual {
  overflow: hidden;
  padding: 0;
}

.flow-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
}

.flow-img {
  width: 100%;
  max-width: 860px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.flow-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

/* =========================
   STEP CARDS / NUMBERS
   ========================= */

.step-card {
  position: relative;
  padding-top: 94px;
}

.step-number {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, #184987 0%, var(--brand) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(18, 59, 114, 0.16);
}

.step-card h3 {
  margin-top: 0;
}

/* =========================
   CTA / FOOTER
   ========================= */

.cta-section {
  padding-bottom: 74px;
}

.cta-single {
  text-align: left;
}

.cta-contact-lines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 600;
}

.cta-contact-lines a {
  color: var(--brand);
}

.cta-separator {
  color: #8a96a6;
}

.site-footer {
  padding: 0 0 24px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-top: 1px solid rgba(18, 59, 114, 0.08);
  color: var(--muted);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3,
  .flow-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .flow-img {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 20px));
  }

  .nav-inner,
  .footer-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-inner {
    min-height: auto;
    padding: 14px 0;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    width: min(210px, 70vw);
  }

  .nav {
    justify-content: center;
    gap: 6px;
  }

  .nav a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .nav-contact-btn {
    width: auto;
  }

  .panel-lg,
  .card,
  .step-card,
  .mini-card,
  .cta-single {
    padding: 22px;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-proof,
  .grid-4,
  .grid-3,
  .flow-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-img {
    min-height: 320px;
  }

  .hero-overlay-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 18px;
  }

  .section {
    padding: 34px 0;
  }

  .cta-section {
    padding-bottom: 48px;
  }

  .step-card {
    padding-top: 86px;
  }

  .step-number {
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .flow-media {
    padding: 18px;
  }

  .cta-contact-lines {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cta-separator {
    display: none;
  }
}