/* mamutlana.mx design system */
:root {
  --blue: #0070FF;
  --cyan: #00B8FF;
  --navy: #0A1B3D;
  --bg: #F2F7FF;
  --white: #ffffff;
  --text: #22314F;
  --muted: #5B6B8C;
  --line: #D6E3F8;
  --danger: #D64545;
  --ok: #14A44D;
  --grad: linear-gradient(135deg, #0070FF, #00B8FF);
  --radius: 16px;
  --shadow: 0 8px 30px rgba(10, 27, 61, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 27, 61, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 227, 248, 0.7);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: -0.02em; }
.brand-name .lana {
  background: linear-gradient(90deg, #0091FF, #00B8FF 55%, #2EE6C8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-name .tld { color: var(--blue); }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none !important;
  font-family: inherit; font-weight: 800; font-size: 1rem;
  border-radius: 999px; padding: 14px 30px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.btn .btn-word { display: contents; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 24px rgba(0, 112, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 112, 255, 0.42); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost {
  background: #fff; color: var(--blue);
  border: 2px solid var(--blue); padding: 12px 28px;
}
.btn-ghost:hover { background: rgba(0, 112, 255, 0.06); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 48px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto auto;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.14), transparent 65%);
  pointer-events: none;
}
.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center; position: relative;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12;
  color: var(--navy); font-weight: 800; letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: 1.13rem; color: var(--muted); margin: 0 0 26px; max-width: 34rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-points li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--navy); }
.check-ico {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800;
}

/* ---------- calculator card ---------- */
.calc-card {
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 30px 28px; border: 1px solid rgba(214, 227, 248, 0.6);
}
.calc-card h2 { margin: 0 0 4px; font-size: 1.25rem; color: var(--navy); font-weight: 800; }
.calc-card .hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 22px; }
.calc-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 10px;
}
.calc-value { font-size: 1.7rem; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.calc-minmax { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8rem; margin-top: 6px; }

input[type='range'] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(to right, var(--blue) 50%, #E2ECFB 50%);
  outline: none; margin: 4px 0;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
  box-shadow: 0 4px 12px rgba(0, 112, 255, 0.35); cursor: grab;
}
input[type='range']::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
  box-shadow: 0 4px 12px rgba(0, 112, 255, 0.35); cursor: grab;
}

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  flex: 1; min-width: 84px; text-align: center; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: var(--navy);
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  border-radius: 12px; padding: 10px 8px; transition: all 0.15s;
}
.chip.active {
  border-color: var(--blue); background: rgba(0, 112, 255, 0.08); color: var(--blue);
}
.calc-row { margin-bottom: 22px; }
.calc-summary {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border-radius: 12px; padding: 12px 16px;
  font-size: 0.9rem; color: var(--muted); margin-bottom: 20px;
}
.calc-summary strong { color: var(--navy); font-size: 1rem; }
.calc-note { font-size: 0.78rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- trust strip ---------- */
.trust { padding: 8px 0 40px; }
.trust .container {
  display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center;
  color: var(--muted); font-weight: 700; font-size: 0.92rem;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy);
  font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px;
}
.section-head p { color: var(--muted); margin: 0; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px;
  border: 1px solid rgba(214, 227, 248, 0.5);
}
.section.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin: 14px 0 8px; color: var(--navy); font-size: 1.08rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-num {
  width: 44px; height: 44px; border-radius: 14px; background: var(--grad);
  color: #fff; font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.benefit-ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(0, 112, 255, 0.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}

/* requisitos */
.req-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.req-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow);
}
.req-list strong { color: var(--navy); display: block; }
.req-list span { color: var(--muted); font-size: 0.9rem; }
.req-art { text-align: center; }
.req-art img { width: min(320px, 80%); filter: drop-shadow(0 24px 40px rgba(0, 112, 255, 0.25)); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  padding: 4px 22px; border: 1px solid rgba(214, 227, 248, 0.5);
}
.faq summary {
  cursor: pointer; font-weight: 800; color: var(--navy);
  padding: 16px 0; list-style: none; position: relative; padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); color: var(--blue); font-size: 1.4rem; font-weight: 700;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0A1B3D 0%, #0B2A6B 55%, #0070FF 130%);
  border-radius: 24px; padding: 52px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; right: -80px; bottom: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.35), transparent 70%);
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.cta-band p { margin: 0 0 26px; color: rgba(255, 255, 255, 0.8); }
.cta-band .btn-primary { box-shadow: 0 10px 30px rgba(0, 184, 255, 0.4); position: relative; z-index: 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); margin-top: 64px; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 52px 0 36px;
}
.site-footer .brand-name { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--cyan); }
.footer-blurb { font-size: 0.9rem; margin: 14px 0 0; max-width: 30rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0 36px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.55);
}
.footer-legal p { margin: 0 0 10px; }

/* ---------- stage ribbon ---------- */
.env-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 90;
  background: #FFB020; color: #4A3300; font-weight: 800; font-size: 0.72rem;
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.06em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ---------- application (solicitud) ---------- */
.app-main { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.progress { display: flex; align-items: center; margin: 0 0 32px; }
.p-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; width: 92px; }
.p-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  transition: all 0.2s;
}
.p-step span { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-align: center; }
.p-step.active .p-dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 5px rgba(0, 112, 255, 0.12); }
.p-step.active span { color: var(--blue); }
.p-step.done .p-dot { background: var(--grad); border-color: transparent; color: #fff; }
.p-line { flex: 1; height: 3px; background: var(--line); border-radius: 2px; margin: 0 4px 26px; }
.p-line.done { background: var(--grad); }

.form-card {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 34px 32px; border: 1px solid rgba(214, 227, 248, 0.6);
}
.form-card h1 { margin: 0 0 6px; font-size: 1.45rem; color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
.form-card .lead-sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 26px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--navy); margin-bottom: 7px; }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fff; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 112, 255, 0.12);
}
.field input.invalid, .field select.invalid { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 0.8rem; font-weight: 600; margin-top: 5px; }
.field.show-err .err { display: block; }
.field .help { color: var(--muted); font-size: 0.78rem; margin-top: 5px; }
.field input:read-only { background: var(--bg); color: var(--muted); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; }
.consent label { font-size: 0.85rem; color: var(--muted); }

