:root {
  color-scheme: light;
  --ink: #08212c;
  --ink-soft: #375762;
  --paper: #f5faf9;
  --surface: #ffffff;
  --brand: #087d7b;
  --brand-dark: #075557;
  --accent: #f18f4b;
  --accent-soft: #fff0e4;
  --line: rgba(8, 33, 44, 0.14);
  --shadow: 0 28px 80px rgba(8, 33, 44, 0.13);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 36px;
  --max: 1180px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.theme-founder { --ink:#172238; --ink-soft:#56627a; --paper:#f7f7f3; --surface:#fff; --brand:#2e5c86; --brand-dark:#173f65; --accent:#dca84f; --accent-soft:#fbf3df; }
body.theme-navigator { --ink:#0c2830; --ink-soft:#46636b; --paper:#f2f8f7; --surface:#fff; --brand:#0d8277; --brand-dark:#07574f; --accent:#e36850; --accent-soft:#fdebe7; }
body.theme-profile { --ink:#171c24; --ink-soft:#555e68; --paper:#f4f1eb; --surface:#fffdf8; --brand:#263d52; --brand-dark:#172735; --accent:#c77b45; --accent-soft:#f6e7da; }
body.theme-advocacy { --ink:#102541; --ink-soft:#536680; --paper:#f5f8fc; --surface:#fff; --brand:#315e9a; --brand-dark:#183a69; --accent:#16a59a; --accent-soft:#e1f7f4; }
body.theme-urgent { --ink:#0f2031; --ink-soft:#526578; --paper:#f3f7fa; --surface:#fff; --brand:#174f7a; --brand-dark:#0a304f; --accent:#e75b4d; --accent-soft:#fde8e5; }

html[lang="en"] [data-lang="es"],
html[lang="es"] [data-lang="en"] { display: none !important; }

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 80%, white); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--ink);
  color: white;
  padding: .7rem 1rem;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.1rem;
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.35;
  text-transform: uppercase;
}
.eyebrow::before { width: 26px; height: 2px; background: var(--accent); content: ""; }
.section-head { max-width: 760px; margin-bottom: 2.7rem; }
.section-head.center { margin-inline: auto; text-align: center; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.06; letter-spacing: -.035em; }
h1 { max-width: 13ch; font-size: clamp(3.1rem, 7vw, 6.7rem); font-weight: 500; }
h2 { max-width: 16ch; font-size: clamp(2.25rem, 4.7vw, 4.6rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2vw, 1.72rem); font-weight: 600; }
.lede { max-width: 690px; margin: 1.3rem 0 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.65; }
.section { padding: clamp(78px, 10vw, 138px) 0; }
.section.compact { padding: clamp(58px, 8vw, 100px) 0; }
.section.tinted { background: color-mix(in srgb, var(--brand) 5%, white); }
.section.dark { overflow: hidden; background: var(--ink); color: white; }
.section.dark .eyebrow { color: color-mix(in srgb, var(--accent) 86%, white); }
.section.dark .lede { color: rgba(255,255,255,.72); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: var(--header);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 40px rgba(8,33,44,.06); }
.nav-shell { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; min-width: max-content; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  background: var(--brand);
  color: white;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.brand-word { font-size: .93rem; font-weight: 850; letter-spacing: -.01em; line-height: 1.08; }
.brand-word small { display: block; margin-top: .2rem; color: var(--ink-soft); font-size: .62rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(.8rem, 2.2vw, 1.8rem); }
.nav-links > a { color: var(--ink-soft); font-size: .9rem; font-weight: 700; text-decoration: none; }
.nav-links > a:hover { color: var(--brand); }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-switch button { border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; padding: .38rem .56rem; font-size: .72rem; font-weight: 850; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
.nav-cta { border-radius: 999px; background: var(--brand) !important; color: white !important; padding: .72rem 1.05rem; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; padding: .62rem .8rem; font-weight: 800; }

.hero { position: relative; overflow: hidden; padding: clamp(72px, 8vw, 118px) 0 clamp(80px, 10vw, 142px); }
.hero::before {
  position: absolute;
  z-index: -2;
  top: -22%;
  right: -12%;
  width: min(70vw, 920px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 42%, color-mix(in srgb, var(--brand) 25%, transparent), transparent 67%);
  content: "";
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .78fr); align-items: center; gap: clamp(40px, 7vw, 96px); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .lede { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; cursor: pointer; padding: .72rem 1.25rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--brand); color: white; box-shadow: 0 14px 28px color-mix(in srgb, var(--brand) 24%, transparent); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button.accent { background: var(--accent); color: #fff; }
.button.dark { background: var(--ink); color: white; }
.microcopy { margin: 1rem 0 0; color: var(--ink-soft); font-size: .82rem; }
.hero-media { position: relative; }
.photo-frame { position: relative; overflow: hidden; min-height: 520px; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 10px; background: var(--brand-dark); box-shadow: var(--shadow); }
.photo-frame::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4,24,32,.72)); content: ""; }
.photo-frame img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.photo-caption { position: absolute; z-index: 2; right: 26px; bottom: 26px; left: 26px; color: white; }
.photo-caption strong { display: block; max-width: 17ch; font-family: Georgia, "Times New Roman", serif; font-size: 1.52rem; line-height: 1.12; }
.photo-caption span { display: block; margin-top: .55rem; color: rgba(255,255,255,.72); font-size: .84rem; }
.hero-note { position: absolute; z-index: 3; top: 32px; left: -36px; max-width: 210px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 18px 48px rgba(8,33,44,.16); backdrop-filter: blur(12px); padding: 1rem; }
.hero-note b { display: block; color: var(--brand); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-note span { display: block; margin-top: .35rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.03rem; line-height: 1.25; }
.signal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: -1px; border-block: 1px solid var(--line); background: var(--line); }
.signal { background: var(--paper); padding: 1.35rem 5vw; text-align: center; }
.signal strong { display: block; color: var(--brand-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; }
.signal span { display: block; margin-top: .25rem; color: var(--ink-soft); font-size: .82rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { position: relative; overflow: hidden; min-height: 260px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(1.35rem, 2.6vw, 2rem); }
.card::before { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); content: ""; opacity: 0; transition: opacity .2s ease; }
.card:hover::before { opacity: 1; }
.card .number { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 3.3rem; border-radius: 13px; background: color-mix(in srgb, var(--brand) 9%, white); color: var(--brand); font-weight: 900; }
.card p { margin: .9rem 0 0; color: var(--ink-soft); }
.card.wide { grid-column: span 2; }
.card.tint { border-color: transparent; background: var(--brand); color: white; }
.card.tint p { color: rgba(255,255,255,.76); }
.card.tint .number { background: rgba(255,255,255,.13); color: white; }
.tag-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.35rem; }
.tag { border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); padding: .42rem .72rem; color: var(--ink-soft); font-size: .8rem; font-weight: 750; }
.tint .tag { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.08); color: white; }

.split { display: grid; grid-template-columns: .86fr 1.14fr; align-items: start; gap: clamp(40px, 8vw, 104px); }
.sticky-copy { position: sticky; top: calc(var(--header) + 34px); }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1.65rem 0; }
.step-index { color: var(--brand); font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; }
.step p { margin: .6rem 0 0; color: var(--ink-soft); }

