/* =========================================================
   Martínez & Garay Abogados S.C. — styles
   Paleta: azul marino profundo + oro, marfil para texto.
   ========================================================= */

:root {
  --bg:      #0B1426;
  --bg-2:    #0F1B33;
  --bg-3:    #14223F;
  --ivory:   #EDE6D6;
  --ivory-2: #C9C1AE;
  --muted:   #8A8F9E;
  --gold:    #C9A45C;
  --gold-2:  #E6CC8F;
  --gold-3:  #9C7B3C;
  --line:    rgba(201, 164, 92, .22);
  --line-2:  rgba(237, 230, 214, .10);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1240px;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--bg); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; top: -60px; left: 1rem; z-index: 200;
  background: var(--gold); color: var(--bg); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 1px solid var(--gold-2); outline-offset: 4px; }

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

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 2.5rem;
  text-wrap: balance;
  max-width: 20ch;
}
.display em, .hero-title em { font-style: italic; color: var(--gold-2); font-weight: 400; }

.kicker, .eyebrow {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.eyebrow { display: flex; align-items: center; gap: .9rem; }
.eyebrow .rule { width: 42px; height: 1px; background: var(--gold); display: inline-block; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ivory-2);
  font-weight: 300;
  max-width: 52ch;
  margin: 0 0 2rem;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 1.05rem 1.7rem;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--pad);
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out), transform .45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold::before { background: var(--gold-2); }
.btn-line { background: transparent; color: var(--ivory); border-color: rgba(201,164,92,.55); }
.btn-line::before { background: var(--gold); }
.btn-line:hover { color: var(--bg); }

.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--gold-2);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- Splash (doble red de seguridad) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .8s var(--ease-out), visibility .8s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.splash-inner { display: grid; justify-items: center; gap: 1.6rem; }
.splash-inner img { width: 120px; height: 120px; animation: splashIn 1.1s var(--ease-out) both; }
.splash-line { width: 120px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.splash-line::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  animation: splashLine 1.2s .2s var(--ease-out) forwards;
}
@keyframes splashIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes splashLine { to { transform: scaleX(1); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  transition: background .5s var(--ease-out), border-color .5s, transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 20, 38, .94);
  border-bottom-color: var(--line-2);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled { background: rgba(11, 20, 38, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.nav.is-hidden { transform: translateY(-100%); }

.nav-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; }
.nav-brand-text {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1;
  display: grid; gap: .25rem; white-space: nowrap;
}
.nav-brand-text i { color: var(--gold); }
.nav-brand-text small {
  font-family: var(--sans); font-size: .56rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  position: relative;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory-2);
  transition: color .3s;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--ivory); }
.nav-cta {
  border: 1px solid var(--gold); padding: .8rem 1.2rem; color: var(--gold-2) !important;
  transition: background .35s, color .35s !important;
}
.nav-cta:hover { background: var(--gold); color: var(--bg) !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span:not(.sr) {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ivory);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensa: si algún elemento usa split-text, nunca queda invisible */
.reveal[data-split] { opacity: 1; transform: none; }
/* Sin JS: todo visible */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
  isolation: isolate;
}
.hero-glow {
  position: absolute; inset: -20% -10% -10% -10%; z-index: -1;
  background:
    radial-gradient(40% 45% at 72% 42%, rgba(201,164,92,.16), transparent 70%),
    radial-gradient(50% 60% at 15% 90%, rgba(40,70,130,.35), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
  opacity: .6;
}
.hero-inner {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2rem, 6vh, 5rem);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0 0 2rem;
  max-width: 17ch;
  text-wrap: balance;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line > span {
  display: inline-block;
  animation: lineUp 1.3s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * .14s + 1.1s);
}
.hero-title .line:nth-child(2) > span { --i: 1; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }

