:root {
  --paper: #f7f4ed;
  --paper-2: #fffdf8;
  --paper-3: #ebe5d8;
  --paper-4: #d8e2d9;
  --ink: #17221d;
  --ink-soft: #3f4d47;
  --muted: #647169;
  --line: #ddd5c5;
  --line-strong: #c9bfad;
  --green: #284f43;
  --green-dark: #17382f;
  --green-soft: #dfe9df;
  --clay: #b97855;
  --cream: #fbfaf5;
  --white: #ffffff;
  --shadow-xs: 0 1px 2px rgba(23, 34, 29, .05);
  --shadow-sm: 0 10px 30px -24px rgba(23, 34, 29, .28);
  --shadow-md: 0 18px 60px -42px rgba(23, 34, 29, .42);
  --shadow-hover: 0 22px 54px -32px rgba(23, 34, 29, .42);
  --ease-premium: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.2, .8, .2, 1);
  --duration-fast: 160ms;
  --duration-base: 260ms;
  --duration-dialog: 420ms;
  --duration-dialog-close: 300ms;
  --duration-slow: 820ms;
  --reveal-distance: 24px;
  --reveal-distance-lg: 28px;
  --reveal-distance-sm: 16px;
  --reveal-scale: .97;
  --reveal-scale-image: .98;
  --stagger-step: 70ms;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --header-h: 78px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(223, 233, 223, .48), transparent 34rem),
    linear-gradient(180deg, #f8f5ee 0%, var(--paper) 44%, #f2eee4 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.professional-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }

::selection { background: rgba(40, 79, 67, .16); }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero-contact-icon svg,
.contact-item-icon svg,
.contact-schedule-icon svg,
.professional-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(40, 79, 67, .25);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(40, 79, 67, .08);
}

.container {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

.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;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.55rem, 4.7vw, 4.65rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.65rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.72rem); }

p {
  margin: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.reveal .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms var(--ease-premium) 80ms;
}

.reveal.visible .eyebrow::before {
  transform: scaleX(1);
}

.section {
  padding: clamp(72px, 9vw, 126px) 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(280px, .58fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.section-head p {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-soft),
    background var(--duration-base) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft),
    color var(--duration-base) var(--ease-soft),
    box-shadow var(--duration-base) var(--ease-soft);
  white-space: nowrap;
  will-change: transform;
}

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:focus-visible {
  outline: 3px solid rgba(40, 79, 67, .28);
  outline-offset: 4px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 28px -22px rgba(23, 56, 47, .9);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 22px 42px -24px rgba(23, 56, 47, .84);
}

.btn-secondary {
  background: rgba(255, 253, 248, .82);
  color: var(--ink);
  border-color: rgba(201, 191, 173, .78);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: rgba(40, 79, 67, .32);
  background: var(--white);
  box-shadow: 0 14px 28px -24px rgba(23, 34, 29, .38);
}

.btn-compact {
  min-height: 40px;
  padding: 10px 14px;
  font-size: .86rem;
}

.btn-whatsapp {
  background: #0f7f6f;
  color: var(--white);
  box-shadow: 0 15px 28px -22px rgba(15, 127, 111, .72);
}

.btn-whatsapp:hover {
  background: #0d7466;
  box-shadow: 0 24px 42px -24px rgba(15, 127, 111, .9);
}

.address-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(40, 79, 67, .28);
  transition: color var(--duration-base) var(--ease-soft), border-color var(--duration-base) var(--ease-soft);
}

.address-link:hover,
.address-link:focus-visible {
  color: var(--green);
  border-color: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-h);
  border-bottom: 1px solid rgba(221, 213, 197, .78);
  background: rgba(247, 244, 237, .86);
  backdrop-filter: blur(18px);
  transition: box-shadow var(--duration-base) var(--ease-soft), background var(--duration-base) var(--ease-soft);
}

.site-header.scrolled {
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 14px 34px -32px rgba(23, 34, 29, .6);
}

.nav {
  width: min(100% - 40px, var(--maxw));
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(40, 79, 67, .18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f3ee;
  box-shadow: inset 0 0 0 4px rgba(255, 253, 248, .62);
  overflow: hidden;
  flex: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.23rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}

.brand-subtitle {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.7vw, 34px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--ink-soft);
  font-size: .91rem;
  font-weight: 650;
  transition: color var(--duration-base) var(--ease-soft);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--ease-premium);
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--green); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, .75);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft),
    background var(--duration-base) var(--ease-soft),
    box-shadow var(--duration-base) var(--ease-soft);
}

.menu-toggle svg { margin: auto; width: 22px; height: 22px; }

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg) scaleX(.72);
  transition:
    opacity var(--duration-fast) var(--ease-soft),
    transform var(--duration-base) var(--ease-premium);
}

.menu-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 79, 67, .28);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.menu-toggle[aria-expanded="true"] svg {
  opacity: 0;
  transform: rotate(90deg) scale(.8);
}

.menu-toggle[aria-expanded="true"]::before {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
}

.menu-toggle[aria-expanded="true"]::after {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
}

.menu-toggle svg {
  transition:
    opacity var(--duration-fast) var(--ease-soft),
    transform var(--duration-base) var(--ease-premium);
}

.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 75;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: rgba(255, 253, 248, .98);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-14px);
  clip-path: inset(0 0 100% 0 round 0 0 22px 22px);
  transition:
    grid-template-rows var(--duration-dialog) var(--ease-premium),
    opacity var(--duration-base) var(--ease-soft),
    transform var(--duration-dialog) var(--ease-premium),
    clip-path var(--duration-dialog) var(--ease-premium);
}

.mobile-drawer.open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0 round 0 0 22px 22px);
}

.mobile-drawer-inner {
  overflow: hidden;
}

.mobile-drawer ul {
  list-style: none;
  padding: 14px 20px 6px;
  margin: 0;
  display: grid;
}

.mobile-drawer a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-base) var(--ease-soft),
    transform var(--duration-base) var(--ease-premium),
    color var(--duration-base) var(--ease-soft);
}

.mobile-drawer.open a:not(.btn),
.mobile-drawer.open .mobile-actions {
  opacity: 1;
  transform: translateY(0);
}