.quote-block { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.portrait-abstract { position: relative; overflow: hidden; min-height: 510px; border-radius: 14px var(--radius-lg) var(--radius-lg) var(--radius-lg); background: var(--brand); }
.portrait-abstract img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: .48; filter: saturate(.65); }
.portrait-abstract::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 95%, transparent), transparent 72%); content: ""; }
.portrait-initials { position: absolute; z-index: 2; right: 30px; bottom: 10px; color: rgba(255,255,255,.92); font-family: Georgia, "Times New Roman", serif; font-size: clamp(7rem, 16vw, 13rem); letter-spacing: -.11em; line-height: .8; }
.quote-mark { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 5rem; line-height: .6; }
blockquote { margin: 1.2rem 0 0; max-width: 17ch; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.08; letter-spacing: -.03em; }
.quote-meta { margin-top: 1.5rem; color: rgba(255,255,255,.64); }

.care-tool { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.tool-intro { padding: clamp(1.7rem, 4vw, 3.6rem); background: var(--brand); color: white; }
.tool-intro .eyebrow { color: rgba(255,255,255,.8); }
.tool-intro p { color: rgba(255,255,255,.76); }
.tool-panel { padding: clamp(1.7rem, 4vw, 3.6rem); }
.field { display: grid; gap: .45rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: .84rem .9rem;
}
.field textarea { min-height: 126px; resize: vertical; }
.tool-result { min-height: 92px; margin-top: 1.2rem; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); padding: 1rem 1.2rem; color: var(--ink-soft); }
.tool-result strong { display: block; color: var(--ink); }

