:root {
  --primary: #1D1D1F;
  --accent: #2997FF;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); 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: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--primary); }
/* Logo image in header */
.logo-link { display: inline-flex; align-items: center; }
.logo-img { max-height: 42px; max-width: 210px; width: auto; height: auto; }
/* Chip oscuro para logos con texto blanco (Crediphone/Areatech/Electromix) */
.logo-chip { background: var(--ink); border-radius: 10px; padding: 8px 14px; }
.logo-chip .logo-img { max-height: 28px; max-width: 190px; }
@media (max-width: 720px) { .logo-img { max-width: 160px; } .logo-chip .logo-img { max-width: 150px; } }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; font-size: 0.95rem;
  transition: transform .12s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); opacity: .94; }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 90% at 90% 8%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 60%),
    radial-gradient(70% 90% at 8% 100%, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, var(--bg-soft) 0%, #fff 60%);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
  max-width: 15ch;
}
.hero .accent { color: var(--primary); }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 20px 0 32px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.eyebrow::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
  transform: translateY(-1px);
}

.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: 0 12px 30px -12px rgba(15,23,42,.14); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 12%, white);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; }

.soft { background: var(--bg-soft); }

/* ---------- Stores / stats ---------- */
.stat-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 36px; }
.stat b { font-size: 2.4rem; color: var(--primary); letter-spacing: -0.02em; display: block; }
.stat span { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-item .ci-icon { font-size: 1.3rem; }
.contact-item h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.contact-item p { font-weight: 500; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 72px; max-width: 780px; }
.legal h1 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal li { color: #334155; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 28px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand-logo { color: #fff; }
.footer-legal { font-size: .9rem; color: #94a3b8; margin-top: 14px; line-height: 1.7; }
.footer-legal strong { color: #e2e8f0; }
.site-footer h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; display: block; margin-bottom: 8px; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: #94a3b8;
}
