/* HiLex — site-wide stylesheet built on top of tokens.css */

/* ---------- Global guards ---------- */
html, body { overflow-x: clip; }
body { max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sp-9) var(--gutter); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--bg-inverse); color: var(--fg-on-inverse); }
.section--navy .h2,
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.78); }

@media (max-width: 768px) {
  .section { padding: var(--sp-8) var(--gutter); }
}

/* ---------- Buttons (extends tokens .btn) ---------- */
.btn-lg { padding: 16px 32px; font-size: var(--fs-18); }
.btn-on-navy { background: var(--accent); color: #fff; }
.btn-on-navy:hover { background: var(--accent-hover); }
.btn-outline-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; align-items: center; }
/* El logo es un PNG con transparencia y proporción apaisada (aprox. 2.7:1),
   por lo que la altura se fija baja para que no invada el ancho del menú. */
.nav__logo img { height: 44px; width: auto; display: block; }
.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__links a {
  font-size: 17px; font-weight: 500;
  color: var(--fg); text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--accent); }
.nav__cta {
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease);
}
.nav__cta:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.nav__burger { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav__burger svg { width: 28px; height: 28px; color: var(--fg); }

/* El menú completo necesita alrededor de 1000px para respirar: bajo ese
   ancho se pasa al botón de menú, en vez de dejar los enlaces apretados. */
@media (max-width: 1100px) {
  .nav__inner { flex-wrap: wrap; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__logo img { height: 38px; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column;
    flex-basis: 100%; order: 3;
    gap: 2px; margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .nav.is-open .nav__links a {
    padding: 12px 6px; border-radius: var(--radius-md);
  }
  .nav.is-open .nav__links a:hover { background: var(--coral-50); }
  .nav.is-open .nav__cta {
    display: inline-flex; flex-basis: 100%; order: 4;
    justify-content: center; margin-top: 10px;
  }
}

/* ---------- Hero ---------- */
.hero { padding: var(--sp-9) var(--gutter) var(--sp-8); }
.hero__inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--fg);
  margin: 0 auto 18px; max-width: 980px;
}
.hero__title .accent { color: var(--accent); }
.hero__lede {
  font-size: var(--fs-20); color: var(--fg-muted);
  max-width: 680px; margin: 0 auto var(--sp-7);
  line-height: var(--lh-base);
}
.hero__chips {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.chip {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  color: var(--navy-900); text-decoration: none;
  font-size: var(--fs-14); font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,77,0.06);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), color var(--dur-fast);
}
.chip:hover {
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero variants */
.hero--split .hero__inner {
  text-align: left;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.hero--split .hero__title { margin: 0 0 18px; }
.hero--split .hero__lede { margin: 0 0 28px; max-width: 560px; }
.hero--split .hero__chips { justify-content: flex-start; }
.hero--split .hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero--split .hero__photo {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl); aspect-ratio: 4 / 5;
}
.hero--split .hero__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero--split .hero__photo-tag {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--navy-900); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: var(--fs-14); font-weight: 600;
}

@media (max-width: 920px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; }
  .hero--split .hero__photo { aspect-ratio: 4 / 3; max-height: 480px; }
}

