@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@property --mx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
@property --my {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 20%;
}

:root {
  color-scheme: light;

  --paper: #f6f3ec;
  --paper-deep: #ece6da;
  --surface: #fffdf8;

  --ink: #161a22;
  --ink-rgb: 22, 26, 34;
  --ink-soft: #4b5160;
  --ink-muted: #626878;
  --line: rgba(22, 26, 34, 0.12);
  --line-strong: rgba(22, 26, 34, 0.22);

  --accent: #2446d6;
  --accent-hover: #1b36b0;
  --accent-rgb: 36, 70, 214;
  --on-accent: #ffffff;
  --accent-on-ink: #7d9bff;

  --on-ink: #f6f3ec;
  --on-ink-soft: #b9bcc6;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;

  --container-w: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  animation: pageFadeIn .5s ease;
}
::selection { background: rgba(var(--accent-rgb), 0.16); color: var(--ink); }

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.dot { color: var(--accent); }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.1em;
  padding: 3px 12px;
  background: var(--paper);
  border-radius: 999px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.08), 0 10px 22px -10px rgba(var(--accent-rgb), 0.7);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.08), 0 16px 30px -12px rgba(var(--accent-rgb), 0.75);
}
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.btn-small { padding: 9px 16px; font-size: .86rem; gap: 8px; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .fill { fill: currentColor; stroke: none; }
.icon-phone { transform-origin: 50% 60%; }
.btn:hover .icon-phone { animation: buzz .55s ease; }
.icon-chat .fill { transform-box: fill-box; transform-origin: center; }
.btn:hover .icon-chat .fill { animation: typing 1s ease infinite; }
.btn:hover .icon-chat .fill:nth-of-type(2) { animation-delay: .15s; }
.btn:hover .icon-chat .fill:nth-of-type(3) { animation-delay: .3s; }

@keyframes buzz {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(11deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(4deg); }
}
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .55; }
  30% { transform: translateY(-2.5px); opacity: 1; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  animation: fadeDown .5s ease both;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header .btn-primary { box-shadow: 0 6px 14px -8px rgba(var(--accent-rgb), 0.8); }
.site-header .btn-primary:hover { box-shadow: 0 10px 20px -10px rgba(var(--accent-rgb), 0.85); }
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 26px -18px rgba(var(--ink-rgb), 0.45);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.logo-mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 17%;
  box-shadow: 0 6px 14px -8px rgba(var(--ink-rgb), 0.7);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
.logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-left: 3px;
  transition: color .25s ease;
}
.logo:hover .logo-sub { color: var(--ink); }
.brand { color: var(--accent); font-weight: 700; }

@media (max-width: 539px) {
  .logo-text { display: none; }
}

.hero-simple {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 11vw, 104px) clamp(80px, 12vw, 120px);
  text-align: center;
  overflow: hidden;
  transition: --mx .5s ease-out, --my .5s ease-out;
}
.hero-simple::before,
.not-found::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle, rgba(var(--ink-rgb), 0.16) 1.1px, transparent 1.6px);
  background-size: 24px 24px;
  background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
  animation: fadeIn 1.2s ease both;
}
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(var(--accent-rgb), 0.9) 1.5px, transparent 2px);
  background-size: 24px 24px;
  background-position: 50% 0;
  -webkit-mask-image: radial-gradient(170px circle at var(--mx) var(--my), #000, transparent);
  mask-image: radial-gradient(170px circle at var(--mx) var(--my), #000, transparent);
  animation: fadeIn 1.2s .5s ease both;
}
.brand-mark {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  border-radius: 17%;
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.1), 0 18px 34px -16px rgba(var(--ink-rgb), 0.65);
  animation: stampIn .75s cubic-bezier(.2, .9, .3, 1.2) both;
}
.hero-simple .eyebrow { animation: fadeUp .6s ease both; }
.hero-simple h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin-bottom: .45em;
  animation: fadeUp .6s .1s ease both;
}
.hero-simple h1 .dot {
  display: inline-block;
  animation: dotDrop .55s .8s cubic-bezier(.3, 1.6, .5, 1) both;
}
.hero-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2em;
  animation: fadeUp .6s .2s ease both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-actions .btn { animation: fadeUp .6s ease both; }
