/* ============================================================
   605 LEGAL — Sistema visual
   Tinta, burdeo, gris piedra y papel. Editorial, sobrio y con contraste.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14090c;
  --ink-2: #1c0e12;
  --ink-3: #251317;
  --wine: #75061b;
  --wine-deep: #420210;
  --wine-soft: #8f0c25;
  --wine-dark: #22010a;
  --wine-black: #170107;
  --gray-line: rgba(239, 231, 220, .22);
  --gray-line-light: rgba(20, 9, 12, .14);
  --bone: #efe7dc;
  --bone-2: #e5dacd;
  --paper: #f6f3ee;
  --white: #ffffff;
  --muted: #6f6962;
  --line: #e0d8cf;
  --line-dark: rgba(239, 231, 220, .18);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 34px 80px -46px rgba(0, 0, 0, .75);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--wine-soft) var(--wine-black);
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--wine-black); }
::-webkit-scrollbar-thumb {
  background: var(--wine-soft);
  border: 2px solid var(--wine-black);
}
::-webkit-scrollbar-thumb:hover { background: var(--bone); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: #f4f1ec;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--wine); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 0 .5em;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .8rem 1.3rem;
  background: var(--bone);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--bone);
}

:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.manifesto :focus-visible,
.section-wine :focus-visible,
.section-dark :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--bone);
}

::selection {
  background: var(--bone);
  color: var(--ink);
}

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #5a0415;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .85rem;
}

.brand {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 56px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--bone);
  background: transparent;
  border: 1px solid rgba(239, 231, 220, .3);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-block: .45rem;
  color: rgba(239, 231, 220, .68);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: var(--bone);
  border-color: var(--bone);
}

.nav a.nav-cta {
  min-height: 44px;
  padding: .55rem 1.15rem;
  color: var(--wine-deep);
  background: var(--bone);
  border: 1px solid var(--bone);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nav a.nav-cta:hover,
.nav a.nav-cta:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--wine-deep);
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--bone);
  background: #6b0719;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.55) contrast(1.06) brightness(.9);
}

.hero-photo { transform: scaleX(-1); }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 6, 7, .86) 0%, rgba(8, 6, 7, .62) 38%, rgba(8, 6, 7, .22) 68%, rgba(8, 6, 7, .1) 100%),
    linear-gradient(180deg, rgba(8, 6, 7, .02) 0%, rgba(8, 6, 7, .2) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .3;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero::after {
  content: "";
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-block: clamp(4.6rem, 9vw, 8rem);
}

.hero h1,
.hero-lead,
.hero-role,
.eyebrow,
.trust {
  text-shadow: 0 2px 26px rgba(0, 0, 0, .5);
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.5rem;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--bone);
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--bone);
}

.hero h1 {
  margin: 0 0 1.35rem;
  color: var(--bone);
}

.h1-given {
  display: block;
  margin-bottom: .28rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .005em;
  color: var(--bone);
}

.h1-family {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.1rem, 6.1vw, 5.8rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.048em;
  color: var(--bone);
}

.hero-role {
  margin: 0 0 1.65rem;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(239, 231, 220, .62);
}

.hero-lead {
  max-width: 50ch;
  margin-bottom: 2.2rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: rgba(239, 231, 220, .72);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 1rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}

.btn-primary {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--wine-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--wine-deep);
}

.btn-outline {
  border-color: rgba(239, 231, 220, .32);
  color: var(--bone);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--bone);
  color: var(--bone);
  background: rgba(216, 210, 202, .08);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.5rem;
  margin-top: 2.4rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(239, 231, 220, .55);
}

.trust li {
  position: relative;
  padding-left: .9rem;
}

.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bone);
}

/* ---------- Manifiesto ---------- */

.manifesto {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.2rem, 8vw, 6.8rem);
  color: var(--bone);
  background: linear-gradient(180deg, #6b0719 0%, #560415 70%, #36010d 100%);
  border-block: 1px solid rgba(239, 231, 220, .18);
}