.mobile-drawer.open li:nth-child(1) a { transition-delay: 70ms; }
.mobile-drawer.open li:nth-child(2) a { transition-delay: 105ms; }
.mobile-drawer.open li:nth-child(3) a { transition-delay: 140ms; }
.mobile-drawer.open li:nth-child(4) a { transition-delay: 175ms; }
.mobile-drawer.open li:nth-child(5) a { transition-delay: 210ms; }
.mobile-drawer.open li:nth-child(6) a { transition-delay: 245ms; }

.mobile-drawer .mobile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px 20px 22px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-base) var(--ease-soft) 280ms,
    transform var(--duration-base) var(--ease-premium) 280ms;
}

.hero {
  position: relative;
  padding: clamp(34px, 5vw, 64px) 0 clamp(64px, 7vw, 104px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(47vw, 650px);
  height: min(47vw, 650px);
  background: radial-gradient(circle, rgba(216, 226, 217, .95) 0%, rgba(216, 226, 217, .36) 42%, transparent 70%);
  transform: translate(18%, -30%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .82fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.hero-grid > * { min-width: 0; }

.hero-copy {
  max-width: 720px;
  padding-top: clamp(8px, 1.8vw, 24px);
}

.hero-copy > .eyebrow,
.hero-copy > h1,
.hero-copy > .hero-lede,
.hero-copy > .hero-actions,
.hero-copy .hero-actions .btn,
.hero-panel .hero-premium-top,
.hero-panel .hero-human-card,
.hero-panel .hero-facts,
.hero-panel .hero-fact {
  opacity: 0;
  transform: translateY(24px);
}

.hero-copy.visible > .eyebrow,
.hero-copy.visible > h1,
.hero-copy.visible > .hero-lede,
.hero-copy.visible > .hero-actions,
.hero-copy.visible .hero-actions .btn,
.hero-panel.visible .hero-premium-top,
.hero-panel.visible .hero-facts,
.hero-panel.visible .hero-fact {
  animation: heroEntry 640ms var(--ease-premium) forwards;
}

.hero-panel.visible .hero-human-card {
  animation: heroImageEntry 720ms var(--ease-premium) 160ms forwards;
}

.hero-copy.visible > .eyebrow { animation-delay: 0ms; }
.hero-copy.visible > h1 { animation-delay: 90ms; }
.hero-copy.visible > .hero-lede { animation-delay: 180ms; }
.hero-copy.visible > .hero-actions { animation-delay: 260ms; }
.hero-copy.visible .hero-actions .btn:nth-child(1) { animation-delay: 300ms; }
.hero-copy.visible .hero-actions .btn:nth-child(2) { animation-delay: 370ms; }
.hero-panel.visible .hero-premium-top { animation-delay: 140ms; }
.hero-panel.visible .hero-facts { animation-delay: 320ms; }
.hero-panel.visible .hero-fact:nth-child(1) { animation-delay: 380ms; }
.hero-panel.visible .hero-fact:nth-child(2) { animation-delay: 450ms; }

@keyframes heroEntry {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageEntry {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-copy .eyebrow { margin-bottom: 22px; }

.hero-title-line {
  display: block;
}

.hero-title-line--sub {
  margin-top: .14em;
  font-size: .58em;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -.01em;
}

.hero-lede {
  max-width: 54ch;
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.45vw, 1.26rem);
  line-height: 1.78;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-panel {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 32px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hero-panel::before,
.hero-panel::after {
  display: none;
}

.hero-premium {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(201, 191, 173, .72);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .72) 0%, rgba(242, 246, 240, .58) 100%),
    radial-gradient(circle at 100% 0%, rgba(40, 79, 67, .08), transparent 14rem);
  box-shadow: 0 28px 60px -50px rgba(23, 34, 29, .32);
  overflow: hidden;
}

.hero-premium::before {
  content: "";
  position: absolute;
  right: -48px;
  top: -52px;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(216, 226, 217, .62) 0%, rgba(216, 226, 217, .18) 45%, transparent 72%);
  pointer-events: none;
}

.hero-premium > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-premium-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 0;
  border-bottom: 0;
}

.hero-premium-kicker {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  border-top: 1px solid rgba(201, 191, 173, .72);
  border-bottom: 1px solid rgba(201, 191, 173, .72);
}

.hero-fact {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 13px 10px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--duration-base) var(--ease-premium),
    background var(--duration-base) var(--ease-soft);
  will-change: transform;
}

.hero-fact + .hero-fact {
  border-left: 1px solid rgba(201, 191, 173, .72);
}

.hero-fact:hover {
  transform: translateY(-2px);
  background: rgba(255, 253, 248, .58);
}

.hero-fact:focus-visible {
  outline: 3px solid rgba(40, 79, 67, .24);
  outline-offset: 3px;
  background: rgba(255, 253, 248, .68);
}


.hero-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: linear-gradient(180deg, #eff5ef, #dfe9df);
  font-weight: 900;
  font-size: .88rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  transition:
    transform var(--duration-base) var(--ease-premium),
    background var(--duration-base) var(--ease-soft),
    color var(--duration-base) var(--ease-soft);
}

.hero-fact:hover .hero-contact-icon {
  transform: translateX(2px);
  background: linear-gradient(180deg, #e5f0e5, #d6e4d7);
}

.hero-contact-content strong {
  display: block;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.24;
}

.hero-contact-content span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}


.hero-human-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(201, 191, 173, .78);
  background: var(--paper-3);
  box-shadow: 0 20px 44px -36px rgba(23, 34, 29, .42);
}

.hero-human-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  filter: saturate(.94) contrast(.98) brightness(1.01);
  transition: transform 900ms var(--ease-premium), filter 900ms var(--ease-soft);
}

.hero-human-card:hover img {
  transform: scale(1.02);
  filter: saturate(.98) contrast(.99) brightness(1.02);
}

.center-image-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.center-image-stack .center-photo-card {
  min-height: 390px;
}

.center-image-stack .center-photo-card img {
  min-height: 390px;
}

.family-editorial-card {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 191, 173, .82);
  background: var(--paper-3);
  box-shadow: var(--shadow-sm);
}

.family-editorial-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.94) contrast(.98) brightness(1.01);
  transition: transform 900ms var(--ease-premium), filter 900ms var(--ease-soft);
}

.family-editorial-card:hover img,
.center-photo-card:hover img,
.location-photo-strip:hover img {
  transform: scale(1.02);
  filter: saturate(.98) contrast(1) brightness(1.02);
}