.hero-actions .btn:nth-child(1) { animation-delay: .3s; }
.hero-actions .btn:nth-child(2) { animation-delay: .4s; }
.hero-actions .btn:nth-child(3) { animation-delay: .5s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stampIn {
  0% { opacity: 0; transform: scale(1.35) rotate(-8deg); }
  60% { opacity: 1; transform: scale(.96) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes dotDrop {
  from { opacity: 0; transform: translateY(-.6em) scale(.4); }
  to { opacity: 1; transform: none; }
}

.contato {
  background: var(--paper-deep);
  padding-block: clamp(72px, 10vw, 104px);
  border-top: 1px solid var(--line);
}
.contato-inner { text-align: center; perspective: 1000px; }
.contato h2 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin-bottom: .4em;
}
.contato h2::after,
.legal-hero h1::after {
  content: "";
  display: block;
  width: 0;
  height: 8px;
  margin: 16px auto 0;
  background:
    radial-gradient(circle closest-side, var(--accent) 94%, transparent) right center / 8px 8px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left center / calc(100% - 6px) 2px no-repeat;
  transition: width .8s cubic-bezier(.6, 0, .2, 1) .15s;
}
.contato-inner.is-visible h2::after { width: 64px; }
.contato-horario {
  color: var(--ink-soft);
  margin-top: 0;
}
.contact-list {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  text-align: left;
  margin: 36px auto;
  padding: 6px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.04), 0 22px 44px -28px rgba(var(--ink-rgb), 0.45);
  overflow: hidden;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform .2s ease-out, box-shadow .3s ease-out, border-color .3s ease-out;
  will-change: transform;
}
.contact-list:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.04), 0 30px 54px -28px rgba(var(--ink-rgb), 0.5);
}
.contact-list::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(240px circle at var(--cx, 50%) var(--cy, 50%), rgba(var(--accent-rgb), 0.09), transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.contact-list:hover::after { opacity: 1; }
.contact-list li {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 0; }
.contact-list li::after {
  content: "";
  order: 1;
  flex: 1 1 16px;
  min-width: 16px;
  height: 4px;
  background-image: radial-gradient(circle, rgba(var(--ink-rgb), 0.3) 1.2px, transparent 1.6px);
  background-size: 7px 4px;
  background-repeat: repeat-x;
  transition: filter .25s ease;
}
.contact-list strong {
  order: 0;
  color: var(--ink-muted);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  transition: color .25s ease;
}
.contact-list a {
  order: 2;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.12rem;
  white-space: nowrap;
  transition: color .2s ease;
}
.contact-list li:hover strong,
.contact-list a:hover { color: var(--accent); }
.contact-list li:hover::after {
  background-image: radial-gradient(circle, rgba(var(--accent-rgb), 0.75) 1.2px, transparent 1.6px);
}
.contact-list span { color: var(--ink); font-weight: 600; font-size: 1.02rem; }

@media (max-width: 400px) {
  .container { padding-inline: 20px; }
  .contact-list { padding-inline: 20px; }
}
@media (max-width: 359px) {
  .eyebrow::before, .eyebrow::after { display: none; }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .contact-list li::after { display: none; }
}

.site-footer-simple {
  background: var(--ink);
  color: var(--on-ink-soft);
  -webkit-font-smoothing: antialiased;
}
.site-footer-simple :focus-visible { outline-color: var(--accent-on-ink); }
.footer-simple-inner {
  text-align: center;
  padding-block: 28px;
  font-size: .85rem;
}
.footer-simple-inner p { margin: 0; color: var(--on-ink-soft); }
.site-footer-simple .brand { color: var(--on-ink); }
.site-footer-simple .dot { color: var(--accent-on-ink); }
.footer-legal {
  margin-top: 8px;
  font-size: .78rem;
}
.footer-links { margin-top: 10px; font-size: .82rem; }
.footer-links a {
  color: var(--on-ink);
  text-decoration: underline;
  text-decoration-color: rgba(246, 243, 236, 0.35);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.footer-links a:hover { color: var(--accent-on-ink); text-decoration-color: currentColor; }

.legal-hero {
  padding-block: 72px 36px;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); }
.legal-hero h1::after { margin: 16px 0 0; }
.legal-hero .container.is-visible h1::after { width: 64px; }
.legal-hero .legal-meta { color: var(--ink-soft); margin: 0; font-size: .95rem; }

.legal-content { padding-block: 48px 96px; }
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.1em;
  margin-bottom: .55em;
  letter-spacing: -.01em;
}
.legal-content .reveal-item:first-child > h2 { margin-top: 0; }
.legal-content h3 {
  font-size: 1rem;
  color: var(--ink);
  margin: 1.6em 0 .5em;
  font-weight: 700;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.legal-content li { margin-bottom: .45em; color: var(--ink-soft); }
.legal-content li::marker { color: var(--accent); }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--accent-hover); }

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.6em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.legal-table-wrap table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
.legal-table-wrap table:not(:has(thead)) { min-width: 0; }
.legal-table-wrap th, .legal-table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; }
.legal-table-wrap th {
  color: var(--ink);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(var(--ink-rgb), 0.035);
  border-bottom: 1px solid var(--line);
}
.legal-table-wrap td { color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.legal-table-wrap tr:last-child td { border-bottom: none; }
.legal-table-wrap td:first-child { color: var(--ink); font-weight: 600; }

.legal-closing {
  margin-top: 2.4em;
  font-size: .85rem;
  color: var(--ink-muted);
}

.not-found {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 24px;
  overflow: hidden;
}
.not-found h1 { font-size: clamp(2.2rem, 6vw, 3rem); }
.not-found p:not(.eyebrow) { margin-bottom: 1.8em; }

.reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible > * { opacity: 1; transform: none; }
.reveal.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal.is-visible > *:nth-child(2) { transition-delay: .1s; }
.reveal.is-visible > *:nth-child(3) { transition-delay: .2s; }
.reveal.is-visible > *:nth-child(4) { transition-delay: .3s; }
.reveal.is-visible > *:nth-child(5) { transition-delay: .4s; }

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-item.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal > *, .reveal-item { opacity: 1; transform: none; transition: none; }
  .hero-simple { transition: none; }
  html { scroll-behavior: auto; }
}
