:root {
  color-scheme: light;
  --paper: #f9f5ed;
  --ink: #25362f;
  --muted: #4f5c53;
  --green: #285647;
  --green-hover: #1d4034;
  --line: #dcdcd0;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4.1vw, 76px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 106px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
svg:not(.symbols) { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid #7c3b69; outline-offset: 4px; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-150%); padding: .7rem 1rem; background: white; }
.skip:focus { transform: none; }
.wrap { width: min(1680px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.header { position: sticky; z-index: 5; top: 10px; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; min-height: 64px; padding: .48rem .65rem .48rem .9rem; background: #fffdf5f5; border: 1px solid #fff; box-shadow: 0 7px 30px #31443812; border-radius: 22px; backdrop-filter: blur(16px); }
.brand { display: flex; gap: 6px; align-items: center; flex: none; width: fit-content; }
.brand img:first-child { width: 35px; }
.brand img:last-child { width: 108px; }
.menu { display: flex; width: 100%; flex-wrap: wrap; gap: .15rem .8rem; }
.menu a, .footer nav a { font-size: .94rem; font-weight: 650; display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.menu a:hover, .footer nav a:hover { text-decoration: underline; text-underline-offset: .28em; }
.menu-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); padding: 0 .75rem; cursor: pointer; }
.header-cta { display: none !important; }
.button { width: fit-content; max-width: 100%; min-height: 49px; display: inline-flex; justify-content: center; align-items: center; gap: .55rem; padding: .65rem 1.15rem; border-radius: 999px; background: var(--green); border: 1px solid transparent; color: white; font-size: .93rem; font-weight: 700; text-align: center; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { background: var(--green-hover); transform: translateY(-2px); }
.button.secondary { background: #fffdf657; border-color: #a9b5a8; color: var(--ink); }
.button.secondary:hover { background: #fffdf6; border-color: var(--green); }
.hero { isolation: isolate; overflow: hidden; margin-top: 16px; border: 1px solid #e8e1d5; border-radius: clamp(24px, 3vw, 48px); background: radial-gradient(ellipse at 99% 89%, #e2eee0, transparent 55%), radial-gradient(ellipse at 80% 8%, #f1e3e9, transparent 52%), #f4ebdf; display: grid; }
.hero-copy { padding: clamp(26px, 5vw, 86px); padding-bottom: 12px; align-self: center; }
.eyebrow { display: flex; align-items: center; gap: .57rem; margin: 0 0 .75rem; color: var(--green); font-size: .73rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: .5rem; height: .5rem; flex: none; background: #b97881; border-radius: 50%; }
h1, h2, .profile h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.35vw, 7.3rem); line-height: .99; }
h1 em { display: block; color: var(--green); font-weight: 400; }
h2 { font-size: clamp(2.15rem, 4.6vw, 5rem); line-height: 1.05; }
p { margin: 0 0 .95rem; }
.lead { max-width: 41ch; margin: 1.25rem 0 1.45rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; min-height: 250px; padding: 28px; }
.orbit { position: absolute; pointer-events: none; border: 1px solid #fffdf5; border-radius: 50%; aspect-ratio: 1; }
.orbit-outer { width: 88%; max-width: 610px; }
.orbit-inner { width: 74%; max-width: 505px; }
.brand-card { position: relative; width: min(84%, 530px); padding: clamp(14px, 3.7vw, 64px); border-radius: clamp(22px, 3.3vw, 52px); background: #fff; border: 1px solid #fffdfa; box-shadow: 0 25px 70px #5b4a4630; backdrop-filter: blur(10px); }
.brand-card img { width: 100%; }
.dot { position: absolute; border-radius: 50%; }
.dot-pink { width: clamp(22px, 4.8vw, 72px); aspect-ratio: 1; top: 15%; right: 11%; background: #e7aab9; }
.dot-gold { width: clamp(10px, 1.5vw, 24px); aspect-ratio: 1; top: 19%; left: 16%; background: #efb487; }
.dot-green { width: clamp(20px, 3.5vw, 56px); aspect-ratio: 1; bottom: 14%; left: 10%; background: #a2c9bc; }
.section { padding-block: clamp(38px, 5.5vw, 94px); }
.about { display: grid; gap: 1rem 3rem; }
.about-copy { align-self: center; }
.about-copy p, .section-head > p:last-child, .profile-copy > p, .contact p { color: var(--muted); }
.about-copy p { max-width: 61ch; }
.text-link { width: fit-content; display: inline-flex; align-items: center; gap: .38rem; min-height: 44px; color: var(--green); font-weight: 750; font-size: .9rem; text-decoration: underline; text-decoration-color: #739789; text-underline-offset: .23em; }
.text-link:hover { text-decoration-thickness: 2px; }
.services { background: #eef1e7; border-block: 1px solid #e0e5d8; }
.section-head { margin-bottom: clamp(18px, 2.6vw, 38px); }
.section-head h2 + p { margin-top: .65rem; }
.service-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 23px); }
.service { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(16px, 2vw, 30px); border: 1px solid #dce3d7; border-radius: 23px; background: #fffdf7; transition: box-shadow .2s, transform .2s; }
@media (hover: hover) { .service:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #24382d12; } }
.service-icon { width: 45px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 15px; background: #e0eee4; color: #285647; }
.service:nth-child(4n + 2) .service-icon { background: #f5e0da; color: #814435; }
.service:nth-child(4n + 3) .service-icon { background: #eae2f3; color: #60487f; }
.service:nth-child(4n + 4) .service-icon { background: #f6e9cf; color: #72551b; }
.service h3 { margin: .8rem 0 .35rem; font-size: 1.13rem; line-height: 1.25; }
.service p { font-size: .95rem; color: var(--muted); margin-bottom: .35rem; }
.service .text-link { position: relative; z-index: 1; margin-top: auto; }
.team-list { display: grid; gap: 16px; }
.profile { display: grid; align-items: center; overflow: hidden; border: 1px solid #e9dfd4; border-radius: 27px; background: #fffaf2; }
.portrait { height: 100%; display: grid; place-items: center; padding: clamp(18px, 4vw, 48px); background: radial-gradient(ellipse at 85% 25%, #f1dce4, transparent 63%), #e5ede3; }
.portrait img { width: min(100%, 320px); }
.profile-copy { padding: clamp(20px, 4vw, 57px); }
.profile h3 { font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: 1.1; }
.profile-copy p { max-width: 65ch; }
.profile-copy .credential { margin-top: .42rem; font-weight: 750; color: var(--green); }
.credential span, .credits span { padding-inline: .2em; }
.contact { background: #254a3e; color: #fffaf1; }
.contact-inner { display: grid; align-items: center; gap: 1.4rem 3rem; }
.contact .eyebrow, .contact p { color: #e4f1e7; }
.contact h2 + p { margin-top: .7rem; max-width: 44ch; }
.contact .button { background: #f7ebd8; color: #253b31; }
.contact .button:hover { background: #fffaf0; }
.contact-links { display: grid; gap: .65rem; }
.contact-links a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .75rem; color: #fffaf1; text-decoration: none; border: 1px solid #a7c5b480; border-radius: 16px; background: #ffffff0a; }
.contact-links a:hover { background: #ffffff1c; }
.contact :focus-visible { outline-color: #fff3d7; }
.contact-links small { display: block; color: #e3eee6; font-size: .86rem; overflow-wrap: anywhere; }
.footer { padding-block: 21px 14px; background: #f4ece0; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.credits { margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid #dfd7ca; font-size: .83rem; color: var(--muted); }
@media (min-width: 620px) {
  .about, .contact-inner { grid-template-columns: .95fr 1fr; }
  .profile { grid-template-columns: minmax(215px, .72fr) 1.35fr; }
}
@media (min-width: 850px) and (any-pointer: fine), (min-width: 1100px) {
  .header { flex-wrap: nowrap; padding-inline: 1.2rem .7rem; }
  .brand img:first-child { width: 41px; }
  .brand img:last-child { width: 127px; }
  .menu { width: auto; gap: 0 clamp(12px, 2.1vw, 40px); }
  .menu-toggle { display: none !important; }
  .header-cta { display: inline-flex !important; min-height: 44px; }
  .hero { grid-template-columns: 1.06fr 1fr; min-height: clamp(430px, 40vw, 690px); }
  .hero-copy { padding-block: clamp(32px, 4.3vw, 76px); padding-right: 0; }
  .hero-art { padding: 40px; }

}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-art { animation: enter .55s ease-out both; }
  .hero-art { animation-delay: .1s; }
  @keyframes enter { from { opacity: 0; transform: translateY(9px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


.portrait-placeholder { min-height: 118px; }
.portrait-placeholder span {
  display: grid;
  place-items: center;
  width: clamp(62px, 10vw, 94px);
  aspect-ratio: 1;
  border: 1px solid #fffaf2;
  border-radius: 50%;
  background: #fffaf2a8;
  color: var(--green);
}
.portrait-placeholder svg { width: 44%; height: 44%; }

@media (min-width: 550px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 850px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.service-trigger { position: absolute; inset: 0; border-radius: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; }
.service-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: #fffdf7;
  box-shadow: 0 20px 60px #18292136;
}
.service-dialog::backdrop, .photo-dialog::backdrop { background: #172b25a0; backdrop-filter: blur(6px); }
html:has(.service-dialog[open], .photo-dialog[open]) { overflow: hidden; }
.service-dialog h2 { margin: .75rem 0; font-size: clamp(2rem, 4vw, 3rem); }
.service-dialog p { color: var(--muted); }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.dialog-close:hover { background: #eef1e7; }
.contact-map { width: 100%; height: 178px; border: 1px solid #a7c5b480; border-radius: 16px; background: #e5ede3; }

@media (width < 850px), (width < 1100px) and (not (any-pointer: fine)) {
  .hero-copy { z-index: 1; }
  .hero .button.secondary { background: #fffdf6; }
}

.space .section-head p:not(.eyebrow) { max-width: 70ch; color: var(--muted); }
.space-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 22px);
}
.space-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e9dfd4;
  border-radius: 20px;
  background: #fffaf2;
}
.space-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.space-gallery img[src$="balanco-infantil.jpeg"] { object-position: center 68%; }
@media (min-width: 850px) {
  .space-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.space-gallery a { display: block; cursor: zoom-in; }
.space-gallery a:focus-visible { outline-offset: -5px; }
.photo-dialog {
  width: max-content;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  padding: 56px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdf7;
}
.photo-dialog img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 100px);
  object-fit: contain;
  margin-inline: auto;
}