.hero-lede { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ivory-2); font-weight: 300; max-width: 46ch; margin: 0 0 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* El sello — firma visual del sitio */
.seal {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  justify-self: center;
  animation: sealIn 1.6s 1.3s var(--ease-out) both;
}
@keyframes sealIn { from { opacity: 0; transform: scale(.94) rotate(-6deg); } to { opacity: 1; transform: none; } }
.seal-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 60s linear infinite;
  overflow: visible;
}
.seal-ring text {
  fill: var(--gold);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 5.2px;
  font-weight: 500;
}
.seal-hair { fill: none; stroke: var(--line); stroke-width: 1; }
.seal-medal {
  position: absolute; inset: 17%;
  width: 66%; height: 66%;
  border-radius: 50%;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(201,164,92,.25);
  transition: transform .8s var(--ease-out);
  will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .4rem clamp(1.2rem, 4vw, 3.5rem);
  padding: 1.4rem var(--gutter);
  border-top: 1px solid var(--line-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--ivory-2);
}
.hero-foot span { display: inline-flex; align-items: center; gap: clamp(1.2rem, 4vw, 3.5rem); }
.hero-foot span + span::before { content: "◆"; font-style: normal; font-size: .45em; color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 12vw, 10rem); position: relative; }
.section + .section { border-top: 1px solid var(--line-2); }

/* Despacho */
.despacho-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.principles li {
  display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.p-num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold); grid-row: span 2; line-height: 1; }
.principles h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 .3rem; line-height: 1.1; }
.principles p { margin: 0; color: var(--ivory-2); font-weight: 300; }

/* Materias */
.materias { background: var(--bg-2); }
.materias-wrap {
  display: grid;
  grid-template-columns: .9fr 1.3fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.materias-head .display { margin-bottom: 2.5rem; }
.materias-fig {
  margin: 0;
  max-width: 380px;
  position: relative;
  border: 1px solid var(--line);
  padding: 10px;
}
.materias-fig img { width: 100%; filter: saturate(.85) contrast(1.05); }
.materias-fig::after {
  content: ""; position: absolute; inset: 10px;
  background: linear-gradient(to top, rgba(15,27,51,.55), transparent 50%);
  pointer-events: none;
}

.index { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr 2rem;
  gap: 1rem;
  align-items: baseline;
  padding: 2rem 1rem 2rem 0;
  border-top: 1px solid var(--line);
  isolation: isolate;
  cursor: default;
}
.index-row:last-child { border-bottom: 1px solid var(--line); }
.index-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(201,164,92,.10), rgba(201,164,92,0));
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.index-row:hover::before, .index-row.is-hot::before { transform: scaleX(1); }
.index-num {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold);
  padding-left: .4rem;
}
.index-body h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.05;
  margin: 0 0 .6rem;
  transition: transform .6s var(--ease-out), color .4s;
}
.index-row:hover .index-body h3 { transform: translateX(8px); color: var(--gold-2); }
.index-body p { margin: 0; color: var(--ivory-2); font-weight: 300; max-width: 56ch; }
.index-arrow {
  color: var(--gold); font-size: 1.2rem;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .4s, transform .6s var(--ease-out);
}
.index-row:hover .index-arrow { opacity: 1; transform: none; }

/* Despacho: texto principal */
.lead-xl {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.3;
  color: var(--ivory);
  max-width: 38ch;
  margin: 0;
}
.lead-xl em { color: var(--gold-2); }

/* Titular */
.titular-wrap { align-items: start; }
.titular-photo {
  position: relative; margin: 0;
  border: 1px solid var(--line); padding: 12px;
  background: var(--bg-2);
  position: sticky; top: calc(var(--nav-h) + 2rem);
}
.titular-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.titular-photo::before, .titular-photo::after {
  content: ""; position: absolute; width: 26px; height: 26px; border-color: var(--gold); border-style: solid; z-index: 1;
}
.titular-photo::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.titular-photo::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.titular-photo figcaption {
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  text-align: center; padding-top: 1rem;
}
.stats { display: flex; gap: clamp(2rem, 5vw, 4rem); margin: 0 0 2.5rem; }
.stats > div { display: flex; flex-wrap: wrap; align-items: baseline; }
.stat-n { font-family: var(--serif); font-size: clamp(3.2rem, 6vw, 4.8rem); line-height: 1; color: var(--gold-2); font-variant-numeric: lining-nums; }
.stat-plus { font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.stat-l { flex-basis: 100%; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-2); margin-top: .4rem; }
.cv { margin: 0; }
.cv > div { padding: 1.3rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; }
.cv > div:last-child { border-bottom: 1px solid var(--line); }
.cv dt { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); padding-top: .25rem; }
.cv dd { margin: 0; color: var(--ivory-2); font-weight: 300; }

