:root {
  --wine: #5c1a24;
  --wine-deep: #3a1017;
  --wine-soft: #7a2a36;
  --brass: #c9a36a;
  --brass-pale: #e4d0aa;
  --ink: #161314;
  --ink-soft: #2a2426;
  --paper: #f8f4ee;
  --cream: #efe6d8;
  --line: #ddd2c3;
  --muted: #6a615a;
  --whatsapp: #128c7e;
  --ok: #1f6b43;
  --err: #8b1e2d;
  --shadow: 0 18px 40px rgba(22, 19, 20, .12);
  --radius: 18px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--wine-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem .8rem; z-index: 50; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: .45rem;
}
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: #3d3634; max-width: 38rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: 999px; padding: .78rem 1.2rem;
  font-weight: 600; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-dark { background: var(--wine); color: #fff; }
.btn-dark:hover { background: var(--wine-deep); color: #fff; }
.btn-gold { background: var(--brass); color: var(--ink); }
.btn-gold:hover { background: var(--brass-pale); color: var(--ink); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-outline:hover { background: #fff; color: var(--wine); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #0e7368; color: #fff; }
.btn-nav { background: var(--wine); color: #fff; padding: .55rem .95rem; font-size: .92rem; }
.btn-nav:hover { color: #fff; background: var(--wine-deep); }
.site-nav > a.btn-nav,
.site-nav > a.btn-nav:hover,
.site-nav > a.btn-nav:focus {
  color: #fff;
}
.text-link { font-weight: 600; border-bottom: 1px solid currentColor; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 244, 238, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand img { width: 58px; height: 58px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.35rem; }
.brand-text small { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav > a, .nav-sub-row > a { color: var(--ink-soft); font-weight: 500; }
.site-nav > a.is-active, .has-sub.is-active > .nav-sub-row > a { color: var(--wine); }
.has-sub { position: relative; }
.nav-sub-row { display: flex; align-items: center; gap: .15rem; }
.sub-toggle { border: 0; background: none; cursor: pointer; color: inherit; display: none; }
.submenu {
  display: none; position: absolute; top: calc(100% + .6rem); left: 0;
  min-width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: .55rem; box-shadow: var(--shadow);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu { display: grid; }
.submenu a { display: block; padding: .45rem .65rem; border-radius: 8px; color: var(--ink); }
.submenu a:hover { background: var(--cream); }
.submenu a.sub-child { padding-left: 1.1rem; font-size: .92rem; color: var(--muted); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 9px; }

.hero {
  position: relative; overflow: hidden;
  background: var(--wine-deep);
  color: #f6eee4;
  min-height: 78vh;
  display: grid; align-items: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(58,16,23,.92) 0%, rgba(58,16,23,.72) 46%, rgba(58,16,23,.28) 100%),
    url("../images/hero-ofis.jpg") center/cover no-repeat;
}
.hero .container { position: relative; z-index: 1; padding: 4.5rem 0 4.2rem; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { color: #eadcc8; }
.hero .lead a { color: var(--brass-pale); }
.hero-photo { display: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip {
  border: 1px solid rgba(201,163,106,.4);
  color: var(--brass-pale);
  border-radius: 999px; padding: .28rem .7rem; font-size: .86rem;
}

.section { padding: 4.2rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.band-cream { background: var(--cream); }
.band-wine { background: var(--wine-deep); color: #f3e8dc; }
.band-wine h2, .band-wine h3 { color: #fff; }
.band-wine .muted { color: #d8c7b4; }

.card-grid, .principle-grid, .list-services {
  display: grid; gap: 1rem;
}
.card-grid { grid-template-columns: repeat(3, 1fr); }
.card, .principle {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.3rem; box-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.card:hover { border-color: var(--brass); }
.card-icon {
  font-family: var(--serif); color: var(--brass); font-size: 1.2rem; margin-bottom: .4rem;
}
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center;
}
.split img { border-radius: 22px; width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  background: var(--wine); color: #fff; border-radius: 24px; padding: 1.6rem 1.8rem;
}
.cta-band h2 { color: #fff; margin: 0 0 .4rem; }
.cta-band p { margin: 0; color: #ead9c8; }

.page-hero {
  background: linear-gradient(160deg, var(--wine-deep), var(--wine));
  color: #f6eee4; padding: 2.6rem 0 2.2rem;
}
.page-hero h1 { color: #fff; }
.page-hero .muted { color: #decfbe; }
.page-hero .btn-outline { color: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; margin-bottom: .8rem; }
.breadcrumb a, .breadcrumb span { color: var(--brass-pale); }

.service-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.article { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem 1.7rem 2rem; }
.prose p { max-width: 62ch; }
.prose h2 { margin-top: 1.8rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.faq-block { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.accordion summary { cursor: pointer; font-weight: 600; }
.accordion p { margin: .6rem 0 0; color: var(--muted); }

.sidebar { position: sticky; top: 96px; display: grid; gap: 1rem; }
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.15rem 1.2rem;
}
.side-cta { background: var(--wine-deep); color: #f4eadf; }
.side-cta h2 { color: #fff; }
.side-cta .eyebrow { color: var(--brass); }
.side-cta p { color: #dbcbb8; }
.side-links { display: grid; gap: .45rem; }
.side-links a { color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; }
.form { display: grid; gap: 1rem; }
.form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.form input, .form textarea, .form select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem .85rem; font: inherit; background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; }
.map-wrap { border-radius: 18px; overflow: hidden; margin-top: 1rem; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; }
.legal-note { font-size: .9rem; color: var(--muted); }

.list-services { grid-template-columns: 1fr 1fr; }
.list-services a {
  display: grid; gap: .25rem; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 1rem 1.1rem;
}
.list-services a:hover { border-color: var(--brass); }
.list-services span { color: var(--muted); font-size: .95rem; }

.site-footer { background: #120e10; color: #d8cdc2; padding: 3rem 0 1.2rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer a { color: #e8ddd1; }
.site-footer a:hover { color: var(--brass); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 1.6rem; }
.footer-lead { color: #cbbfb3; }
.footer-bottom { margin-top: 2rem; border-top: 1px solid #2a2224; padding-top: 1rem; }
.footer-phone { color: var(--brass-pale) !important; font-weight: 600; }
.brand-footer { margin-bottom: 1rem; color: #fff; }

.float-cta {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: grid; gap: .55rem;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow);
}
.float-call { background: var(--wine); }
.float-wa { background: var(--whatsapp); }
.float-svg { width: 24px; height: 24px; }
.float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.alert { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert-ok { background: #e7f4ec; color: var(--ok); }
.alert-err { background: #f8e8ea; color: var(--err); }

.courts-grid { grid-template-columns: repeat(3, 1fr); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0; }
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(201,163,106,.25);
  border-radius: 16px; padding: 1rem 1.1rem;
}
.stat strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--brass); }

@media (max-width: 980px) {
  .card-grid, .courts-grid, .footer-grid, .service-grid, .contact-grid, .split, .list-services { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 78px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem; flex-direction: column; align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .sub-toggle { display: inline-flex; }
  .submenu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 .4rem; }
  .has-sub.is-open .submenu { display: grid; }
  .sidebar { position: static; }
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