.family-editorial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(23, 34, 29, .42) 100%);
  pointer-events: none;
}

.family-editorial-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 3px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 253, 248, .28);
  background: rgba(255, 253, 248, .88);
  backdrop-filter: blur(14px);
}

.family-editorial-card figcaption strong {
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.1;
}

.family-editorial-card figcaption span {
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.4;
}

.philosophy {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(340px, .72fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}

.editorial-text {
  display: grid;
  gap: 22px;
}

.editorial-text p {
  font-size: clamp(1.04rem, 1.32vw, 1.16rem);
  line-height: 1.82;
  color: var(--ink-soft);
}

.history-lead {
  color: var(--green) !important;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.16rem, 1.5vw, 1.34rem) !important;
  font-weight: 600;
}

.history-details {
  margin-top: 4px;
  border-block: 1px solid var(--line);
}

.history-details summary {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 2px;
  color: var(--green);
  font-size: .94rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  transition: color var(--duration-base) var(--ease-soft);
}

.history-details summary::-webkit-details-marker {
  display: none;
}

.history-details summary:hover {
  color: var(--green-dark);
}

.history-summary-label {
  position: relative;
  padding-bottom: 4px;
}

.history-summary-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(.22);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-premium);
}

.history-details summary:hover .history-summary-label::after,
.history-details summary:focus-visible .history-summary-label::after,
.history-details[open] .history-summary-label::after {
  transform: scaleX(1);
}

.history-summary-open {
  display: none;
}

.history-details[open] .history-summary-closed {
  display: none;
}

.history-details[open] .history-summary-open {
  display: inline;
}

.history-content {
  display: grid;
  gap: 18px;
  padding: 16px 0 28px;
}

.history-details[open] .history-content {
  animation: historyContentEntry 480ms var(--ease-premium);
}

@keyframes historyContentEntry {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.history-content h3 {
  margin-top: 12px;
  font-size: clamp(1.28rem, 2vw, 1.58rem);
}

.history-mission {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(40, 79, 67, .16);
  border-radius: 18px;
  background: rgba(223, 233, 223, .42);
}

.history-mission h3 {
  margin-top: 0;
}


.center-photo-card {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 191, 173, .82);
  background: var(--paper-3);
  box-shadow: var(--shadow-sm);
}

.center-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(.98);
  transition: transform 900ms var(--ease-premium), filter 900ms var(--ease-soft);
}

.center-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(23, 34, 29, .54) 100%);
  pointer-events: none;
}

.center-photo-card figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 253, 248, .28);
  border-radius: 20px;
  background: rgba(255, 253, 248, .88);
  backdrop-filter: blur(14px);
}

.center-photo-card figcaption strong {
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.26rem;
  line-height: 1.1;
}

.center-photo-card figcaption span {
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.45;
}

.professionals {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 253, 248, .42) 100%);
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.red-mayor-feature {
  margin-top: clamp(34px, 5vw, 56px);
}

.red-mayor-feature[hidden] {
  display: none;
}

.red-mayor-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.6vw, 26px);
  align-items: center;
  padding: clamp(22px, 3.6vw, 36px);
  border: 1px solid rgba(40, 79, 67, .24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(232, 241, 232, .96), rgba(255, 253, 248, .86));
  box-shadow: 0 20px 52px -44px rgba(23, 34, 29, .46);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-soft),
    box-shadow var(--duration-base) var(--ease-soft),
    background var(--duration-base) var(--ease-soft);
}

.red-mayor-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
  align-items: center;
  min-width: 0;
}

.red-mayor-card::after {
  content: "";
  position: absolute;
  inset: 16px auto 16px 0;
  width: 4px;
  border-radius: 999px;
  background: rgba(40, 79, 67, .38);
  pointer-events: none;
}

.red-mayor-card:hover,
.red-mayor-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(40, 79, 67, .42);
  box-shadow: var(--shadow-hover);
}

.red-mayor-card:focus-visible {
  outline: 3px solid rgba(40, 79, 67, .26);
  outline-offset: 3px;
}

.red-mayor-logo {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(40, 79, 67, .2);
  border-radius: 22px;
  background: var(--paper-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--shadow-xs);
  overflow: hidden;
  z-index: 1;
}

.red-mayor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.red-mayor-logo[data-fallback="true"]::after,
.red-mayor-logo:not(:has(img))::after {
  content: attr(data-initials);
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.red-mayor-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.red-mayor-kicker {
  display: inline-flex;
  width: fit-content;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.red-mayor-copy h3 {
  margin-top: 8px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.red-mayor-copy p {
  max-width: 66ch;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.62;
}

.red-mayor-services {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.red-mayor-services span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(40, 79, 67, .16);
  border-radius: 999px;
  background: rgba(255, 253, 248, .72);
  color: var(--green);
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.2;
}

.red-mayor-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  align-self: center;
  color: var(--green);
  font-size: .92rem;
  font-weight: 850;
  white-space: nowrap;
  transition: transform var(--duration-base) var(--ease-premium);
}

.red-mayor-card:hover .red-mayor-action,
.red-mayor-card:focus-visible .red-mayor-action {
  transform: translateX(3px);
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .64);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 44px;
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-soft),
    color var(--duration-base) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft),
    transform var(--duration-fast) var(--ease-soft),
    box-shadow var(--duration-base) var(--ease-soft);
}

.filter-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 79, 67, .38);
  box-shadow: 0 14px 28px -22px rgba(23, 34, 29, .38);
}

.filter-btn:active { transform: translateY(0) scale(.98); }

.filter-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 12px 26px -22px rgba(23, 56, 47, .7);
}

.filter-btn:focus-visible {
  outline: 3px solid rgba(40, 79, 67, .2);
  outline-offset: 3px;
  border-color: var(--green);
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  transition: opacity var(--duration-base) var(--ease-soft), transform var(--duration-base) var(--ease-premium);
}

.pro-grid.is-filtering {
  opacity: .5;
  transform: translateY(6px);
}

.pro-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 15px;
  min-width: 0;
  min-height: 154px;
  padding: 17px;
  border: 1px solid rgba(221, 213, 197, .86);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, .74);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-soft),
    background var(--duration-base) var(--ease-soft),
    box-shadow var(--duration-base) var(--ease-soft);
  will-change: transform;
}

.pro-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(223, 233, 223, .42);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

