/* ═══════════════════════════════════════════════
   Lex Mind — Shared Styles
   Clarity · Precision · Confidence
   ═══════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --lm-ink:          #121212;
  --lm-olive-gold:   #A89C33;
  --lm-olive-deep:   #8A8029;
  --lm-champagne:    #C7BC78;
  --lm-ivory:        #F5F2EC;
  --lm-ivory-deep:   #EDE8DD;
  --lm-stone:        #D8D1C6;
  --lm-stone-soft:   #E8E2D6;
  --lm-graphite:     #2B2B2B;
  --lm-line:         #C9C0AF;
  --lm-line-soft:    #E0D9CB;

  --fg-1:      var(--lm-ink);
  --fg-2:      var(--lm-graphite);
  --fg-3:      rgba(43,43,43,.62);
  --fg-4:      rgba(43,43,43,.40);
  --fg-accent: var(--lm-olive-gold);

  --bg-page:    var(--lm-ivory);
  --bg-band:    var(--lm-ivory-deep);
  --bg-surface: #FFFFFF;
  --bg-dark:    var(--lm-ink);

  --line-hair: var(--lm-line-soft);
  --line-rule: var(--lm-line);

  --font-sans:  "Manrope", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;

  --ease-standard: cubic-bezier(.2,.6,.2,1);
  --ease-emphasis: cubic-bezier(.16,.84,.24,1);

  --shadow-1: 0 1px 2px rgba(18,18,18,.04), 0 1px 1px rgba(18,18,18,.03);
  --shadow-2: 0 2px 8px rgba(18,18,18,.05), 0 1px 2px rgba(18,18,18,.04);
  --shadow-3: 0 10px 30px rgba(18,18,18,.08), 0 2px 6px rgba(18,18,18,.04);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
body {
  background: var(--bg-page);
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }
::selection { background: var(--lm-champagne); color: var(--lm-ink) }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lm-olive-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Container ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px }
@media (min-width: 1024px) { .container { padding: 0 56px } }

/* ── Typography ── */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-accent);
  font-weight: 600;
}
.eyebrow-row { display: flex; align-items: center; gap: 14px }
.eyebrow-row .ln {
  flex: 1;
  height: 1px;
  background: var(--lm-olive-gold);
  opacity: .45;
  max-width: 96px;
}
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -.005em;
  color: var(--fg-1);
  margin: 0;
  text-wrap: pretty;
}
.display em { font-style: italic; color: var(--lm-olive-deep); font-weight: 500 }
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.005em;
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--lm-olive-deep) }
.h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  color: var(--fg-1);
  letter-spacing: -.005em;
  margin: 0;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 56ch;
}
.body  { font-size: 16px; line-height: 1.65; color: var(--fg-2); max-width: 60ch }
.small { font-size: 13px; color: var(--fg-3); letter-spacing: .02em }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  padding: 15px 22px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background .18s var(--ease-standard),
    color .18s var(--ease-standard),
    box-shadow .18s var(--ease-standard),
    transform .18s var(--ease-standard),
    border-color .18s var(--ease-standard);
  text-decoration: none;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s var(--ease-standard); display: inline-block }
.btn:hover .arrow { transform: translateX(3px) }

.btn.primary { background: var(--lm-ink); color: var(--lm-ivory) }
.btn.primary:hover { background: #000; box-shadow: var(--shadow-3); transform: translateY(-1px) }

.btn.secondary { background: transparent; color: var(--fg-1); border-color: var(--fg-1) }
.btn.secondary:hover { background: var(--fg-1); color: var(--lm-ivory) }

.btn.gold { background: var(--lm-olive-gold); color: #fff; border-color: var(--lm-olive-gold) }
.btn.gold:hover { background: var(--lm-olive-deep); border-color: var(--lm-olive-deep) }

.btn.ghost {
  background: transparent;
  padding-left: 2px;
  padding-right: 2px;
  color: var(--fg-1);
  border-bottom: 1px solid var(--lm-olive-gold);
  border-radius: 0;
}
.btn.ghost:hover { color: var(--lm-olive-deep); border-color: var(--lm-olive-deep) }

.btn.on-dark { color: var(--lm-ivory); border-color: rgba(245,242,236,.4) }
.btn.on-dark:hover { background: var(--lm-ivory); color: var(--lm-ink); border-color: var(--lm-ivory) }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background .25s var(--ease-standard),
    backdrop-filter .25s var(--ease-standard),
    border-color .25s var(--ease-standard);
}
.site-header.scrolled {
  background: rgba(245,242,236,.86);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid var(--line-hair);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px }
.brand .mark { width: 22px; height: 26px; color: var(--lm-olive-gold) }
.brand .word {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--fg-1);
}
.nav { display: none; gap: 34px }
.nav a {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .18s var(--ease-standard);
}
.nav a:hover { color: var(--fg-1) }
.nav a.active { color: var(--fg-1) }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--lm-olive-gold);
}
.header-cta { display: none }

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 10px 8px;
  background: transparent;
  border: 1px solid var(--line-rule);
  border-radius: 4px;
  cursor: pointer;
  align-items: stretch;
}
.menu-btn span {
  display: block;
  height: 1px;
  background: var(--fg-1);
  transition: transform .25s var(--ease-standard), opacity .15s linear;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg) }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0 }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3px) rotate(-45deg) }

