/* Estudio Silva · hoja de estilos */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
}

/* ---------- LibreSitio demo bar (shared spec, self-contained) ---------- */
.ls-demobar {
  all: initial;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  background: #0b0b0c;
  border-bottom: 1px solid #2a2b2e;
  color: #c5c8cc;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: .02em;
  line-height: 1;
  position: relative;
  z-index: 60;
}
.ls-demobar *, .ls-demobar *::before, .ls-demobar *::after {
  box-sizing: border-box;
  font: inherit;
  letter-spacing: inherit;
  margin: 0;
}
.ls-demobar a { color: #c5c8cc; text-decoration: none; }
.ls-demobar a:focus-visible { outline: 2px solid #c5c8cc; outline-offset: 3px; border-radius: 4px; }
.ls-demobar__brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ls-demobar__brand svg { display: block; width: 12px; height: 21px; flex: none; }
.ls-demobar__mid { color: #9a9ea3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-demobar__end { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.ls-demobar__plans:hover { color: #ffffff; }
.ls-demobar__mobile { display: none; color: #9a9ea3; }
.ls-demobar__pill {
  display: inline-block;
  border: 1px solid #c5c8cc;
  border-radius: 999px;
  padding: 4px 12px;
  transition: background-color .15s, color .15s;
}
.ls-demobar a.ls-demobar__pill:hover { background: #c5c8cc; color: #0b0b0c; }
@media (max-width: 599px) {
  .ls-demobar { padding: 0 12px; }
  .ls-demobar__mid, .ls-demobar__plans { display: none; }
  .ls-demobar__mobile { display: inline; }
  .ls-demobar__end { gap: 10px; }
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0c121c;
  --ink-2: #111a28;
  --navy: #1a2a44;
  --ivory: #ece6da;
  --ivory-mute: #a9a397;
  --paper: #f3eee5;
  --paper-2: #e9e2d5;
  --text-on-paper: #161d29;
  --mute-on-paper: #5a554c;
  --brass: #c4a46c;
  --brass-hi: #d8bd8a;
  --brass-ink: #765826;
  --walnut: #4a2f1f;
  --line: rgba(236, 230, 218, .12);
  --line-strong: rgba(236, 230, 218, .22);
  --line-paper: rgba(22, 29, 41, .14);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top:calc(calc(var(--header-h) + 16px) + var(--ls-bar-h,0px));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, picture, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--brass); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}
.paper :focus-visible { outline-color: var(--brass-ink); }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--brass);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.skip:focus { top: 52px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.8rem); }
h3 { font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.25rem); line-height: 1.1; }
h1 em, h2 em, h3 em, .display em { font-style: italic; color: var(--brass); font-weight: 500; }
.paper h2 em, .paper h3 em { color: var(--brass-ink); }

p { text-wrap: pretty; }

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 26px;
}
.kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.paper .kicker { color: var(--brass-ink); }