.pro-card:not(.is-pending):hover {
  transform: translateY(-6px);
  border-color: rgba(40, 79, 67, .42);
  background: var(--paper-2);
  box-shadow: var(--shadow-hover);
}

.pro-card[aria-expanded="true"] {
  border-color: rgba(40, 79, 67, .48);
  background: linear-gradient(180deg, rgba(245, 250, 244, .96), rgba(255, 253, 248, .94));
  box-shadow: var(--shadow-hover);
}

.pro-card:focus-visible {
  outline: 3px solid rgba(40, 79, 67, .26);
  outline-offset: 3px;
  border-color: rgba(40, 79, 67, .42);
}

.pro-card:not(.is-pending):hover::after { opacity: 1; }

.pro-card.is-pending {
  border-style: dashed;
  background: rgba(255, 253, 248, .54);
  cursor: default;
  box-shadow: none;
}

.pro-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed rgba(40, 79, 67, .28);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, .72);
  color: var(--muted);
  font-weight: 650;
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: linear-gradient(160deg, #eef5ed, #fffdf8);
  border: 1px solid rgba(40, 79, 67, .18);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.03em;
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-premium),
    background var(--duration-base) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft);
}

.pro-card:not(.is-pending):hover .avatar,
.pro-card:not(.is-pending):focus-visible .avatar {
  transform: translateY(-2px) scale(1.035);
  border-color: rgba(40, 79, 67, .36);
  background: linear-gradient(160deg, #e6f0e6, #fffdf8);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pro-content { min-width: 0; }

.pro-content h3 {
  margin-bottom: 5px;
  font-size: 1.18rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.pro-spec {
  display: block;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pro-license {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pro-credential {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pro-desc {
  display: -webkit-box;
  margin-top: 9px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pro-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--green);
  font-size: .83rem;
  font-weight: 800;
}

.professional-dialog[hidden] { display: none; }

.professional-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  justify-items: end;
  background: rgba(23, 34, 29, .42);
  opacity: 0;
  transition: opacity var(--duration-dialog) var(--ease-soft);
}

.professional-dialog.is-open {
  opacity: 1;
}

.professional-dialog.is-closing {
  opacity: 0;
  transition-duration: var(--duration-dialog-close);
}

.professional-dialog.is-closing .professional-panel {
  transition-duration: var(--duration-dialog-close);
}

.professional-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.professional-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
  padding: 0;
  border-left: 1px solid rgba(201, 191, 173, .84);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(247, 244, 237, .98)),
    var(--paper-2);
  box-shadow: -32px 0 80px -62px rgba(23, 34, 29, .7);
  transform: translateX(44px);
  transition: transform var(--duration-dialog) var(--ease-premium);
  will-change: transform;
}

.professional-dialog.is-open .professional-panel {
  transform: translateX(0);
}

.professional-dialog.is-closing .professional-panel {
  transform: translateX(44px);
}

.professional-close {
  position: absolute;
  top: clamp(16px, 3vw, 24px);
  right: clamp(16px, 3vw, 24px);
  justify-self: end;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(201, 191, 173, .8);
  border-radius: 999px;
  background: rgba(255, 253, 248, .94);
  color: var(--green);
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft),
    background var(--duration-base) var(--ease-soft),
    color var(--duration-base) var(--ease-soft);
}

.professional-close:hover {
  transform: translateY(-2px) rotate(8deg);
  border-color: rgba(40, 79, 67, .3);
  background: var(--white);
}

.professional-dialog-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  grid-row: 1 / -1;
}

.professional-scroll {
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 32px) clamp(22px, 4vw, 34px) 24px;
  scrollbar-width: thin;
}

.professional-hero > *,
.professional-meta,
.space-section,
.professional-note,
.professional-actions {
  opacity: 0;
  transform: translateY(18px);
}

.professional-dialog.is-open .professional-hero > *,
.professional-dialog.is-open .professional-meta,
.professional-dialog.is-open .space-section,
.professional-dialog.is-open .professional-note,
.professional-dialog.is-open .professional-actions {
  animation: drawerContentEntry 640ms var(--ease-premium) forwards;
}

.professional-dialog.is-open .professional-avatar { animation-delay: 120ms; }
.professional-dialog.is-open .professional-hero > div:not(.professional-avatar) { animation-delay: 180ms; }
.professional-dialog.is-open .professional-specialty { animation-delay: 240ms; }
.professional-dialog.is-open .professional-description { animation-delay: 300ms; }
.professional-dialog.is-open .professional-meta { animation-delay: 380ms; }
.professional-dialog.is-open .space-section:nth-of-type(1) { animation-delay: 360ms; }
.professional-dialog.is-open .space-section:nth-of-type(2) { animation-delay: 430ms; }
.professional-dialog.is-open .professional-note { animation-delay: 460ms; }
.professional-dialog.is-open .professional-actions { animation-delay: 540ms; }

@keyframes drawerContentEntry {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.professional-hero {
  display: grid;
  gap: 12px;
  padding-right: 54px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.professional-identity {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.professional-avatar {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(40, 79, 67, .18);
  border-radius: 22px;
  background: linear-gradient(160deg, #eef5ed, #fffdf8);
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  overflow: hidden;
}

.professional-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.professional-kicker {
  color: var(--green);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.professional-hero h2 {
  margin-top: 5px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  overflow-wrap: anywhere;
}

.professional-specialty {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}

.professional-description {
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.66;
}

.professional-meta {
  display: grid;
  gap: 10px;
}

.professional-meta-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.professional-meta-row dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.professional-meta-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.5;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-list span {
  padding: 6px 9px;
  border: 1px solid rgba(201, 191, 173, .74);
  border-radius: 999px;
  background: rgba(255, 253, 248, .82);
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 700;
}

.consultation-area-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
}

.consultation-area-list li::marker {
  color: var(--green);
}

.space-section {
  display: grid;
  gap: 12px;
}

.space-section h3 {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.space-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.space-service-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(40, 79, 67, .16);
  border-radius: 999px;
  background: rgba(223, 233, 223, .48);
  color: var(--green);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.25;
}

.space-members {
  display: grid;
  gap: 10px;
}

.space-member-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(201, 191, 173, .68);
  border-radius: 16px;
  background: rgba(255, 253, 248, .76);
  box-shadow: var(--shadow-xs);
}

.space-member-card img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(40, 79, 67, .16);
}

.space-member-card span {
  display: grid;
  min-width: 0;
}

.space-member-name {
  color: var(--ink);
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.28;
}

.space-member-role {
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.35;
}

.space-member-license {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.35;
}

.professional-note {
  padding: 14px 16px;
  border: 1px solid rgba(40, 79, 67, .14);
  border-radius: 18px;
  background: rgba(223, 233, 223, .42);
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}

.professional-actions {
  display: grid;
  gap: 10px;
}

.professional-actions-sticky {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 14px clamp(22px, 4vw, 34px) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(201, 191, 173, .84);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .9), rgba(255, 253, 248, .99) 34%),
    var(--paper-2);
  box-shadow: 0 -18px 40px -34px rgba(23, 34, 29, .5);
}