.manifesto::before {
  content: "\201C";
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: clamp(14rem, 24vw, 24rem);
  font-weight: 700;
  line-height: .7;
  color: rgba(239, 231, 220, .12);
  pointer-events: none;
}

.manifesto-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.manifesto-label {
  margin-bottom: 1.6rem;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone);
}

.manifesto-quote {
  margin: 0 0 1.7rem;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.7vw, 4.3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.038em;
  color: var(--bone);
  text-wrap: balance;
}

.manifesto-sign {
  margin: 0;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: rgba(239, 231, 220, .6);
}

/* ---------- Secciones ---------- */

main[id],
section[id] { scroll-margin-top: 96px; }

#inicio { scroll-margin-top: 0; }

.section {
  position: relative;
  padding-block: clamp(4.2rem, 8vw, 7rem);
}

.section-bone {
  background: #f3f0eb;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.section-paper {
  background: #f8f5f1;
  color: var(--ink);
  border-block: 1px solid var(--line);
}

.section-dark {
  background: linear-gradient(180deg, #6b0719 0%, #560415 70%, #36010d 100%);
  color: var(--bone);
}

.section-wine {
  color: var(--bone);
  background: linear-gradient(180deg, #6b0719 0%, #560415 70%, #36010d 100%);
}

.section-bone h2,
.section-paper h2 { color: var(--ink); }

.section-dark h2,
.section-wine h2 { color: var(--bone); }

.kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.05rem;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wine);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.section-dark .kicker,
.section-wine .kicker,
.contact .kicker { color: var(--bone); }

.section h2 {
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1.02;
  margin-bottom: .55rem;
  text-wrap: balance;
}

.section-lead {
  max-width: 64ch;
  margin-bottom: 0;
  font-size: 1rem;
}

.section-bone .section-lead,
.section-paper .section-lead { color: var(--muted); }

.section-dark .section-lead,
.section-wine .section-lead { color: rgba(239, 231, 220, .6); }

.section-bone p,
.section-paper p { color: var(--muted); }

.section-dark p,
.section-wine p { color: rgba(239, 231, 220, .68); }

.section-bone p strong,
.section-paper p strong { color: var(--ink); font-weight: 700; }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.grid-2 > * { min-width: 0; }

/* Bloque de color en El estudio */

#estudio {
  overflow: hidden;
  border-top: 0;
}

#estudio .grid-2 {
  position: relative;
  z-index: 1;
  align-items: stretch;
}

/* Panel de datos del estudio */

.study-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--bone);
  background: linear-gradient(180deg, #6b0719 0%, #560415 70%, #36010d 100%);
  border: 0;
  text-align: center;
}

.fact-logo {
  width: 150px;
  height: auto;
  margin: 0 auto 1.6rem;
}

.study-panel h3 {
  margin-bottom: 1.4rem;
  font-size: 1.7rem;
  color: var(--bone);
  text-align: center;
}

.fact-list {
  width: min(100%, 430px);
  margin: 0 auto;
  text-align: left;
}

.fact-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .82rem;
  border-bottom: 1px solid rgba(239, 231, 220, .18);
}

.fact-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact-list dt {
  padding-top: .2rem;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(239, 231, 220, .65);
}

.fact-list dd {
  max-width: 64%;
  margin: 0;
  text-align: right;
  font-size: .9rem;
  color: var(--bone);
}

/* El abogado */

#abogado .grid-2 { align-items: center; }

.lawyer-portrait-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lawyer-portrait {
  width: min(380px, 78vw);
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid rgba(239, 231, 220, .45);
  border-radius: 50%;
  background: transparent;
}

.lawyer-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}

.lawyer-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.lawyer-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  margin-top: 1.6rem;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid rgba(239, 231, 220, .4);
}

.lawyer-link:hover,
.lawyer-link:focus-visible { border-color: var(--bone); }

/* Formación */