.hero--navy { background: var(--navy-900); color: #fff; }
.hero--navy .hero__title { color: #fff; }
.hero--navy .hero__lede { color: rgba(255,255,255,0.78); }
.hero--navy .chip {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.hero--navy .chip:hover { background: rgba(255,255,255,0.12); color: var(--coral-300); }

/* Eyebrow */
.eyebrow {
  font-size: var(--fs-14); font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--accent);
  display: inline-block; margin-bottom: 16px;
}
.hero--navy .eyebrow { color: var(--coral-300); }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 820px; margin: 0 auto var(--sp-7); }
.section-head .h2 { margin: 0 0 16px; }
.section-head--left { text-align: left; margin-left: 0; }

/* ---------- Differentiator strip (AI-augmented service) ---------- */
.diff {
  background: var(--coral-50);
  padding: var(--sp-9) var(--gutter);
}
.diff__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.diff__visual {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.diff__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--neutral-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: var(--fs-14); font-weight: 500;
  color: var(--fg);
}
.diff__bar .label { flex: 0 0 140px; color: var(--fg-muted); font-weight: 500; }
.diff__bar .meter {
  flex: 1; height: 10px; background: var(--neutral-200);
  border-radius: 999px; position: relative; overflow: hidden;
}
.diff__bar .meter::before {
  content: ''; position: absolute; left: 0; top: 0; height: 100%;
  border-radius: 999px;
  width: var(--w, 30%);
  background: var(--c, var(--neutral-400));
}
.diff__bar .pct { flex: 0 0 60px; text-align: right; font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.diff__group-title {
  font-size: var(--fs-12); letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--fg-subtle); margin: 16px 0 8px; font-weight: 600;
}

@media (max-width: 920px) {
  .diff__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Service pillars (replaces old bar visual) ---------- */
.diff__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pillar {
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  padding: 22px 22px 24px;
  border: 1px solid var(--coral-100, rgba(0,0,0,.06));
  box-shadow: 0 1px 2px rgba(20,20,40,.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,20,40,.06);
}
.pillar__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--coral-50);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.pillar h3 {
  font-size: var(--fs-18, 18px);
  font-weight: 700;
  color: var(--navy-900, var(--fg));
  margin: 0;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}
@media (max-width: 560px) {
  .diff__pillars { grid-template-columns: 1fr; }
}

/* ---------- Colegiado verification strip ---------- */
.colegiado {
  display: flex; align-items: center; gap: 28px;
  background: #fff;
  border: 1px solid var(--coral-100, rgba(0,0,0,.08));
  border-radius: var(--radius-xl, 20px);
  padding: 32px 36px;
  box-shadow: 0 4px 16px rgba(20,20,40,.05);
}
.colegiado__icon {
  flex: 0 0 64px; width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--coral-50); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.colegiado__body { flex: 1; }
.colegiado__body .eyebrow { display: block; margin-bottom: 8px; }
.colegiado__body h2 {
  font-family: var(--font-display); font-size: var(--fs-24, 24px);
  font-weight: 800; color: var(--navy-900, var(--fg)); margin: 0 0 8px;
  letter-spacing: var(--ls-snug, -0.01em);
}
.colegiado__body p { margin: 0; color: var(--fg-muted); max-width: 62ch; line-height: 1.6; }
.colegiado__cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: filter .2s ease;
}
.colegiado__cta:hover { filter: brightness(0.92); color: #fff; text-decoration: none; }
@media (max-width: 760px) {
  .colegiado { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px; }
  .colegiado__cta { width: 100%; justify-content: center; }
}

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: #fff; border-radius: var(--radius-md);
  padding: var(--sp-6);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.svc-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.svc-card .icon-tile {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--coral-100); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.svc-card h3 {
  font-family: var(--font-display); font-size: var(--fs-28); font-weight: 800;
  color: var(--navy-900); margin: 0; letter-spacing: var(--ls-snug);
}
.svc-card p { margin: 0; color: var(--fg-muted); }
.svc-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.svc-card li {
  font-size: var(--fs-16); color: var(--fg-muted);
  display: flex; align-items: flex-start; gap: 8px;
}
.svc-card li::before {
  content: ''; flex: 0 0 6px; height: 6px; border-radius: 999px;
  background: var(--accent); margin-top: 8px;
}
.svc-card .more {
  margin-top: auto; color: var(--accent);
  font-weight: 600; font-size: var(--fs-14);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Service-card variants */
.svc-card--bold {
  background: var(--navy-900); border-color: var(--navy-800); color: #fff;
}
.svc-card--bold h3 { color: #fff; }
.svc-card--bold p, .svc-card--bold li { color: rgba(255,255,255,0.7); }
.svc-card--bold .icon-tile { background: rgba(235,84,54,0.16); color: var(--coral-400); }
.svc-card--bold li::before { background: var(--coral-400); }
.svc-card--bold .more { color: var(--coral-300); }

.svc-card--minimal {
  border: 0; box-shadow: none; padding: var(--sp-5);
  background: transparent;
  border-top: 3px solid var(--accent);
  border-radius: 0;
}
.svc-card--minimal:hover { transform: none; box-shadow: none; }
.svc-card--minimal .icon-tile { background: transparent; padding: 0; width: auto; height: auto; }

/* ---------- Tools (calculators) callout ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); text-decoration: none; }
.tool-card__num {
  font-family: var(--font-display); font-size: 88px; font-weight: 800;
  color: var(--coral-100);
  position: absolute; right: 16px; top: -8px; line-height: 1;
  letter-spacing: -0.04em;
}
.tool-card__eyebrow {
  font-size: var(--fs-12); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; font-weight: 600; color: var(--accent);
  margin-bottom: 12px;
}
.tool-card h3 {
  font-family: var(--font-display); font-size: var(--fs-24); font-weight: 800;
  color: var(--navy-900); margin: 0 0 10px; letter-spacing: var(--ls-snug);
  position: relative;
}
.tool-card p { margin: 0 0 20px; color: var(--fg-muted); font-size: var(--fs-16); }
.tool-card .open {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: var(--fs-14);
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  background: #fff; border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.team-card__photo {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-lg);
  object-fit: cover; object-position: center 20%; display: block;
}
.team-card h3 {
  font-family: var(--font-display); font-size: var(--fs-24); font-weight: 800;
  color: var(--navy-900); margin: 0 0 4px;
}
.team-card .role {
  font-size: var(--fs-14); font-weight: 600; color: var(--accent);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  margin-bottom: 12px;
}
.team-card p { margin: 0 0 12px; font-size: var(--fs-16); }
.team-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.team-card li { font-size: var(--fs-16); color: var(--fg-muted); }
@media (max-width: 720px) {
  .team-card { grid-template-columns: 1fr; }
  .team-card__photo { max-width: 200px; }
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
@media (max-width: 920px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  background: #fff; border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.process-step__num {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--fs-20); font-weight: 800;
  margin-bottom: 16px;
}
.process-step h3 {
  font-family: var(--font-display); font-size: var(--fs-20); font-weight: 800;
  color: var(--navy-900); margin: 0 0 8px;
}
.process-step p { margin: 0; font-size: var(--fs-16); }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--navy-900); color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display); font-size: var(--fs-48); font-weight: 800;
  color: var(--coral-300); letter-spacing: -0.02em;
  line-height: 1;
}
.stat__label {
  font-size: var(--fs-14); color: rgba(255,255,255,0.72);
  margin-top: 8px;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; }
}

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
}
.testi-card__stars { display: flex; gap: 2px; color: var(--accent); }
.testi-card__quote {
  font-family: var(--font-display); font-size: var(--fs-18);
  color: var(--navy-900); line-height: var(--lh-base); margin: 0;
}
.testi-card__by {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
}
.testi-card__avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--coral-100); color: var(--accent);
  font-family: var(--font-display); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-14);
}
.testi-card__by-name { font-size: var(--fs-14); font-weight: 700; color: var(--navy-900); margin: 0; }
.testi-card__by-meta { font-size: var(--fs-12); color: var(--fg-subtle); margin: 0; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 24px;
  font-family: var(--font-display); font-size: var(--fs-18); font-weight: 600;
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: 0 0 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300004d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--dur-base) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item__body { padding: 0 24px 22px; color: var(--fg-muted); }
.faq-item__body p { margin: 0; }

/* ---------- Consultation block (CTA band) ---------- */
.cta-band {
  background: var(--accent); color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px);
  font-weight: 800; line-height: 1.15; margin: 0 0 12px; color: #fff;
}
.cta-band p { color: rgba(255,255,255,0.88); margin: 0; font-size: var(--fs-18); }
.cta-band .cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end;
}
.cta-band .btn-on-coral {
  background: #fff; color: var(--accent);
  font-weight: 700;
}
.cta-band .btn-on-coral:hover { background: var(--navy-900); color: #fff; }
@media (max-width: 920px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 36px 24px; }
  .cta-band > * { min-width: 0; }
  .cta-band h2, .cta-band p { overflow-wrap: break-word; }
  .cta-band .cta-row { flex-direction: column; align-items: stretch; min-width: 0; }
  .cta-band .cta-row .btn { width: 100%; justify-content: center; white-space: normal; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900); color: rgba(255,255,255,0.78);
  padding: var(--sp-9) var(--gutter) var(--sp-6);
}
.footer__grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 920px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--font-display); color: #fff;
  font-size: var(--fs-14); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; font-weight: 600;
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: var(--fs-16); }
.footer a:hover { color: var(--coral-300); }
.footer__brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: var(--fs-16); color: rgba(255,255,255,0.7); max-width: 340px; }
.footer__social {
  display: flex; gap: 10px; margin-top: 18px;
}
.footer__social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.footer__social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer__bottom {
  max-width: var(--container); margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: var(--fs-12); color: rgba(255,255,255,0.55);
}

