/* RHO Advocacia: sistema visual local, sem dependências externas. */

:root {
  color-scheme: light;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wine-950: #211217;
  --wine-900: #35151e;
  --wine-800: #55202d;
  --wine-700: #742437;
  --wine-600: #8d3046;
  --gold-500: #d5b36a;
  --gold-600: #b68c43;
  --ivory-50: #fdfaf4;
  --ivory-100: #f7f1e7;
  --ivory-200: #eee4d3;
  --ink-900: #2c2224;
  --ink-700: #55494c;
  --ink-600: #66595c;
  --line: rgba(53, 21, 30, 0.15);
  --surface: #fdfaf4;
  --surface-soft: #f7f1e7;
  --surface-raised: #ffffff;
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --accent: var(--wine-700);
  --accent-hover: var(--wine-800);
  --accent-text: #ffffff;
  --decorative: var(--gold-600);
  --header: rgba(253, 250, 244, 0.92);
  --shadow-sm: 0 10px 28px rgba(53, 21, 30, 0.08);
  --shadow-lg: 0 28px 90px rgba(53, 21, 30, 0.16);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --container: 75rem;
  --content: 46rem;
  --header-height: 5.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --surface: #180f12;
    --surface-soft: #211217;
    --surface-raised: #2b181e;
    --text: #f9f2e8;
    --text-muted: #d1c4c6;
    --accent: #e1c27f;
    --accent-hover: #f0d799;
    --accent-text: #241419;
    --decorative: #e1c27f;
    --line: rgba(247, 241, 231, 0.14);
    --header: rgba(24, 15, 18, 0.92);
    --shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 32px 100px rgba(0, 0, 0, 0.36);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #180f12;
  --surface-soft: #211217;
  --surface-raised: #2b181e;
  --text: #f9f2e8;
  --text-muted: #d1c4c6;
  --accent: #e1c27f;
  --accent-hover: #f0d799;
  --accent-text: #241419;
  --decorative: #e1c27f;
  --line: rgba(247, 241, 231, 0.14);
  --header: rgba(24, 15, 18, 0.92);
  --shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 32px 100px rgba(0, 0, 0, 0.36);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: clip;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--wine-700);
  color: #ffffff;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 4.75rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.018em;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 0.2rem solid var(--decorative);
  outline-offset: 0.2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-200%);
  border-radius: var(--radius-sm);
  background: var(--wine-950);
  color: #ffffff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100%, var(--content));
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.section-soft {
  background: var(--surface-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.lead {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-weight: 800;
}

.text-link:hover {
  color: var(--accent-hover);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms var(--ease), background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
  color: var(--accent);
}

.button-light {
  background: #ffffff;
  color: var(--wine-900);
}

.button-light:hover {
  background: var(--ivory-100);
}

.button-ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
}

.button-ghost-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--header);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(33, 18, 23, 0.08);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 3.4rem;
  height: 3.4rem;
  flex: 0 0 auto;
  padding: 0.18rem;
  border-radius: 0.9rem;
  background: var(--wine-900);
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 0.28rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-button {
  display: inline-grid;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg,
.nav-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-moon {
  display: none;
}

.theme-toggle[data-current-theme="dark"] .theme-sun {
  display: none;
}

.theme-toggle[data-current-theme="dark"] .theme-moon {
  display: block;
}

.nav-toggle[aria-expanded="true"] .nav-open-icon,
.nav-close-icon {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-close-icon {
  display: block;
}

.site-navigation {
  position: fixed;
  z-index: 90;
  inset: var(--header-height) 0 auto;
  max-height: calc(100vh - var(--header-height));
  padding: 1rem;
  overflow-y: auto;
  visibility: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity 180ms ease, transform 180ms var(--ease);
}

.site-navigation[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.site-navigation ul {
  display: grid;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.site-navigation a {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.site-navigation a:hover,
.site-navigation a[aria-current="page"] {
  color: var(--accent);
}

.header-cta {
  display: none;
}

main {
  min-height: 65vh;
}

.hero {
  position: relative;
  min-height: min(58rem, 100svh);
  padding-top: calc(var(--header-height) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(116, 36, 55, 0.06), transparent 46%),
    var(--surface);
}

.hero::before {
  position: absolute;
  width: 46rem;
  height: 46rem;
  top: -12rem;
  right: -14rem;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      ellipse at 42% 48%,
      transparent 0 1.75rem,
      color-mix(in srgb, var(--decorative) 26%, transparent) 1.8rem 1.87rem
    );
  content: "";
  opacity: 0.75;
  transform: rotate(-18deg) scaleY(0.72);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.hero-copy .lead {
  max-width: 39rem;
  margin-bottom: 2rem;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.hero-note::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--decorative);
  content: "";
}

.hero-media-wrap {
  position: relative;
  min-width: 0;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: min(7vw, var(--radius-lg));
  background: var(--wine-950);
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(33, 18, 23, 0.86));
  content: "";
  pointer-events: none;
}

.hero-media-caption {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.15rem;
  left: 1.25rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
}

.hero-media-caption span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-media-caption strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.hero-seal {
  position: absolute;
  z-index: 3;
  top: -1.25rem;
  left: -0.5rem;
  display: grid;
  width: 5.5rem;
  height: 5.5rem;
  place-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(213, 179, 106, 0.35);
  border-radius: 50%;
  background: var(--wine-900);
  box-shadow: var(--shadow-sm);
}

.hero-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
}

.principles {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 0.8rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.principles strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.section-heading {
  display: grid;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
  gap: 1rem;
}

.section-heading .lead {
  margin-bottom: 0;
}

.practice-grid {
  display: grid;
  gap: 0.85rem;
}

.practice-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, transform 220ms var(--ease), box-shadow 220ms ease;
}

.practice-card:hover {
  transform: translateY(-0.25rem);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: var(--shadow-lg);
}

.practice-card::after {
  position: absolute;
  width: 7rem;
  height: 7rem;
  right: -3rem;
  bottom: -3rem;
  border: 1px solid color-mix(in srgb, var(--decorative) 30%, transparent);
  border-radius: 50%;
  content: "";
}

.practice-index {
  display: block;
  margin-bottom: 2rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.practice-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.legal-note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 0.2rem solid var(--decorative);
  background: color-mix(in srgb, var(--surface-raised) 86%, var(--decorative));
  color: var(--text-muted);
  font-size: 0.88rem;
}

.about-visual {
  position: relative;
  max-width: 34rem;
}

.about-visual::before {
  position: absolute;
  z-index: 0;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--decorative);
  border-radius: var(--radius-lg);
  content: "";
}

.about-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-caption {
  position: relative;
  z-index: 2;
  width: calc(100% - 2rem);
  margin: -2.4rem 1rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.about-caption strong,
.about-caption span {
  display: block;
}

.about-caption span {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.about-copy .lead {
  margin-bottom: 1.25rem;
}

.location-grid {
  display: grid;
  gap: 1rem;
}

.location-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.4rem, 4vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.location-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.location-number {
  color: var(--decorative);
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
}

.location-card address {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-style: normal;
}

.location-contact {
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.location-contact a:hover {
  color: var(--accent);
}

.location-card .button {
  width: 100%;
  margin-top: auto;
}

.online-card {
  position: relative;
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--wine-900);
  color: #ffffff;
}

.online-card::after {
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -8rem;
  bottom: -10rem;
  border: 1px solid rgba(213, 179, 106, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(213, 179, 106, 0.06), 0 0 0 5rem rgba(213, 179, 106, 0.04);
  content: "";
}

.online-card h3,
.online-card p {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.online-card p {
  max-width: 44rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  position: relative;
  padding: clamp(2rem, 6vw, 4.5rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--wine-900);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.contact-panel::before {
  position: absolute;
  width: 30rem;
  height: 30rem;
  top: -18rem;
  right: -10rem;
  border: 1px solid rgba(213, 179, 106, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(213, 179, 106, 0.05), 0 0 0 6rem rgba(213, 179, 106, 0.035);
  content: "";
}

.contact-panel h2,
.contact-panel .eyebrow,
.contact-panel p {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.contact-panel .lead {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel .button-row {
  position: relative;
  z-index: 1;
}

.contact-list {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.contact-list a {
  display: flex;
  min-width: 0;
  min-height: 3.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--gold-500);
}

.contact-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: 4rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand {
  max-width: 31rem;
}

.footer-brand .brand {
  margin-bottom: 1.25rem;
}

.footer-brand p,
.footer-meta,
.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.footer-links strong {
  margin-bottom: 0.3rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit {
  color: var(--text-muted);
}

.footer-credit:hover {
  color: var(--accent);
}

.whatsapp-float {
  position: fixed;
  z-index: 80;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #197b4d;
  box-shadow: 0 12px 34px rgba(21, 86, 55, 0.32);
  color: #ffffff;
  transition: transform 180ms var(--ease), background-color 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  background: #12663e;
}

.whatsapp-float svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: currentColor;
}

/* Página de canais */

.hub-page {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(116, 36, 55, 0.11), transparent 27rem),
    radial-gradient(circle at 90% 45%, rgba(213, 179, 106, 0.11), transparent 24rem),
    var(--surface-soft);
}

.hub-shell {
  width: min(calc(100% - 2rem), 48rem);
  margin-inline: auto;
}

.hub-intro {
  margin-bottom: 2rem;
  text-align: center;
}

.hub-logo {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.25rem;
  padding: 0.35rem;
  border-radius: 1.75rem;
  background: var(--wine-900);
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

.hub-intro h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.4rem, 8vw, 4rem);
}

.hub-intro p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--text-muted);
}

.hub-links {
  display: grid;
  gap: 0.75rem;
}

.hub-link {
  display: grid;
  min-height: 4.8rem;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, transform 200ms var(--ease), box-shadow 200ms ease;
}

.hub-link:hover {
  transform: translateY(-0.2rem);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: var(--shadow-lg);
}

.hub-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--surface-soft);
  color: var(--accent);
}

.hub-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hub-link-copy {
  min-width: 0;
}

.hub-link-copy strong,
.hub-link-copy span {
  display: block;
}

.hub-link-copy span {
  margin-top: 0.12rem;
  overflow-wrap: anywhere;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.hub-arrow {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.review-card {
  display: grid;
  margin-top: 1.5rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  gap: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--wine-900);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.review-card h2,
.review-card p {
  color: #ffffff;
}

.review-card h2 {
  font-size: clamp(1.8rem, 5vw, 2.65rem);
}

.review-card p {
  color: rgba(255, 255, 255, 0.76);
}

.review-qr {
  width: min(100%, 14rem);
  margin-inline: auto;
  padding: 0.65rem;
  border-radius: 1rem;
  background: #ffffff;
}

.review-qr img {
  width: 100%;
  aspect-ratio: 1;
}

.review-qr small {
  display: block;
  margin-top: 0.6rem;
  color: var(--wine-950);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: center;
}

.google-profiles {
  display: grid;
  margin-top: 1.5rem;
  gap: 0.75rem;
}

.google-profile {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

.google-profile strong,
.google-profile span {
  display: block;
}

.google-profile span {
  margin-block: 0.25rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.google-badge {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.hub-footer {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* Página 404 */

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: calc(var(--header-height) + 3rem) 1rem 4rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(116, 36, 55, 0.12), transparent 28rem),
    var(--surface);
  text-align: center;
}

.not-found-inner {
  width: min(100%, 45rem);
}

.not-found-code {
  display: block;
  margin-bottom: -0.4rem;
  color: var(--decorative);
  font-family: var(--font-display);
  font-size: clamp(7rem, 30vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.not-found h1 {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
}

.not-found p {
  max-width: 35rem;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.not-found .button-row {
  justify-content: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 600ms ease, transform 700ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 36rem) {
  .container,
  .hub-shell {
    width: min(calc(100% - 3rem), var(--container));
  }

  .hub-shell {
    width: min(calc(100% - 3rem), 48rem);
  }

  .practice-grid,
  .location-grid,
  .footer-grid,
  .google-profiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .review-card {
    grid-template-columns: minmax(0, 1fr) 14rem;
    align-items: center;
  }
}

@media (min-width: 48rem) {
  .section-heading {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.65fr);
    align-items: end;
  }

  .intro-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.78fr);
    align-items: center;
  }

  .practice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(10rem, 0.75fr) minmax(10rem, 0.75fr);
  }
}

@media (min-width: 64rem) {
  body.nav-open {
    overflow: auto;
  }

  .nav-toggle {
    display: none;
  }

  .site-navigation {
    position: static;
    z-index: auto;
    width: auto;
    max-height: none;
    margin-left: auto;
    padding: 0;
    overflow: visible;
    visibility: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }

  .site-navigation a {
    min-height: 2.75rem;
    padding-inline: 0.7rem;
    border: 0;
    font-size: 0.82rem;
  }

  .header-cta {
    display: inline-flex;
    min-height: 2.75rem;
    padding-inline: 1rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(25rem, 0.88fr);
  }

  .hero-media-wrap {
    margin-top: 2rem;
  }

  .hero-seal {
    left: -2.75rem;
  }
}

@media (min-width: 86rem) {
  .site-navigation a {
    padding-inline: 0.9rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 25rem) {
  .brand-copy {
    display: none;
  }

  .button-row .button {
    width: 100%;
  }

  .hero-media-caption span {
    display: none;
  }

  .hub-link {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .hub-arrow {
    display: none;
  }
}

@media (max-width: 35.999rem) {
  .hero {
    padding-top: calc(var(--header-height) + 2.15rem);
  }

  .hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.15rem, 11vw, 2.65rem);
    line-height: 1.02;
  }

  .hero-copy .lead {
    margin-bottom: 1.35rem;
    font-size: 1rem;
    line-height: 1.52;
  }

  .hero .eyebrow {
    margin-bottom: 0.75rem;
  }

  .hero-notes {
    margin-top: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .icon-button,
  .practice-card,
  .location-card,
  .hub-link {
    border: 1px solid ButtonText;
  }

  .hero::before,
  .online-card::after,
  .contact-panel::before,
  .practice-card::after {
    display: none;
  }
}

@media print {
  :root,
  :root[data-theme="dark"] {
    color-scheme: light;
    --surface: #ffffff;
    --surface-soft: #ffffff;
    --surface-raised: #ffffff;
    --text: #111111;
    --text-muted: #333333;
    --line: #bbbbbb;
  }

  body {
    font-size: 10.5pt;
  }

  .site-header,
  .whatsapp-float,
  .button-row,
  .hero::before,
  .hero-seal,
  .online-card::after,
  .contact-panel::before {
    display: none !important;
  }

  .hero,
  .section {
    min-height: 0;
    padding-block: 1.5rem;
  }

  .hero {
    padding-top: 0;
  }

  .hero-grid,
  .intro-grid,
  .about-grid,
  .contact-grid,
  .location-grid,
  .practice-grid,
  .footer-grid {
    display: block;
  }

  .hero-media-wrap,
  .about-visual,
  .practice-card,
  .location-card {
    margin-bottom: 1rem;
    break-inside: avoid;
  }

  .contact-panel,
  .online-card {
    border: 1px solid #888888;
    background: #ffffff;
    box-shadow: none;
    color: #111111;
  }

  .contact-panel h2,
  .contact-panel p,
  .contact-panel .eyebrow,
  .online-card h3,
  .online-card p,
  .contact-list a {
    color: #111111;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    overflow-wrap: anywhere;
  }
}