.lede {
  font-size: clamp(1.075rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
  color: var(--ivory-mute);
  max-width: 34em;
}
.paper .lede { color: var(--mute-on-paper); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brass);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { --bg: var(--brass-hi); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost {
  --bg: transparent;
  --fg: var(--ivory);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --bg: transparent; border-color: var(--brass); color: var(--brass-hi); }
.paper .btn { --bg: var(--ink); --fg: var(--paper); }
.paper .btn:hover { --bg: var(--navy); }
.paper .btn--ghost { --bg: transparent; --fg: var(--text-on-paper); border-color: var(--line-paper); }
.paper .btn--ghost:hover { border-color: var(--text-on-paper); color: var(--text-on-paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Page transition curtain ---------- */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
body::before { inset: 0; background: var(--ink); transform: translateY(100%); }
body::after {
  content: "ES";
  left: 50%;
  top: 50%;
  font: 500 3.2rem/1 var(--serif);
  letter-spacing: -.14em;
  color: var(--brass);
  transform: translate(-50%, -50%);
  opacity: 0;
}
.is-entering body::before { visibility: visible; transform: none; animation: curtain-out .9s .12s var(--ease-io) forwards; }
.is-entering body::after { visibility: visible; animation: mono-out .5s ease forwards; opacity: 1; }
.is-leaving body::before { visibility: visible; animation: curtain-in .55s var(--ease-io) forwards; pointer-events: all; }
.is-leaving body::after { visibility: visible; animation: mono-in .4s .25s ease forwards; }
@keyframes curtain-out { to { transform: translateY(-100%); } }
@keyframes curtain-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes mono-out { to { opacity: 0; } }
@keyframes mono-in { to { opacity: 1; } }
:root { --ease-io: cubic-bezier(.76, 0, .24, 1); --intro: 0s; }
.is-entering { --intro: .55s; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top:var(--ls-bar-h,0px);
  z-index: 80;
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
/* blur on a pseudo-element so the fixed mobile menu is not trapped by backdrop-filter */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 18, 28, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: background-color .3s;
}
.menu-open .site-header::before { background: var(--ink); }
.site-header.is-hidden { transform: translateY(-101%); }
.menu-open .site-header { transform: none; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--brass);
  transform-origin: left;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { to { transform: scaleX(1); } }
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ivory);
  flex: none;
  position: relative;
  z-index: 2;
}
.brand-mono {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.14em;
  color: var(--brass);
  padding-right: .14em;
}
.brand-rule { width: 1px; height: 30px; background: var(--line-strong); }
.brand-word {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: .95;
  text-transform: uppercase;
}
.brand-word small {
  font-family: var(--sans);
  font-size: .5625rem;
  font-weight: 600;
  letter-spacing: .34em;
  color: var(--ivory-mute);
  margin-bottom: 4px;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; gap: 32px; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ivory-mute);
  text-decoration: none;
  transition: color .2s;
}
.nav-list a .n { display: none; }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-list a:hover { color: var(--ivory); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-list a[aria-current="page"] { color: var(--ivory); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .875rem; }
.nav-extra { display: none; }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px 0 12px;
  background: none;
  border: 0;
  color: var(--ivory);
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle .bars { position: relative; width: 26px; height: 10px; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: "";
  position: absolute;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease), width .45s var(--ease);
}
.menu-toggle .bars::before { top: 0; width: 100%; }
.menu-toggle .bars::after { top: 8.5px; width: 62%; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 4.25px; width: 100%; transform: rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand-mono { font-size: 1.8rem; }
  .brand-word { font-size: 1.25rem; }
  .brand-rule { height: 26px; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--menu-top, var(--header-h));
    bottom: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    padding: 24px var(--gutter) max(28px, env(safe-area-inset-bottom));
    background: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .7s var(--ease-io), visibility 0s .7s;
  }
  .js .nav.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease-io), visibility 0s; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list li { overflow: hidden; border-bottom: 1px solid var(--line); }
  .js .nav-list a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 18px 0;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--ivory);
    transform: translateY(105%);
    transition: transform .8s var(--ease), color .2s;
  }
  .js .nav-list a .n { display: inline; font-size: 1rem; font-style: italic; color: var(--brass); width: 2em; flex: none; }
  .js .nav-list a::after { display: none; }
  .js .nav-list a[aria-current="page"] { color: var(--brass); }
  .js .nav.is-open .nav-list a { transform: none; }
  .js .nav.is-open .nav-list li:nth-child(1) a { transition-delay: .18s; }
  .js .nav.is-open .nav-list li:nth-child(2) a { transition-delay: .25s; }
  .js .nav.is-open .nav-list li:nth-child(3) a { transition-delay: .32s; }
  .js .nav-extra {
    display: grid;
    gap: 22px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s, transform .6s var(--ease);
  }
  .js .nav.is-open .nav-extra { opacity: 1; transform: none; transition-delay: .42s; }
  .nav-extra address, .nav-extra p { font-style: normal; color: var(--ivory-mute); font-size: .9375rem; }
  .js .nav .btn { min-height: 54px; width: 100%; font-size: .9375rem; }
  html:not(.js) .site-header .wrap { height: auto; flex-wrap: wrap; padding-block: 14px; gap: 12px; }
  html:not(.js) .nav { width: 100%; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  html:not(.js) .nav-list { gap: 20px; }
}
.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 6rem + 4vw, 168px); }
.section--tight { padding-block: clamp(64px, 4rem + 3vw, 120px); }
.paper { background: var(--paper); color: var(--text-on-paper); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: clamp(48px, 3rem + 2vw, 88px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 64px; }
  .section-head .lede { justify-self: end; }
}
.kicker .idx { font-variant-numeric: tabular-nums; }