/* ---------- WhatsApp bubble ---------- */
.wa-bubble {
  position: fixed; bottom: 24px; left: 24px; z-index: 60;
  background: var(--whatsapp); color: #fff;
  width: 56px; height: 56px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 32px rgba(37,211,102,0.45);
  transition: transform var(--dur-base) var(--ease);
}
.wa-bubble:hover { transform: scale(1.06); color: #fff; }

/* ---------- Calculator UI ---------- */
.calc-page {
  background: var(--bg-alt);
  min-height: calc(100vh - 220px);
  padding: var(--sp-9) var(--gutter);
}
.calc-shell {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px;
  align-items: start;
}
@media (max-width: 920px) { .calc-shell { grid-template-columns: 1fr; } }
.calc-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.calc-card h2 {
  font-family: var(--font-display); font-size: var(--fs-28); font-weight: 800;
  color: var(--navy-900); margin: 0 0 8px;
}
.calc-card .calc-sub { color: var(--fg-muted); margin: 0 0 24px; }
.calc-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.calc-row label { font-size: var(--fs-14); font-weight: 600; color: var(--navy-900); }
.calc-row .help { font-size: var(--fs-12); color: var(--fg-subtle); }
.calc-row input[type="text"],
.calc-row input[type="number"],
.calc-row select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: var(--fs-16);
  color: var(--fg); background: #fff;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.calc-row input:focus, .calc-row select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--coral-100);
}
.calc-money { position: relative; }
.calc-money::before {
  content: '$'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--fg-muted); font-weight: 600; pointer-events: none;
}
.calc-row .calc-money input[type="text"] { padding-left: 36px; }
.calc-money::before { left: 16px; }

