:root {
  color-scheme: light;
  --ink: #232342;
  --muted: #58566c;
  --violet: #f2eef7;
  --paper: #fcfaf7;
  --rule: #ded8e3;
  --red: #ae2037;
  --red-hover: #8f162b;
  --navy: #242450;
  --green: #10734a;
  --display: Georgia, "Times New Roman", serif;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .19em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #535bd3; outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }
.shell { width: min(calc(100% - 3rem), 71rem); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; top: .6rem; left: .6rem; z-index: 5; padding: .65rem 1rem; background: white; }

.site-header { background: var(--paper); }
.header-inner, .footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
}
.header-inner { min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand img { width: 3.5rem; height: 3.5rem; object-fit: contain; }
.brand span { font-family: var(--display); font-size: 1.47rem; line-height: 1.06; }
.brand small {
  display: block; margin-top: .24rem; color: var(--muted); font: 570 .73rem system-ui, sans-serif;
}
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .3rem 1.45rem; align-items: center; }
.site-header nav a, .site-footer nav a {
  display: inline-flex; min-height: 2.75rem; align-items: center;
  font-size: .9rem; font-weight: 630; text-decoration: none;
}
.site-header nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.site-header .nav-quote {
  min-height: 2.55rem; padding: .25rem .9rem; border: 1px solid #bfb7cb; border-radius: .38rem;
}

.hero { background: var(--violet); border-block: 1px solid var(--rule); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 6vw, 5.5rem); padding-block: clamp(2rem, 5vw, 4.4rem);
}
.stitch {
  display: flex; align-items: center; gap: .65rem; margin: 0 0 .7rem;
  color: var(--red); font-size: .87rem; font-weight: 680;
}
.stitch::before { content: ""; width: 1.8rem; border-top: 2px dashed currentColor; }
h1, h2 { margin: 0; font: 500 2.5rem/1.05 var(--display); letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 6.4vw, 5.55rem); line-height: .99; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.85rem); }
.hero-intro { color: var(--muted); max-width: 40ch; margin: 1.28rem 0 1.6rem; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.15rem; }
.button {
  display: inline-flex; min-height: 3.15rem; align-items: center; justify-content: center; gap: .7rem;
  padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: .42rem;
  font-size: .95rem; font-weight: 680; text-decoration: none;
}
.primary { color: white; background: var(--red); }
.primary:hover { background: var(--red-hover); }
.primary:disabled { opacity: .66; cursor: default; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .4rem; font-weight: 650; }
.hero-photo { margin: 0; }
.photo-frame {
  overflow: hidden; padding: .52rem; border: 1px solid #ddd5e5;
  border-radius: .25rem 2.05rem .25rem .25rem; background: #fffcfa;
}
.hero-photo img { width: 100%; height: auto; border-radius: .15rem 1.55rem .15rem .15rem; }
.hero-photo figcaption {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .85rem;
  margin-top: .55rem; color: var(--muted); font-size: .84rem;
}
.hero-photo figcaption span:first-child { color: var(--ink); font-weight: 650; }

