/* Mockup 3 — Editorial jurídico / prestigioso */
:root {
  --ink: #14110f;
  --ink-soft: #3f3a36;
  --muted: #7a736c;
  --paper: #f6f1ea;
  --paper-2: #efe8de;
  --white: #fbf8f3;
  --line: #d9d0c4;
  --wine: #5c2433;
  --wine-deep: #3d1522;
  --copper: #9a6b3f;
  --header-h: 0px;
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl, blockquote { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
::selection { background: var(--wine); color: var(--paper); }
:focus-visible { outline: 1px solid var(--wine); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -40px; z-index: 80;
  background: var(--ink); color: var(--paper); padding: 8px 12px;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(980px, calc(100% - 48px)); margin-inline: auto; }
.wrap-wide { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--copper);
}
.lede { max-width: 42ch; color: var(--ink-soft); font-size: 1.05rem; }
.rule {
  border: 0; height: 1px; margin: 0;
  background: var(--line);
}

/* Masthead editorial */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 0;
}
.masthead {
  text-align: center; padding-bottom: 22px;
}
.masthead .brand {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; gap: 6px;
}
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--wine);
  color: var(--wine); font-family: var(--serif);
  font-style: italic; font-size: 18px;
}
.brand-text strong {
  display: block; font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 400;
  letter-spacing: 0.04em;
}
.brand-text small {
  display: block; margin-top: 2px;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--copper);
}
.header-inner { display: block; }
.nav-toggle {
  display: none; margin: 12px auto; border: 1px solid var(--line);
  background: var(--paper); padding: 8px 14px; cursor: pointer;
}
.nav {
  display: flex; justify-content: center; align-items: center;
  gap: 0; border-top: 1px solid var(--line);
}
.nav a {
  position: relative; text-decoration: none;
  padding: 14px 18px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  transition: color 0.3s;
}
.nav a:hover, .nav a.is-active { color: var(--wine); }
.nav a.btn {
  margin-left: 8px; padding: 10px 16px;
  background: var(--wine); color: var(--paper) !important;
  letter-spacing: 0.12em;
}
.nav a.btn:hover { background: var(--wine-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border: 1px solid var(--wine);
  background: var(--wine); color: var(--paper); text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn-ghost {
  background: transparent; color: var(--paper); border-color: rgba(251,248,243,0.45);
}
.btn-ghost:hover { background: transparent; color: white; border-color: white; }
.btn-outline {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-outline:hover { border-color: var(--wine); color: var(--wine); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2a2420; }

/* Hero tipográfico a pantalla */
.hero {
  position: relative; min-height: min(78vh, 720px);
  display: grid; place-items: center; text-align: center;
  color: var(--paper); overflow: hidden;
  background:
    linear-gradient(180deg, rgba(61,21,34,0.55) 0%, rgba(20,17,15,0.78) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
}
.hero-copy {
  width: min(820px, calc(100% - 48px));
  padding: 64px 0;
}
.hero .eyebrow { color: #d4b48a; }
.hero h1 {
  margin: 0 0 20px; color: var(--paper);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-style: italic; font-weight: 400;
  max-width: 14ch; margin-inline: auto;
}
.hero .lede {
  margin: 0 auto 28px; color: #d8cfc4; max-width: 40ch;
}
.hero-actions {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
}
.hero-form, .lead-band { display: none; }

/* Folio / stats como tipografía de revista */
.folio {
  background: var(--wine-deep); color: #d8cfc4;
  border-block: 1px solid rgba(154,107,63,0.35);
}
.folio-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.folio article {
  padding: 28px 18px; text-align: center;
  border-right: 1px solid rgba(251,248,243,0.1);
}
.folio article:last-child { border-right: 0; }
.folio strong {
  display: block; font-family: var(--serif);
  font-size: 1.8rem; font-weight: 400; color: var(--paper); line-height: 1;
}
.folio span {
  display: block; margin-top: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}

.section { padding: 88px 0; }
.section-head { margin-bottom: 40px; max-width: 520px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 0 0 14px; font-size: clamp(2rem, 3.5vw, 2.9rem); }
.section-head .lede { margin: 0; }

/* Intro dos columnas editorial */
.chapter {
  display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 48px;
  align-items: start;
}
.chapter-label {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--copper); padding-top: 8px;
}
.chapter h2 {
  margin: 0 0 18px; font-size: clamp(2rem, 3vw, 2.7rem);
}
.drop {
  float: left; margin: 4px 12px 0 0;
  font-family: var(--serif); font-size: 4.2rem; line-height: 0.8;
  color: var(--wine);
}
.prose p { color: var(--ink-soft); }
.pull {
  clear: both; margin: 28px 0 0; padding: 0;
  border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.35; text-align: center;
}

/* Practice list vertical — sin cards */
.practice-list { list-style: none; margin: 0; padding: 0; }
.practice-list li {
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 24px; align-items: baseline;
  padding: 28px 0; border-top: 1px solid var(--line);
  text-decoration: none;
}
.practice-list a {
  display: contents; text-decoration: none;
}
.practice-list li:last-child { border-bottom: 1px solid var(--line); }
.practice-list .num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem; color: var(--copper);
}
.practice-list h3 {
  margin: 0 0 6px; font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  transition: color 0.3s;
}
.practice-list p { margin: 0; max-width: 48ch; color: var(--ink-soft); font-size: 15px; }
.practice-list .go {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--wine); align-self: center;
}
.practice-list li:hover h3 { color: var(--wine); }

/* Imagen capítulo */
.chapter-break {
  position: relative; min-height: 420px;
  display: grid; place-items: end start;
  background:
    linear-gradient(0deg, rgba(20,17,15,0.75), rgba(20,17,15,0.2)),
    url("../img/estudio.jpg") center / cover no-repeat;
  color: var(--paper);
}
.chapter-break .wrap { padding: 48px 0; }
.chapter-break p {
  margin: 0; max-width: 16ch;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2;
}

/* Método romano */
.method {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.method article {
  padding: 28px 20px 8px 0; border-right: 1px solid var(--line);
}
.method article:last-child { border-right: 0; padding-right: 0; }
.method .num {
  display: block; margin-bottom: 14px;
  font-family: var(--serif); font-style: italic;
  font-size: 1.5rem; color: var(--copper);
}
.method h3 { margin: 0 0 8px; font-size: 1.25rem; }
.method p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Clientes sobrios */
.clients {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line); background: var(--white);
}
.client {
  min-height: 100px; display: grid; place-items: center; padding: 16px;
  border-right: 1px solid var(--line);
}
.client:last-child { border-right: 0; }
.client img { width: min(100%, 110px); height: 36px; object-fit: contain; opacity: 0.7; filter: grayscale(1); }
.client-note { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

.cta-band {
  padding: 56px 0; text-align: center;
  background: var(--wine-deep); color: #d8cfc4;
  border-top: 1px solid rgba(154,107,63,0.4);
}
.cta-band h2 {
  margin: 0 auto 22px; max-width: 16ch;
  color: var(--paper); font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-style: italic;
}
.cta-band .wrap {
  display: flex; flex-direction: column; align-items: center;
}

/* Páginas internas */
.page-hero {
  padding: 64px 0 48px; text-align: center;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0 auto 14px; max-width: 14ch;
  font-size: clamp(2.4rem, 4.5vw, 3.5rem); font-style: italic;
}
.page-hero .lede { margin: 0 auto; }

.anchor-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246,241,234,0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.anchor-inner {
  display: flex; justify-content: center; gap: 0; overflow-x: auto;
}
.anchor-inner a {
  flex: 0 0 auto; padding: 14px 16px; text-decoration: none;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.anchor-inner a:hover, .anchor-inner a.is-active {
  color: var(--wine); border-bottom-color: var(--wine);
}

.services-stack { display: grid; gap: 0; padding: 24px 0 48px; }
.service-card {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 40px; padding: 48px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.service-photo {
  position: relative; min-height: 280px; overflow: hidden;
  background: var(--ink);
}
.service-photo img {
  width: 100%; height: 100%; min-height: 280px; object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}
.service-badge {
  position: absolute; left: 16px; top: 16px;
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem; color: var(--paper);
  background: none; width: auto; height: auto;
}
.service-body { padding-top: 8px; }
.service-body h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 2.5vw, 2.4rem); font-style: italic; }
.service-body p { margin: 0 0 18px; color: var(--ink-soft); }
.text-link {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--wine); border-bottom: 1px solid var(--wine);
  padding-bottom: 2px;
}
.includes {
  grid-column: 1 / -1; margin: 0; padding: 0;
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.includes li {
  padding: 14px 0 0; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.includes li::before { display: none; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.visual { position: relative; min-height: 380px; overflow: hidden; background: var(--ink); }
.visual img {
  width: 100%; height: 100%; min-height: 380px; object-fit: cover;
  filter: grayscale(0.3);
}
.visual-frame {
  position: absolute; inset: 16px; border: 1px solid rgba(251,248,243,0.35);
  pointer-events: none;
}
.visual-caption {
  position: absolute; left: 28px; bottom: 28px; margin: 0; z-index: 1;
  max-width: 12ch; font-family: var(--serif); font-style: italic;
  font-size: 1.6rem; color: var(--paper);
}

.values, .expect-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
.value, .expect-item {
  padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
}
.value:nth-child(2n), .expect-item:nth-child(2n) {
  padding-left: 24px; padding-right: 0; border-right: 0;
}
.value h3, .expect-item h3 { margin: 0 0 8px; font-size: 1.4rem; font-style: italic; }
.value p, .expect-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.expect-icon {
  display: block; margin-bottom: 10px;
  font-family: var(--serif); font-style: italic; color: var(--copper);
}

.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.partner {
  display: grid; gap: 16px; padding: 0;
  background: transparent; border: 0;
  grid-template-columns: 1fr;
  text-align: center;
}
.monogram {
  width: 88px; height: 88px; margin-inline: auto;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--wine); color: var(--wine);
  font-family: var(--serif); font-style: italic; font-size: 2rem;
  background: var(--white);
}
.partner h3 { margin: 0; font-size: 1.6rem; font-style: italic; }
.role {
  margin: 4px 0 10px; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--copper);
}
.partner p:last-child { margin: 0; color: var(--ink-soft); font-size: 15px; }

.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px;
  padding: 56px 0 80px; align-items: start;
}
.facts { margin: 0 0 28px; }
.facts div {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.facts dd { margin: 0; }
.facts a { color: var(--wine); text-decoration: none; border-bottom: 1px solid transparent; }
.facts a:hover { border-bottom-color: var(--wine); }
.prepare h2 { margin: 0 0 12px; font-size: 1.5rem; font-style: italic; }
.prepare ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }

.contact-form, .form-success {
  padding: 0; background: transparent; border: 0;
}
.contact-form h2, .form-success h2 {
  margin: 0 0 8px; font-size: 2rem; font-style: italic;
}
.form-note { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, textarea, select {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: transparent;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-bottom-color: var(--wine);
}
textarea { min-height: 140px; resize: vertical; }
.fine { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.form-success[hidden], [hidden] { display: none !important; }
.contact-form .btn { width: auto; margin-top: 8px; }

/* Colophon footer */
.site-footer {
  background: var(--ink); color: #a89f94; padding: 56px 0 24px;
  border-top: 1px solid rgba(154,107,63,0.35);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 0.7fr 1fr 1.1fr; gap: 28px;
}
.site-footer h2 {
  margin: 0 0 14px; color: #d8cfc4; font-family: var(--sans);
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #d4b48a; }
.footer-brand strong {
  display: block; color: var(--paper); font-family: var(--serif);
  font-size: 1.5rem; font-weight: 400; font-style: italic;
}
.footer-brand span {
  display: block; margin: 6px 0 14px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--copper);
}
.footer-base {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid rgba(168,159,148,0.2); font-size: 12px;
}

.mockup-badge {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  padding: 8px 12px; background: rgba(20,17,15,0.92);
  color: #d4b48a; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(154,107,63,0.45); pointer-events: none;
}

.fx { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0; transform: translateY(14px);
    animation: rise 1s var(--ease) both;
  }
  .hero-copy > *:nth-child(1) { animation-delay: 0.15s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.3s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.45s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.6s; }
  html.motion-on .fx {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  html.motion-on .fx.is-in { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; flex-direction: column; align-items: stretch;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { text-align: center; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin: 12px 16px; }
  .folio-inner, .method, .clients { grid-template-columns: 1fr 1fr; }
  .folio article:nth-child(2) { border-right: 0; }
  .folio article:nth-child(3), .folio article:nth-child(4) {
    border-top: 1px solid rgba(251,248,243,0.1);
  }
  .practice-list li { grid-template-columns: 48px 1fr; }
  .practice-list .go { display: none; }
  .includes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-card { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  .chapter, .split, .contact-grid, .partners { grid-template-columns: 1fr; }
  .hero h1, .page-hero h1 { max-width: none; }
  .values, .expect-grid, .field-row, .footer-grid, .folio-inner, .method, .clients, .includes {
    grid-template-columns: 1fr;
  }
  .value:nth-child(2n), .expect-item:nth-child(2n) { padding-left: 0; }
  .value, .expect-item, .method article { border-right: 0; padding-right: 0; }
  .footer-base { flex-direction: column; }
  .wrap, .wrap-wide { width: min(980px, calc(100% - 32px)); }
}