/* ---------- Intro choreography (only when motion is OK) ---------- */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }
.motion-ok .intro .line > span { transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.motion-ok .intro .line:nth-child(1) > span { animation-delay: calc(var(--intro) + .15s); }
.motion-ok .intro .line:nth-child(2) > span { animation-delay: calc(var(--intro) + .27s); }
.motion-ok .intro .line:nth-child(3) > span { animation-delay: calc(var(--intro) + .39s); }
.motion-ok .intro .fade { opacity: 0; transform: translateY(14px); animation: fadeup .9s var(--ease) forwards; }
.motion-ok .intro .fade.d1 { animation-delay: calc(var(--intro) + .05s); }
.motion-ok .intro .fade.d2 { animation-delay: calc(var(--intro) + .5s); }
.motion-ok .intro .fade.d3 { animation-delay: calc(var(--intro) + .62s); }
.motion-ok .intro .fade.d4 { animation-delay: calc(var(--intro) + .76s); }
.motion-ok .intro .wipe { clip-path: inset(0 0 0 100%); animation: wipe 1.4s calc(var(--intro) + .1s) var(--ease-io) forwards; }
.motion-ok .intro .wipe img { transform: scale(1.14); animation: settle 2.2s calc(var(--intro) + .1s) var(--ease) forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fadeup { to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }

/* ---------- Hero (index) ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.hero-media { position: relative; overflow: hidden; background: var(--ink-2); }
.hero-media picture, .hero-media .px { display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 18, 28, .92) 0%, rgba(12, 18, 28, 0) 40%),
    linear-gradient(0deg, rgba(12, 18, 28, .16), rgba(12, 18, 28, .16));
  pointer-events: none;
}
.hero-copy { position: relative; padding: 8px var(--gutter) 56px; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy .lede { margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.hero-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.hero-facts span:first-child { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-mute); padding-top: 2px; }
.hero-facts span:last-child { text-align: right; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 14px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  writing-mode: vertical-rl;
}
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--brass) 50%, rgba(196, 164, 108, .25) 50%); background-size: 100% 200%; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue::after { animation: cue 2.4s var(--ease-io) infinite; }
  @keyframes cue { 0% { background-position: 0 100%; } 100% { background-position: 0 -100%; } }
}

@media (max-width: 899px) {
  .hero-media { aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; }
  .hero-media img { object-position: 36% 60%; }
  .hero-copy { margin-top: -28px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero-media { aspect-ratio: 16 / 9; max-height: none; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 0; }
  .hero-facts li { flex-direction: column; gap: 6px; border-top: 1px solid var(--line); border-bottom: 0; }
  .hero-facts span:last-child { text-align: left; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); min-height: min(calc(100svh - var(--ls-bar-h,0px) - var(--header-h)), 880px); }
  .hero-copy {
    order: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(56px, 7vh, 112px) clamp(32px, 4vw, 72px) clamp(48px, 6vh, 88px) max(var(--gutter), (100vw - var(--maxw)) / 2);
  }
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(12, 18, 28, 1) 0%, rgba(12, 18, 28, 0) 24%),
      linear-gradient(0deg, rgba(12, 18, 28, .5) 0%, rgba(12, 18, 28, 0) 35%),
      linear-gradient(0deg, rgba(12, 18, 28, .1), rgba(12, 18, 28, .1));
  }
  .hero-media .px { position: absolute; inset: -6% 0; height: auto; }
  .hero-media img { object-position: 38% 50%; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 0; margin-top: clamp(40px, 7vh, 80px); }
  .hero-facts li { flex-direction: column; gap: 6px; border-top: 1px solid var(--line); border-bottom: 0; padding-top: 16px; }
  .hero-facts span:last-child { text-align: left; }
  .scroll-cue { display: inline-flex; }
}

/* ---------- Statement (word fill) ---------- */
.statement-text {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.005em;
  max-width: 21em;
}
.statement-text em { font-style: italic; color: var(--brass); }
.statement-text .w { opacity: var(--o, 1); transition: opacity .25s linear; }
.statement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ivory-mute);
  font-size: .9375rem;
}