.services { padding-block: clamp(3.2rem, 7vw, 5.7rem); }
.section-lead {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .73fr);
  gap: .9rem 2rem; align-items: end;
}
.section-lead p { max-width: 44ch; margin: 0; color: var(--muted); }
.service-list {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem;
  margin: 2.15rem 0 0;
}
.service-list div { padding-top: .9rem; border-top: 1px dashed #beb3c6; }
.service-list dt { font-weight: 710; }
.service-list dd { margin: .35rem 0 0; color: var(--muted); font-size: .94rem; }

.schools {
  padding-block: clamp(3rem, 6vw, 4.8rem);
  border-top: 1px solid var(--rule);
  background: #fffefa;
}
.school-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
  margin: 1.8rem 0 1.15rem; padding: 0; list-style: none;
}
.school-list li { min-width: 0; }
.school {
  display: flex; flex-direction: column; align-items: center; gap: .65rem;
  height: 100%; padding: 1.15rem .6rem; border: 1px solid var(--rule); border-radius: .4rem;
  background: white; text-align: center; text-decoration: none;
}
.school:hover { border-color: #a99ab4; text-decoration: underline; }
.school img { width: 7rem; height: 4.5rem; object-fit: contain; }
.school strong { font-size: .89rem; line-height: 1.3; }
.school-note { margin: .8rem 0 .25rem; color: var(--muted); font-size: .92rem; }

.portfolio { padding-block: clamp(3.2rem, 7vw, 5.7rem); border-top: 1px solid var(--rule); background: #f8f5fa; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1.7rem 1.35rem; }
.filters button {
  min-height: 2.75rem; padding: .45rem .86rem; border: 1px solid #cbc3d3; border-radius: 2rem;
  background: transparent; color: var(--ink); font-size: .86rem; font-weight: 650;
}
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: white; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.85rem 1.1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.work-link { display: block; text-decoration: none; }
.work-image {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  overflow: hidden; border: 1px solid #e1dae6; border-radius: .35rem; background: white;
}
.work-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.expand {
  display: grid; place-items: center; position: absolute; right: .52rem; bottom: .52rem;
  width: 2rem; height: 2rem; border: 1px solid #d8d3df; border-radius: 50%;
  background: white; color: var(--ink); font-size: 1.2rem;
}
.work-link:hover .expand, .work-link:focus-visible .expand { background: var(--navy); color: white; }
.work-tag { display: block; margin-top: .62rem; color: var(--muted); font-size: .78rem; }
.work-name { display: block; margin-top: .12rem; font-weight: 690; }
.work-link:hover .work-name { text-decoration: underline; }

.contact { padding-block: clamp(3.2rem, 7vw, 5.7rem); background: var(--navy); color: white; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); gap: clamp(1.5rem, 6vw, 5.5rem); }
.contact .stitch { color: #ffc2cd; }
.contact-copy > p:not(.stitch) { max-width: 40ch; color: #e8e3f4; }
.contact-person { display: grid; gap: .2rem; margin-top: 1.5rem; }
.contact-person a { width: fit-content; color: #f3eafa; }
.quote-form { display: grid; gap: .9rem; padding: clamp(1rem, 3vw, 1.6rem); border-radius: .65rem; background: #fffcfa; color: var(--ink); }
.form-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .85rem; }
.quote-form label { display: block; font-size: .91rem; font-weight: 650; }
.quote-form small { color: var(--muted); font-size: .8rem; font-weight: 450; }
.quote-form :is(input, select, textarea) {
  display: block; width: 100%; min-width: 0; min-height: 2.85rem; margin-top: .34rem; padding: .6rem .72rem;
  border: 1px solid #a49caf; border-radius: .35rem; background: white; color: var(--ink);
  font-size: 1rem; font-weight: 400;
}
.quote-form textarea { min-height: 6.5rem; resize: vertical; }
.form-end p { margin: .62rem 0 0; color: var(--muted); font-size: .84rem; }

.site-footer { padding-block: 1.8rem calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
.footer-brand { display: grid; gap: .25rem; }
.footer-brand span { color: var(--muted); font-size: .88rem; }
.whatsapp {
  position: fixed; z-index: 3; display: grid; place-items: center;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); right: calc(1rem + env(safe-area-inset-right, 0px));
  width: 3.55rem; height: 3.55rem; border: 2px solid white; border-radius: 50%;
  color: white; background: var(--green); box-shadow: 0 .27rem .9rem #1a2e3440;
}
.whatsapp:hover { background: #0b5b3b; }
.whatsapp svg { width: 1.77rem; height: 1.77rem; fill: currentColor; }

#visor {
  width: min(calc(100% - 1.5rem), 52rem); max-height: calc(100dvh - 1.5rem); overflow: auto;
  padding: .7rem; border: 0; border-radius: .65rem; color: var(--ink); background: var(--paper);
}
#visor::backdrop { background: #15152bd4; }
.visor-top { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .48rem; }
.visor-top h2 { padding-left: .45rem; font: 650 1rem/1.25 system-ui, sans-serif; letter-spacing: 0; text-wrap: wrap; }
.visor-top button {
  width: 2.75rem; height: 2.75rem; border: 1px solid #c5becd; border-radius: .4rem;
  background: white; color: var(--ink); font-size: 1.4rem;
}
#visor-imagen { width: 100%; height: auto; max-height: min(75dvh, 47rem); object-fit: contain; border-radius: .3rem; background: white; }

@media (max-width: 56rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .shell { width: min(calc(100% - 2rem), 71rem); }
  .hero-inner, .section-lead, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 35rem; }
  .wide-break { display: none; }
  .header-inner { min-height: 4.6rem; }
}
@media (max-width: 36rem) {
  h1 { font-size: clamp(2.55rem, 8.5vw, 3.4rem); }
  .header-inner { gap: .1rem .5rem; flex-wrap: wrap; padding-block: .35rem; }
  .site-header nav { gap: .2rem .65rem; }
  .site-header nav a { font-size: .84rem; }
  .school-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .school img { width: 5.5rem; height: 4rem; }
  .footer-inner { flex-wrap: wrap; gap: .6rem 1.4rem; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
}
@media (max-width: 23rem) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