.professional-actions-sticky .btn {
  width: 100%;
}

.pro-card.is-space {
  cursor: pointer;
  border-style: solid;
  border-color: rgba(40, 79, 67, .26);
  background: linear-gradient(160deg, rgba(240, 247, 240, .82), rgba(255, 253, 248, .74));
}

.pro-card.is-space:hover {
  transform: translateY(-6px);
  border-color: rgba(40, 79, 67, .42);
  background: linear-gradient(160deg, rgba(232, 244, 232, .9), rgba(255, 253, 248, .9));
  box-shadow: var(--shadow-hover);
}

.space-avatar {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--paper-2);
  border: 1px solid rgba(40, 79, 67, .22);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  line-height: 1.15;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition:
    transform var(--duration-base) var(--ease-premium),
    background var(--duration-base) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft),
    box-shadow var(--duration-base) var(--ease-soft);
}

.space-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

/* CSS fallback via data-fallback attribute set by onerror handler */
.space-avatar[data-fallback="true"]::after,
.space-avatar:not(:has(img))::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: .94rem;
  font-weight: 700;
}

.pro-card.is-space:hover .space-avatar,
.pro-card.is-space:focus-visible .space-avatar {
  transform: translateY(-2px) scale(1.035);
  background: #eef5ed;
  border-color: rgba(40, 79, 67, .36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px -8px rgba(40, 79, 67, .2);
}

/* Drawer logo — Red Mayor */
.space-dialog-logo {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--paper-2);
  border: 1px solid rgba(40, 79, 67, .18);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--shadow-xs);
  flex: none;
}

.space-dialog-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
}

.space-dialog-logo[data-fallback="true"]::after,
.space-dialog-logo:not(:has(img))::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

/* Space hero layout in drawer */
.professional-hero.space-hero {
  display: grid;
  gap: 14px;
}

.services {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.group-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.life-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: clamp(26px, 3.6vw, 40px);
  border-top: 1px solid var(--line);
}

.life-stage-item {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
}

.life-stage-item + .life-stage-item {
  border-left: 1px solid var(--line);
}

.life-stage-number {
  display: block;
  margin-bottom: 22px;
  color: var(--clay);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.life-stage-item h3 {
  margin-bottom: 12px;
  font-size: clamp(1.32rem, 2vw, 1.72rem);
}

.life-stage-item p {
  color: var(--ink-soft);
  font-size: .96rem;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  overflow: visible;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.service-card {
  position: relative;
  min-height: 0;
  padding: clamp(24px, 3vw, 34px) 0;
  background: transparent;
  border-bottom: 1px solid rgba(201, 191, 173, .56);
  transition:
    transform var(--duration-base) var(--ease-premium),
    color var(--duration-base) var(--ease-soft);
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-3px);
}

.service-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 1.8vw, 1.64rem);
}

.service-card p {
  color: var(--ink-soft);
  line-height: 1.72;
  font-size: .98rem;
}

.contact-section {
  background:
    radial-gradient(circle at 14% 0%, rgba(223, 233, 223, .62), transparent 32rem),
    transparent;
}

.contact-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, .82);
  box-shadow: var(--shadow-sm);
}

.contact-schedule-strip {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: clamp(18px, 2.6vw, 24px) clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background: rgba(223, 233, 223, .34);
}

.contact-schedule-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--green);
}

.contact-schedule-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contact-schedule-text strong {
  color: var(--ink);
  font-size: .98rem;
  font-variant-numeric: tabular-nums;
}

.contact-schedule-text span {
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.45;
}

.contact-main {
  padding: clamp(28px, 4vw, 46px);
}

.contact-main h3 {
  margin-bottom: 20px;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
}

.contact-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  transition:
    transform var(--duration-base) var(--ease-premium),
    background var(--duration-base) var(--ease-soft);
}

.contact-item:has(a):hover .contact-item-icon {
  transform: translateX(4px);
  background: #d7e6d8;
}

.contact-item small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 850;
  margin-bottom: 2px;
}

.contact-item strong,
.contact-item a {
  display: block;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 750;
  line-height: 1.35;
  transition: color var(--duration-base) var(--ease-soft);
}

.contact-item a:hover {
  color: var(--green);
}

.contact-actions {
  display: flex;
}

.contact-actions .btn-whatsapp {
  width: 100%;
}

.map-section {
  padding-top: clamp(54px, 7vw, 96px);
  background: linear-gradient(180deg, transparent 0%, rgba(247, 244, 237, .48) 100%);
}

.location-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 5vw, 70px);
  align-items: start;
  padding-bottom: clamp(22px, 3.6vw, 38px);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.location-intro .eyebrow {
  margin-bottom: 0;
}

.location-intro h2 {
  max-width: 14ch;
  margin-top: 12px;
  font-size: clamp(2.15rem, 4vw, 4.2rem);
  line-height: .98;
}

.location-intro p {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.72;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  gap: clamp(14px, 2.4vw, 26px);
  align-items: stretch;
  margin-top: clamp(22px, 4vw, 42px);
  min-width: 0;
}

.location-photo-strip {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(201, 191, 173, .52);
  background: var(--paper-3);
  min-height: 430px;
  height: 100%;
  box-shadow: none;
  transition:
    transform var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-soft);
}

.location-photo-strip img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(.95) contrast(.98);
  transition: transform 900ms var(--ease-premium), filter 900ms var(--ease-soft);
}

.location-photo-strip:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 79, 67, .22);
}

.location-photo-strip figcaption {
  position: static;
  padding: 8px 9px;
  border-top: 1px solid rgba(201, 191, 173, .48);
  background: rgba(255, 253, 248, .78);
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.25;
}