/* ── Mobile sheet ── */
.sheet {
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 55;
  background: var(--lm-ivory);
  padding: 40px 32px 56px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-standard), transform .25s var(--ease-standard);
  border-top: 1px solid var(--line-hair);
}
.sheet.open { opacity: 1; transform: translateY(0); pointer-events: auto }
.sheet nav { display: flex; flex-direction: column; gap: 4px }
.sheet nav a {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.2;
  color: var(--fg-1);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet nav a .idx {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--fg-accent);
  font-weight: 600;
}
.sheet .sheet-cta { margin-top: 36px; display: block; text-align: center; width: 100% }

@media (min-width: 900px) {
  .nav { display: flex }
  .header-cta { display: inline-flex }
  .menu-btn { display: none }
  .sheet { display: none }
}

/* ── Header chrome: invert over dark hero (shared all pages) ── */
body.has-dark-hero .site-header:not(.scrolled) .brand .mark { color: var(--lm-champagne) }
body.has-dark-hero .site-header:not(.scrolled) .brand .word { color: var(--lm-ivory) }
body.has-dark-hero .site-header:not(.scrolled) .nav a { color: rgba(245,242,236,.78) }
body.has-dark-hero .site-header:not(.scrolled) .nav a:hover { color: var(--lm-ivory) }
body.has-dark-hero .site-header:not(.scrolled) .nav a.active { color: var(--lm-ivory) }
body.has-dark-hero .site-header:not(.scrolled) .header-cta.btn.secondary {
  color: var(--lm-ivory);
  border-color: rgba(245,242,236,.55);
}
body.has-dark-hero .site-header:not(.scrolled) .header-cta.btn.secondary:hover {
  background: var(--lm-ivory);
  color: var(--lm-ink);
  border-color: var(--lm-ivory);
}
body.has-dark-hero .site-header:not(.scrolled) .menu-btn { border-color: rgba(245,242,236,.45) }
body.has-dark-hero .site-header:not(.scrolled) .menu-btn span { background: var(--lm-ivory) }

/* ── Sections ── */
.section { padding: 96px 0 }
.section.band { background: var(--bg-band) }
.section.dark { background: var(--lm-ink); color: var(--lm-ivory) }
.section.dark .eyebrow { color: var(--lm-champagne) }
.section.dark .h2 { color: var(--lm-ivory) }
.section.dark .h2 em { color: var(--lm-champagne) }
.section.dark .body,
.section.dark .lead { color: rgba(245,242,236,.78) }
@media (max-width: 768px) { .section { padding: 72px 0 } }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px }
.section-head .h2 { margin-top: 4px }

/* ── Internal page hero ── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 80px;
  border-bottom: 1px solid var(--line-hair);
}
@media (min-width: 1024px) { .page-hero { padding: 128px 0 96px } }
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.page-hero-inner .eyebrow { margin-bottom: 20px }
.page-hero-inner h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.005em;
  color: var(--fg-1);
  margin: 0 0 28px;
  text-wrap: pretty;
  max-width: 22ch;
}
.page-hero-inner h1 em { font-style: italic; color: var(--lm-olive-deep) }
.page-hero-inner .lead { max-width: 54ch }
.page-hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center }

/* Decorative axis ornament — right side of page hero */
.page-hero-decor {
  display: none;
  position: absolute;
  right: 56px;
  top: 64px;
  bottom: 64px;
  pointer-events: none;
  z-index: 1;
}
@media (min-width: 1024px) { .page-hero-decor { display: flex; flex-direction: column; align-items: center; gap: 0 } }
.page-hero-decor .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--lm-olive-gold);
  background: var(--bg-page);
  flex: none;
}
.page-hero-decor .stem {
  width: 1px;
  flex: 1;
  background: var(--lm-olive-gold);
  opacity: .4;
  min-height: 60px;
}
.page-hero-decor .diamond {
  width: 7px; height: 7px;
  border: 1px solid var(--lm-olive-gold);
  transform: rotate(45deg);
  flex: none;
  opacity: .7;
}