.section-formation {
  background: #f3f0eb;
  border-top: 1px solid var(--line);
}

.formation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.formation-intro h2 {
  font-size: clamp(2.2rem, 4.3vw, 3.7rem);
  margin-bottom: 1.2rem;
}

.formation-intro p {
  max-width: 62ch;
  color: var(--muted);
}

.formation-intro .formation-note {
  margin-top: 1.6rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--wine);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.45;
}

.formation-panel {
  padding: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--bone);
  background: linear-gradient(180deg, #6b0719 0%, #560415 70%, #36010d 100%);
}

.formation-university {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--bone);
}

.formation-faculty {
  margin: 0 0 1.3rem;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(239, 231, 220, .65);
}

.formation-rule {
  width: 40px;
  height: 1px;
  margin: 0 0 1.3rem;
  border: 0;
  background: rgba(239, 231, 220, .35);
}

.formation-fact {
  margin: 0 0 .8rem;
  font-size: .92rem;
  color: rgba(239, 231, 220, .78);
}

.formation-focus {
  margin: 1.2rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(239, 231, 220, .2);
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--bone);
}

.formation-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 1.2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.formation-step {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.formation-num {
  display: block;
  margin-bottom: .8rem;
  font-family: var(--display);
  font-size: .85rem;
  color: var(--wine);
}

.formation-step h3 {
  margin-bottom: .35rem;
  font-size: 1.12rem;
}

.formation-step p {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}

.formation-quote {
  max-width: 900px;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}

.formation-quote span {
  display: block;
  color: var(--wine);
}

/* Áreas */

.areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.6rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.area {
  position: relative;
  overflow: hidden;
  background-color: #6b0719;
  border: 0;
}

.area picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.area-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.area::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 6, 7, .5) 0%, rgba(8, 6, 7, .8) 100%);
  transition: opacity .3s ease;
}

.area:hover::after { opacity: .85; }

.area-body {
  position: relative;
  z-index: 2;
  padding: clamp(1.7rem, 2.8vw, 2.3rem);
}

.area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 2px;
  background: var(--bone);
}

.area-num {
  display: block;
  margin-bottom: 1.2rem;
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--bone);
}

.area h3 {
  margin-bottom: .5rem;
  font-size: 1.35rem;
  color: var(--bone);
}

.area p {
  margin: 0;
  font-size: .91rem;
  line-height: 1.65;
  color: rgba(239, 231, 220, .85);
}

/* Capacidades */

.section-capabilities {
  background: #f1ece5;
  border-top: 0;
}

.capabilities-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-capabilities .capabilities-statement {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: .95;
  letter-spacing: -.045em;
  color: var(--ink);
}

.capabilities-statement span { color: var(--wine); }

.capabilities-head .section-lead {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--muted);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.capability {
  padding-block: clamp(1.5rem, 2.6vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}

.capability-num {
  display: block;
  margin-bottom: .85rem;
  font-family: var(--display);
  font-size: .88rem;
  color: var(--wine);
}

.capability h3 {
  margin-bottom: .4rem;
  font-size: 1.45rem;
  color: var(--ink);
}

.capability p {
  max-width: 46ch;
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

.capabilities-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  margin-top: 2.2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.capabilities-link:hover,
.capabilities-link:focus-visible { border-color: var(--wine); }

@media (max-width: 980px) {
  .capabilities-head {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 760px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}

/* Pasos */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.5vw, 2.8rem);
  margin-top: 2.8rem;
}

.step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.step-num {
  display: block;
  margin-bottom: .7rem;
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bone);
}

.step h3 {
  margin-bottom: .4rem;
  font-size: 1.2rem;
  color: var(--bone);
}

.step p {
  margin: 0;
  font-size: .91rem;
  color: rgba(239, 231, 220, .6);
}

/* Preguntas */

.faq {
  max-width: 860px;
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 1.15rem 2.8rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--wine);
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  padding: 0 2.8rem 1.25rem 0;
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