.map-embed-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(201, 191, 173, .72);
  border-radius: var(--radius-md);
  background: var(--paper-2);
  box-shadow: 0 14px 38px -36px rgba(23, 34, 29, .36);
  min-height: 430px;
  transition:
    transform var(--duration-base) var(--ease-premium),
    box-shadow var(--duration-base) var(--ease-soft),
    border-color var(--duration-base) var(--ease-soft);
}

.map-embed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px -44px rgba(23, 34, 29, .5);
  border-color: rgba(40, 79, 67, .28);
}

.map-embed-wrap {
  width: 100%;
  height: 100%;
  min-height: 430px;
  overflow: hidden;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  border: 0;
  filter: grayscale(.06) saturate(.96);
  transition: filter 600ms var(--ease-soft), transform 900ms var(--ease-premium);
}

.map-embed-card:hover .map-embed-wrap iframe {
  filter: grayscale(0) saturate(1);
  transform: scale(1.006);
}

.final-cta {
  padding: clamp(78px, 10vw, 140px) 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(280px, .38fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: end;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid rgba(201, 191, 173, .86);
  border-radius: 34px;
  background:
    linear-gradient(140deg, rgba(23, 56, 47, .96), rgba(40, 79, 67, .9)),
    var(--green);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition:
    transform var(--duration-base) var(--ease-premium),
    box-shadow var(--duration-base) var(--ease-soft);
}

.cta-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 66px -46px rgba(23, 34, 29, .5);
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -180px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 253, 248, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 253, 248, .04), 0 0 0 160px rgba(255, 253, 248, .025);
  pointer-events: none;
}

.cta-panel .eyebrow,
.cta-panel h2,
.cta-panel p { color: var(--white); }

.cta-panel .eyebrow { opacity: .82; }
.cta-panel .eyebrow::before { background: var(--white); }

.cta-panel p {
  max-width: 62ch;
  margin-top: 20px;
  opacity: .84;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

.cta-actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.cta-actions .btn-secondary { background: rgba(255, 253, 248, .96); }

.site-footer {
  padding: 64px 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfaf4 0%, #f6f2e9 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(170px, .6fr));
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.72;
  font-size: .95rem;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(201, 191, 173, .82);
  background: rgba(255, 253, 248, .84);
  color: var(--green);
  transition:
    transform var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-soft),
    background var(--duration-base) var(--ease-soft),
    color var(--duration-base) var(--ease-soft);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 79, 67, .36);
  background: #ffffff;
  color: var(--green-dark);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-col h3 {
  margin-bottom: 16px;
  font-family: Inter, sans-serif;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-col a,
.footer-col li {
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-col a {
  transition: color var(--duration-base) var(--ease-soft);
}
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 24px;
  color: var(--muted);
  font-size: .82rem;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.growi-credit {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 74px;
  height: 20px;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-premium), background var(--duration-base) var(--ease-soft);
}

.growi-credit:hover {
  transform: translateY(-2px);
  background: rgba(40, 79, 67, .06);
}

.growi-credit-logo {
  display: block;
  width: 74px;
  max-width: 74px;
  height: 18px;
  max-height: 18px;
  object-fit: contain;
  opacity: .88;
}

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance-lg)) scale(.984);
  transition:
    opacity var(--duration-slow) var(--ease-soft),
    transform var(--duration-slow) var(--ease-premium);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal .life-stage-item,
.reveal .pro-card,
.reveal .service-card,
  .reveal .red-mayor-card,
  .reveal .contact-panel > *,
  .reveal.contact-panel > *,
  .reveal .center-photo-card,
  .reveal .family-editorial-card,
  .reveal .location-photo-strip,
  .reveal .footer-col {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
}

.reveal .center-photo-card,
.reveal .family-editorial-card,
.reveal .location-photo-strip,
.reveal .hero-human-card,
.reveal.map-embed-card {
  transform: translateY(var(--reveal-distance-sm)) scale(var(--reveal-scale-image));
}

.reveal.visible .life-stage-item,
.reveal.visible .pro-card,
.reveal.visible .service-card,
.reveal.visible .red-mayor-card,
.reveal.visible .contact-panel > *,
.reveal.visible.contact-panel > *,
.reveal.visible .center-photo-card,
.reveal.visible .family-editorial-card,
.reveal.visible .location-photo-strip,
.reveal.visible .footer-col {
  animation: revealChild 780ms var(--ease-premium) forwards;
}

.reveal.visible > :nth-child(1),
.reveal.visible .life-stage-item:nth-child(1),
.reveal.visible .pro-card:nth-child(1),
.reveal.visible .service-card:nth-child(1) { animation-delay: 70ms; }

.reveal.visible > :nth-child(2),
.reveal.visible .life-stage-item:nth-child(2),
.reveal.visible .pro-card:nth-child(2),
.reveal.visible .service-card:nth-child(2) { animation-delay: 140ms; }

.reveal.visible > :nth-child(3),
.reveal.visible .life-stage-item:nth-child(3),
.reveal.visible .pro-card:nth-child(3),
.reveal.visible .service-card:nth-child(3) { animation-delay: 210ms; }

.reveal.visible .pro-card,
.reveal.visible .service-card {
  animation-delay: calc(60ms + (var(--stagger-index, 0) * var(--stagger-step)));
}

.reveal.visible .service-card:nth-child(1) { --stagger-index: 0; }
.reveal.visible .service-card:nth-child(2) { --stagger-index: 1; }
.reveal.visible .service-card:nth-child(3) { --stagger-index: 2; }
.reveal.visible .service-card:nth-child(4) { --stagger-index: 3; }
.reveal.visible .service-card:nth-child(5) { --stagger-index: 4; }
.reveal.visible .service-card:nth-child(6) { --stagger-index: 5; }
.reveal.visible .service-card:nth-child(7) { --stagger-index: 6; }
.reveal.visible .service-card:nth-child(8) { --stagger-index: 7; }
.reveal.visible .service-card:nth-child(9) { --stagger-index: 8; }

@keyframes revealChild {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-child-distance, 22px)) scale(var(--reveal-scale, .97));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal.visible .center-photo-card,
.reveal.visible .family-editorial-card,
.reveal.visible .location-photo-strip,
.reveal.visible.map-embed-card {
  --reveal-scale: var(--reveal-scale-image);
  --reveal-child-distance: var(--reveal-distance-sm);
}