/* ── Inner page heroes (full-background) ── */
.inner-hero {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  margin-top: -84px;
  padding-top: 84px;
  color: var(--lm-ivory);
  isolation: isolate;
  background: var(--lm-ink);
}
@media (min-width: 1024px) { .inner-hero { min-height: 90vh } }

.inner-hero .ih-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  filter: saturate(.82) contrast(1.05);
  transform: scale(1.04);
  animation: ih-zoom 1.6s var(--ease-emphasis) both;
}
@keyframes ih-zoom {
  from { transform: scale(1.08); opacity: 0 }
  to   { transform: scale(1.04); opacity: 1 }
}

.inner-hero .ih-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,18,18,.1) 60%, rgba(18,18,18,.62) 100%),
    linear-gradient(105deg,
      rgba(18,18,18,.86)  0%,
      rgba(18,18,18,.72) 24%,
      rgba(18,18,18,.48) 54%,
      rgba(18,18,18,.15) 80%,
      rgba(18,18,18,.04) 100%);
}
@media (max-width: 768px) {
  .inner-hero .ih-overlay {
    background: linear-gradient(180deg, rgba(18,18,18,.62) 0%, rgba(18,18,18,.86) 100%);
  }
}

.inner-hero .container { position: relative; z-index: 2; width: 100% }

.ih-text { max-width: 600px; padding: 56px 0 }
@media (min-width: 1024px) { .ih-text { padding: 80px 0 } }
.ih-text .eyebrow { color: var(--lm-champagne) }
.ih-text .eyebrow-row .ln { background: var(--lm-champagne); opacity: .55 }

.ih-h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: 1.0;
  color: var(--lm-ivory);
  margin-top: 28px;
  text-shadow: 0 2px 24px rgba(0,0,0,.28);
  max-width: 18ch;
  text-wrap: pretty;
  letter-spacing: -.005em;
}
.ih-h1 em { font-style: italic; color: var(--lm-champagne); font-weight: 500 }

.ih-lead {
  margin-top: 28px;
  max-width: 500px;
  color: rgba(245,242,236,.82);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
}

.ih-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
  align-items: center;
}
.ih-actions .btn.primary {
  background: var(--lm-champagne);
  color: var(--lm-ink);
  border-color: var(--lm-champagne);
}
.ih-actions .btn.primary:hover {
  background: #d6cd88;
  border-color: #d6cd88;
  color: var(--lm-ink);
}
.ih-actions .btn.ghost {
  color: var(--lm-ivory);
  border-bottom: 1px solid var(--lm-champagne);
}
.ih-actions .btn.ghost:hover {
  color: var(--lm-champagne);
  border-color: var(--lm-champagne);
}

.ih-microcopy {
  margin-top: 20px;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,242,236,.5);
  font-weight: 600;
}

/* Area chips (servicios hero) */
.ih-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.ih-chip {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(245,242,236,.72);
  border: 1px solid rgba(199,188,120,.28);
  padding: 5px 12px;
  border-radius: 2px;
  background: rgba(18,18,18,.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Info card (contacto hero) */
.ih-info-card {
  display: none;
  position: absolute;
  z-index: 2;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18,18,18,.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(199,188,120,.16);
  padding: 28px 30px;
  min-width: 220px;
}
@media (min-width: 1200px) { .ih-info-card { display: block } }
.ic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(199,188,120,.1);
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: rgba(245,242,236,.78);
  line-height: 1.4;
}
.ic-item:last-child { border-bottom: none; padding-bottom: 0 }
.ic-item:first-child { padding-top: 0 }
.ic-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lm-champagne);
  flex: none;
  opacity: .8;
}

/* Decorative axis — right edge */
.ih-axis {
  position: absolute;
  z-index: 2;
  right: 32px; bottom: 0; top: 28%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--lm-champagne);
  opacity: .7;
  pointer-events: none;
}
@media (min-width: 1024px) { .ih-axis { display: flex; right: 56px } }
.ih-axis .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  flex: none;
}
.ih-axis .stem {
  width: 1px; flex: 1;
  background: currentColor;
  opacity: .45;
  min-height: 60px;
}

