/* ================================================================
   Onix Seguros — system styles (brand-aligned)
   ================================================================ */

:root {
  /* Onix brand palette */
  --onix-navy: #0A1A6B;
  --onix-navy-deep: #061149;
  --onix-blue: #2240E6;
  --onix-blue-deep: #1A33B8;
  --onix-blue-light: #C5DBF2;
  --onix-blue-lighter: #E6EEF9;
  --onix-black: #0A0A12;

  /* surfaces */
  --bg: #F4F6FB;
  --bg-elev: #FFFFFF;
  --bg-dark: var(--onix-navy);
  --bg-dark-2: #0E2380;
  --hairline: rgba(10, 26, 107, 0.10);
  --hairline-strong: rgba(10, 26, 107, 0.18);
  --hairline-dark: rgba(255,255,255,0.10);

  /* ink */
  --ink: var(--onix-navy);
  --ink-2: #1B2D7A;
  --ink-mute: #5A668F;
  --ink-soft: #8A93B5;
  --ink-on-dark: #F4F6FB;
  --ink-on-dark-mute: #A8B3DC;

  /* brand semantic */
  --brand: var(--onix-blue);
  --brand-deep: var(--onix-blue-deep);
  --brand-soft: var(--onix-blue-lighter);
  --accent: var(--onix-blue-light);  /* light blue used as accent */
  --accent-soft: #EEF4FC;
  --good: #16A371;
  --good-soft: #E2F5EC;

  /* type */
  --font-sans: "Nexa", "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(10,26,107,.05), 0 1px 1px rgba(10,26,107,.04);
  --shadow: 0 4px 14px rgba(10,26,107,.07), 0 1px 2px rgba(10,26,107,.05);
  --shadow-lg: 0 22px 60px -16px rgba(10,26,107,.28), 0 4px 12px rgba(10,26,107,.08);

  --maxw: 1240px;
}

/* Use Nexa via @font-face if user supplies; fallback Geist via google */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; }
@media (max-width: 720px) { html { scroll-padding-top: 96px; } }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 22px -8px var(--brand);
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-navy {
  background: var(--onix-navy);
  color: #fff;
}
.btn-navy:hover { background: var(--onix-navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-light {
  background: var(--onix-blue-light);
  color: var(--onix-navy);
}
.btn-light:hover { background: #B0CCE9; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* ============ typography helpers ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 999px;
}
h1, h2, h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
h1 { font-size: clamp(44px, 5.4vw, 76px); }
h2 { font-size: clamp(34px, 3.6vw, 52px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }

.lead {
  font-size: 18px;
  color: var(--ink-mute);
  line-height: 1.55;
  max-width: 56ch;
}
.mono { font-family: var(--font-mono); }

/* ============ cards / chips ============ */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 500;
}
.divider { height: 1px; background: var(--hairline); border: 0; }

/* ============ image placeholder ============ */
.imgph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(10,26,107,.05) 0 1px,
      transparent 1px 12px),
    #EEF1F7;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  padding: 16px;
  letter-spacing: 0.02em;
}
.imgph.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.04) 0 1px,
      transparent 1px 12px),
    #142390;
  border-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.55);
}

/* brand pattern background helpers */
.bg-pattern-light { background-image: url('assets/pattern-light.jpg'); background-size: 640px; }
.bg-pattern-dark  { background-image: url('assets/pattern-dark.jpg');  background-size: 640px; }

/* ============ section spacing ============ */
section { padding: 72px 0; }
.section-head {
  display: flex; justify-content: space-between;
  align-items: end; gap: 24px;
  margin-bottom: 38px;
}
.section-head .title { max-width: 640px; }
.section-head .title h2 { margin-top: 14px; }
.section-head .title p { margin-top: 14px; color: var(--ink-mute); font-size: 17px; max-width: 48ch; }

@media (max-width: 720px) {
  section { padding: 52px 0; }
  .container { padding: 0 20px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  /* reduce information density on phones: hide section support paragraphs */
  .section-head .title p { display: none; }
  /* larger tap targets on phones (min 44px) */
  .btn-sm { height: 44px; padding: 0 18px; }
}

/* ============ brand-specific helpers ============ */
.onix-mark {
  display: inline-block;
  vertical-align: middle;
}
.onix-mark .ring,
.onix-mark .upper,
.onix-mark .lower {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: butt;
}
