/* =========================================================
   SueltaCash — Sitio corporativo
   Operado por CONEXION INFO S.A. DE C.V., SOFOM, E.N.R.
   ========================================================= */

:root {
  --bg: #fff8f3;
  --bg-alt: #ffffff;
  --bg-dark: #1a120e;
  --surface: #ffffff;
  --text: #1f1a15;
  --text-muted: #6a6058;
  --primary: #ff6b3d;
  --primary-dark: #ea5d2e;
  --primary-soft: #ffe4d1;
  --accent: #ff8a4c;
  --success: #21c17c;
  --warning: #ffb800;
  --border: #f3e0d0;
  --shadow-xs: 0 1px 2px rgba(60, 30, 15, 0.05);
  --shadow-sm: 0 2px 8px rgba(60, 30, 15, 0.06);
  --shadow-md: 0 10px 28px rgba(60, 30, 15, 0.09);
  --shadow-lg: 0 24px 56px rgba(60, 30, 15, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient: linear-gradient(135deg, #ff8a4c 0%, #ff6b3d 55%, #ea5d2e 100%);
  --gradient-soft: linear-gradient(135deg, #fff3ea 0%, #ffe0cf 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

/* ---------- Top accent bar ---------- */
.top-accent {
  height: 4px;
  background: var(--gradient);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { display: inline-flex; width: 40px; height: 40px; }
.brand-logo img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-xs); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-text small { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.02em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: var(--primary-dark); text-decoration: none; }
.main-nav a.active { color: var(--primary-dark); border-bottom-color: var(--primary); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(255, 107, 61, 0.32);
}
.header-cta:hover { text-decoration: none; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero (asymmetric with real phone) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 100px;
  background:
    radial-gradient(1100px 500px at 88% 0%, rgba(255, 138, 76, 0.28), transparent 60%),
    radial-gradient(900px 480px at -8% 20%, rgba(255, 107, 61, 0.22), transparent 60%),
    linear-gradient(180deg, #fff9f4 0%, #ffece0 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.18);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 560px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 107, 61, 0.38);
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); text-decoration: none; }

.hero-highlights {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}
.pill b {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Hero phone (real screenshot) */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-phone .phone-frame {
  transform: rotate(-3deg);
  animation: heroFloat 0.9s ease-out both;
}
.hero-phone::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: var(--gradient);
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
}

/* Phone frame (transparent container - image already has device frame baked in) */
.phone-frame {
  position: relative;
  width: 300px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  z-index: 1;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.22));
}
.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
}
.hero-phone .phone-frame { width: 360px; }
.state-item .phone-frame { margin: 0 auto; }
@keyframes heroFloat {
  from { opacity: 0; transform: rotate(-3deg) translateY(24px); }
  to   { opacity: 1; transform: rotate(-3deg) translateY(0); }
}

/* ---------- Stats band (new) ---------- */
.stats-band {
  background: var(--bg-dark);
  color: #fff;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 200px at 20% 50%, rgba(255, 138, 76, 0.25), transparent 60%),
    radial-gradient(500px 200px at 90% 50%, rgba(234, 93, 46, 0.25), transparent 60%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.stat {
  text-align: left;
  padding: 8px 0;
  border-left: 3px solid var(--primary);
  padding-left: 18px;
}
.stat .value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff 0%, #ffd3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label {
  font-size: 0.85rem;
  color: #c9b4a2;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
}
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-text {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.02rem;
}

/* ---------- Steps (Cómo funciona) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(255, 107, 61, 0.32);
}
.step-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Loan states section (unique) ---------- */
.states {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: end;
  max-width: 900px;
  margin: 0 auto;
}
.state-item {
  text-align: center;
}
.state-item .state-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.state-item.audit .state-tag { background: #fff3d6; color: #b57a00; }
.state-item.grant .state-tag { background: #dcf7e8; color: #178f56; }
.state-item.repay .state-tag { background: var(--primary-soft); color: var(--primary-dark); }
.state-item h3 { margin: 16px 0 6px; font-size: 1.05rem; }
.state-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- About: split layout ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 { margin: 0 0 18px; font-size: 1.2rem; }
.data-list { list-style: none; padding: 0; margin: 0; }
.data-list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.data-list li:last-child { border-bottom: 0; }
.data-list li span { flex: 0 0 42%; color: var(--text-muted); }
.data-list li strong { flex: 1; font-weight: 600; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  padding: 10px 0 10px 34px;
  position: relative;
  font-size: 0.98rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--primary-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5 L8.5 14 L15 6.5' stroke='%23ea5d2e' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
}

/* ---------- Tech partner ---------- */
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 940px;
  margin: 24px auto 0;
}
.tech-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.tech-logo {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(255, 107, 61, 0.28);
}
.tech-header h3 { margin: 0; }
.tech-header p { margin: 2px 0 0; font-size: 0.9rem; }
.tech-note {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--gradient-soft);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-card h3 { margin: 0 0 6px; font-size: 1rem; }
.contact-card p { margin: 2px 0; }

.doc-links {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
}
.doc-links a { margin: 0 8px; }

/* ---------- Legal pages ---------- */
.legal {
  background: var(--bg);
  padding: 56px 0 80px;
}
.legal-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px clamp(20px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}
.legal h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.legal .updated {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.9rem;
}
.legal h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal h2 .num {
  color: #fff;
  background: var(--gradient);
  width: 32px; height: 32px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(255, 107, 61, 0.3);
}
.legal h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal p { margin: 10px 0; color: var(--text); }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal .callout {
  background: var(--gradient-soft);
  border-left: 4px solid var(--primary);
  padding: 16px 18px;
  border-radius: 10px;
  margin: 20px 0;
}
.legal .info-block {
  background: #fff7f2;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 16px 0;
  font-size: 0.95rem;
}
.legal .info-block p { margin: 4px 0; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}
.legal-table th, .legal-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.legal-table th {
  background: #fff7f2;
  font-weight: 600;
}

.signature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.signature-block .sign {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.signature-block .line {
  border-top: 1px solid #333;
  margin: 30px 0 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #d5c3b3;
  padding: 56px 0 28px;
  margin-top: 0;
}
.site-footer strong { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand { max-width: 340px; }
.footer-brand p { margin: 12px 0 12px; font-size: 0.9rem; color: #b09a86; }
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 12px;
}
.footer-brand .footer-logo img { width: 44px; height: 44px; border-radius: 12px; }
.footer-brand .footer-logo strong { font-size: 1.1rem; }
.footer-brand .footer-contact { font-size: 0.9rem; }
.footer-brand .footer-contact a { color: #e6d5c7; }
.footer-brand .footer-contact a:hover { color: #fff; }

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: #d5c3b3; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }

.copyright {
  grid-column: 1 / -1;
  color: #8a7768;
  font-size: 0.85rem;
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone { order: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
    flex-direction: column;
    gap: 8px;
  }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .brand-text small { display: none; }
  .section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .states { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .signature-block { grid-template-columns: 1fr; }
}