/* Bottom editorial caption */
.ih-caption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 28px;
  pointer-events: none;
}
.ih-caption .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ih-caption .label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(245,242,236,.62);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.ih-caption .label::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--lm-champagne);
  display: inline-block;
}
.ih-caption .quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(14px, 1.1vw, 17px);
  color: rgba(245,242,236,.68);
  max-width: 34ch;
}
@media (max-width: 900px) { .ih-caption .quote { display: none } }

/* ── Services grid (home) ── */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-hair);
  margin-top: 56px;
  border: 1px solid var(--line-hair);
}
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr) } }

.svc {
  background: var(--bg-page);
  padding: 40px 32px 36px;
  position: relative;
  transition: background .25s var(--ease-standard);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
}
.svc:hover { background: var(--bg-surface); box-shadow: var(--shadow-2) }
.svc .num {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--fg-accent);
}
.svc-icon { width: 48px; height: 48px; color: var(--lm-olive-gold) }
.svc h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  color: var(--fg-1);
  margin: 0;
  letter-spacing: -.005em;
}
.svc p { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; margin: 0; flex: 1 }
.svc .more {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--lm-olive-gold);
  align-self: flex-start;
  transition: color .18s var(--ease-standard), border-color .18s var(--ease-standard), gap .18s var(--ease-standard);
}
.svc .more:hover { color: var(--lm-olive-deep); border-color: var(--lm-olive-deep); gap: 12px }

/* ── Service detail blocks (servicios.html) ── */
.svc-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line-hair);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.svc-block:first-child { border-top: 1px solid var(--line-hair) }
@media (min-width: 1024px) {
  .svc-block { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start }
}
.svc-block-num {
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--fg-accent);
  margin-bottom: 20px;
}
.svc-block h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  color: var(--fg-1);
  margin: 0 0 20px;
  letter-spacing: -.005em;
}
.svc-block-text .body { margin-top: 0 }
.svc-block-text .btn { margin-top: 32px }
.svc-block-right {}
.svc-block-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.svc-block-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-hair);
  font-size: 15px;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.svc-block-list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lm-olive-gold);
  flex: none;
}
.svc-block-list li:first-child { border-top: 1px solid var(--line-hair) }

/* ── Methodology / Steps ── */
.method { margin-top: 64px; position: relative }
.method .steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}
@media (min-width: 900px) {
  .method .steps { grid-template-columns: repeat(4, 1fr) }
  .method::before {
    content: "";
    display: block;
    position: absolute;
    top: 46px; left: 6%; right: 6%;
    height: 1px;
    background: var(--lm-olive-gold);
    opacity: .45;
  }
}
.step {
  padding: 0 24px 0 28px;
  position: relative;
  border-left: 1px solid var(--line-hair);
  margin-bottom: 8px;
}
@media (min-width: 900px) {
  .step { border-left: none; padding: 0 24px 0 0; margin-bottom: 0 }
}
.step .marker {
  position: relative;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 1px solid var(--lm-olive-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  z-index: 1;
}
.step .marker .inner { width: 8px; height: 8px; border-radius: 50%; background: var(--lm-olive-gold) }
@media (min-width: 900px) {
  .section.band .step .marker { background: var(--bg-band) }
}
.step .n {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--fg-accent);
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.step h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  color: var(--fg-1);
  margin: 0 0 10px;
  letter-spacing: -.005em;
}
.step p { font-size: 14px; color: var(--fg-2); line-height: 1.6; margin: 0; max-width: 30ch }