.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(36px, 7vw, 92px); }
.contact-lines { display: grid; gap: .8rem; margin-top: 2rem; }
.contact-line { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.contact-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--brand) 10%, white); color: var(--brand); font-weight: 900; }
.contact-line span { color: var(--ink-soft); font-size: .8rem; }
.contact-line strong { display: block; color: var(--ink); }
.contact-form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(1.4rem, 4vw, 2.8rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: flex-start; gap: .65rem; margin: .4rem 0 1.2rem; color: var(--ink-soft); font-size: .82rem; }
.checkbox input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--brand); }
.form-note { margin: .85rem 0 0; color: var(--ink-soft); font-size: .78rem; }
.success-message { display: none; margin-bottom: 1rem; border-radius: 12px; background: #e4f5ec; color: #1f6942; padding: .85rem 1rem; font-weight: 700; }
.success-message.show { display: block; }

.urgent-band { background: var(--accent); color: white; padding: 1rem 0; }
.urgent-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.urgent-band p { margin: 0; font-size: .9rem; font-weight: 700; }
.urgent-band a { border-bottom: 1px solid currentColor; text-decoration: none; }

.site-footer { background: var(--ink); color: white; padding: 68px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 2rem; }
.footer-brand { max-width: 430px; }
.footer-brand p { color: rgba(255,255,255,.62); }
.footer-title { margin-bottom: .8rem; color: rgba(255,255,255,.55); font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: .52rem; }
.footer-links a { color: rgba(255,255,255,.83); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.3rem; color: rgba(255,255,255,.5); font-size: .76rem; }
.floating-call { position: fixed; z-index: 40; right: 18px; bottom: 18px; display: none; align-items: center; gap: .55rem; border-radius: 999px; background: var(--brand); color: white; box-shadow: 0 15px 45px rgba(8,33,44,.28); padding: .8rem 1rem; font-weight: 850; text-decoration: none; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-links { position: fixed; inset: var(--header) 16px auto; display: none; align-items: stretch; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); padding: 1rem; }
  .nav-links.open { display: grid; }
  .nav-links > a { padding: .7rem; }
  .nav-links .lang-switch { width: max-content; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .split, .quote-block, .contact-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-media { max-width: 640px; margin-inline: auto; }
  .photo-frame, .photo-frame img { min-height: 480px; }
  .sticky-copy { position: static; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .care-tool { grid-template-columns: 1fr; }
  .portrait-abstract { min-height: 420px; }
}

@media (max-width: 680px) {
  :root { --header: 68px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-word small { display: none; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.1rem); }
  .hero-note { top: auto; bottom: -20px; left: 14px; }
  .photo-frame, .photo-frame img { min-height: 420px; }
  .signal-row { grid-template-columns: 1fr; }
  .signal { padding: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .card .number { margin-bottom: 2.2rem; }
  .step { grid-template-columns: 44px 1fr; }
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .urgent-band .container { align-items: flex-start; flex-direction: column; }
  .floating-call { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