/* Oficina */
.office { margin: 2rem 0 0; border: 1px solid var(--line); padding: 8px; background: var(--bg-2); }
.office img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 45%; filter: saturate(.9); }
.office figcaption { padding: .8rem .2rem .2rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-2); }

/* Mapa */
.map { margin: 2rem 0 0; border: 1px solid var(--line); padding: 8px; background: var(--bg-2); }
.map iframe {
  display: block; width: 100%; height: 300px; border: 0;
  filter: grayscale(.25) contrast(.95);
}
.map figcaption { padding: .8rem .2rem .2rem; }
.map a { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); text-decoration: none; }
.map a:hover { text-decoration: underline; text-underline-offset: 4px; }

.titular-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.titular-mark {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(201,164,92,.14), transparent 70%),
    var(--bg-2);
}
.titular-mark::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--line-2);
}
.titular-mono {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(4.5rem, 11vw, 9rem); line-height: 1;
  background: linear-gradient(160deg, var(--gold-2), var(--gold) 45%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.titular-caption {
  position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-2);
}
.quote { margin: 2.5rem 0 0; padding-left: 1.6rem; border-left: 1px solid var(--gold); }
.quote p {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.3; margin: 0; color: var(--ivory);
}

/* En medios */
.medios { background: var(--bg-2); }
.case {
  position: relative;
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 3.5rem);
  max-width: 980px;
  background: linear-gradient(135deg, rgba(201,164,92,.07), transparent 55%);
}
.case::before, .case::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--gold); border-style: solid;
}
.case::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.case::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.case-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-bottom: 1.4rem; }
.case-tag, .case-place { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; }
.case-tag { color: var(--bg); background: var(--gold); padding: .35rem .7rem; }
.case-place { color: var(--gold); padding-block: .35rem; }
.case-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.08;
  margin: 0 0 1.2rem; max-width: 26ch; text-wrap: balance;
}
.case-text { color: var(--ivory-2); font-weight: 300; max-width: 62ch; margin: 0 0 1.8rem; }
.case-links { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.case-links a {
  display: inline-block; text-decoration: none;
  border: 1px solid var(--line); padding: .6rem 1rem;
  font-size: .82rem; letter-spacing: .06em;
  transition: border-color .3s, color .3s, background .3s;
}
.case-links a:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(201,164,92,.06); }
.case-note { font-size: .8rem; color: var(--muted); margin: 0; font-style: italic; }

/* Proceso */
.steps {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  position: relative;
}
.steps-line {
  position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2);
}
.steps-line > span {
  position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.no-js .steps-line > span { transform: scaleX(1); }
.step { position: relative; padding-top: 2.6rem; }
.step-dot {
  position: absolute; top: 0; left: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--gold);
}
.step-dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold);
  transform: scale(0); transition: transform .6s var(--ease-out) .3s;
}
.step.is-visible .step-dot::after { transform: scale(1); }
.step-n { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.05; margin: 0 0 .6rem; }
.step p:last-child { margin: 0; color: var(--ivory-2); font-weight: 300; }

