/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:           #faf8f2;
  --bg-2:         #f2ede0;
  --bg-dark:      #111009;
  --ink:          #18140d;
  --ink-soft:     #3e3831;
  --ink-mute:     #7a7268;
  --accent:       #18140d;
  --accent-2:     #a0803a;
  --line:         rgba(24,20,13,0.13);
  --line-strong:  rgba(24,20,13,0.85);
  --hero-ink:     #f4f0e8;
  --hero-ink-mute:#b8b0a0;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --body:   'Source Serif 4', Georgia, serif;
  --sans:   'Lato', system-ui, -apple-system, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h:   72px;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --max-w:   1200px;
}

/* =============================================================
   2. Reset & Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family: var(--body);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.07; letter-spacing: -0.02em; font-family: var(--serif); font-weight: 700; }
address { font-style: normal; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .5rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; font-family: var(--sans); font-size: .875rem;
  border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(var(--max-w), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* =============================================================
   4. Reading Progress
   ============================================================= */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 1000; background: transparent;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width .1s linear;
}

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.nav.is-scrolled {
  background: rgba(250,248,242,0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--max-w), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.nav-logo {
  display: block;
  line-height: 0;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }
.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  transition: filter .4s;
  filter: brightness(0) invert(1);
}
.nav.is-scrolled .nav-logo-img {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.5vw, 2rem);
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--hero-ink);
  transition: color .3s, opacity .3s;
  opacity: .85;
}
.nav-links a:hover { opacity: 1; }
.nav.is-scrolled .nav-links a { color: var(--ink-soft); }
.nav-links .nav-cta {
  font-weight: 500;
  padding: .45rem 1.1rem;
  border: 1px solid rgba(244,240,232,0.4);
  border-radius: 2px;
  opacity: 1;
  color: var(--hero-ink);
  transition: background .25s, color .25s, border-color .25s;
}
.nav-links .nav-cta:hover {
  background: var(--hero-ink);
  color: var(--bg-dark);
  border-color: var(--hero-ink);
}
.nav.is-scrolled .nav-links .nav-cta {
  color: var(--ink);
  border-color: var(--line-strong);
}
.nav.is-scrolled .nav-links .nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  width: 24px;
  background: var(--hero-ink);
  transition: background .4s, transform .3s, opacity .3s;
  border-radius: 1px;
}
.nav.is-scrolled .nav-burger span { background: var(--ink); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================================
   6. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .75rem 1.75rem;
  border-radius: 2px;
  transition: background .25s var(--ease-out), color .25s, border-color .25s, transform .2s var(--ease-out), box-shadow .25s;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(24,20,13,0.5);
}
.btn-primary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px rgba(24,20,13,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--hero-ink);
  border: 1px solid rgba(244,240,232,0.4);
}
.btn-ghost:hover {
  background: rgba(244,240,232,0.1);
  border-color: rgba(244,240,232,0.7);
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--bg);
}

/* =============================================================
   7. Reveal animations
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal[data-reveal-from="left"] {
  transform: translateX(-32px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Safety for split text */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #403d36;
}

/* Painting panel (full bleed behind everything) */
.hero-painting {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  overflow: hidden;
}
.hero-painting img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.88) contrast(1.06) saturate(1.1);
  transform: scale(1.05);
  animation: heroPaintingSettle 16s var(--ease-out) forwards;
  will-change: transform;
}
@keyframes heroPaintingSettle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* Semi-transparent veil — painting visible through the dark side */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(28,26,22,0.72) 0%,
      rgba(28,26,22,0.30) 10%,
      rgba(28,26,22,0) 20%
    ),
    linear-gradient(to right,
      #403d36 0%,
      #403d36 40%,
      rgba(51,48,43,0) 40%
    );
  z-index: 1;
  pointer-events: none;
}

/* Content panel (left side) */
.hero-content {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
  max-width: 40%;
}

.hero-rule {
  width: 3rem;
  height: 1px;
  background: rgba(244,240,232,0.4);
  margin-bottom: 1.5rem;
  animation: fadeInRule .8s 1.2s var(--ease-out) both;
}
@keyframes fadeInRule { from { width: 0; opacity: 0; } to { width: 3rem; opacity: 1; } }

.hero-kicker {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hero-ink-mute);
  margin-bottom: 1.25rem;
  animation: fadeUp .7s 1.4s var(--ease-out) both;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--hero-ink);
  letter-spacing: -.03em;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.hero-title-line { animation: fadeUp .7s var(--ease-out) both; }
