:root {
  --brand-navy: #16366f;
  --brand-navy-dark: #0d244f;
  --brand-blue: #2368b5;
  --brand-green: #078a4b;
  --brand-yellow: #d6c514;
  --ink: #15233a;
  --muted: #5e6b7c;
  --line: #dce4ee;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --surface-green: #f0faf5;
  --surface-blue: #eef5fd;
  --shadow-sm: 0 8px 24px rgba(18, 46, 88, .08);
  --shadow-md: 0 20px 56px rgba(18, 46, 88, .14);
  --radius-sm: .8rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-blue); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--brand-navy); }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid #efbb12;
  outline-offset: 3px;
  border-radius: .35rem;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--brand-navy-dark);
  border-radius: .65rem;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 820px); margin-inline: auto; }
.section { padding: clamp(3.6rem, 7vw, 6.8rem) 0; }
.section.compact { padding: clamp(2.8rem, 5vw, 4.8rem) 0; }
.section-soft { background: var(--surface-soft); }
.section-blue { background: var(--surface-blue); }
.section-green { background: var(--surface-green); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .85rem;
  color: var(--brand-green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }

h1, h2, h3 { margin: 0; color: var(--brand-navy-dark); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 6vw, 5.1rem); max-width: 13ch; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1rem; }
.lede { max-width: 66ch; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.24rem); }
.section-heading { display: grid; gap: .7rem; margin-bottom: 2.2rem; }
.section-heading .lede { margin: 0; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(220, 228, 238, .9);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--brand-navy); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #fff;
  background: var(--brand-navy);
  border-radius: 14px;
  font-weight: 900;
  box-shadow: inset -8px -8px 0 rgba(7, 138, 75, .28);
}
.brand-copy { display: grid; line-height: 1; }
.brand-name { font-size: 1.18rem; font-weight: 900; letter-spacing: -.02em; }
.brand-name span { color: var(--brand-green); }
.brand-tag { margin-top: .32rem; color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .02em; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
  color: var(--brand-navy-dark);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem .7rem;
  color: var(--ink);
  border-radius: .65rem;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--brand-navy); background: var(--surface-blue); }
.nav-list .nav-cta { margin-left: .35rem; padding-inline: 1rem; color: #fff; background: var(--brand-navy); }
.nav-list .nav-cta:hover, .nav-list .nav-cta[aria-current="page"] { color: #fff; background: var(--brand-navy-dark); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.2rem, 8vw, 8rem) 0 clamp(3.6rem, 7vw, 6.2rem);
  background:
    radial-gradient(circle at 85% 18%, rgba(7,138,75,.12), transparent 24rem),
    radial-gradient(circle at 15% 15%, rgba(35,104,181,.10), transparent 25rem),
    linear-gradient(180deg, #fbfdff, #fff);
}
.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -13rem;
  width: 28rem;
  height: 28rem;
  border: 72px solid rgba(214,197,20,.09);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2.2rem, 6vw, 6rem); }