.calc-toggle-group {
  display: flex; gap: 8px;
  background: var(--neutral-100); padding: 4px; border-radius: var(--radius-pill);
}
.calc-toggle-group input { display: none; }
.calc-toggle-group label {
  flex: 1; text-align: center;
  padding: 10px 16px; border-radius: 999px;
  font-size: var(--fs-14); font-weight: 600; color: var(--fg-muted);
  cursor: pointer; transition: all var(--dur-fast);
}
.calc-toggle-group input:checked + label {
  background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm);
}

.calc-stepper {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden;
}
.calc-stepper button {
  width: 44px; height: 44px;
  border: none; background: #fff;
  font-size: 22px; color: var(--navy-900); cursor: pointer; font-family: var(--font-display);
}
.calc-stepper button:hover { background: var(--coral-50); color: var(--accent); }
.calc-stepper input {
  width: 60px; height: 44px; border: none;
  text-align: center; font-family: var(--font-display);
  font-size: var(--fs-18); font-weight: 700; color: var(--navy-900);
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.calc-stepper input::-webkit-outer-spin-button,
.calc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color var(--dur-fast);
  margin-bottom: 8px;
}
.calc-checkbox-row:hover { border-color: var(--accent); }
.calc-checkbox-row input { margin-top: 4px; accent-color: var(--accent); }
.calc-checkbox-row .lbl { font-size: var(--fs-14); font-weight: 600; color: var(--navy-900); }
.calc-checkbox-row .desc { font-size: var(--fs-12); color: var(--fg-muted); margin: 2px 0 0; }