.hero-title-line:nth-child(1) { animation-delay: 1.55s; }
.hero-title-em {
  font-style: italic;
  font-weight: 400;
  color: rgba(244,240,232,0.65);
  animation-delay: 1.65s;
}

.hero-tagline {
  font-family: var(--body);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(244,240,232,0.7);
  line-height: 1.55;
  margin-bottom: 2.5rem;
  animation: fadeUp .7s 1.8s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp .7s 2s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   9. Stats Bar
   ============================================================= */
.stats {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.stat-divider {
  width: 1px;
  height: 3rem;
  background: var(--line);
  justify-self: center;
}
.stat-item {
  text-align: center;
  padding: 0 2rem;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-label {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* =============================================================
   10. Historia Section
   ============================================================= */
.historia {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 8rem) 0;
}
.historia-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  width: min(var(--max-w), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.historia-fig {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  overflow: hidden;
}
.historia-fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}
.historia-fig figcaption {
  margin-top: .75rem;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.historia-text-col {
  padding-top: .5rem;
}
.historia-body {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.historia-body p {
  font-family: var(--body);
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.8;
}

/* Drop cap */
.dropcap-p::first-letter {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  line-height: .8;
  float: left;
  margin-right: .12em;
  margin-top: .08em;
  color: var(--accent);
}

/* Values strip */
.historia-values {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.value-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1 1 auto;
  min-width: 80px;
}
.value-label {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
  white-space: nowrap;
}
.value-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* =============================================================
   11. Section Headers (shared)
   ============================================================= */
.section-kicker {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
  display: block;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.025em;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}
.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

/* =============================================================
   12. Areas de Práctica
   ============================================================= */
.areas {
  background: var(--bg-2);
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.areas-mosaic-accent { display: none; }
.areas-mosaic-img { display: none; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #1a1710;
}

/* Each card shows its own slice of the painting */
.area-card {
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: filter .35s;
  background-image: url('assets/img/areas-bg.webp');
  background-size: 400% 500%;
  background-position: 0% 0%;
}

/* Cream overlay (between painting and text) */
.area-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(250, 248, 242, 0.66);
  transition: background .3s var(--ease-out);
  pointer-events: none;
}
.area-card:hover::before  { background: rgba(190, 188, 182, 0.78); }
.area-card.is-active::before { background: rgba(16, 13, 8, 0.82); }

/* Content above overlay */
.area-card > * { position: relative; z-index: 1; }

/* Active underline */
.area-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: rgba(244,240,232,0.7);
  transition: width .4s var(--ease-out);
  z-index: 2;
}
.area-card.is-active::after { width: 100%; }

/* Dim inactive cards when one is open */
.areas-grid.has-active .area-card:not(.is-active) {
  filter: brightness(0.55) saturate(0.4);
}

/* Painting slices: 4 cols × 5 rows */
.area-card:nth-child(1)  { background-position:  0%     0%; }
.area-card:nth-child(2)  { background-position: 33.33%  0%; }
.area-card:nth-child(3)  { background-position: 66.66%  0%; }
.area-card:nth-child(4)  { background-position: 100%    0%; }
.area-card:nth-child(5)  { background-position:  0%    25%; }
.area-card:nth-child(6)  { background-position: 33.33% 25%; }
.area-card:nth-child(7)  { background-position: 66.66% 25%; }
.area-card:nth-child(8)  { background-position: 100%   25%; }
.area-card:nth-child(9)  { background-position:  0%    50%; }
.area-card:nth-child(10) { background-position: 33.33% 50%; }
.area-card:nth-child(11) { background-position: 66.66% 50%; }
.area-card:nth-child(12) { background-position: 100%   50%; }
.area-card:nth-child(13) { background-position:  0%    75%; }
.area-card:nth-child(14) { background-position: 33.33% 75%; }
.area-card:nth-child(15) { background-position: 66.66% 75%; }
.area-card:nth-child(16) { background-position: 100%   75%; }
.area-card:nth-child(17) { background-position:  0%   100%; }
.area-card:nth-child(18) { background-position: 33.33% 100%; }
.area-card:nth-child(19) { background-position: 66.66% 100%; }

.area-num {
  display: block;
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .14em;
  color: var(--ink-mute);
  margin-bottom: .9rem;
  font-weight: 400;
  transition: color .3s;
}
.area-card.is-active .area-num { color: rgba(244,240,232,0.55); }
.area-title {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: .7rem;
  transition: color .3s;
}
.area-card.is-active .area-title { color: var(--hero-ink); }
.area-desc {
  font-family: var(--body);
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 400;
  transition: color .3s;
}
.area-card.is-active .area-desc { color: rgba(244,240,232,0.6); }

.area-detail {
  max-height: 0;
  overflow: hidden;
  font-family: var(--body);
  font-size: .875rem;
  color: rgba(244,240,232,0.75);
  line-height: 1.7;
  font-weight: 300;
  margin-top: 0;
  padding-top: 0;
  border-top: 0 solid rgba(244,240,232,0.15);
  transition: max-height .45s var(--ease-out), margin-top .3s, padding-top .3s, border-top-width .3s;
}
.area-card.is-active .area-detail {
  max-height: 160px;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top-width: 1px;
}
.area-close-hint {
  display: block;
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244,240,232,0.3);
  margin-top: 1.25rem;
  opacity: 0;
  transition: opacity .3s .2s;
}
.area-card.is-active .area-close-hint { opacity: 1; }

/* =============================================================
   13. Personas (Abogados + Equipo)
   ============================================================= */
.personas {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 8rem) 0;
}
.personas--alt {
  background: var(--bg-2);
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
}
.persona-card {
  background: var(--bg);
  overflow: hidden;
  transition: box-shadow .3s var(--ease-out);
  position: relative;
}
.personas--alt .persona-card { background: var(--bg-2); }
.persona-card:hover { box-shadow: 0 8px 32px rgba(24,20,13,0.12); z-index: 1; }

/* Photo (portrait ratio) */
.persona-photo-wrap {
  width: 100%;
  padding-top: 110%;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.personas--alt .persona-photo-wrap { background: var(--bg); }
.persona-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s var(--ease-out), filter .4s;
}
.persona-card:hover .persona-photo-wrap img {
  transform: scale(1.04);
  filter: saturate(1.1);
}

/* Initials placeholder */
.persona-photo-wrap--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  min-height: 220px;
  background: #1d1a14;
}
.personas--alt .persona-photo-wrap--initials { background: #1d1a14; }
.persona-initials {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(244,240,232,0.35);
  letter-spacing: .02em;
}

/* Info bar */
.persona-info {
  padding: 1.25rem 1.4rem 1.5rem;
  border-top: 2px solid transparent;
  transition: border-color .3s var(--ease-out);
}
.persona-card:hover .persona-info {
  border-top-color: var(--accent);
}
.persona-card--socia:hover .persona-info {
  border-top-color: var(--accent-2);
}
.persona-name {
  font-family: var(--serif);
  font-size: clamp(.9rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: .25rem;
}
.persona-title {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .6rem;
}
.persona-card--socia .persona-title {
  color: var(--accent-2);
}
.persona-email {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  overflow-wrap: anywhere;
}
.persona-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =============================================================
   14. Contacto
   ============================================================= */
.contacto {
  background: var(--bg-dark);
  padding: clamp(4rem, 8vw, 8rem) 0;
}
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  width: min(var(--max-w), 100% - var(--gutter) * 2);
  margin-inline: auto;
  align-items: start;
}

.contacto .section-kicker { color: var(--accent-2); }
.contacto .section-title { color: var(--hero-ink); }
.contacto .section-title em { color: rgba(244,240,232,0.5); }

.contacto-address {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--accent-2);
  opacity: .8;
}
.contact-item strong {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hero-ink-mute);
  margin-bottom: .3rem;
}
.contact-item span {
  font-family: var(--body);
  font-size: .9rem;
  color: rgba(244,240,232,0.75);
  line-height: 1.7;
}
.contact-item a {
  color: rgba(244,240,232,0.75);
  transition: color .2s;
}
.contact-item a:hover { color: var(--hero-ink); }