/* ---------- Practice index (home) ---------- */
.practice { border-top: 1px solid var(--line-paper); }
.practice-item a {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 48px;
  grid-template-areas: "n t i" ". d d";
  gap: 10px 12px;
  align-items: baseline;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line-paper);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}
.practice-item a::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  z-index: -1;
  background: var(--paper-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.practice-item a:hover::before, .practice-item a:focus-visible::before { transform: scaleY(1); }
.practice-item .numeral { grid-area: n; }
.practice-item h3 { grid-area: t; font-size: clamp(2.3rem, 1.5rem + 3vw, 4.6rem); transition: transform .6s var(--ease); }
.practice-item a:hover h3 { transform: translateX(14px); }
.practice-item p { grid-area: d; color: var(--mute-on-paper); max-width: 30em; }
.ring {
  grid-area: i;
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-paper);
  border-radius: 50%;
  transition: background-color .4s var(--ease), color .4s, border-color .4s, transform .6s var(--ease);
}
.ring svg { width: 16px; height: 16px; }
.practice-item a:hover .ring { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
.numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brass-ink);
  line-height: 1;
}
@media (min-width: 900px) {
  .practice-item a {
    grid-template-columns: 80px minmax(0, 5fr) minmax(0, 4fr) 64px;
    grid-template-areas: "n t d i";
    align-items: center;
    gap: 40px;
    padding: 52px 0;
  }
  .ring { width: 64px; height: 64px; }
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.split-media { position: relative; }
.split-media .clip { overflow: hidden; aspect-ratio: 4 / 3; }
.split-media .px { display: block; height: 116%; margin-top: -8%; }
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.frame::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid rgba(196, 164, 108, .45);
  pointer-events: none;
}
.split-copy h2 { margin-bottom: 24px; }
.split-copy .lede { margin-bottom: 36px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(56px, 7vw, 120px); }
  .split-media .clip { aspect-ratio: 5 / 6; }
  .split-media img { object-position: 61% 50%; }
  .split--rev .split-media { order: 2; }
}

.points { margin: 0 0 40px; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.points svg { width: 18px; height: 18px; color: var(--brass); margin-top: 5px; }

/* ---------- Steps (scrollytelling) ---------- */
.steps-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.steps-aside h2 { margin-bottom: 24px; }
.steps-aside .note { margin-top: 8px; }
@media (max-width: 899px) {
  .steps-wrap { gap: 0; }
  .steps-aside { display: contents; }
  .steps { order: 1; margin: 8px 0 40px; }
  .steps-aside .actions { order: 2; }
}
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .6s var(--ease);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--brass);
  padding-top: .9em;
}
.step p {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.8rem);
  line-height: 1.12;
}
.motion .step { opacity: .38; }
.motion .step.is-active { opacity: 1; }
.note { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--brass); margin-bottom: 32px; }
.note::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.band { margin: 0; }
.band .clip { overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.band .px { display: block; height: 124%; margin-top: -12%; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 600px) { .band .clip { aspect-ratio: 16 / 7; } }
@media (min-width: 1200px) { .band .clip { aspect-ratio: 21 / 8; } }
@media (min-width: 900px) {
  .steps-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 8vw, 140px); align-items: start; }
  .steps-aside { position: sticky; top:calc(calc(var(--header-h) + 56px) + var(--ls-bar-h,0px)); }
  .step { padding: 72px 0; min-height: 36vh; align-content: center; }
}

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  background: radial-gradient(70% 120% at 50% 0%, rgba(26, 42, 68, .9) 0%, rgba(12, 18, 28, 0) 70%), var(--ink);
  border-top: 1px solid var(--line);
}
.cta h2 { max-width: 15em; margin: 0 auto 22px; font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.6rem); }
.cta .lede { margin: 0 auto 40px; }
.cta .actions, .cta .kicker { justify-content: center; }
.cta .kicker::after { content: ""; width: 32px; height: 1px; background: currentColor; }
@media (max-width: 480px) { .cta .kicker::before, .cta .kicker::after { display: none; } }

