/* KON — landing. Sistema de marca: navy + #0071BC + Inter */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-900: #0F172A;
  --navy-700: #334155;
  --navy-600: #475569;
  --cta: #0071BC;
  --cta-dark: #005A96;
  --bg: #F8FAFC;
  --surface: #ffffff;
  --text: #020617;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .14);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 64px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .02em;
  color: var(--navy-900);
}

header nav { display: flex; align-items: center; gap: .5rem; }

header nav a {
  color: var(--navy-600);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: 8px;
  transition: color .18s ease, background-color .18s ease;
}
header nav a:hover { color: var(--navy-900); background: var(--bg); }

header nav a.nav-cta { background: var(--cta); color: #fff; font-weight: 600; }
header nav a.nav-cta:hover { background: var(--cta-dark); color: #fff; }

.lang {
  display: inline-flex;
  gap: .1rem;
  margin-left: .4rem;
  border-left: 1px solid var(--border);
  padding-left: .6rem;
}
.lang a { padding: .4rem .45rem; font-size: .8rem; color: var(--muted); }
.lang a.active { color: var(--navy-900); font-weight: 700; }

/* ── Hero (split) ── */
main { flex: 1; }

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy { animation: rise .55s ease both; }

.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: var(--navy-900);
  margin-bottom: 1.1rem;
}
.hero h1 span { color: var(--cta); }

.hero p {
  font-size: 1.06rem;
  color: var(--navy-700);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-media { animation: rise .55s ease .12s both; }
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

/* ── Badges ── */
.badges {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  justify-content: center;
}
.badges span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-700);
  box-shadow: var(--shadow-sm);
}

/* ── Botones ── */
.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); }
.btn-ghost {
  background: var(--surface);
  color: var(--navy-900);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--cta); color: var(--cta-dark); }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

/* ── Features ── */
.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.4rem;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.feature:hover { box-shadow: var(--shadow-md); border-color: #CBD5E1; transform: translateY(-3px); }

.feature .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #E6F1F9;
  color: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
}
.feature .icon svg { width: 22px; height: 22px; }

.feature h2 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy-900);
  margin-bottom: .4rem;
}
.feature p { font-size: .92rem; color: var(--navy-600); }

/* ── Proceso ── */
.process {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.process-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy-900);
  margin-bottom: 1.4rem;
}

.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }

.step-num {
  font-size: .85rem;
  font-weight: 800;
  color: var(--cta);
  background: #E6F1F9;
  border-radius: 8px;
  padding: .35rem .6rem;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: .2rem;
}
.step p { font-size: .92rem; color: var(--navy-600); }

/* ── Portal strip ── */
.portal-strip {
  max-width: 1120px;
  margin: 0 1.5rem 5rem;
  padding: 2rem 2rem;
  background: var(--navy-900);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
@media (min-width: 1168px) { .portal-strip { margin-left: auto; margin-right: auto; } }

.portal-strip h2 { color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.portal-strip p { color: #CBD5E1; font-size: .95rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted);
  background: var(--surface);
}
footer .brand { font-size: .95rem; }

/* ── Transiciones de scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.features .feature:nth-child(2) { transition-delay: .07s; }
.features .feature:nth-child(3) { transition-delay: .14s; }
.features .feature:nth-child(4) { transition-delay: .21s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; gap: 2rem; }
  .hero p { max-width: none; }
  .process { grid-template-columns: 1fr; gap: 2rem; }
  .process-media { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