.contacto-map-btn {
  margin-top: 2.5rem;
  color: var(--hero-ink);
  border-color: rgba(244,240,232,0.25);
}
.contacto-map-btn svg { width: 14px; height: 14px; }
.contacto-map-btn:hover {
  background: var(--hero-ink);
  color: var(--bg-dark);
}

/* =============================================================
   15. Contact Form
   ============================================================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hero-ink-mute);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(244,240,232,0.06);
  border: 1px solid rgba(244,240,232,0.15);
  border-radius: 2px;
  font-family: var(--body);
  font-size: .9rem;
  color: var(--hero-ink);
  outline: none;
  transition: border-color .25s, background .25s;
  resize: vertical;
  min-height: 44px;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(244,240,232,0.25); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(244,240,232,0.45);
  background: rgba(244,240,232,0.09);
}

.form-submit {
  align-self: flex-start;
  position: relative;
  min-width: 160px;
  justify-content: center;
}
.form-submit-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.form-submit.is-loading .form-submit-text { opacity: 0; }
.form-submit.is-loading .form-submit-loading { opacity: 1; }
.spin { width: 20px; height: 20px; animation: spinAnim .8s linear infinite; }
@keyframes spinAnim { to { transform: rotate(360deg); } }

/* Success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
}
.form-success[hidden] { display: none; }
.success-check { width: 52px; height: 52px; color: var(--accent-2); }
.success-check-path { stroke-dasharray: 50; stroke-dashoffset: 50; }
.success-check-path.is-drawn { animation: drawCheck .6s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.form-success h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--hero-ink);
}
.form-success p {
  font-family: var(--body);
  font-size: .9rem;
  color: rgba(244,240,232,.6);
}

/* =============================================================
   16. Footer
   ============================================================= */
