:root {
  --navy: #14345c;
  --navy-deep: #0b2340;
  --ink: #1b2c3d;
  --muted: #5c6b7a;
  --teal: #0f7f78;
  --teal-soft: #e5f5f3;
  --green: #2f8a3e;
  --green-soft: #e8f5ea;
  --blue: #2a74c4;
  --blue-soft: #e7f1fb;
  --amber: #d8891a;
  --amber-soft: #fff4e4;
  --ivory: #f6f3ec;
  --paper: #fffcf8;
  --line: #e6dfd3;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 52, 92, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 22px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }

.spectrum {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 6px;
}
.spectrum span:nth-child(1) { background: #f0a02a; }
.spectrum span:nth-child(2) { background: #1aa7a0; }
.spectrum span:nth-child(3) { background: #2f7ed1; }
.spectrum span:nth-child(4) { background: #3c9a45; }

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 46px; height: 46px; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--navy);
}
.brand-name strong {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}
.brand-name span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--teal); }
.nav a.btn-solid,
.nav a.btn-solid:hover {
  color: var(--white);
  background: var(--navy);
}
.nav a.btn-solid:hover { background: #1c4678; }
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.btn-light { background: var(--white); color: var(--navy-deep); }
.btn-light:hover { background: #f3fbff; }
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: #1c4678; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-line {
  background: transparent;
  color: var(--navy);
  border-color: #c9d3df;
}
.btn-line:hover { border-color: var(--navy); }

.hero {
  background:
    radial-gradient(900px 420px at 85% 20%, rgba(42, 168, 160, 0.28), transparent 60%),
    radial-gradient(700px 380px at 10% 90%, rgba(216, 137, 26, 0.16), transparent 55%),
    linear-gradient(160deg, #102848 0%, #0c3048 55%, #12324a 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 3.2rem 0 4.2rem;
}
.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  color: #f0c27a;
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: #d7f4f1;
}
.named {
  margin-top: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 500;
}
.tagline {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}
.lead {
  margin-top: 1.2rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.7rem; }
.hero-visual { position: relative; min-height: 320px; }
.hero-visual img {
  width: min(620px, 108%);
  margin-left: auto;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.28));
  -webkit-mask-image: radial-gradient(ellipse at 58% 46%, #000 46%, transparent 74%);
  mask-image: radial-gradient(ellipse at 58% 46%, #000 46%, transparent 74%);
}
.wave {
  display: block;
  width: 100%;
  height: 64px;
  margin-bottom: -1px;
}

.section { padding: 5rem 0; }
.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--navy);
}
.kicker {
  color: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.intro {
  max-width: 40rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.benefits {
  margin-top: -2.2rem;
  position: relative;
  z-index: 1;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.section-tight { padding-top: 1.4rem; }
.actions-center { justify-content: center; }
.benefit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.benefit h3 {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.benefit p { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }
.icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.icon svg { width: 22px; height: 22px; }
.icon-blue { background: var(--blue-soft); color: var(--blue); }
.icon-green { background: var(--green-soft); color: var(--green); }
.icon-teal { background: var(--teal-soft); color: var(--teal); }
.icon-amber { background: var(--amber-soft); color: #c4740d; }

.legacy {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3rem;
  align-items: start;
}
.portrait-card {
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.portrait-card img { width: 100%; height: auto; aspect-ratio: 1 / 0.92; object-fit: cover; object-position: center 18%; }
.portrait-card figcaption { padding: 1rem 1.15rem 1.15rem; }
.portrait-card strong { display: block; color: var(--navy); }
.portrait-card span { color: var(--muted); font-size: 0.92rem; }
.legacy-copy h2 { margin-bottom: 1rem; }
.legacy-copy p + p { margin-top: 1rem; }
.quote {
  margin-top: 1.4rem;
  padding: 1.1rem 1.15rem 1.15rem 1.2rem;
  border-left: 3px solid var(--amber);
  background: linear-gradient(90deg, #fff8ee, transparent 80%);
}
.quote p {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.35;
  color: var(--navy);
}
.quote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.practice {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}
.practice-photo {
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
}
.practice-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  min-height: 420px;
}
.index-list { display: grid; gap: 0.75rem; margin-top: 1.4rem; }
.index-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
}
.index-list a:hover { border-color: #b7c9d8; }
.index-list strong { display: block; color: var(--navy); font-weight: 600; line-height: 1.25; }
.index-list span { color: var(--muted); font-size: 0.92rem; }

.pillars { background: var(--paper); }
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.pillar {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem 1.35rem 1.3rem;
  background: var(--ivory);
}
.pillar header { display: flex; gap: 0.8rem; align-items: flex-start; }
.pillar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--navy);
  line-height: 1.15;
}
.pillar .sub { color: var(--muted); margin: 0.15rem 0 0.9rem; }
.pillar li {
  position: relative;
  padding-left: 1.15rem;
  margin-top: 0.45rem;
}
.pillar li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  position: absolute;
  left: 0;
  top: 0.55rem;
}
.pillar-blue { color: var(--blue); }
.pillar-amber { color: #c4740d; }
.pillar-teal { color: var(--teal); }
.pillar-green { color: var(--green); }
.pillar p,
.pillar li { color: var(--ink); }
.pillar .sub { color: var(--muted); }
.pillar-blue li::before { background: var(--blue); }
.pillar-amber li::before { background: #d8891a; }
.pillar-teal li::before { background: var(--teal); }
.pillar-green li::before { background: var(--green); }

.salud {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  color: var(--white);
  background: #12324a url("/assets/sede.jpg") center/cover no-repeat;
}
.salud::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 24, 42, 0.78) 0%, rgba(8, 24, 42, 0.28) 70%);
}
.salud .wrap { position: relative; z-index: 1; padding: 4.5rem 0; }
.salud-card {
  max-width: 34rem;
  background: rgba(255, 252, 248, 0.96);
  color: var(--ink);
  border-radius: 24px;
  padding: 1.6rem 1.5rem 1.5rem;
}
.salud-card h2 { font-size: clamp(2rem, 3vw, 2.7rem); }
.salud-card p { margin-top: 0.7rem; }

.cierre {
  text-align: center;
  padding-bottom: 4.5rem;
}
.cierre h2 { margin-inline: auto; max-width: 16ch; }
.cierre .intro { margin-inline: auto; }
.cierre .actions { justify-content: center; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.4rem 0 1.6rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: start;
}
.footer-brand { display: flex; gap: 0.75rem; align-items: center; color: white; text-decoration: none; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand strong { display: block; letter-spacing: 0.04em; font-size: 0.85rem; }
.footer-brand span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; }
.footer-links a { color: white; text-decoration: none; }
.footer-links a:hover { color: #f0c27a; }
.legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
}

.missing {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}
.missing h1 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
}

section[id],
article[id] { scroll-margin-top: 92px; }

:focus-visible {
  outline: 2px solid #1aa7a0;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .benefit-grid, .pillar-grid, .legacy, .practice, .hero-grid { grid-template-columns: 1fr; }
  .hero-visual img { margin-inline: auto; }
  .practice-photo, .practice-photo img { min-height: 320px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.2rem 1rem;
    gap: 0.2rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; }
  .header-inner { position: relative; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.4rem 0; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 520px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