/* Mobile motion: shorter distances and quicker entrances than desktop */
@media (max-width: 740px) {
  :root {
    --reveal-distance: 16px;
    --reveal-distance-lg: 18px;
    --reveal-distance-sm: 10px;
  }

  .hero-copy.visible > .eyebrow,
  .hero-copy.visible > h1,
  .hero-copy.visible > .hero-lede,
  .hero-copy.visible > .hero-actions,
  .hero-copy.visible .hero-actions .btn,
  .hero-panel.visible .hero-premium-top,
  .hero-panel.visible .hero-facts,
  .hero-panel.visible .hero-fact {
    animation-duration: 460ms;
  }

  .hero-panel.visible .hero-human-card {
    animation-duration: 560ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal,
  .reveal *,
  .hero-motion,
  .stagger-item,
  .hero-copy > *,
  .hero-panel *,
  .professional-hero > *,
  .professional-meta,
  .professional-note,
  .professional-actions {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition-delay: 0ms !important;
  }
}

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .84fr); gap: 34px; }
  .hero-copy { max-width: 640px; }
}

@media (max-width: 1080px) {
  .red-mayor-card {
    grid-template-columns: 1fr;
  }

  .red-mayor-main {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .red-mayor-action {
    justify-self: center;
  }

  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .hero-grid,
  .philosophy-grid,
  .location-intro,
  .location-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }
  .hero-copy { padding-top: 0; }
  .hero-panel { order: 2; }
  .pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 740px) {
  :root { --header-h: 72px; }
  .container, .nav { width: min(100% - 28px, var(--maxw)); }
  .brand-subtitle { display: none; }
  .nav-actions .btn { display: none; }
  .mobile-drawer .mobile-actions { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .pro-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .service-card { min-height: auto; }
  .service-kicker { margin-bottom: 28px; }
  .contact-schedule-strip { padding-inline: 20px; }
  .contact-main { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-socials { margin-top: 18px; }
  .footer-bottom { padding-bottom: 54px; }
  .red-mayor-main { grid-template-columns: 1fr; }
  .red-mayor-logo {
    width: 78px;
    height: 78px;
    border-radius: 22px;
  }
  .red-mayor-services { gap: 6px; }
}

@media (max-width: 430px) {
  .brand-name { font-size: 1.08rem; }
  .hero-actions,
  .cta-actions { display: grid; }
  .red-mayor-action { white-space: normal; }
  .pro-card { grid-template-columns: 64px 1fr; padding: 16px; }
  .avatar,
  .space-avatar { width: 64px; height: 64px; border-radius: 17px; }
  .space-dialog-logo { width: 72px; height: 72px; border-radius: 20px; font-size: 1.1rem; }
}
  
/* ===== Mobile/tablet hardening v5 ===== */
.hero-panel { min-width: 0; }

@media (min-width: 1081px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 540px);
    align-items: center;
  }
  .hero-panel {
    max-width: 540px;
    justify-self: end;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: 760px;
    padding-top: 0;
  }
  .hero-panel {
    max-width: 760px;
    justify-self: stretch;
  }
}

@media (min-width: 900px) and (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(380px, .78fr);
    align-items: center;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-panel {
    order: initial;
    max-width: none;
    justify-self: end;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .professional-dialog {
    align-items: end;
    justify-items: stretch;
  }

  .professional-panel {
    width: 100%;
    height: min(88vh, 760px);
    border-left: 0;
    border-top: 1px solid rgba(201, 191, 173, .84);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -28px 70px -52px rgba(23, 34, 29, .75);
    transform: translateY(46px);
  }

  .professional-dialog.is-open .professional-panel {
    transform: translateY(0);
  }

  .professional-dialog.is-closing .professional-panel {
    transform: translateY(46px);
  }

  .professional-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .professional-scroll {
    padding: 22px 18px 18px;
  }

  .professional-hero {
    padding-right: 48px;
    gap: 12px;
  }

  .professional-identity {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 13px;
  }

  .professional-avatar {
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }

  .professional-hero h2 {
    font-size: clamp(1.36rem, 6vw, 1.72rem);
    line-height: 1.08;
  }

  .professional-specialty {
    font-size: .72rem;
  }

  .professional-actions-sticky {
    padding-inline: 18px;
  }

  .space-section {
    gap: 10px;
  }

  .space-services {
    gap: 7px;
  }

  .space-service-chip {
    min-height: 34px;
    padding: 7px 9px;
    font-size: .8rem;
  }

.space-member-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
}

.space-member-card img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(40, 79, 67, .16);
}

.space-member-card span {
  display: grid;
  min-width: 0;
}

  body {
    background:
      radial-gradient(circle at 20% 0%, rgba(223, 233, 223, .48), transparent 22rem),
      var(--paper);
  }

  .site-header {
    min-height: 82px;
  }

  .nav {
    min-height: 82px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
  }

      .hero {
        padding: 30px 0 56px;
        overflow: hidden;
      }

      .hero::before {
        width: 320px;
        height: 320px;
        transform: translate(30%, -40%);
      }

      .pro-card::after,
      .cta-panel::after {
        display: none;
      }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.35rem, 10.8vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -.035em;
  }

  .hero-lede {
    max-width: 34ch;
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    margin-top: 24px;
  }

  .hero-actions .btn {
    width: min(100%, 320px);
  }

  .hero-panel {
    order: 2;
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .hero-panel::before,
  .hero-panel::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-col a,
  .footer-col li {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
  }

  .footer-credit {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .container, .nav {
    width: min(100% - 28px, var(--maxw));
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.1rem);
  }
}


@media (max-width: 740px) {
  .red-mayor-feature {
    margin-top: 34px;
  }

  .red-mayor-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
  }

  .red-mayor-main {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .red-mayor-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .red-mayor-logo img {
    padding: 7px;
  }

  .red-mayor-copy h3 {
    font-size: 1.34rem;
  }

  .red-mayor-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .92rem;
    line-height: 1.55;
  }

  .red-mayor-action {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .filters {
    flex-wrap: nowrap;
    gap: 8px;
    margin-inline: -14px;
    padding: 2px 14px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .filter-btn {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 10px 14px;
    box-shadow: none;
    scroll-snap-align: start;
    transform: none;
  }

  .filter-btn:hover {
    transform: none;
  }

  .filter-btn:active {
    transform: none;
  }

  .filter-btn.active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  }

  .hero-premium {
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
  }

  .hero-premium-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-fact {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    min-height: auto;
    padding: 14px;
  }

  .hero-fact + .hero-fact {
    border-left: 0;
    border-top: 1px solid rgba(201, 191, 173, .72);
  }

  .hero-contact-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  .hero-premium {
    padding: 16px;
  }
}