/* ---------- Page head (inner pages) ---------- */
.page-head {
  padding-block: clamp(72px, 4rem + 5vw, 152px) clamp(64px, 3.5rem + 3vw, 112px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 90% at 85% 0%, rgba(26, 42, 68, .75) 0%, rgba(12, 18, 28, 0) 70%), var(--ink);
}
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.page-head h1 { margin-bottom: 28px; }
.page-head .actions { margin-top: 36px; }
@media (min-width: 900px) { .page-head .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: 80px; } }
.toc { border-top: 1px solid var(--line); }
.toc-title { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-mute); padding: 16px 0 6px; }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
  transition: color .2s, padding .4s var(--ease);
}
.toc a span { font-style: italic; font-size: 1.05rem; color: var(--brass); width: 1.6em; }
.toc a:hover { color: var(--brass-hi); padding-left: 8px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .8125rem;
  color: var(--ivory);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ivory-mute); }
.status.is-open::before { background: #7fc79a; box-shadow: 0 0 0 4px rgba(127, 199, 154, .16); }
.status[hidden] { display: none; }

/* ---------- Service index (accordion) ---------- */
.svc-index { border-top: 1px solid var(--line-paper); }
.svc { border-bottom: 1px solid var(--line-paper); }
.svc-head { margin: 0; font: inherit; }
.svc-btn {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 48px;
  grid-template-areas: "n t i" ". s s";
  gap: 8px 12px;
  align-items: center;
  width: 100%;
  padding: 32px 0;
  cursor: pointer;
  color: var(--text-on-paper);
}
.svc-btn:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 4px; }
.svc-btn .numeral { grid-area: n; }
.svc-title { grid-area: t; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 5rem); line-height: 1; letter-spacing: -.012em; transition: transform .6s var(--ease), color .3s; }
.svc-sum { grid-area: s; color: var(--mute-on-paper); font-size: 1rem; }
.svc-btn:hover .svc-title { transform: translateX(12px); }
.svc .ring { position: relative; }
.svc .ring::before, .svc .ring::after { content: ""; position: absolute; width: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.svc .ring::after { transform: rotate(90deg); }
.svc-btn[aria-expanded="true"] .ring { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.svc-btn[aria-expanded="true"] .ring::after { transform: rotate(0deg); }
.svc-btn[aria-expanded="true"] .svc-title { color: var(--brass-ink); }
.svc-sum { transition: opacity .5s var(--ease); }
@media (min-width: 900px) { .svc-btn[aria-expanded="true"] .svc-sum { opacity: 0; } }
.svc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .7s var(--ease-io); }
.is-instant .svc-panel, .is-instant .svc-panel > div, .is-instant .svc-sum { transition: none !important; }
.svc-panel > div { min-height: 0; overflow: hidden; }
.js .svc-panel.is-closed { grid-template-rows: 0fr; }
.js .svc-panel.is-closed > div { visibility: hidden; transition: visibility 0s .7s; }
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 4px 0 48px; }
.svc-lead { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.22; max-width: 20em; }
.svc-lead em { color: var(--brass-ink); }
.svc-body .link-arrow { margin-top: 28px; color: var(--text-on-paper); }
.topics-title { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute-on-paper); margin-bottom: 8px; }
.topics { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; border-top: 1px solid var(--line-paper); }
.topics li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-paper); }
.topics li::before { content: ""; width: 6px; height: 6px; flex: none; border: 1px solid var(--brass-ink); transform: rotate(45deg); }
@media (min-width: 600px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .svc-btn { grid-template-columns: 80px minmax(0, 5fr) minmax(0, 4fr) 64px; grid-template-areas: "n t s i"; gap: 40px; padding: 44px 0; }
  .svc .ring { width: 64px; height: 64px; }
  .svc-body { grid-template-columns: 80px minmax(0, 5fr) minmax(0, 4fr) 64px; gap: 40px; padding-bottom: 64px; }
  .svc-body > :first-child { grid-column: 2; }
  .svc-body > :last-child { grid-column: 3 / span 2; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; } }
