@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/instrument-serif.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/open-sans.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --deep: #250b12;
  --white: #f7f6f1;
  --mos-burgundy: #800000;
  --mos-burgundy-hover: #a01924;
  --mos-burgundy-edge: #b7646e;
  --body: #f1e6e4;
  --accent: #f3d8de;
  --whatsapp: #25d366;
  --line: #f4e3db6b;
  --gutter: clamp(1.25rem, 7vw, 6.5rem);
  --header: 5.45rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--deep); color: var(--white); font-size: 1rem; line-height: 1.62; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.14; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section:focus { outline: none; }
.container { width: min(calc(100% - 2 * var(--gutter)), 73rem); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .65rem; background: var(--deep); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 5; }
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: center; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { display: grid; place-items: center; flex: none; width: clamp(3.25rem, 6.4vw, 4.6rem); padding: .18rem .23rem; }
.brand-logo img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }

.panel { isolation: isolate; position: relative; overflow: clip; min-height: min(100svh, 62rem); display: grid; align-content: center; padding: 4.5rem 0 7.3rem; }
.panel::before { content: ''; position: absolute; inset: 0; background: url('/assets/grain.png'); opacity: .31; mix-blend-mode: soft-light; z-index: -1; pointer-events: none; }
.burgundy { background: radial-gradient(ellipse at 65% 45%, #681429 0, #4d0f20 43%, #350a16 77%, #270910 100%); }
.light-panel {
  color-scheme: light;
  --white: #281c20;
  --body: #473d40;
  --accent: #780e26;
  --line: #701c342e;
  background: #fff;
  color: var(--white);
}
.light-panel .panel-photo { opacity: .14; }
.light-panel .specialties details { border-color: var(--line); }
.light-panel .specialties summary { color: var(--white); }
.panel-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  opacity: .42;
  mask-image: linear-gradient(105deg, transparent 2%, #0008 48%, #000 100%);
  pointer-events: none;
}
.panel-inner { position: relative; }
.section-grid, .hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero { padding-top: calc(var(--header) + 2rem); min-height: 100svh; }

.center-rule {
  position: fixed;
  z-index: 2;
  top: calc(var(--header) + .35rem);
  bottom: calc(3.5rem + env(safe-area-inset-bottom));
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, #f1ded187, #f1ded13b 19%, transparent 37% 68%, #f1ded12b 86%, #f1ded187);
  pointer-events: none;
}
.scroll-next {
  position: fixed;
  z-index: 3;
  bottom: calc(.75rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #f1ded16b;
  border-radius: 50%;
  background: #290b13ed;
  color: var(--white);
  transition: background-color 220ms, color 220ms;
}
.scroll-next:hover { background-color: var(--mos-burgundy); color: #fff; }
.scroll-next span {
  display: block;
  width: .65rem;
  height: .65rem;
  margin-top: -.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.scroll-next.is-return span { margin-top: .2rem; transform: rotate(225deg); }
.has-scroll-navigation .next-panel { display: none; }
.has-scroll-navigation .site-footer { padding-bottom: calc(4.15rem + env(safe-area-inset-bottom)); }

.opening { font-weight: 350; font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.62; color: var(--body); max-width: 55ch; }
.opening p + p { margin-top: .95rem; }
h1, h2 { text-align: center; margin-inline: auto; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.hero-heading .break-mobile { display: none; }
.hero-heading h1 { font-size: min(4.85cqi, 2.25rem); }
.hero-heading h1 { line-height: 1.28; }
.section-intro, .copy p, .steps p, .specialties details p { text-wrap: pretty; }
.copy { max-width: 57ch; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.05rem; gap: .6rem; border: 1px solid #ffffff36; border-radius: 2rem; background: var(--whatsapp); color: #062b17; font-size: .875rem; font-weight: 350; letter-spacing: .065em; line-height: 1.4; text-transform: uppercase; text-align: center; transition: background 220ms, color 220ms; }
.button:hover, .whatsapp-float:hover { background: #58e28b; }
.whatsapp-icon {
  width: 1.4rem; height: 1.4rem; flex: none; display: inline-block;
  background: currentColor; mask: url('/assets/whatsapp.svg') center / contain no-repeat;
}
.whatsapp-float {
  display: grid; place-items: center; position: fixed; z-index: 1;
  right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--whatsapp); color: #062b17;
  box-shadow: 0 3px 14px #142d1e3d;
}
.whatsapp-float .whatsapp-icon { width: 1.85rem; height: 1.85rem; }
@media (prefers-reduced-motion: no-preference) {
  .button, .whatsapp-float { animation: whatsapp-pulse 3.4s ease-out infinite; }
  @keyframes whatsapp-pulse {
    0%, 55%, 100% { box-shadow: 0 0 0 0 #25d36600; }
    64% { box-shadow: 0 0 0 1px #25d36655; }
    94% { box-shadow: 0 0 0 9px #25d36600; }
  }
}
.hero-heading { container-type: inline-size; width: 100%; text-align: center; }
.opening strong { font-weight: 650; color: var(--white); }
.hero-actions { text-align: center; }
.hero .button { margin-top: 1.35rem; }

.next-panel { position: absolute; inset: auto auto .75rem var(--gutter); display: inline-flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .65rem 0; min-height: 3.25rem; color: var(--white); font-size: .83rem; font-weight: 650; }
.next-panel span { width: 2.35rem; height: 1px; background: currentColor; transition: width 220ms; }
.next-panel:hover span { width: 3.25rem; }

.kicker { text-align: center; color: var(--accent); font-size: .86rem; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; margin-bottom: .9rem; }
.section-intro { margin-top: .95rem; max-width: 54ch; }
.copy, .section-intro, .steps p, .specialties details p, .contact-details p, address { color: var(--body); }
.copy p + p { margin-top: 1rem; }
.editorial-art img { display: block; width: 100%; height: auto; box-shadow: 0 1.1rem 3rem #160e0880; }
.specialties { display: grid; gap: .75rem; margin-top: 1.45rem; padding-inline-start: 1.5rem; position: relative; }
.specialties details { position: relative; border: 1px solid var(--line); border-radius: .65rem; background: #fff; }
.specialties details::before { content: ''; position: absolute; top: 1.3rem; left: -1.43rem; width: .55rem; height: .55rem; border: 1px solid var(--accent); border-radius: 50%; background: #fff; }
.specialties details::after { content: ''; position: absolute; top: 1.55rem; left: -1rem; width: 1rem; height: 1px; background: var(--line); }
.specialties details:not(:last-child) > summary::before { content: ''; position: absolute; top: 1.85rem; bottom: -2.2rem; left: -1.18rem; width: 1px; background: var(--line); pointer-events: none; }
.specialties details[open]::before { background: var(--accent); }
.specialties summary { display: flex; justify-content: space-between; align-items: center; gap: .65rem; min-height: 3.05rem; padding: .5rem .85rem; font-weight: 660; list-style: none; cursor: pointer; }
.specialties summary::-webkit-details-marker { display: none; }
.specialties summary span { flex: none; width: .65rem; height: .65rem; border: solid var(--accent); border-width: 0 1px 1px 0; transform: rotate(45deg); transition: transform 220ms; }
.specialties details[open] summary span { transform: rotate(225deg); }
.specialties details p { padding: 0 .85rem .9rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: etapas; display: grid; gap: .8rem; }
.steps li { counter-increment: etapas; display: grid; grid-template-columns: auto 1fr; gap: .7rem; padding: .95rem; border: 1px solid #f4e3db77; background: #290c164f; }
.steps li::before { content: counter(etapas, decimal-leading-zero); color: var(--accent); font-size: .875rem; font-weight: 600; }
h3 { font-size: 1.06rem; font-weight: 700; }
.steps p { margin-top: .35rem; }
.metrics { display: grid; gap: .85rem; grid-column: 1 / -1; }
.metrics div { display: flex; flex-direction: column-reverse; padding: .9rem 0; border-top: 1px solid var(--line); }
.metrics dd { font-variant-numeric: tabular-nums; font-size: clamp(2.3rem, 5.5vw, 4.6rem); color: var(--accent); font-weight: 320; letter-spacing: -.045em; line-height: 1.1; }
.metrics dt { margin-top: .35rem; }
.contact-actions { display: grid; justify-items: start; gap: .55rem; margin-top: 1.35rem; }
.text-link, .top-link { text-decoration: underline; text-underline-offset: .2em; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; }
.text-link:hover, .site-footer a:hover { color: var(--accent); }
#contato { box-shadow: inset 0 3px var(--mos-burgundy); }
.contact-details > div { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.contact-details h3 { margin-bottom: .55rem; }
.contact-details p { margin-top: .45rem; overflow-wrap: anywhere; }
.offices-heading { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.offices-heading p { color: var(--body); margin-top: .7rem; }
.offices-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.office { min-width: 0; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: #fff; }
.office-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.office-info { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 3vw, 2rem); }
.office-info h3 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; }
.office-notice { align-self: stretch; margin-top: .85rem; padding: .55rem .85rem; border-left: 3px solid var(--accent); background: #f8eef0; color: var(--accent); font-size: .9375rem; font-weight: 600; }
.office-info address { min-height: 2lh; font-style: normal; margin: .65rem 0 1rem; }
.office-info .text-link { color: var(--accent); }
.office-map { width: 100%; margin-top: auto; border-top: 1px solid var(--line); }
.office-map summary { cursor: pointer; padding-block: .6rem; min-height: 44px; }
.office-map iframe { display: block; border: 0; width: 100%; height: 250px; }
@media (min-width: 800px) {
  .offices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}
.site-footer {
  background: var(--deep);
  padding-block: 2rem;
  border-top: 1px solid #ffffff30;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "social brand top";
  align-items: center;
  gap: 1.5rem;
}
.footer-inner a { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; }
.footer-brand { grid-area: brand; justify-self: center; }
.footer-brand .brand-logo { width: 3.5rem; padding: 0; }
.footer-inner .social { grid-area: social; display: flex; gap: 1.25rem; align-items: center; }
.footer-inner .top-link { grid-area: top; justify-self: end; }
@media (max-width: 799px) {
  .footer-inner { grid-template-columns: 1fr; grid-template-areas: "brand" "social" "top"; justify-items: center; gap: .5rem; }
  .footer-inner .social { justify-content: center; gap: 2rem; }
  .footer-inner .top-link { justify-self: center; border-top: 1px solid var(--line); padding-inline: 1.25rem; }
  .offices-grid:not(:has(details[open])) { grid-auto-rows: 1fr; }
}
@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "intro title" "intro actions";
    gap: 0 clamp(3.25rem, 8vw, 7.2rem);
  }
  .hero-heading { grid-area: title; align-self: end; }
  .hero-grid > .opening { grid-area: intro; }
  .hero-actions { grid-area: actions; align-self: start; }
  .section-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(2.25rem, 7.5vw, 7rem); }
  .services-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); }
  .editorial-art { margin: .8rem 0 .8rem 1.1rem; }
  .steps li { padding: 1.2rem; }
  .next-panel { inset-inline-start: auto; right: clamp(2rem, 7.5vw, 7rem); align-items: flex-end; }
}
@media (max-width: 799px) {
  :root { --header: 4.5rem; }
  .hero {
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    padding-block: calc(var(--header) + 2rem) 6.5rem;
  }
  .hero-grid { gap: clamp(2rem, 8vw, 3rem); max-width: 34rem; }
  .hero-heading { width: 100%; justify-self: center; }
  .hero-heading h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: min(9.6cqi, 3.15rem);
    font-weight: 400;
    letter-spacing: -.012em;
    line-height: 1.16;
  }
  .hero-heading .break-mobile { display: inline; }
  .hero-heading .break-desktop { display: none; }
  .opening {
    width: 100%;
    max-width: 46ch;
    margin-inline: auto;
    border-top: 1px solid var(--line);
    padding-top: clamp(1.5rem, 7vw, 2.25rem);
    font-size: 1rem;
    line-height: 1.75;
    text-align: center;
    text-wrap: pretty;
    hyphens: none;
  }
  .opening p + p { margin-top: 1.5rem; }
  .hero-actions { text-align: center; }
  .hero-actions .button { margin-top: 0; padding-inline: .8rem; gap: .45rem; letter-spacing: .045em; }
  .center-rule {
    background: linear-gradient(180deg, #f1ded167, transparent 11% 89%, #f1ded167);
  }
  .editorial-art { max-width: 28rem; }
  .panel-photo { object-position: 60% 50%; opacity: .31; mask-image: linear-gradient(170deg, transparent 6%, #0009 55%, #000); }
}
@media (max-width: 350px), (max-width: 799px) and (max-height: 690px) {
  .has-scroll-navigation .scroll-next { display: none; }
  .has-scroll-navigation .next-panel {
    display: inline-flex;
    align-items: center;
    inset-inline-start: 50%;
    inset-inline-end: auto;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  .next-panel span {
    width: .55rem;
    height: .55rem;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    background: transparent;
    transform: rotate(45deg);
  }
  .next-panel:hover span { width: .55rem; }
  .has-scroll-navigation .site-footer { padding-bottom: 1.2rem; }
  .center-rule { bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: no-preference) {
  .will-reveal { transform: translateY(1.1rem); }
  .will-reveal.is-visible { animation: float-in 680ms cubic-bezier(.21,.65,.3,1) both; }
  .will-reveal:focus-within { animation: none; transform: none; }
  @keyframes float-in { from { opacity: .36; transform: translateY(1.1rem); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

@media (max-width: 799px) {
  .panel:not(.hero) { padding-block: 3.75rem 5.75rem; }
  .light-panel .editorial-art { max-width: none; }
  .light-panel .editorial-art img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: .35rem; }
  .hero .button, .contact-actions .button, .process-button { width: 100%; }
  .site-footer, .has-scroll-navigation .site-footer { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
}

.process-grid, .about-grid {
  --axis-color: #edc0c782;
  position: relative;
}
.about-grid { --axis-color: #80172d69; }
.process-grid::before, .about-grid::before {
  content: '';
  position: absolute;
  inset: -2rem auto -2rem 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--axis-color) 2rem, var(--axis-color) calc(100% - 2rem), transparent);
  pointer-events: none;
}
.process-grid > *, .about-grid > * { position: relative; min-width: 0; }
.process-grid .section-heading { text-align: center; }
.process-grid .section-intro { margin-inline: auto; }
.process-button { margin-top: 1.35rem; }
.process-grid .steps li { border-radius: .45rem; background: #3b1020; }

@media (min-width: 800px) {
  .process-grid, .about-grid { gap: 2rem clamp(3.75rem, 8vw, 7rem); }
  .about-grid { grid-template-rows: auto 1fr; align-items: start; }
  .about-grid .copy { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .about-grid .metrics { grid-column: 1; align-self: start; }
  .about-grid .metrics div {
    display: grid;
    grid-template-columns: clamp(6.75rem, 12vw, 10rem) 1fr;
    align-items: baseline;
    gap: .8rem;
  }
  .about-grid .metrics dd { grid-area: 1 / 1; }
  .about-grid .metrics dt { grid-area: 1 / 2; }
  .about-grid .metrics dd { font-size: clamp(1.85rem, 3.4vw, 3.25rem); }
}
@media (max-width: 799px) {
  .process-grid, .about-grid { max-width: min(100% - 2 * var(--gutter), 37rem); gap: 1.8rem; }
  .process-grid .section-heading, .process-grid .steps li { background: #3b1020; }
  .process-grid .section-heading, .about-grid .section-heading, .about-grid .copy, .about-grid .metrics div {
    padding: 1rem clamp(.8rem, 3vw, 1.5rem);
    border-radius: .45rem;
  }
  .about-grid .section-heading, .about-grid .copy, .about-grid .metrics div { background: #fff; }
  .about-grid .copy { margin-inline: auto; }
  .about-grid .metrics div { align-items: center; text-align: center; border: 1px solid var(--line); }
  .about-grid .metrics dd { font-size: clamp(1.9rem, 7vw, 3rem); }
}

.blog-panel { grid-template-columns: minmax(0, 1fr); background: #fcfaf9; }
.blog-inner { max-width: 48rem; min-width: 0; }
.blog-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-block: 2rem 1rem; scrollbar-color: #aa858c transparent; }
.blog-card { scroll-snap-align: start; min-width: 0; padding: clamp(1.25rem, 4vw, 3.5rem); background: white; border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.blog-card h3 { font: 500 clamp(1.55rem, 4vw, 2.3rem)/1.15 Georgia, serif; color: var(--accent); text-wrap: balance; }
.blog-card p { margin-top: 1rem; color: var(--body); }
.blog-source { display: inline-flex; align-items: center; min-height: 44px; margin-top: .6rem; font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.blog-controls { display: flex; gap: .75rem; align-items: center; justify-content: center; }
.blog-controls button { border: 1px solid var(--line); border-radius: 2rem; background: white; padding: .4rem 1rem; min-height: 44px; cursor: pointer; }
.blog-controls button:disabled { opacity: .48; cursor: default; }
.blog-count { font-size: .875rem; font-variant-numeric: tabular-nums; }
