:root {
  --navy: #156BA9;
  --navy-2: #1F86CF;
  --navy-deep: #0B2239;
  --green: #2CB677;
  --green-2: #22A268;

  --bg-1: #F7FBFF;
  --bg-2: #EDF5FC;
  --card: #FFFFFF;
  --line: #D7E4F3;
  --text: #12304D;
  --muted: #56708B;
  --wa: #25D366;

  --shadow-sm: 0 4px 14px rgba(18, 48, 77, .06);
  --shadow: 0 16px 40px rgba(18, 48, 77, .10);
  --radius: 20px;
  --radius-lg: 24px;
  --max: 1180px;

  --font-display: "Plus Jakarta Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(31,134,207,.10), transparent 24%),
    radial-gradient(circle at top right, rgba(44,182,119,.10), transparent 22%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-deep); color: #fff;
  padding: 12px 18px; z-index: 100; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 78px 0; }
.section-alt { background: rgba(255,255,255,.55); }
.section-head { max-width: 760px; margin-bottom: 34px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 800;
  margin-bottom: 10px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  margin: 0 0 14px;
  color: var(--navy-deep);
  font-weight: 800;
}
h1 { font-size: clamp(2.05rem, 4.5vw, 3.55rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.68rem, 3vw, 2.45rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 14px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
strong { color: var(--navy-deep); font-weight: 600; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #fff; box-shadow: 0 10px 25px rgba(44,182,119,.24);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: .94rem; }
.btn-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }

/* ---------- Nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.90);
  border-bottom: 1px solid rgba(21,107,169,.10);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { height: 44px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--navy-deep); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-family: var(--font-display); color: var(--muted); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--navy); }

/* ---------- Hero (v3: sin foto de fondo, mockup de producto a la derecha) ---------- */
.hero { padding: 96px 0 74px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero-copy h1 { margin-bottom: 16px; }
.hero-copy p { font-size: 1.13rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  list-style: none; padding: 22px 0 0; margin: 30px 0 0;
  border-top: 1px solid var(--line);
}
.hero-proof li { color: var(--muted); font-size: .92rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 17px; height: 17px; fill: var(--green); flex: 0 0 17px; }

/* ---------- Mockups de producto (100% CSS/SVG, datos ilustrativos) ---------- */
.hero-mock { position: relative; }
.mock-caption { text-align: center; font-size: .78rem; color: var(--muted); margin: 14px 0 0; }
.mock-window {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-titlebar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--navy-deep); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mock-title { margin-left: 8px; color: rgba(255,255,255,.75); font-family: var(--font-display); font-size: .78rem; font-weight: 600; }
.mock-body { padding: 20px; background: linear-gradient(180deg, #F7FBFF, #fff); }

.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-kpis--3 { grid-template-columns: repeat(3, 1fr); }
.mock-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.mock-kpi.highlight { background: linear-gradient(135deg, var(--green), var(--green-2)); border-color: transparent; }
.mock-kpi.highlight .mock-kpi-label, .mock-kpi.highlight .mock-kpi-value { color: #fff; }
.mock-kpi-label { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.mock-kpi-value { font-family: var(--font-display); font-size: 1.08rem; font-weight: 800; color: var(--navy-deep); }
.mock-kpi-delta { font-size: .68rem; font-weight: 700; color: var(--green-2); }

.mock-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.mock-chart-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mock-chart-title { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.mock-line { width: 100%; height: auto; display: block; }
.mock-donut-card { display: flex; flex-direction: column; align-items: center; }
.mock-donut {
  width: 84px; height: 84px; border-radius: 50%; margin: 4px auto 2px; position: relative;
  background: conic-gradient(var(--green) 0% 48%, var(--navy) 48% 80%, var(--navy-2) 80% 100%);
}
.mock-donut::after { content: ""; position: absolute; inset: 16px; background: #fff; border-radius: 50%; }
.mock-legend { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.mock-legend span { display: flex; align-items: center; gap: 5px; font-size: .68rem; color: var(--muted); }
.mock-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.mock-table-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 14px; }
.mock-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.mock-bars li { display: grid; grid-template-columns: 82px 1fr 36px; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
.mock-bar { background: #EEF4FA; border-radius: 999px; height: 8px; overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.mock-bars b { color: var(--navy-deep); font-family: var(--font-display); text-align: right; font-size: .78rem; }

.mock-float {
  position: absolute; bottom: -16px; right: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; font-size: .78rem;
}
.mock-float svg { width: 18px; height: 18px; fill: var(--green); flex: 0 0 18px; }
.mock-float b { display: block; font-family: var(--font-display); color: var(--navy-deep); font-size: .8rem; }
.mock-float span { color: var(--muted); }

/* ---------- Servicios ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { width: 94px; height: 94px; margin: 0 auto 16px; object-fit: contain; }
.service h3 { margin-bottom: 8px; font-size: 1.3rem; }
.service p { margin: 0; }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.media-card img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--line); object-fit: cover;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.stat-label { font-size: .85rem; color: var(--muted); }

.company-facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.company-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--muted); }
.company-facts svg { width: 20px; height: 20px; fill: var(--navy); flex: 0 0 20px; margin-top: 3px; }

/* ---------- Socios (dentro de #empresa) ---------- */
.founders { margin-top: 58px; }
.founders-head { max-width: 640px; margin-bottom: 24px; }
.founders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.founder-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 0;
  transition: transform .22s ease, box-shadow .22s ease;
}
.founder-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.founder-card img { width: 118px; height: 148px; object-fit: cover; flex: 0 0 118px; }
.founder-info { padding: 16px 20px; }
.founder-info h4 { margin: 0 0 4px; }
.founder-role { color: var(--muted); font-size: .87rem; }

/* ---------- Plataformas ---------- */
.platform-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0 26px; }
.platform-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
  width: 220px; height: 104px; display: grid; place-items: center; overflow: hidden; padding: 12px;
}
.platform-card img { max-height: 68px; width: auto; object-fit: contain; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 20px 56px 20px 22px;
  font-family: var(--font-display); font-weight: 700; color: var(--navy-deep);
  font-size: 1.02rem; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .faq-body { padding: 0 22px 22px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.7rem; }
form { display: grid; gap: 13px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); background: #fff; color: var(--navy-deep);
  border-radius: 14px; padding: 13px 16px; font: inherit; outline: none;
  transition: border-color .18s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--navy); }
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7A91A7; }
.form-note { font-size: .81rem; color: var(--muted); margin: 2px 0 0; }

.contact-info { display: grid; gap: 14px; }
.info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start;
}
.info-card svg { width: 22px; height: 22px; fill: var(--navy); flex: 0 0 22px; margin-top: 3px; }
.info-card b { display: block; font-family: var(--font-display); color: var(--navy-deep); font-size: .95rem; }
.info-card span, .info-card a { color: var(--muted); font-size: .95rem; }
.info-card a:hover { color: var(--navy); }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer h4 { font-family: var(--font-display); color: #fff; font-size: 1rem; margin: 0 0 14px; font-weight: 700; }
footer p, footer li, footer a { color: rgba(255,255,255,.74); font-size: .92rem; }
footer p { margin: 0 0 10px; }
footer a:hover { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-logo-chip { display: inline-flex; background: #fff; padding: 10px 18px; border-radius: 14px; margin-bottom: 16px; }
.footer-logo-chip img { height: 38px; width: auto; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.10); display: grid; place-items: center; transition: background .2s ease; }
.footer-social a:hover { background: rgba(255,255,255,.20); }
.footer-social svg { width: 19px; height: 19px; fill: #fff; }
.footer-bottom {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem;
}

/* ---------- WhatsApp flotante (derecha) ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 0;
  height: 62px; padding: 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff;
  box-shadow: 0 14px 32px rgba(37,211,102,.34);
  transition: gap .25s ease, padding .25s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; flex: 0 0 30px; }
.wa-float span {
  font-family: var(--font-display); font-weight: 700; font-size: .94rem;
  max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .28s ease;
}
.wa-float:hover { gap: 10px; }
.wa-float:hover span { max-width: 180px; }

/* ---------- Contenido legal (política de privacidad) ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal h2:first-child { margin-top: 0; }
.legal ul, .legal ol { color: var(--muted); padding-left: 22px; display: grid; gap: 8px; margin: 0 0 14px; }
.legal .updated { color: var(--muted); font-size: .88rem; margin-bottom: 30px; }
.legal .note {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: 12px; padding: 16px 18px; font-size: .92rem; color: var(--muted); margin: 0 0 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 960px) {
  .container { width: min(var(--max), calc(100% - 34px)); }
  .section { padding: 62px 0; }
  .grid-3, .split, .contact-grid, .founders-grid { grid-template-columns: 1fr; }
  .split { gap: 34px; }
  .nav-links { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 100%; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .platform-card { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .wa-float { height: 56px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 27px; height: 27px; flex: 0 0 27px; }
  .wa-float span { display: none; }
}

@media (max-width: 620px) {
  .steps, .stats { grid-template-columns: 1fr; }
  .mock-charts { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .brand span { display: none; }
  .founder-card { flex-direction: column; align-items: stretch; text-align: center; }
  .founder-card img { width: 100%; height: 200px; flex: none; }
}