.block + .block { margin-top: 64px; }
.block h2 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); margin-bottom: 20px; }
.channels { border-top: 1px solid var(--line-paper); }
.channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-paper);
}
.channel dt { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute-on-paper); }
.channel dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-variant-numeric: lining-nums; font-family: var(--serif); font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem); line-height: 1.2; }
.channel dd a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.channel dd a:hover, .channel dd a:focus-visible { background-size: 100% 1px; }
.channel .val { min-width: 0; }
.channel .copy { flex: none; margin-top: -22px; }
.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-paper);
  border-radius: 999px;
  background: transparent;
  color: var(--text-on-paper);
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.copy:hover { border-color: var(--text-on-paper); }
.copy.is-done { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.copy svg { width: 14px; height: 14px; }
.copy[hidden] { display: none; }
.email { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .channel dd { font-size: 1.4rem; }
  .channel dd .email { font-size: .8em; }
  .copy { width: 40px; padding: 0; justify-content: center; }
  .copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.rows { border-top: 1px solid var(--line-paper); }
.rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line-paper); transition: background-color .3s; }
.rows dt { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-on-paper); }
.rows dd { text-align: right; margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.rows .is-today dt { color: var(--text-on-paper); }
.rows .is-today dd { font-weight: 600; }
.rows .is-today dt::after { content: "Hoy"; margin-left: 10px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .625rem; letter-spacing: .14em; vertical-align: 2px; }

.map-card { position: relative; background: var(--paper-2); }
.map {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 760px;
  border: 0;
  filter: grayscale(1) sepia(.18) contrast(1.04) brightness(1.02);
  transition: filter .6s var(--ease);
}
.map-card:hover .map, .map-card:focus-within .map { filter: none; }
.map-label {
  position: absolute;
  left: 16px;
  top: 16px;
  right: 16px;
  max-width: 340px;
  padding: 22px 24px;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 24px 48px rgba(12, 18, 28, .28);
}
.map-label .kicker { margin-bottom: 12px; color: var(--brass); }
.map-label :focus-visible { outline-color: var(--brass); }
.map-label address { font: 500 1.6rem/1.15 var(--serif); font-style: normal; margin-bottom: 16px; }
.map-label .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .875rem; }
.map-label .links a { color: var(--ivory); text-underline-offset: 4px; text-decoration-color: rgba(196, 164, 108, .7); }
.map-label .links a:hover { color: var(--brass-hi); }
@media (max-width: 599px) {
  .map { aspect-ratio: 1 / 1; }
  .map-label { position: static; max-width: none; box-shadow: none; }
}
@media (min-width: 960px) { .map-card { position: sticky; top:calc(calc(var(--header-h) + 32px) + var(--ls-bar-h,0px)); } }
.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-block: clamp(64px, 4rem + 2vw, 104px) 32px;
  font-size: .9375rem;
  color: var(--ivory-mute);
  overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 56px; }
.footer-intro p { margin-top: 20px; max-width: 22em; }
.footer-col h2 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; line-height: 1.4; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { text-decoration: none; color: var(--ivory); transition: color .2s; }
.footer-col a:hover { color: var(--brass-hi); }
.footer-col address { font-style: normal; color: var(--ivory); }
.footer-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: min(calc((100vw - 2 * var(--gutter)) / 4.62), calc(var(--maxw) / 4.62));
  line-height: .82;
  letter-spacing: -.035em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196, 164, 108, .38);
  user-select: none;
  margin: 8px 0 0;
  transform: translateX(-.04em);
}
.footer-mark em { font-style: italic; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .8125rem; }
.footer-bottom a { text-decoration: none; color: var(--ivory-mute); }
.footer-bottom a:hover { color: var(--ivory); }
.clock { font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 48px; } }

/* ---------- Reveal (only when JS + motion allowed) ---------- */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .rule-draw { position: relative; }
.motion .clip-reveal .clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io); }
.motion .clip-reveal.is-in .clip { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

@media print {
  .ls-demobar, .site-header, .menu-toggle, .map, .footer-mark { display: none !important; }
  body { background: #fff; color: #000; }
}

@media (max-width: 860px) { .js .nav .nav-cta { display: none; } }