.footer {
  background: #37342e;
  border-top: 1px solid rgba(244,240,232,0.10);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-inner {
  width: min(var(--max-w), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: grid;
  gap: 2.5rem 4rem;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: auto auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.footer-logo-img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.75rem;
  align-content: flex-start;
}
.footer-nav a {
  font-family: var(--sans);
  font-size: .8rem;
  color: rgba(244,240,232,0.55);
  transition: color .2s;
  letter-spacing: .03em;
}
.footer-nav a:hover { color: var(--hero-ink); }
.footer-contact p {
  font-family: var(--sans);
  font-size: .8rem;
  color: rgba(244,240,232,0.5);
  line-height: 1.8;
}
.footer-contact a {
  transition: color .2s;
}
.footer-contact a:hover { color: var(--hero-ink); }
.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(244,240,232,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
}
.footer-bottom p {
  font-family: var(--sans);
  font-size: .72rem;
  color: rgba(244,240,232,0.3);
  line-height: 1.6;
}
.footer-disclaimer { max-width: 480px; }

/* =============================================================
   17. Responsive
   ============================================================= */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-painting {
    grid-column: 1;
    position: absolute;
    inset: 0;
  }
  .hero-veil {
    background: linear-gradient(to bottom,
      #403d36 0%,
      #403d36 80%,
      rgba(51,48,43,0) 80%
    );
  }
  .hero-content {
    max-width: 100%;
    padding-bottom: 5rem;
  }

  .historia-inner { grid-template-columns: 1fr; gap: 2rem; }
  .historia-fig { position: static; }

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

  .personas-grid,
  .personas-grid--lawyers { grid-template-columns: repeat(2, 1fr); }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stat-divider { display: none; }

  .contacto-inner { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
    background: var(--bg);
    box-shadow: -4px 0 40px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .35s var(--ease-out);
    z-index: 99;
    gap: 1.5rem;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--ink); font-size: .95rem; }
  .nav-links .nav-cta {
    color: var(--ink);
    border-color: var(--line-strong);
    width: 100%;
    justify-content: center;
  }
  .nav-burger { display: flex; }

  .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }

  .areas-grid { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 540px) {
  .areas-grid { grid-template-columns: 1fr; }
  .personas-grid,
  .personas-grid--lawyers { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}

/* =============================================================
   18. Page Masthead (inner pages)
   ============================================================= */
.page-masthead {
  background: var(--bg-dark);
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
}
.page-masthead::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/hero.webp') center / cover no-repeat;
  opacity: .07;
  pointer-events: none;
}
.page-masthead-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max-w), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.page-masthead .section-kicker { color: var(--accent-2); }
.page-masthead h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--hero-ink);
  letter-spacing: -.03em;
  line-height: 1.05;
  max-width: 16ch;
}
.page-masthead h1 em {
  font-style: italic;
  font-weight: 400;
  color: rgba(244,240,232,0.55);
}