.faq a {
  color: var(--wine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.faq a:hover { color: var(--wine); }

/* Contacto */

.contact {
  color: var(--bone);
  background: linear-gradient(180deg, #6b0719 0%, #560415 70%, #36010d 100%);
}

.contact h2 { color: var(--bone); }
.contact p { color: rgba(239, 231, 220, .68); }
.contact .grid-2 { align-items: center; }
.contact .actions { margin-top: 1.9rem; }

.contact-list {
  margin: 0;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid var(--gray-line);
}

.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(239, 231, 220, .16);
}

.contact-list li:last-child { border-bottom: 0; }

.contact-label {
  flex: 0 0 auto;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone);
}

.contact-value {
  font-size: .95rem;
  line-height: 1.5;
  text-align: right;
  color: var(--bone);
  text-decoration: none;
}

a.contact-value {
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

a.contact-value:hover,
a.contact-value:focus-visible {
  color: var(--bone);
  border-color: var(--bone);
}

/* Pie */

.site-footer {
  padding-block: 3rem 2.6rem;
  background: #0d0103;
  border-top: 1px solid var(--gray-line);
  color: rgba(239, 231, 220, .55);
  font-size: .79rem;
}

.footer-inner { display: grid; gap: 1.1rem; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(239, 231, 220, .12);
}

.footer-logo {
  width: 102px;
  height: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-nav a {
  color: rgba(239, 231, 220, .58);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--bone); }

.footer-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--bone);
}

.legal {
  max-width: 78ch;
  margin: 0;
  line-height: 1.6;
}

.copy { margin: 0; }

.footer-credit {
  margin: 0;
  font-size: .66rem;
  color: rgba(239, 231, 220, .62);
}

.footer-credit a {
  color: rgba(239, 231, 220, .58);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover,
.footer-credit a:focus-visible { color: var(--bone); }

.to-top {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .5rem;
  min-height: 44px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.to-top:hover,
.to-top:focus-visible {
  color: var(--bone);
  border-color: var(--bone);
}

/* ---------- Adaptación ---------- */

@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }

  .formation-grid { grid-template-columns: 1fr; }
  .formation-panel { max-width: 620px; }
  .formation-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  #abogado .grid-2 { align-items: start; }

  #estudio::before { display: none; }

  .study-panel {
    width: 100%;
    min-height: 0;
    margin: 2rem 0 0;
    padding: 2rem;
    border: 0;
  }

  .fact-logo { width: 120px; }

  .contact-list {
    padding-left: 0;
    padding-top: 1.25rem;
    border-left: 0;
    border-top: 1px solid var(--gray-line);
  }

  #abogado .grid-2 > .lawyer-portrait-wrap { order: 1; }
  #abogado .grid-2 > .lawyer-copy { order: 2; }

  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  main[id],
  section[id]:not(#inicio) { scroll-margin-top: 84px; }

  .hero {
    display: flex;
    flex-direction: column;
    background: #6b0719;
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    height: 40vh;
    min-height: 280px;
    max-height: 420px;
  }

  .hero-inner {
    order: 2;
    width: 100%;
    padding-block: 2.2rem 2.4rem;
  }

  .hero-media img {
    object-position: 50% center;
    filter: saturate(.55) contrast(1.06) brightness(.92);
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(8, 6, 7, .15) 0%, rgba(8, 6, 7, .2) 55%, rgba(8, 6, 7, .9) 100%);
  }

  .header-inner {
    position: static;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 0;
    min-height: 68px;
    padding-block: .55rem;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .brand img { height: 40px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: .35rem .9rem 1.1rem;
    font-size: .7rem;
    letter-spacing: .12em;
    background: #4b0312;
    border-top: 1px solid rgba(239, 231, 220, .18);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .4);
  }

  .nav.is-open { display: flex; }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 50px;
    padding: .75rem .2rem;
    white-space: normal;
    border-bottom: 1px solid rgba(239, 231, 220, .14);
  }

  .nav a:last-child { border-bottom: 0; }

  .nav a.nav-cta {
    position: static;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: .9rem;
    padding: .8rem 1rem;
    color: var(--wine-deep);
    background: var(--bone);
    border: 1px solid var(--bone);
  }

  .nav a.nav-cta:hover,
  .nav a.nav-cta:focus-visible {
    color: var(--wine-deep);
    background: var(--white);
    border-color: var(--white);
  }

  body.menu-open { overflow: hidden; }

  .actions .btn { flex: 1 1 auto; }

  .areas { grid-template-columns: 1fr; }

  .area { min-height: 190px; }

  .area-body {
    width: 62%;
    margin-left: 38%;
    padding: 1.15rem 1.15rem 1.15rem 0;
  }

  .area::after {
    background: linear-gradient(90deg, rgba(8, 6, 7, .04) 0%, rgba(8, 6, 7, .82) 38%, rgba(8, 6, 7, .92) 100%);
  }

  .area-num { margin-bottom: .7rem; }
  .area h3 { font-size: 1.2rem; }
  .area p { font-size: .88rem; line-height: 1.55; }

  .steps { grid-template-columns: 1fr; }

  .contact-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
  }

  .contact-value { text-align: left; }

  .footer-top { align-items: flex-start; }
}