.calc-result {
  background: var(--navy-900); color: #fff;
  border-radius: var(--radius-xl);
  padding: 36px;
  position: sticky; top: 100px;
}
.calc-result__eyebrow {
  font-size: var(--fs-12); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--coral-300); font-weight: 600;
  margin-bottom: 12px;
}
.calc-result__amount {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  color: #fff; margin: 0 0 4px;
}
.calc-result__range { color: rgba(255,255,255,0.72); font-size: var(--fs-14); margin: 0 0 24px; }
.calc-result__breakdown {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px; margin-bottom: 24px;
}
.calc-result__row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: var(--fs-14);
}
.calc-result__row .k { color: rgba(255,255,255,0.7); }
.calc-result__row .v { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.calc-result__row.total { padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.18); font-size: var(--fs-16); }
.calc-result__paid { margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,0.18); display: flex; flex-direction: column; gap: 8px; }
.calc-result__paid-label { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; margin-bottom: 2px; }
.calc-result__row.paid { opacity: 0.55; }
.calc-result__row.paid .k { text-decoration: line-through; }
.calc-result__row.paid .v { text-decoration: line-through; color: rgba(255,255,255,0.7); }
.calc-result__cta {
  display: block; text-align: center;
  background: var(--accent); color: #fff;
  padding: 16px; border-radius: var(--radius-pill);
  font-weight: 700; text-decoration: none; font-size: var(--fs-16);
  margin-bottom: 10px;
  transition: background var(--dur-fast);
}
.calc-result__cta:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.calc-result__cta-secondary {
  display: block; text-align: center;
  background: transparent; color: #fff;
  padding: 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.4);
  font-weight: 600; text-decoration: none; font-size: var(--fs-14);
  transition: background var(--dur-fast);
}
.calc-result__cta-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.calc-hero__notice {
  max-width: 720px; margin: 24px auto 0;
  background: rgba(235, 84, 54, 0.08); border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 8px;
  font-size: var(--fs-14); color: var(--fg); text-align: left; line-height: 1.55;
}
.calc-hero__notice a { color: var(--accent); font-weight: 600; }
.calc-result__disclaimer {
  font-size: var(--fs-12); color: rgba(255,255,255,0.55);
  margin-top: 16px; line-height: 1.5;
}

/* ---------- Calculator hero ---------- */
.calc-hero {
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  padding: var(--sp-8) var(--gutter) var(--sp-7);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.calc-hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral-50); color: var(--accent);
  padding: 6px 14px; border-radius: 999px;
  font-size: var(--fs-12); font-weight: 600; letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; margin-bottom: 16px;
}
.calc-hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--navy-900); margin: 0 auto 16px; max-width: 800px;
}
.calc-hero .lede {
  font-size: var(--fs-20); color: var(--fg-muted);
  max-width: 680px; margin: 0 auto;
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 920px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); text-decoration: none; }
.blog-card__cover {
  aspect-ratio: 16 / 10; background: var(--navy-50);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.blog-card__cover--pattern-1 {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
}
.blog-card__cover--pattern-2 {
  background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-700) 100%);
  color: #fff;
}
.blog-card__cover--pattern-3 {
  background: var(--coral-50); color: var(--accent);
}
.blog-card__cover svg { width: 64px; height: 64px; opacity: 0.85; }
.blog-card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card__cat {
  font-size: var(--fs-12); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; font-weight: 600; color: var(--accent);
}
.blog-card h3 {
  font-family: var(--font-display); font-size: var(--fs-20); font-weight: 800;
  color: var(--navy-900); margin: 0; line-height: 1.25;
}
.blog-card p { margin: 0; font-size: var(--fs-16); color: var(--fg-muted); }
.blog-card__meta {
  display: flex; gap: 12px; font-size: var(--fs-12); color: var(--fg-subtle);
  margin-top: auto; padding-top: 8px;
}