/* Gray variant — light, elegant, dark text (inner pages) */
.page-masthead--gray {
  background: linear-gradient(180deg, #eceae2 0%, #e3e0d6 100%);
  border-bottom: 1px solid rgba(24,20,13,0.10);
  padding: calc(var(--nav-h) + 3.2rem) var(--gutter) 3.2rem;
}
.page-masthead--gray::after {
  background: url('assets/img/hero.webp') center / cover no-repeat;
  opacity: .05;
  filter: grayscale(0.4);
}
.page-masthead--gray .section-kicker { color: var(--accent-2); }
.page-masthead--gray h1 { color: var(--ink); }
.page-masthead--gray h1 em { color: rgba(24,20,13,0.42); }
.page-masthead--gray .page-masthead-rule {
  width: 3rem;
  height: 1px;
  background: var(--accent-2);
  margin-bottom: 1.4rem;
  opacity: .8;
}

/* Image banner variant (abogados) */
.page-masthead--banner {
  background-color: #2b2925;
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  border-bottom: none;
  padding: calc(var(--nav-h) + 5rem) var(--gutter) 5rem;
}
.page-masthead--banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(20,17,11,0.9) 0%,
    rgba(20,17,11,0.72) 45%,
    rgba(20,17,11,0.45) 100%);
  opacity: 1;
  pointer-events: none;
}
.page-masthead--banner .section-kicker { color: var(--accent-2); }
.page-masthead--banner h1 { color: var(--hero-ink); }
.page-masthead--banner h1 em { color: rgba(244,240,232,0.6); }
.page-masthead--banner .page-masthead-rule {
  width: 3rem;
  height: 1px;
  background: var(--accent-2);
  margin-bottom: 1.4rem;
  opacity: .85;
}

/* Index page: 3-column section links */
.index-sections {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: var(--bg);
}
.index-sections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line-strong);
}
.index-section-link {
  display: block;
  background: var(--bg);
  padding: 2.5rem 2rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease-out);
}
.index-section-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .4s var(--ease-out);
}
.index-section-link:hover::after { width: 100%; }
.index-section-link:hover { background: rgba(242, 237, 224, 0.6); }
.isl-num {
  display: block;
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.isl-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.isl-title em { font-style: italic; font-weight: 400; color: var(--ink-soft); }
.isl-desc {
  font-family: var(--body);
  font-size: .875rem;
  color: var(--ink-mute);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.isl-arrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.isl-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.index-section-link:hover .isl-arrow svg { transform: translate(3px,-3px); }

/* Index CTA banner */
.index-cta {
  background: #403d36;
  padding: clamp(4rem, 7vw, 6rem) 0;
  text-align: center;
}
.index-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--hero-ink);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
}
.index-cta h2 strong { font-weight: 700; font-style: normal; }

/* Nav active link */
.nav-links a.is-active {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

/* View Transitions */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .45s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: vtFadeOut; }
::view-transition-new(root) { animation-name: vtFadeIn; }
@keyframes vtFadeOut { to   { opacity: 0; transform: translateY(-8px); } }
@keyframes vtFadeIn  { from { opacity: 0; transform: translateY(8px);  } }

@media (max-width: 720px) {
  .index-sections-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .index-sections-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   19. Reduced Motion (intrusive only)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-painting img { animation: none; transform: scale(1); }
  html { scroll-behavior: auto; }
  /* Do NOT disable: reveals, hovers, count-up, micro-interactions */
}

/* =============================================================
   20. Inner-page persona cards (abogados / equipo pages)
   ============================================================= */
.personas-intro {
  font-family: var(--body);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 68ch;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.75;
}
.personas-intro p + p { margin-top: 1.1rem; }

/* Socia featured + Asociados subheading (abogados.html) */
.personas-subhead {
  color: var(--accent-2);
  margin-bottom: 1.1rem;
}
.personas-subhead--associates {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.personas-featured {
  max-width: 720px;
}
.personas-featured .persona-card--socia {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  background: var(--bg);
}
.personas-featured .persona-card--socia .persona-photo-wrap { padding-top: 0; }
.personas-featured .persona-card--socia .persona-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: none;
  border-left: 2px solid transparent;
  padding: 2rem 2.25rem;
}
.personas-featured .persona-card--socia:hover .persona-body { border-left-color: var(--accent-2); }
.personas-grid--lawyers {
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: start;
  max-width: none;
}