/* ===== Real imagery responsive layer v7 ===== */
@media (max-width: 1080px) {
  .center-photo-card {
    min-height: clamp(360px, 62vw, 620px);
  }

  .center-photo-card img {
    min-height: clamp(360px, 62vw, 620px);
  }

  .location-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .location-intro h2,
  .location-intro p {
    max-width: 100%;
  }

  .location-layout {
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  }

  .location-photo-strip,
  .location-photo-strip img {
    min-height: clamp(340px, 42vw, 460px);
  }

  .map-embed-card,
  .map-embed-wrap,
  .map-embed-wrap iframe {
    min-height: clamp(340px, 42vw, 460px);
  }
}

@media (max-width: 740px) {
  .center-photo-card {
    min-height: 430px;
    border-radius: 28px;
  }

  .center-photo-card img {
    min-height: 430px;
    object-position: center;
  }

  .center-photo-card figcaption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px;
    border-radius: 18px;
  }

  .location-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .location-photo-strip,
  .location-photo-strip img {
    min-height: 180px;
  }

  .location-photo-strip {
    border-radius: 18px;
  }

  .location-photo-strip figcaption {
    position: static;
    border-radius: 0;
    background: rgba(255, 253, 248, .92);
    font-size: .74rem;
  }

  .map-embed-card {
    min-height: 0;
    border-radius: 20px;
  }

  .map-embed-wrap,
  .map-embed-wrap iframe {
    min-height: 260px;
    border-radius: 20px;
  }

  .location-intro h2 {
    max-width: none;
    font-size: clamp(1.9rem, 9vw, 2.45rem);
  }

  .location-intro p {
    font-size: .98rem;
    line-height: 1.62;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .center-photo-card,
  .center-photo-card img {
    min-height: 380px;
  }

  .center-photo-card figcaption strong {
    font-size: 1.15rem;
  }
}


/* ===== Human imagery layer v8 ===== */
@media (max-width: 1080px) {
  .center-image-stack {
    gap: 14px;
  }
}

@media (max-width: 740px) {
  .hero-human-card {
    border-radius: 22px;
  }

  .center-image-stack .center-photo-card,
  .center-image-stack .center-photo-card img {
    min-height: 360px;
  }

  .family-editorial-card,
  .family-editorial-card img {
    min-height: 310px;
  }

  .family-editorial-card figcaption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 15px;
  }
}

@media (max-width: 430px) {
  .center-image-stack .center-photo-card,
  .center-image-stack .center-photo-card img {
    min-height: 320px;
  }

  .family-editorial-card,
  .family-editorial-card img {
    min-height: 280px;
  }
}

/* ===== Responsive optimization pass v9 ===== */

/* Tighter vertical rhythm between sections on mobile: the fixed clamp
   minimums were stacking into ~130-150px gaps between sections */
@media (max-width: 740px) {
  .section {
    padding: clamp(48px, 11vw, 72px) 0;
  }

  .map-section {
    padding-top: clamp(36px, 8vw, 56px);
  }

  .final-cta {
    padding: clamp(56px, 12vw, 88px) 0;
  }

  .editorial-text p {
    line-height: 1.65;
  }
}

/* Tablet 741-1080px: restore the 2-column layouts that already work at
   desktop instead of stretching text/cards edge-to-edge like mobile */
@media (min-width: 741px) and (max-width: 1080px) {
  .philosophy-grid {
    grid-template-columns: minmax(0, .88fr) minmax(340px, .72fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Hero readability in the narrow tablet band below the 900px 2-column hero */
@media (min-width: 741px) and (max-width: 899px) {
  .hero-copy {
    max-width: 560px;
  }
}

/* Desktop: give the Red Mayor CTA its own column instead of leaving empty
   space to the right of the description */
@media (min-width: 1081px) {
  .red-mayor-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
  }

  .red-mayor-action {
    justify-self: end;
  }
}

/* ===== Correcciones validadas · 2026-07-22 ===== */
.philosophy-grid {
  align-items: start;
}

.hero-human-card,
.hero-human-card img {
  min-height: 0;
  aspect-ratio: 3 / 2;
}

.hero-human-card img {
  object-position: center;
}

.center-image-stack .center-photo-card,
.center-image-stack .center-photo-card img {
  min-height: 0;
  aspect-ratio: 3 / 2;
}

.center-image-stack .center-photo-card img {
  object-position: center;
}

@media (max-width: 900px) {
  .life-stage-grid {
    grid-template-columns: 1fr;
  }

  .life-stage-item + .life-stage-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 740px) {
  .history-details summary {
    min-height: 52px;
  }

  .history-content {
    padding-bottom: 22px;
  }

  .life-stage-item {
    padding-inline: 4px;
  }
}

/* ===== Hero mobile — pieza única · 2026-07-30 =====
   V2: los dos CTA pasan a compartir ancho, altura y padding (jerarquía
   sólo por color/peso, no por tamaño); el panel pierde el tratamiento
   de "card" (borde/fondo/sombra) para leerse como continuación de la
   misma columna editorial, no como un bloque aparte. */
@media (max-width: 740px) {
  .hero {
    padding: 20px 0 36px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 12px;
  }

  .hero-lede {
    margin-top: 10px;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 18px;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn-secondary {
    font-weight: 600;
  }

  .hero-grid {
    gap: 22px;
  }

  /* El panel deja de ser una card flotante: sin borde/fondo/sombra
     propios, alineado al mismo margen que el texto de arriba. La foto
     conserva su propio marco (borde + radio), que ya aporta la
     definición visual que necesita. */
  .hero-premium {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    gap: 14px;
  }

  .hero-premium::before {
    display: none;
  }

  .hero-premium-top {
    padding: 0;
  }

  .hero-human-card,
  .hero-human-card img {
    aspect-ratio: 4 / 3;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-fact {
    padding: 12px 10px;
  }

  .hero-fact + .hero-fact {
    border-left: 1px solid rgba(201, 191, 173, .72);
    border-top: 0;
  }
}