/* ── Why / Benefits (dark) ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 56px;
}
@media (min-width: 1024px) { .why-grid { grid-template-columns: .95fr 1.05fr; gap: 96px } }

.benefits { display: grid; grid-template-columns: 1fr }
.benefit {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: start;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(245,242,236,.14);
}
.benefit:last-child { border-bottom: 1px solid rgba(245,242,236,.14) }
.benefit .bn {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  color: var(--lm-champagne);
}
.benefit h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  color: var(--lm-ivory);
  margin: 0 0 8px;
  letter-spacing: -.005em;
}
.benefit p { font-size: 14.5px; line-height: 1.6; color: rgba(245,242,236,.7); margin: 0; max-width: 42ch }

.why-aside { position: relative }
.why-aside .quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  color: var(--lm-ivory);
  margin: 0;
  text-wrap: balance;
}
.why-aside .quote::before { content: "« "; color: var(--lm-champagne) }
.why-aside .quote::after  { content: " »"; color: var(--lm-champagne) }
.why-aside .attrib {
  margin-top: 24px;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lm-champagne);
  font-weight: 600;
}
.why-aside .meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,242,236,.14);
}
.why-aside .meta .k {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--lm-champagne);
}
.why-aside .meta .v {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(245,242,236,.78);
  line-height: 1.5;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1.1fr .9fr; gap: 96px } }

.about-text .body { margin-top: 24px }
.about-text .body + .body { margin-top: 18px }

.about-visual { position: relative }
.about-visual .frame {
  position: relative;
  aspect-ratio: 5/6;
  background: var(--lm-stone-soft);
  border: 1px solid var(--line-hair);
  overflow: hidden;
}
.about-visual .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.02);
}
.about-visual .badge {
  position: absolute;
  top: -20px; right: -20px;
  width: 140px; height: 140px;
  border: 1px solid var(--lm-olive-gold);
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--fg-1);
}
.about-visual .badge .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  color: var(--lm-olive-gold);
}
.about-visual .badge .lbl {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: center;
}

.about-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-rule);
}
.about-stats .cell {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-hair);
  border-right: 1px solid var(--line-hair);
  padding-right: 20px;
}
.about-stats .cell:nth-child(2n) { border-right: none; padding-left: 20px }
.about-stats .cell:nth-child(3),
.about-stats .cell:nth-child(4) { border-bottom: none }
.about-stats .cell .lbl {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-accent);
  font-weight: 600;
}
.about-stats .cell .v {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--fg-1);
  line-height: 1.2;
}

/* ── CTA final ── */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--lm-ink);
  color: var(--lm-ivory);
  padding: 120px 0;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/abstract.jpg");
  background-size: cover;
  background-position: center;
  opacity: .26;
  filter: saturate(.7);
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(18,18,18,.88) 0%, rgba(18,18,18,.7) 55%, rgba(18,18,18,.55) 100%);
}
.cta .container { position: relative; z-index: 2 }
.cta .head { display: flex; flex-direction: column; gap: 16px; max-width: 780px }
.cta .h2 { color: var(--lm-ivory) }
.cta .h2 em { color: var(--lm-champagne) }
.cta .body { color: rgba(245,242,236,.82); max-width: 60ch }
.cta-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap }
.cta .corner { position: absolute; top: 32px; right: 32px; z-index: 2; color: var(--lm-champagne); width: 48px; height: 48px }
.cta .compass { position: absolute; bottom: 48px; right: 48px; z-index: 2; color: rgba(199,188,120,.5); width: 80px; height: 80px }

/* ── Footer ── */
.foot { background: var(--lm-ink); color: rgba(245,242,236,.72); padding: 80px 0 32px }
.foot a { color: rgba(245,242,236,.72); transition: color .18s var(--ease-standard) }
.foot a:hover { color: var(--lm-champagne) }
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr .6fr .6fr .8fr } }

.foot-brand { display: flex; flex-direction: column; gap: 18px; max-width: 36ch }
.foot-brand .brand { color: var(--lm-ivory) }
.foot-brand .brand .word { color: var(--lm-ivory) }
.foot-brand p { font-size: 14px; line-height: 1.65; color: rgba(245,242,236,.62); margin: 0 }

.foot h5 {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lm-champagne);
  font-weight: 600;
  margin: 0 0 16px;
}
.foot ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.foot-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,242,236,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(245,242,236,.5);
  letter-spacing: .02em;
}
.foot-bottom .axis { display: inline-flex; align-items: center; gap: 10px; color: var(--lm-champagne); opacity: .7 }
.foot-bottom .axis .ln { width: 24px; height: 1px; background: currentColor }

/* ── Values grid (nosotros.html) ── */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-hair);
  border: 1px solid var(--line-hair);
  margin-top: 56px;
}
@media (min-width: 600px)  { .values-grid { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(3, 1fr) } }

.value-item {
  background: var(--bg-page);
  padding: 36px 32px;
  transition: background .25s var(--ease-standard);
}
.value-item:hover { background: var(--bg-surface) }
.value-item .vi-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--fg-accent);
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.value-item h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--fg-1);
  margin: 0 0 10px;
  letter-spacing: -.005em;
}
.value-item p { font-size: 14px; color: var(--fg-2); line-height: 1.6; margin: 0 }