.form-nav { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin-top: 8px; }
.link-back {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  color: var(--muted); font-weight: 700; font-size: 0.92rem; padding: 10px 6px;
}
.link-back:hover { color: var(--blue); }

.alert {
  display: none; border-radius: 12px; padding: 13px 16px; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 20px;
}
.alert.show { display: block; }
.alert-error { background: rgba(214, 69, 69, 0.09); color: #A83232; border: 1px solid rgba(214, 69, 69, 0.25); }
.alert-info { background: rgba(0, 112, 255, 0.07); color: #0B4FB3; border: 1px solid rgba(0, 112, 255, 0.2); }
.alert-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 800; color: var(--blue); text-decoration: underline;
}

.mini-calc {
  background: var(--bg); border-radius: 14px; padding: 18px; margin-bottom: 24px;
}
.mini-calc .calc-label { margin-top: 8px; }
.mini-calc .calc-value { font-size: 1.35rem; }

.restart-row { margin-top: 10px; text-align: center; }

/* ---------- lender choice ---------- */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 4px 0 22px; }
.offer {
  --brand: var(--blue); --brand-tint: var(--bg);
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.offer[hidden] { display: none; }
.offer[data-lender='alvos'] { --brand: #FC5A1A; --brand-tint: #FFF4EE; }
.offer[data-lender='finpay'] { --brand: #AF00AF; --brand-tint: #FBF0FB; }
.offer::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand); }
.offer:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.offer-logo {
  display: flex; align-items: center; justify-content: center;
  height: 112px; padding: 0 24px; background: var(--brand-tint);
}
.offer-logo img { height: 46px; width: auto; max-width: 100%; }
.offer-body { display: flex; flex-direction: column; gap: 16px; flex: 1; padding: 20px 20px 22px; }
.offer-badge {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em;
  background: rgba(20, 164, 77, 0.12); color: #0E7A39;
}
.offer.is-existing .offer-badge { background: rgba(0, 112, 255, 0.1); color: var(--blue); }
.offer.is-applied { border-color: rgba(20, 164, 77, 0.45); }
.offer-loan span {
  display: block; font-size: 0.74rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.offer-loan strong { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.offer-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.offer-facts li { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 600; }
.offer-facts .check-ico { width: 20px; height: 20px; font-size: 0.7rem; }
.offer .btn { margin-top: auto; }
.offers.is-busy .offer:not(.is-active) { opacity: 0.5; pointer-events: none; }
.offer-note { margin: 0; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* partner strip on the landing */
.partners { padding: 0 0 44px; }
.partners .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px;
}
.partners-label { color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.partners img { height: 30px; width: auto; }

.spinner {
  display: inline-block; width: 18px; height: 18px; flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* legal pages */
.legal-box {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; margin: 18px 0;
}
.legal-box p { margin: 0 0 6px; }
.legal-box p:last-child { margin-bottom: 0; }
.legal-box ul { margin: 0; padding-left: 20px; }
.legal-box li { margin-bottom: 6px; }
.legal-box li:last-child { margin-bottom: 0; }
.footer-legal .legal-entity { color: rgba(255, 255, 255, 0.7); }

/* compact legal strip under the application form */
.app-legal {
  max-width: 640px; margin: 0 auto; padding: 8px 24px 48px;
  text-align: center; color: var(--muted); font-size: 0.76rem; line-height: 1.55;
}
.app-legal p { margin: 0 0 8px; }

.legal-main { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-main h1 { color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
.legal-main h2 { color: var(--navy); font-size: 1.15rem; margin-top: 32px; }
.legal-main p, .legal-main li { color: var(--text); font-size: 0.95rem; }
.legal-updated { color: var(--muted); font-size: 0.85rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .req-wrap { grid-template-columns: 1fr; }
  .req-art { order: -1; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .main-nav .nav-link { display: none; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .cards-4 { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .hero { padding: 40px 0 24px; }
  .p-step { width: 72px; }
  .section { padding: 48px 0; }

  /* compact header */
  .site-header .container { height: 58px; gap: 10px; padding: 0 16px; }
  .brand { gap: 7px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 1.05rem; }
  .site-header .btn-sm { padding: 8px 16px; font-size: 0.82rem; }
  .btn-word { display: none !important; }

  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.85rem; }
  .hero .sub { font-size: 1rem; }
  .calc-card { padding: 24px 18px; }
  .cta-band { padding: 40px 22px; }
  .offers { grid-template-columns: 1fr; gap: 14px; }
  .offer-logo { height: 92px; }
  .offer-logo img { height: 40px; }
  .partners .container { gap: 14px 32px; }
  .partners-label { flex-basis: 100%; text-align: center; }
  .partners img { height: 26px; }
  .env-badge { font-size: 0.62rem; padding: 5px 10px; left: 10px; bottom: 10px; }
  .footer-legal { padding-bottom: 56px; }
}
