/* ===== Corazón del Norte — sistema JCC27 ===== */

:root {
  --navy:       #1C2D6E;
  --navy-deep:  #162460;
  --navy-mid:   #2B3DA0;
  --orange:     #E84E1B;
  --orange-soft:#F06030;
  --white:      #FFFFFF;
  --smoke:      #F5F5F7;
  --silver:     #E8E8ED;
  --slate:      #86868B;
  --ink:        #1D1D1F;
  --navy-10:    rgba(28,45,110,.10);
  --orange-10:  rgba(232,78,27,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ---------- Nav ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 72px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 16px; color: var(--white);
  flex-shrink: 0;
}
.nav-mark-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-mark-logo svg { height: 34px; width: auto; display: block; }
.nav-word {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--white); line-height: 1;
}
.nav-word span { color: var(--orange); }
.nav-tag {
  font-size: 8px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-cta {
  background: var(--orange); color: var(--white) !important;
  padding: 10px 22px; border-radius: 100px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-burger { display: none; }

/* ---------- Cover / Hero (home) ---------- */
.cover {
  background: var(--navy-deep);
  min-height: 88vh;
  display: grid; grid-template-rows: 1fr auto;
  padding: 72px 72px 0;
  position: relative; overflow: hidden;
}
.cover::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,78,27,.14) 0%, transparent 70%);
  pointer-events: none;
}
.cover-hero {
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; max-width: 940px; margin: 0 auto; width: 100%;
  padding: 64px 0;
}
.kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ''; width: 20px; height: 1px; background: var(--orange); }
.cover-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px,7.5vw,96px); font-weight: 800;
  line-height: .88; letter-spacing: -.01em;
  color: var(--white); text-transform: uppercase; margin: 0 0 32px;
}
.cover-h1 em { font-style: normal; color: var(--orange); }
.cover-desc {
  font-size: 17px; font-weight: 300; color: rgba(255,255,255,.5);
  max-width: 520px; line-height: 1.85;
  border-left: 1px solid rgba(232,78,27,.5); padding-left: 20px;
  margin-bottom: 40px;
}
.cover-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (secondary pages) ---------- */
.page-hero {
  background: var(--navy-deep); color: var(--white);
  padding: 72px 72px 64px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -160px; right: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,78,27,.14) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { max-width: 940px; margin: 0 auto; position: relative; }
.page-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(38px,5.5vw,64px); font-weight: 800;
  line-height: .92; letter-spacing: -.01em;
  color: var(--white); text-transform: uppercase; margin: 0 0 20px;
}
.page-h1 em { font-style: normal; color: var(--orange); }
.page-desc {
  font-size: 16px; font-weight: 300; color: rgba(255,255,255,.55);
  max-width: 620px; line-height: 1.8;
}

/* ---------- Sections ---------- */
.section-wrap { width: 100%; }
.section { max-width: 940px; margin: 0 auto; padding: 88px 72px; }
.bg-white { background: var(--white); }
.bg-smoke { background: var(--smoke); }
.bg-navy  { background: var(--navy-deep); color: var(--white); }
.section-wrap.bg-white + .section-wrap.bg-smoke,
.section-wrap.bg-smoke + .section-wrap.bg-white {
  border-top: 1px solid var(--silver);
}

.section-h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px,4vw,44px); font-weight: 800;
  line-height: .92; text-transform: uppercase; margin: 0 0 20px;
}
.section-h2 em { font-style: normal; color: var(--orange); }
.section-lead {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: var(--slate); max-width: 640px; margin-bottom: 48px;
}
.bg-navy .section-lead { color: rgba(255,255,255,.55); }

.divider {
  width: 40px; height: 3px; background: var(--orange);
  margin: 24px 0; border-radius: 2px;
}

/* ---------- Grids & cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

.card {
  background: var(--white); border: 1px solid var(--silver);
  border-radius: 16px; padding: 32px 28px;
}
.bg-navy .card, .card.on-navy {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
}
.bg-smoke .card { background: var(--white); }

.card-step {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--orange);
  letter-spacing: .1em; margin-bottom: 12px;
}
.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800; text-transform: uppercase;
  margin: 0 0 10px; line-height: 1.05;
}
.card-body { font-size: 14px; line-height: 1.7; color: var(--slate); }
.bg-navy .card-body { color: rgba(255,255,255,.6); }

.stat-card { text-align: left; }
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px,4vw,48px); font-weight: 800;
  color: var(--orange); line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: var(--slate); line-height: 1.5;
}
.bg-navy .stat-label { color: rgba(255,255,255,.55); }

/* ---------- Quote block ---------- */
.quote-block {
  border-left: 3px solid var(--orange); padding-left: 28px;
  margin: 40px 0;
}
.quote-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px,2.6vw,30px); font-weight: 700;
  line-height: 1.25; color: var(--navy); margin: 0 0 14px;
  text-transform: none;
}
.bg-navy .quote-text { color: var(--white); }
.quote-attr {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate);
}

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); border-bottom: 2px solid var(--silver);
  padding: 12px 16px; text-align: left;
}
td { padding: 14px 16px; border-bottom: 1px solid var(--silver); color: var(--ink); }
tr:last-child td { border-bottom: none; }
td strong { color: var(--navy); font-weight: 600; }
td em { font-style: normal; color: var(--orange); font-weight: 600; }

/* ---------- Notes / callouts ---------- */
.note {
  background: var(--orange-10); border: 1px solid rgba(232,78,27,.25);
  border-radius: 14px; padding: 24px 26px; font-size: 14px;
  line-height: 1.7; color: var(--ink);
}
.note-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 16px 32px; border-radius: 100px;
  border: none; cursor: pointer; transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.btn-ghost.on-light { color: var(--ink); border: 1px solid var(--silver); }

/* ---------- Badge ---------- */
.badge {
  display: inline-block; background: var(--navy-10); color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 100px; margin-bottom: 24px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep); color: var(--white);
  padding: 88px 72px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; bottom: -180px; left: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,78,27,.14) 0%, transparent 70%);
}
.cta-band-inner { max-width: 640px; margin: 0 auto; position: relative; }
.cta-band .section-h2 { margin-bottom: 16px; }
.cta-band .section-lead { margin: 0 auto 36px; color: rgba(255,255,255,.55); }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  background: var(--smoke); border-top: 1px solid var(--silver);
  padding: 40px 72px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-left { display: flex; align-items: center; gap: 20px; }
.footer-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 18px; color: var(--white); flex-shrink: 0;
}
.footer-mark-logo { display: flex; align-items: center; flex-shrink: 0; }
.footer-mark-logo svg { height: 58px; width: auto; display: block; }
.footer-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy);
}
.footer-brand span { color: var(--orange); }
.footer-slogan {
  font-size: 9px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--slate); margin-top: 3px;
}
.footer-tagline {
  font-size: 10px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--slate);
  border-left: 1px solid var(--silver); padding-left: 20px;
}
.footer-links { display: flex; gap: 28px; }
.footer-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate);
}
.footer-link:hover { color: var(--navy); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy);
}
.field input, .field select, .field textarea {
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 400;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--silver); border-radius: 10px;
  padding: 14px 16px; outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 13px; color: var(--slate); margin-top: 20px; line-height: 1.6; }
.form-success {
  display: none; background: var(--orange-10); border: 1px solid rgba(232,78,27,.3);
  border-radius: 14px; padding: 28px; text-align: center; margin-top: 24px;
}
.form-success.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .navbar, .section, .page-hero, .cta-band, footer, .cover-hero { padding-left: 24px; padding-right: 24px; }
  .cover { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}