/* ---------- Article (long-form) ---------- */
.article {
  max-width: 760px; margin: 0 auto;
  padding: var(--sp-8) var(--gutter);
}
.article__cat {
  font-size: var(--fs-12); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; font-weight: 600; color: var(--accent);
}
.article h1 {
  font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--navy-900); margin: 16px 0 16px;
}
.article__meta {
  display: flex; gap: 12px; align-items: center; font-size: var(--fs-14);
  color: var(--fg-muted); margin-bottom: 32px;
}
.article__meta .author-avatar {
  width: 36px; height: 36px; border-radius: 999px; object-fit: cover;
}
.article__hero {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  display: flex; align-items: center; justify-content: center; color: #fff;
  margin-bottom: 40px; box-shadow: var(--shadow-lg);
}
.article__body { font-size: var(--fs-18); color: var(--fg); line-height: 1.7; }
.article__body p { font-size: var(--fs-18); color: var(--neutral-800); margin: 0 0 22px; }
.article__body h2 {
  font-family: var(--font-display); font-size: var(--fs-28); font-weight: 800;
  color: var(--navy-900); margin: 40px 0 16px;
}
.article__body h3 {
  font-family: var(--font-display); font-size: var(--fs-20); font-weight: 700;
  color: var(--navy-900); margin: 28px 0 12px;
}
.article__body ul, .article__body ol { padding-left: 22px; margin: 0 0 22px; }
.article__body li { margin: 0 0 8px; color: var(--neutral-800); }
.article__body strong { color: var(--navy-900); }
.article__body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px; margin: 28px 0;
  font-family: var(--font-display); font-size: var(--fs-20);
  color: var(--navy-900); font-weight: 600;
}
.article__body a { color: var(--accent); text-decoration: underline; }
.article__cta {
  margin: 40px 0;
  background: var(--coral-50); border: 1px solid var(--coral-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.article__cta h3 { color: var(--navy-900); margin: 0 0 6px; font-size: var(--fs-20); }
.article__cta p { color: var(--fg-muted); margin: 0; font-size: var(--fs-14); }
@media (max-width: 720px) {
  .article__cta { grid-template-columns: 1fr; }
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed; bottom: 24px; left: 24px; z-index: 80;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 20px; width: 280px;
  font-family: var(--font-ui);
}
.tweaks-panel h4 {
  font-family: var(--font-display);
  margin: 0 0 12px; font-size: var(--fs-16); color: var(--navy-900);
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-panel button.close {
  background: transparent; border: 0; cursor: pointer; color: var(--fg-muted);
  font-size: var(--fs-18); line-height: 1; padding: 0;
}
.tweaks-panel .group { margin-bottom: 12px; }
.tweaks-panel .group .lbl {
  font-size: var(--fs-12); letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--fg-subtle); font-weight: 600; margin-bottom: 6px; display: block;
}
.tweaks-panel .seg {
  display: flex; gap: 4px; background: var(--neutral-100); padding: 4px; border-radius: 999px;
}
.tweaks-panel .seg button {
  flex: 1; padding: 8px; border: 0; background: transparent;
  border-radius: 999px; font-size: var(--fs-12); font-weight: 600;
  cursor: pointer; color: var(--fg-muted); font-family: var(--font-ui);
}
.tweaks-panel .seg button.active {
  background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm);
}
