/* Shared stylesheet for inner pages (services, privacy, 404).
   Tokens mirror the inline styles in /index.html — keep them in sync. */
:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --blue-muted: #BFDBFE;
  --bg: #F8F8F6;
  --bg-white: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-tertiary: #767676;
  --border: #E8E8E4;
  --border-light: #F0F0EC;
  --shadow-color: 26, 26, 26;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--header-height) + var(--space-md));
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(37, 99, 235, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 30% at 0% 10%, rgba(37, 99, 235, 0.04), transparent 70%);
  background-repeat: no-repeat;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 10001;
  background: var(--blue);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-md); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background-color: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
  background-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15), 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-ghost {
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(248, 248, 246, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
}
.brand:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

.nav-desktop ul {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-desktop a,
.nav-mobile a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: var(--text-primary); }
.nav-desktop a[aria-current="page"] { box-shadow: 0 2px 0 var(--blue); }
.nav-desktop a:focus-visible,
.nav-mobile a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }

.header-cta { padding: 10px 20px; font-size: 14px; }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-mobile[open] summary { border-color: var(--blue); color: var(--blue); }
.nav-mobile ul {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-sm));
  min-width: 220px;
  list-style: none;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow:
    0 1px 2px rgba(var(--shadow-color), 0.04),
    0 4px 8px rgba(var(--shadow-color), 0.06),
    0 12px 24px rgba(var(--shadow-color), 0.08);
}
.nav-mobile li a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}
.nav-mobile li a:hover { background: var(--blue-light); color: var(--blue-dark); }

/* ---------------------------------------------------------------- Breadcrumb */
.breadcrumb { padding: var(--space-xl) 0 var(--space-lg); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  font-size: 13px;
  color: var(--text-tertiary);
}
.breadcrumb li + li::before { content: '/'; margin-right: var(--space-sm); color: var(--border); }
.breadcrumb a { text-decoration: none; color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* ---------------------------------------------------------------- Article layout */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-2xl);
  align-items: start;
  padding-bottom: var(--space-2xl);
}

.article { max-width: 68ch; }

.article-head h1 { margin-bottom: var(--space-lg); }

/* The one bold element on inner pages: the direct answer to "what is this?" */
.answer {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--blue);
}

.meta {
  margin-top: var(--space-lg);
  font-size: 13px;
  color: var(--text-tertiary);
}

.article > h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article > p { margin-top: var(--space-lg); color: var(--text-secondary); }
.article > h2 + p { margin-top: 0; }
.article p a, .article li a { color: var(--blue); text-underline-offset: 3px; }

.checks { list-style: none; display: grid; gap: var(--space-sm); }
.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--space-lg);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: calc(var(--space-lg) * -1 + 4px);
  width: 2px;
  background: var(--blue-muted);
}
.steps h3 { margin-bottom: var(--space-xs); }
.steps p { color: var(--text-secondary); }

.fit {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-md) var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.fit dt { font-weight: 600; }
.fit dd { color: var(--text-secondary); }

/* FAQ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: 20px 0;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item p { color: var(--text-secondary); padding-bottom: 20px; }

/* Aside */
.side { position: sticky; top: calc(var(--header-height) + var(--space-lg)); }
.side-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow:
    0 1px 2px rgba(var(--shadow-color), 0.04),
    0 4px 8px rgba(var(--shadow-color), 0.04),
    0 12px 24px rgba(37, 99, 235, 0.06);
}
.side-card h2 { font-size: 1.3rem; margin-bottom: var(--space-sm); }
.side-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: var(--space-lg); }
.side-card .btn { width: 100%; }
.side-card .side-alt {
  display: block;
  margin-top: var(--space-md);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-underline-offset: 3px;
}
.side-facts {
  list-style: none;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
  display: grid;
  gap: 6px;
}

/* Related */
.related {
  padding: var(--space-xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border);
}
.related h2 { margin-bottom: var(--space-lg); }
.related ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.related a {
  display: block;
  height: 100%;
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, box-shadow 0.3s ease;
}
.related a:hover {
  transform: translateY(-3px);
  border-color: var(--blue-muted);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}
.related a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.related strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: var(--space-xs); }
.related span { font-size: 14px; color: var(--text-secondary); }

/* Service index */
.service-index { list-style: none; border-top: 1px solid var(--border); }
.service-index li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}
.service-index h2 { font-size: 1.35rem; }
.service-index h2 a { text-decoration: none; transition: color 0.2s ease; }
.service-index h2 a:hover { color: var(--blue); }
.service-index h2 a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.service-index p { color: var(--text-secondary); }
.service-index .for { margin-top: var(--space-xs); font-size: 13px; color: var(--text-tertiary); }

/* CTA band */
.cta-band {
  background:
    radial-gradient(ellipse 50% 80% at 90% 10%, rgba(37, 99, 235, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 60% at 5% 100%, rgba(37, 99, 235, 0.08), transparent 70%),
    var(--blue-light);
  border-top: 1px solid var(--blue-muted);
  padding: var(--space-2xl) 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}
.cta-band h2 { max-width: 22ch; }
.cta-band p { margin-top: var(--space-sm); color: var(--text-secondary); max-width: 52ch; }
.cta-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; flex-shrink: 0; }

/* Legal text */
.legal { max-width: 72ch; padding-bottom: var(--space-2xl); }
.legal h1 { margin-bottom: var(--space-md); }
.legal h2 { font-size: 1.35rem; margin: var(--space-xl) 0 var(--space-sm); }
.legal p, .legal li { color: var(--text-secondary); }
.legal p + p { margin-top: var(--space-md); }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: var(--space-sm); }
.legal a { color: var(--blue); }
.legal table { width: 100%; border-collapse: collapse; margin-top: var(--space-md); font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal th { color: var(--text-primary); font-weight: 600; }
.legal td { color: var(--text-secondary); }
.table-scroll { overflow-x: auto; }

/* 404 */
.notfound { padding: var(--space-3xl) 0; max-width: 60ch; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--blue); letter-spacing: -0.05em; }
.notfound h1 { margin: var(--space-md) 0; }
.notfound p { color: var(--text-secondary); }
.notfound .cta-actions { margin-top: var(--space-xl); }

/* ---------------------------------------------------------------- Footer */
.footer {
  padding: var(--space-2xl) 0 var(--space-lg);
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
}
.footer-brand { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: var(--space-sm); }
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 4px; }
.footer-desc { max-width: 300px; }
.footer h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-md);
}
.footer ul { list-style: none; display: grid; gap: var(--space-sm); }
.footer a { text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: #fff; }
.footer a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------------------- WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25), 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float:active { transform: scale(0.96); }
.whatsapp-float:focus-visible { outline: 3px solid #128C7E; outline-offset: 3px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .page-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .side { position: static; max-width: 520px; }
  .related ul { grid-template-columns: 1fr 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --space-2xl: 56px; --space-3xl: 80px; }
  .wrap { padding: 0 var(--space-md); }
  .header-inner { gap: var(--space-md); }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .breadcrumb { padding-top: var(--space-lg); }
  .related ul { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; gap: 2px var(--space-md); }
  .fit dd + dt { margin-top: var(--space-sm); }
  .service-index li { grid-template-columns: 1fr; gap: var(--space-sm); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

@media (max-width: 480px) {
  .header-cta { display: none; }
  .answer { padding-left: var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
