:root {
  --green: #21a453;
  --green-600: #1b8c46;
  --green-700: #12804a;
  --green-50: #edfaf3;
  --ink: #0e1726;
  --ink-2: #334155;
  --muted: #667085;
  --line: #eaecf0;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --radius: 24px;
  --shadow: 0 12px 40px rgba(14, 23, 38, .07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; transition: .2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.link { color: var(--green-700); font-weight: 600; display: inline-flex; gap: 6px; }
.link:hover { gap: 10px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 40px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark {
  width: 32px; height: 36px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  background: var(--green); clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.nav { display: flex; gap: 32px; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--green-600); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* ---------- Secciones ---------- */
section { padding: 100px 0; }
.eyebrow { display: inline-block; color: var(--green-700); font-weight: 600; font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; }
h1, h2 { letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--muted); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }

/* Split: texto + imagen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.flip .media { order: -1; }
.media img { width: 100%; max-width: 560px; margin-inline: auto; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.checklist { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist li::before {
  content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312804a' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Hero ---------- */
.hero { padding: 70px 0 80px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; }
.hero h1 span { color: var(--green); }
.hero .lead { font-size: 19px; margin-top: 22px; max-width: 500px; }
.hero-stats { display: flex; gap: 48px; margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 14px; color: var(--muted); }

/* ---------- Instrumentos ---------- */
.instruments { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.inst { padding: 20px; border: 1px solid var(--line); border-radius: 16px; transition: .2s; }
.inst:hover { border-color: var(--green); }
.inst b { display: block; font-size: 17px; margin-bottom: 2px; }
.inst span { font-size: 14px; color: var(--muted); }

/* ---------- Banda de cifras ---------- */
.band { background: var(--bg-soft); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.band strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.band span { color: var(--muted); font-size: 15px; }

/* ---------- Tasas ---------- */
.rates { display: grid; gap: 12px; margin-top: 30px; }
.rate { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; }
.rate.featured { border-color: var(--green); background: var(--green-50); }
.rate .term { font-weight: 600; }
.rate .term small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.rate .pct { font-size: 26px; font-weight: 800; color: var(--green-700); letter-spacing: -.02em; }
.fine { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ---------- Tarjetas con imagen ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; background: #fff; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card .thumb { aspect-ratio: 4/3; display: grid; place-items: center; padding: 16px; }
.card .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.card .body { padding: 4px 28px 30px; }
.card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Pasos ---------- */
.steps { list-style: none; display: grid; gap: 26px; margin-top: 32px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; counter-increment: s; }
.steps li::before {
  content: counter(s); width: 48px; height: 48px; border-radius: 14px; background: var(--green-50); color: var(--green-700);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.steps b { display: block; font-size: 18px; margin-bottom: 2px; }
.steps span { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--green-50); border-radius: 36px; padding: 40px 64px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
.cta h2 { font-size: clamp(30px, 3.4vw, 46px); }
.cta > *, .split > * { min-width: 0; }
.cta img { width: 100%; max-width: 420px; margin-left: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--green); transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #94a3b8; padding: 72px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
.footer h4 { color: #cbd5e1; margin-bottom: 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.store { background: #1e293b; border: 1px solid #2b3a55; color: #e2e8f0; padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.store:hover { border-color: #94a3b8; }
.pay { width: 52px; height: 34px; border-radius: 6px; background: #1e293b; border: 1px solid #2b3a55; display: grid; place-items: center; color: #e2e8f0; font-size: 13px; }
.footer-bottom { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid #1e293b; }
.footer-bottom .lang-btn { margin-left: auto; }
.risk { border-top: 1px solid #1e293b; padding-top: 24px; font-size: 12px; line-height: 1.7; display: grid; gap: 10px; color: #7c8aa5; }
.risk .copy { color: #94a3b8; margin-top: 6px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(14,23,38,.55); display: none; place-items: center; z-index: 100; padding: 16px; }
.modal.open { display: grid; }
.modal-box { background: #fff; border-radius: 24px; padding: 36px; width: min(440px, 100%); position: relative; }
.modal-box h3 { font-size: 26px; margin-bottom: 6px; letter-spacing: -.02em; }
.modal-box .close { position: absolute; top: 16px; right: 18px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.tabs { display: flex; background: var(--bg-soft); border-radius: 12px; padding: 4px; margin: 20px 0; }
.tabs button { flex: 1; padding: 10px; border: 0; background: none; border-radius: 9px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.field input { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.field input:focus { outline: 2px solid var(--green); border-color: transparent; }
.modal-box .btn { width: 100%; margin-top: 6px; }

/* ---------- Portada estilo bróker ---------- */
.header .container { height: 64px; gap: 36px; }
.nav { gap: 26px; font-size: 14px; }
.nav-services { display: inline-flex; align-items: center; gap: 8px; }
.nav-services svg { color: #98a2b3; }
.header-actions .btn-sm { padding: 10px 16px; border-radius: 8px; }
.header-actions .btn-ghost { border-color: transparent; }
.header-actions .btn-ghost:hover { border-color: var(--line); }
.lang-btn-plain { border-color: transparent; background: none; }

.hero { background: var(--bg-soft); padding: 40px 0 0; }
.hero .split { align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.05; max-width: 520px; }
.hero-lines { margin-top: 22px; display: grid; gap: 14px; color: var(--ink-2); font-size: 17px; max-width: 520px; }
.hero .media img { max-width: 580px; }
.btn { border-radius: 8px; }
.btn-primary { padding: 14px 24px; }

.row { padding: 70px 0; }
.row h2 { font-size: clamp(28px, 3vw, 38px); }
.row .lead { font-size: 17px; color: var(--ink-2); margin-bottom: 14px; }
.row .actions { margin-top: 20px; }
.row .media img { max-width: 520px; }

.signup-sec { padding: 60px 0 100px; }
.signup {
  position: relative; display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center;
  background: var(--bg-soft); border-radius: 28px; padding: 48px 56px 48px 0; margin-left: 80px;
}
.signup-img { margin-left: -80px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 16px; }
.signup-body h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 14px; }
.signup-body > p { color: var(--ink-2); margin-bottom: 22px; }
.sso {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; font: 600 14px "Inter", sans-serif;
  color: var(--ink); cursor: pointer; margin-bottom: 10px; transition: .2s;
}
.sso:hover { border-color: var(--ink); }
.or { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 12px; cursor: pointer; }
.consent input { display: none; }
.consent .switch { flex: 0 0 36px; height: 20px; border-radius: 20px; background: #cbd5e1; position: relative; transition: .2s; margin-top: 1px; }
.consent .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.consent input:checked + .switch { background: var(--green); }
.consent input:checked + .switch::after { left: 18px; }
.consent a { color: var(--ink); text-decoration: underline; }

/* Footer claro */
.footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); }
.footer h4 { color: #98a2b3; }
.footer a:hover { color: var(--ink); }
.footer .logo { color: var(--ink); }
.store, .pay { background: #667085; border-color: #667085; color: #fff; }
.store:hover { border-color: var(--ink); background: var(--ink); }
.footer-bottom, .risk { border-color: var(--line); }
.risk { color: #98a2b3; }
.risk .copy { color: var(--muted); }

/* ---- Tipografía y ritmo idénticos a la referencia ---- */
:root { --green: #1e9e47; --green-600: #178a3c; --text-grey: #667085; }
.hero { padding: 56px 0 0; overflow: hidden; }
.hero .split { align-items: stretch; gap: 48px; }
.hero .split > div:first-child { padding: 8px 0 64px; }
.hero h1 { font-size: clamp(42px, 4.6vw, 66px); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: #000; max-width: 640px; }
.hero-lines { margin-top: 20px; gap: 26px; font-size: 19px; line-height: 1.5; color: var(--text-grey); max-width: 600px; }
.hero .actions { margin-top: 38px; }
.hero .media { display: flex; align-items: flex-end; justify-content: center; }
.hero .media img { display: block; }
.btn-primary { background: var(--green); padding: 15px 24px; border-radius: 6px; font-size: 15px; }
.btn-primary:hover { background: var(--green-600); }
.row h2, .signup-body h2 { font-weight: 800; letter-spacing: -.04em; line-height: 1.08; color: #000; }
.row h2 { font-size: clamp(30px, 2.6vw, 38px); }
.row .lead, .signup-body > p { font-size: 19px; line-height: 1.5; color: var(--text-grey); }
.row .split { gap: 64px; }

/* Imágenes de la portada un 10 % más grandes en escritorio */
@media (min-width: 981px) {
  .hero .media img, .row .media img { transform: scale(1.1); transform-origin: center; }
  .hero .media img { transform-origin: center bottom; }
  .signup-img img { transform: scale(1.1); }
}

@media (max-width: 980px) {
  .hero { text-align: center; padding-top: 32px; }
  .hero h1, .hero-lines { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero .split .media { order: 2 !important; }
  .signup { grid-template-columns: 1fr; margin-left: 0; padding: 32px 24px; }
  .signup-img { margin: 0 auto; max-width: 320px; }
}

/* ---------- Páginas internas ---------- */
.phero { padding: 64px 0 40px; }
.phero h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.08; margin-bottom: 16px; }
.phero .media img { max-width: 440px; }
.pbody { padding: 20px 0 100px; }
.pbody .container { max-width: 860px; }
.pblock { padding: 28px 0; border-top: 1px solid var(--line); }
.pblock:first-child { border-top: 0; }
.pblock h3 { font-size: 22px; margin-bottom: 12px; letter-spacing: -.01em; }
.pblock p { color: var(--ink-2); }
.pblock a { color: var(--green-700); font-weight: 600; }
.doc .pblock { padding: 20px 0; }
.doc .pblock h3 { font-size: 18px; }
.table-wrap { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th, .ptable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ptable th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.svc { position: relative; display: block; padding: 22px 48px 22px 22px; border: 1px solid var(--line); border-radius: 14px; transition: .2s; }
.svc:hover { border-color: var(--green); box-shadow: var(--shadow); }
.svc b { display: block; font-size: 17px; margin-bottom: 4px; color: var(--ink); }
.svc span { color: var(--muted); font-size: 14px; }
.svc i { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--green); font-size: 20px; }
.pblock .svc { color: inherit; font-weight: 400; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }
/* Licencias / Agentes vinculados */
.pbody .container:has(.lic-table) { max-width: 1180px; }
.lic-intro { font-size: 19px; line-height: 1.5; color: var(--text-grey, #667085); max-width: 560px; margin-bottom: 36px; }
.lic-intro a { color: #000; font-weight: 600; text-decoration: underline; }
.lic-table { width: 100%; border-collapse: collapse; font-size: 15px; color: #667085; }
.lic-table th { background: #eceef1; color: #000; font-weight: 600; text-align: left; padding: 12px 16px; white-space: nowrap; }
.lic-table td:nth-child(3) { white-space: nowrap; }
.lic-table td { padding: 16px; vertical-align: top; line-height: 1.6; }
.lic-table tbody tr:nth-child(even) { background: #f6f7f9; }
.lic-table td:first-child { width: 38%; }
.lic-table td b { color: #667085; font-weight: 600; }
.lic-table ul { padding-left: 18px; margin: 0; }
@media (max-width: 760px) { .lic-table th:nth-child(3), .lic-table td:nth-child(3) { white-space: nowrap; } }
.pform { max-width: 560px; }
.pform textarea { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }
.pform textarea:focus { outline: 2px solid var(--green); border-color: transparent; }

/* ---------- Animación ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .cta { grid-template-columns: 1fr; gap: 40px; }
  .split .media, .split.flip .media { order: -1; }
  .hero .media { order: 0 !important; }
  .cards { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 40px 28px; text-align: center; }
  .cta img { margin: 0 auto; }
  .cta .actions { justify-content: center; }
  section { padding: 72px 0; }
}
@media (max-width: 760px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .burger { display: block; }
  .header-actions .lang-btn span { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav.open { display: grid; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 20px 16px; border-bottom: 1px solid var(--line); gap: 16px; }
  .cards, .instruments { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 24px; }
  .band strong { font-size: 30px; }
}
/* Móvil: el botón de la cabecera en una sola línea */
@media (max-width: 480px) { .header .container, header > .container { gap: 10px; } .header-actions { gap: 8px; } .header-actions .btn-sm { white-space: nowrap; padding: 9px 12px; font-size: 13px; } }