@media (max-width: 620px) {
  .wrap { width: min(1200px, 100% - 1.8rem); }

  .section { padding-block: 3.2rem; }

  .section h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }

  .manifesto { padding-block: 3.2rem; }

  .formation-steps {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .formation-intro h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }

  .formation-step { padding-top: 1rem; }

  .formation-quote {
    margin-top: 2rem;
    font-size: 1.7rem;
  }

  .study-panel { padding: 1.6rem; }

  .formation-panel { padding: 1.5rem; }

  .areas { margin-top: 2rem; }

  .section-capabilities .capabilities-statement { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }

  .capabilities-head { margin-bottom: 2rem; }

  .manifesto::before { display: none; }

  .manifesto-quote {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .hero::after { display: none; }

  .trust { display: none; }

  .hero-inner { padding-block: 2rem 2.2rem; }

  .h1-given { font-size: clamp(1.35rem, 6vw, 1.75rem); }

  .h1-family {
    font-size: clamp(2.9rem, 12.5vw, 3.7rem);
    letter-spacing: -.04em;
  }

  .fact-list > div {
    flex-direction: column;
    gap: .2rem;
  }

  .fact-list dd {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }

  .hero-media {
    height: 34vh;
    min-height: 240px;
  }

  .footer-top { flex-direction: column; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ---------- Impresión ---------- */

@media print {
  .site-header,
  .actions,
  .trust,
  .hero-media,
  .skip,
  .progress,
  .to-top,
  .fact-logo { display: none; }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .hero,
  .manifesto,
  .section-dark,
  .section-wine,
  .contact,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1,
  .h1-given,
  .h1-family,
  .hero-role,
  .hero-lead,
  .manifesto-label,
  .manifesto-quote,
  .manifesto-sign,
  .section-dark h2,
  .section-wine h2,
  .contact h2,
  .contact p,
  .contact-value,
  .footer-name,
  .step h3,
  .step p {
    color: #000 !important;
  }

  .hero::before,
  .hero::after,
  .manifesto::before,
  .area::before { display: none; }

  .section { padding-block: 1.2rem; border: 0; }

  .study-panel {
    padding: 0;
    color: #000 !important;
    background: #fff !important;
    border: 1px solid #000;
  }

  .study-panel h3,
  .fact-list dd { color: #000 !important; }

  .fact-list dt { color: #444 !important; }

  .fact-list > div { border-color: #ccc !important; }

  .contact-list { border-color: #000; }

  .area { break-inside: avoid; }
  .faq details { break-inside: avoid; }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: .8em;
  }
}