/* Banda Monterrey */
.band {
  position: relative;
  height: clamp(420px, 80vh, 760px);
  overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate;
}
.band-media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.band-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  filter: grayscale(1) contrast(1.1) brightness(.85);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(11,20,38,.35) 30%, rgba(11,20,38,.4) 70%, var(--bg) 100%),
    rgba(20, 38, 80, .55);
  mix-blend-mode: normal;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(201,164,92,.18), transparent 60%);
  mix-blend-mode: soft-light;
}
.band-copy { padding-inline: var(--gutter); text-align: center; }
.band-text {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 5rem); line-height: 1.02; margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.band-text em { color: var(--gold-2); font-weight: 400; }

/* Contacto */
.contacto-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.contact-list { margin: 0; display: grid; gap: 0; }
.contact-list div { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.contact-list dd { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); word-break: break-word; }
.contact-list a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.contact-list a:hover { background-size: 100% 1px; }

.form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  display: grid; gap: 1.4rem;
}
.field { display: grid; gap: .45rem; }
.field label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-2); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ivory);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(237,230,214,.25);
  padding: .7rem 0;
  border-radius: 0;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: var(--bg-2); color: var(--ivory); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field .is-invalid, .field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-bottom-color: #d97a6c; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--ivory-2); }
.check input { accent-color: var(--gold); margin-top: .25rem; width: 16px; height: 16px; flex: none; }
.check.is-invalid span { color: #e59a8e; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.form-status { margin: 0; min-height: 1.4em; font-size: .88rem; color: var(--gold-2); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 4rem 3rem; background: #08101F; }
.footer-wrap { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem 4rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 72px; height: 72px; }
.footer-brand p { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; }
.footer-brand small { font-family: var(--sans); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: center; justify-content: flex-end; }
.footer-links a, .footer-links .linklike {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ivory-2);
}
.footer-links a:hover, .footer-links .linklike:hover { color: var(--gold-2); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--line-2); padding-top: 2rem; font-size: .8rem; color: var(--muted); }
.footer-legal p { margin: 0 0 .5rem; }
.footer-legal a { color: var(--ivory-2); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--bg);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.6);
  transition: transform .4s var(--ease-out), background .3s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); background: var(--gold-2); }

/* Aviso de privacidad */
.privacy {
  border: 1px solid var(--line); padding: 0; max-width: 560px; width: calc(100% - 2rem);
  background: var(--bg-2); color: var(--ivory);
}
.privacy::backdrop { background: rgba(5, 10, 20, .75); }
.privacy-inner { padding: 2.2rem; }
.privacy h2 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin: 0 0 1rem; }
.privacy p { color: var(--ivory-2); font-size: .92rem; font-weight: 300; }
.privacy a { color: var(--gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 300px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .steps-line { display: none; }
}

@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .35s, transform .45s var(--ease-out), visibility .35s;
  }
  .nav-links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { width: 100%; padding: 1rem 0; font-size: .9rem; border-bottom: 1px solid var(--line-2); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 1.2rem; text-align: center; border-bottom: 1px solid var(--gold) !important; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; padding-top: 1.5rem; }
  .seal { width: min(64vw, 280px); order: -1; justify-self: start; }
  .hero-title { font-size: clamp(2.3rem, 9.5vw, 3.6rem); }

  .despacho-grid, .materias-wrap, .titular-wrap, .contacto-wrap { grid-template-columns: 1fr; }
  .materias-fig { max-width: 100%; }
  .materias-fig img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center 70%; }
  .titular-photo { max-width: 460px; }
  .footer-wrap { grid-template-columns: 1fr; }
  .titular-photo { position: relative; top: auto; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .nav-brand-text { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .cv > div { grid-template-columns: 1fr; gap: .4rem; }
  .index-row { grid-template-columns: 2.4rem 1fr; padding-right: 0; }
  .index-arrow { display: none; }
  .form-actions .btn { flex: 1 1 100%; }
  .hero-foot { font-size: .95rem; gap: .3rem 1rem; }
  .hero-foot span { gap: 1rem; }
}

/* Solo efectos intrusivos se atenúan con reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .seal-ring { animation-duration: 180s; }
}