/* ── Enfoque cards (nosotros.html) ── */
.enfoque-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 900px) { .enfoque-grid { grid-template-columns: repeat(3, 1fr) } }

.enfoque-card {
  padding: 36px 32px 32px;
  border: 1px solid var(--line-hair);
  background: var(--bg-page);
  transition: box-shadow .25s var(--ease-standard), border-color .25s var(--ease-standard);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.enfoque-card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--lm-olive-gold);
}
.enfoque-card .ec-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--lm-olive-gold);
}
.enfoque-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
  color: var(--fg-1);
  margin: 0;
  letter-spacing: -.005em;
  line-height: 1.25;
}
.enfoque-card p { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; margin: 0 }

/* ── Propósito section (nosotros.html) ── */
.proposito-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}
@media (min-width: 1024px) { .proposito-grid { grid-template-columns: 1.1fr .9fr; gap: 96px } }

.proposito-keywords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pk-item {
  border: 1px solid var(--line-hair);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pk-item .pk-line {
  width: 24px;
  height: 1px;
  background: var(--lm-olive-gold);
  margin-bottom: 8px;
}
.pk-item span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--fg-1);
  line-height: 1.2;
}

/* ── Client profile bullets ── */
.client-bullets {
  list-style: none;
  margin: 32px 0 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}
.client-bullets li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-hair);
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.client-bullets li:first-child { border-top: 1px solid var(--line-hair) }
.client-bullets li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lm-olive-gold);
  flex: none;
  margin-top: 6px;
}

/* ── Contact cards ── */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 600px)  { .contact-cards { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 1024px) { .contact-cards { grid-template-columns: repeat(3, 1fr) } }

.contact-card {
  border: 1px solid var(--line-hair);
  padding: 32px 28px;
  background: var(--bg-page);
  transition: box-shadow .25s var(--ease-standard);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card:hover { box-shadow: var(--shadow-2) }
.contact-card .cc-icon {
  width: 40px; height: 40px;
  color: var(--lm-olive-gold);
  margin-bottom: 4px;
}
.contact-card .cc-label {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-accent);
  font-weight: 600;
}
.contact-card .cc-value {
  font-size: 15px;
  color: var(--fg-1);
  line-height: 1.5;
  font-weight: 500;
}
.contact-card .cc-sub { font-size: 13px; color: var(--fg-3) }

/* ── Contact form ── */
.form-wrap {
  max-width: 760px;
  margin-top: 56px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr } }

.form-field { display: flex; flex-direction: column; gap: 8px }
.form-field.full { grid-column: 1 / -1 }

.form-field label {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-3);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg-1);
  background: var(--bg-surface);
  border: 1px solid var(--line-rule);
  border-radius: 4px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .18s var(--ease-standard), box-shadow .18s var(--ease-standard);
  appearance: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--lm-olive-gold);
  box-shadow: 0 0 0 3px rgba(168,156,51,.12);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fg-4) }
.form-field textarea { min-height: 140px; resize: vertical; line-height: 1.6 }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9C0AF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-field select option { color: var(--fg-1) }

.form-submit { margin-top: 36px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap }
.form-note { font-size: 12.5px; color: var(--fg-3); line-height: 1.6 }

/* ── Confidentiality (contacto.html) ── */
.confidencialidad {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--line-hair);
  background: var(--bg-band);
  margin-top: 56px;
}
@media (max-width: 640px) { .confidencialidad { flex-direction: column; padding: 28px 24px } }
.confidencialidad .conf-icon {
  width: 36px; height: 36px;
  color: var(--lm-olive-gold);
  flex: none;
  margin-top: 2px;
}
.confidencialidad h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--fg-1);
  margin: 0 0 10px;
  letter-spacing: -.005em;
}
.confidencialidad p { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; margin: 0 }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease-emphasis), transform .8s var(--ease-emphasis);
}
.reveal.in { opacity: 1; transform: none }
.reveal.d1 { transition-delay: .08s }
.reveal.d2 { transition-delay: .16s }
.reveal.d3 { transition-delay: .24s }
.reveal.d4 { transition-delay: .32s }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none }
}

/* ── Divider ornament ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--lm-olive-gold);
  opacity: .7;
}
.divider .dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor }
.divider .ln { flex: 1; height: 1px; background: currentColor; max-width: 280px; opacity: .6 }