/* Uniform square grid — all people the same size, aligned */
.personas-grid--uniform {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  background: transparent;
  align-items: stretch;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.personas-grid--uniform .persona-card {
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.personas-grid--uniform .persona-photo-wrap { padding-top: 100%; }
.personas-grid--uniform .persona-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1.4rem;
  text-align: left;
  align-items: stretch;
}
.personas-grid--uniform .persona-body .persona-bio { text-align: justify; hyphens: auto; }
.personas-grid--uniform .persona-body .persona-email { margin-top: auto; padding-top: .5rem; }

/* Socia sola: cancelar layout heredado del featured (grid horizontal) */
.personas-grid--uniform .persona-card--socia {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
}
.personas-grid--uniform .persona-card--socia .persona-body {
  border-left: none;
  padding: 1.15rem 1.25rem 1.4rem;
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .personas-grid--uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .personas-grid--uniform { grid-template-columns: 1fr; }
}

/* Justify body paragraphs across the site */
.historia-body p,
.personas-intro p,
.persona-bio,
.area-detail,
.contacto-intro { text-align: justify; hyphens: auto; }

/* Soft blurred backdrop to fill the empty space beside left-aligned people */
.personas { position: relative; overflow: hidden; }
.personas .container { position: relative; z-index: 1; }

/* Compact, centered person cards with emails aligned at the bottom */
.persona-card { display: flex; flex-direction: column; }
.personas-grid .persona-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 1.15rem 1.3rem;
}
.personas-grid .persona-name { margin-bottom: .2rem; }
.personas-grid .persona-title { margin-bottom: .55rem; }
.personas-grid .persona-bio { margin-bottom: .9rem; }
.personas-grid .persona-body .persona-email { margin-top: auto; padding-top: .5rem; }
.personas-grid .persona-photo-wrap { padding-top: 100%; }
@media (max-width: 640px) {
  .personas-featured .persona-card--socia { grid-template-columns: 1fr; max-width: 420px; }
  .personas-featured .persona-card--socia .persona-photo-wrap { padding-top: 110%; }
}

/* persona-body: replaces persona-info for inner pages (wider card) */
.persona-body {
  padding: 1.5rem 1.75rem 2rem;
  border-top: 2px solid transparent;
  transition: border-color .3s var(--ease-out);
}
.persona-card:hover .persona-body { border-top-color: var(--accent); }
.persona-body .persona-name {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin-bottom: .3rem;
}
.persona-body .persona-title { margin-bottom: .75rem; }
.persona-bio {
  font-family: var(--body);
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: .85rem;
  font-weight: 300;
}
.persona-body .persona-email { display: inline-block; margin-top: .25rem; }

/* Initials inside persona-photo-wrap (both classes on same element) */
.persona-photo-wrap.persona-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  min-height: 220px;
  background: #1d1a14;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(244,240,232,0.35);
  letter-spacing: .02em;
}

/* Inner-page personas: subtle hairlines between cards */
.personas .personas-grid { background: var(--line); }

/* =============================================================
   21. Contacto page (standalone page version)
   ============================================================= */
.contacto-info { color: var(--hero-ink); }

.contacto-intro {
  font-family: var(--body);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  color: rgba(244,240,232,.65);
  font-weight: 300;
  line-height: 1.75;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.contacto-data {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.contacto-data li {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contacto-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: .15rem;
  color: var(--accent-2);
  opacity: .85;
}
.contacto-data strong {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hero-ink-mute);
  margin-bottom: .3rem;
}
.contacto-data span, .contacto-data a {
  display: block;
  font-family: var(--body);
  font-size: .9rem;
  color: rgba(244,240,232,.75);
  line-height: 1.65;
  transition: color .2s;
}
.contacto-data a:hover { color: var(--hero-ink); }

.contacto-horario { margin-top: 2rem; }
.contacto-horario .section-kicker { color: var(--accent-2); margin-bottom: .75rem; }
.horario-table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--body);
  font-size: .875rem;
  color: rgba(244,240,232,.65);
}
.horario-table td {
  padding: .45rem 0;
  border-bottom: 1px solid rgba(244,240,232,.07);
}
.horario-table td:last-child { text-align: right; color: rgba(244,240,232,.45); }