.hero p.lede { margin: 1.35rem 0 1.65rem; }
.action-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .74rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--brand-navy); box-shadow: var(--shadow-sm); }
.btn-primary:hover { color: #fff; background: var(--brand-navy-dark); box-shadow: var(--shadow-md); }
.btn-secondary { color: var(--brand-navy); background: #fff; border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-blue); }
.btn-whatsapp { color: #fff; background: var(--brand-green); }
.btn-whatsapp:hover { color: #fff; background: #056e3c; }

.hero-portrait {
  position: relative;
  min-height: 450px;
  display: grid;
  place-items: end center;
  padding: 1.5rem 1.5rem 0;
  overflow: hidden;
  border: 1px solid rgba(35,104,181,.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #edf5ff 0%, #f6fbf8 60%, #fffdf2 100%);
  box-shadow: var(--shadow-md);
}
.hero-portrait img { width: min(72%, 330px); object-fit: contain; filter: drop-shadow(0 22px 24px rgba(16,39,78,.16)); }
.hero-badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  max-width: 260px;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: .85rem;
  color: var(--brand-navy-dark);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.35;
}

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.2rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: inherit; }
.page-hero { padding: clamp(3.4rem, 7vw, 6.4rem) 0 clamp(2.8rem, 5vw, 4.5rem); background: linear-gradient(180deg, #f7faff, #fff); }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.45rem, 5vw, 4.6rem); }
.page-hero .lede { margin-top: 1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
.card {
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(16,39,78,.05);
}
.card h3 { margin-bottom: .7rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; margin-top: .3rem; font-weight: 800; }
.card-accent-blue { border-top: 4px solid var(--brand-navy); }
.card-accent-green { border-top: 4px solid var(--brand-green); }
.card-accent-yellow { border-top: 4px solid var(--brand-yellow); }

.principle-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 13px;
  font-weight: 900;
}
.icon-blue { color: var(--brand-navy); background: var(--surface-blue); }
.icon-green { color: var(--brand-green); background: var(--surface-green); }
.icon-yellow { color: #817500; background: #fffceb; }

.media-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.media-frame img { width: 100%; }
.media-frame.pad { padding: 1.2rem; }
.archive-label { display: inline-flex; margin-bottom: .7rem; padding: .25rem .55rem; border-radius: 999px; color: #6b5d00; background: #fff7c7; font-size: .76rem; font-weight: 800; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
.gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: .9rem 1rem 1rem; color: var(--muted); font-size: .88rem; }

.feature-list { display: grid; gap: .8rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.feature-list li { position: relative; padding-left: 1.65rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-green); font-weight: 900; }

.timeline { display: grid; gap: .85rem; margin-top: 1.5rem; }
.timeline-item { position: relative; padding: 1.1rem 1.15rem 1.1rem 1.35rem; border-left: 3px solid #c8d6eb; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fff; }
.timeline-item strong { display: block; margin-bottom: .35rem; color: var(--brand-navy); }
.timeline-item p:last-child { margin-bottom: 0; }

.profile-hero { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.profile-photo { display: grid; place-items: end center; min-height: 390px; padding: 1rem 1rem 0; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(160deg, #eaf3ff, #f1faf5); }
.profile-photo img { width: min(72%, 300px); }

.notice {
  padding: 1.2rem 1.25rem;
  border: 1px solid #e6d77a;
  border-radius: var(--radius-sm);
  background: #fffceb;
  color: #554f1e;
}
.notice strong { color: #3d380d; }

.subject-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 1.4rem; }
.subject-panel { min-height: 100%; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.contact-card { display: flex; flex-direction: column; min-height: 190px; }
.contact-card .kicker { margin-bottom: .55rem; color: var(--brand-green); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.contact-card a { margin-top: auto; font-weight: 850; }
.map-wrap { overflow: hidden; min-height: 430px; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 430px; border: 0; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 4rem); color: #fff; background: linear-gradient(130deg, var(--brand-navy-dark), var(--brand-navy) 62%, #155f56); box-shadow: var(--shadow-md); }
.cta-band h2 { color: #fff; max-width: 15ch; }
.cta-band p { max-width: 58ch; color: rgba(255,255,255,.82); }
.cta-band .btn-secondary { border-color: rgba(255,255,255,.3); }

.site-footer { padding: 3rem 0 2rem; color: #dce6f3; background: #0c1f43; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-tag { color: #b8c7da; }
.site-footer .footer-heading { margin: 0 0 .85rem; color: #fff; font-size: 1rem; font-weight: 800; }
.site-footer p, .site-footer a { color: #bdcade; }
.footer-links { display: grid; gap: .42rem; }
.footer-links a { width: fit-content; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: #9fb1c7; font-size: .82rem; }

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

@media (max-width: 1040px) {
  .nav-list a { padding-inline: .55rem; font-size: .86rem; }
  .brand-tag { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 78px 1rem auto 1rem; display: none; padding: .8rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.99); box-shadow: var(--shadow-md); }
  .site-nav[data-open="true"] { display: block; }
  .nav-list { align-items: stretch; flex-direction: column; }
  .nav-list a { min-height: 48px; padding: .8rem .9rem; }
  .nav-list .nav-cta { margin: .25rem 0 0; }
  .brand-tag { display: block; }
  .hero-grid, .media-split, .profile-hero, .subject-grid { grid-template-columns: 1fr; }
  .hero-portrait { min-height: 390px; }
  .profile-photo { order: 2; min-height: 340px; }
  .grid-3, .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(calc(100% - 1.25rem), var(--container)); }
  .header-inner { min-height: 70px; }
  .site-nav { inset: 70px .65rem auto .65rem; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-tag { display: none; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
  .grid-3, .grid-2, .contact-grid, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .hero-portrait { min-height: 340px; }
  .hero-portrait img { width: min(76%, 285px); }
  .hero-badge { max-width: 220px; font-size: .78rem; }
  .profile-photo { min-height: 320px; }
  .profile-photo img { width: min(78%, 270px); }
  .action-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .map-wrap, .map-wrap iframe { min-height: 340px; height: 340px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1rem; }
  .hero-portrait { min-height: 310px; }
  .hero-badge { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