/* Contact form — dark version (standalone page) */
.contacto-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
}
.contacto-form .form-field { display: flex; flex-direction: column; gap: .4rem; }
.contacto-form .form-field--full { grid-column: 1 / -1; }
.contacto-form .form-field--submit {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.form-disclaimer {
  font-family: var(--sans);
  font-size: .7rem;
  color: rgba(244,240,232,.3);
  line-height: 1.5;
}

/* select element */
.form-field select {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(244,240,232,.06);
  border: 1px solid rgba(244,240,232,.15);
  border-radius: 2px;
  font-family: var(--body);
  font-size: .9rem;
  color: var(--hero-ink);
  outline: none;
  transition: border-color .25s, background .25s;
  appearance: none;
  cursor: pointer;
}
.form-field select option { background: #1d1a14; color: var(--hero-ink); }
.form-field select:focus {
  border-color: rgba(244,240,232,.45);
  background: rgba(244,240,232,.09);
}
.form-field select:invalid, .form-field select option[value=""] { color: rgba(244,240,232,.25); }

/* btn-label / btn-loading for submit button */
.btn-loading { display: none; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-loading { display: inline; }
.btn.is-loading { opacity: .7; cursor: not-allowed; }

/* =============================================================
   23. Edit mode (triple-click logo)
   ============================================================= */
body.edit-mode [data-ek] {
  outline: 1px dashed rgba(160,128,58,.55);
  outline-offset: 3px;
  border-radius: 2px;
  cursor: text;
}
body.edit-mode [data-ek]:hover { outline-color: rgba(160,128,58,.9); }
body.edit-mode [data-ek]:focus {
  outline: 2px solid var(--accent-2);
  background: rgba(160,128,58,.08);
}
.edit-toolbar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .6rem .5rem 1.1rem;
  background: rgba(24,20,13,.94);
  border: 1px solid rgba(160,128,58,.4);
  border-radius: 999px;
  box-shadow: 0 12px 44px -12px rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: calc(100% - 2rem);
  flex-wrap: wrap;
  justify-content: center;
}
.edit-toolbar[hidden] { display: none; }
.edit-toolbar-label {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  white-space: nowrap;
}
.edit-toolbar button {
  font-family: var(--sans);
  font-size: .76rem;
  color: var(--hero-ink);
  padding: .42rem .85rem;
  border: 1px solid rgba(244,240,232,.25);
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.edit-toolbar button:hover {
  background: var(--accent-2);
  color: #16130d;
  border-color: var(--accent-2);
}

@media (max-width: 720px) {
  .contacto-form { grid-template-columns: 1fr; }
  .contacto-form .form-field--full { grid-column: 1; }
}

/* =============================================================
   22. Elegance refinements
   ============================================================= */

/* Section kickers — leading gold hairline for editorial polish */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.section-kicker::before {
  content: '';
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
  flex-shrink: 0;
}
/* Historia keeps its own reveal; kicker still gets the tick */
.personas-subhead::before { opacity: .6; }

/* Stat numbers — subtle gold underline */
.stat-num::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--accent-2);
  opacity: .75;
  margin: .95rem auto .1rem;
}

/* Refined initials avatars — warm gradient + inset gold frame */
.persona-photo-wrap.persona-initials,
.persona-photo-wrap--initials {
  background: radial-gradient(125% 125% at 50% 28%, #2b2720 0%, #16130d 72%);
  position: relative;
}
.persona-photo-wrap.persona-initials::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(160,128,58,0.22);
  pointer-events: none;
  transition: border-color .4s var(--ease-out);
}
.persona-card:hover .persona-photo-wrap.persona-initials::after {
  border-color: rgba(160,128,58,0.5);
}
.persona-photo-wrap.persona-initials span { position: relative; z-index: 1; }

/* Hero scroll cue */
.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 1.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,240,232,0.6);
  transition: color .3s;
  animation: fadeUp .8s 2s var(--ease-out) both;
}
.hero-scroll:hover { color: var(--hero-ink); }
.hero-scroll .hero-scroll-line {
  position: relative;
  width: 46px;
  height: 1px;
  background: rgba(244,240,232,0.3);
  overflow: hidden;
}
.hero-scroll .hero-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--accent-2);
  animation: heroScrollSlide 2.4s var(--ease-soft) infinite;
}
@keyframes heroScrollSlide {
  0%   { transform: translateX(-110%); }
  60%  { transform: translateX(260%); }
  100% { transform: translateX(260%); }
}

/* Back-to-top button (injected by JS) */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2.25rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(17,16,9,0.9);
  color: var(--hero-ink);
  border: 1px solid rgba(160,128,58,0.4);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), background .25s, border-color .25s;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #16130d;
}
.to-top svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .hero-scroll .hero-scroll-line::after { animation: none; }
}
