/* ============================================================
   Legal Approach — Editorial Arquitectónico
   ============================================================ */

:root {
  --ink: #0a0a0b;
  --ink-2: #131316;
  --ink-3: #1c1c20;
  --paper: #f5f1ea;
  --paper-2: #eae3d6;
  --gold: #c89b62;
  --gold-bright: #e1bc89;
  --gold-deep: #7e5f3e;

  --on-dark: rgba(255, 255, 255, 0.72);
  --on-dark-soft: rgba(255, 255, 255, 0.5);
  --on-light: #56514a;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(11, 11, 12, 0.14);

  --serif: "Fraunces", "Bodoni 72", Didot, "Iowan Old Style", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; background: none; border: 0; }
h1, h2, h3, h4, p, blockquote, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

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

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

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

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Tipografía compartida ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.display em { font-style: italic; color: var(--gold-bright); }
.section-light .display em { color: var(--gold-deep); }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.section-light .kicker { color: var(--gold-deep); }

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.24rem);
  line-height: 1.7;
}

/* ---------- Botones ---------- */

.btn {
  min-height: 56px;
  padding: 1rem 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translate(3px, -3px); }

.btn-gold { color: var(--ink); background: var(--gold-bright); }
.btn-gold:hover { background: #f2d6ad; }

.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.5); }

.btn-ink { color: var(--paper); background: var(--ink); }
.btn-ink:hover { color: var(--ink); background: var(--gold-bright); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}

.nav-shell {
  height: var(--header-h);
  width: min(100% - (var(--gutter) * 2), 1560px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand { flex: none; width: 168px; }
.brand img { width: 100%; height: auto; }

.desktop-nav {
  margin-left: auto;
  display: flex;
  gap: 2.1rem;
}

.desktop-nav a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--on-dark);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: #fff; }

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(225, 188, 137, 0.55);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 650;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-cta:hover { color: var(--ink); background: var(--gold-bright); }

.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 0;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  animation: heroScale 2.4s var(--ease) both;
}

@keyframes heroScale {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.82) 0%, rgba(10,10,11,0.34) 32%, rgba(10,10,11,0.9) 88%),
    linear-gradient(90deg, rgba(10,10,11,0.78) 0%, rgba(10,10,11,0.14) 62%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.hero h1 {
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 9.2vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.87;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }

.hero-lede {
  max-width: 56ch;
  margin-top: 2rem;
  color: var(--on-dark);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.72;
}

.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-note {
  margin-top: 1.1rem;
  color: var(--on-dark-soft);
  font-size: 0.86rem;
}

/* Franja de pilares */
.hero-pillars {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-pillars li {
  padding: 1.6rem 1.75rem 1.9rem 0;
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
  border-right: 1px solid var(--line-dark);
}
.hero-pillars li:last-child { border-right: 0; }
.hero-pillars li + li { padding-left: 1.75rem; }

.hero-pillars .idx {
  flex: none;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.hero-pillars strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 400;
  color: #fff;
}
.hero-pillars small {
  display: block;
  margin-top: 0.28rem;
  color: var(--on-dark-soft);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---------- Secciones base ---------- */

section[class*="sec-"] { padding: clamp(5.5rem, 11vw, 10.5rem) 0; }

.section-light { color: var(--ink); background: var(--paper); }
.section-dark { color: #fff; background: var(--ink); }
.section-deep { color: #fff; background: var(--ink-2); }
.section-light p { color: var(--on-light); }
.section-dark p, .section-deep p { color: var(--on-dark); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.sec-head .display { font-size: clamp(2.5rem, 5.2vw, 4.6rem); }
.sec-head .lede { max-width: 46ch; }

/* ---------- Enfoque ---------- */

.approach-body {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  max-width: 62ch;
  display: grid;
  gap: 1.2rem;
}

.principles {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
}

.principles article {
  padding: 2.4rem 2rem 2.6rem 0;
  border-right: 1px solid var(--line-light);
}
.principles article:last-child { border-right: 0; }
.principles article + article { padding-left: 2rem; }

.principles .idx {
  display: block;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.principles h3 {
  margin: 2.6rem 0 0.9rem;
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.1;
}
.principles p { font-size: 0.96rem; }

/* ---------- Áreas de práctica ---------- */

.practice { margin-top: clamp(3rem, 5vw, 4.5rem); }

.practice-row {
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.6rem) 0;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1.15fr) 44px;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line-dark);
  transition: padding-left 0.45s var(--ease);
}
.practice-row:last-child { border-bottom: 1px solid var(--line-dark); }

.practice-row .idx {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.practice-row h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.02;
}
.practice-row p { font-size: 0.98rem; }
.practice-row .arrow {
  justify-self: end;
  color: var(--gold-bright);
  font-size: 1.15rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

@media (hover: hover) {
  .practice-row:hover { padding-left: 1.4rem; }
  .practice-row:hover .arrow { opacity: 1; transform: translateX(0); }
}

/* ---------- Manifiesto sobre foto ---------- */

.manifesto {
  position: relative;
  min-height: clamp(420px, 58vw, 660px);
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.manifesto-media { position: absolute; inset: 0; }
.manifesto-media img { width: 100%; height: 100%; object-fit: cover; }
.manifesto-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.86), rgba(10,10,11,0.72));
}

.manifesto-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(4rem, 8vw, 6rem);
}
.manifesto-inner span {
  display: block;
  margin-bottom: 1.8rem;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.manifesto blockquote {
  max-width: 20ch;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.0;
}
.manifesto blockquote em { font-style: italic; color: var(--gold-bright); }

/* ---------- Decisión: tres perspectivas ---------- */

.decision-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

/* Diagrama: tres columnas que convergen en una decisión */
.converge {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  --line: rgba(225, 188, 137, 0.34);
}

.converge-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}

.converge-col {
  position: relative;
  padding: 1.9rem 1.6rem 2.4rem;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.022);
  text-align: center;
}
.converge-col dt {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 400;
}
.converge-col dd {
  margin: 0.7rem 0 0;
  color: var(--on-dark-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}
/* tallo vertical de cada columna */
.converge-col::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: clamp(28px, 4vw, 44px);
  background: var(--line);
}

/* barra horizontal que une los tres tallos */
.converge-bar {
  position: relative;
  height: 1px;
  margin: clamp(28px, 4vw, 44px) 16.6% 0;
  background: var(--line);
}
/* bajada central hacia el resultado */
.converge-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: clamp(28px, 4vw, 44px);
  background: var(--line);
}

.converge-out {
  margin: clamp(28px, 4vw, 44px) auto 0;
  width: fit-content;
  padding: 1.15rem 2.4rem;
  border: 1px solid rgba(225, 188, 137, 0.55);
  background: rgba(225, 188, 137, 0.07);
  text-align: center;
}
.converge-out span {
  display: block;
  color: var(--gold-bright);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.converge-out strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
  color: #fff;
}

/* Variante del diagrama sobre fondo claro */
.section-light .converge { --line: rgba(126, 95, 62, 0.42); }
.section-light .converge-col {
  border-color: var(--line-light);
  background: rgba(11, 11, 12, 0.02);
}
.section-light .converge-col dt { color: var(--gold-deep); }
.section-light .converge-col dd { color: var(--on-light); }
.section-light .converge-out {
  border-color: rgba(126, 95, 62, 0.5);
  background: rgba(200, 155, 98, 0.05);
}
.section-light .converge-out span { color: var(--gold-deep); }
.section-light .converge-out strong { color: var(--ink); }

.decision-steps { margin-top: clamp(2.5rem, 4vw, 3.4rem); display: grid; gap: 0; }
.decision-steps li {
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  border-top: 1px solid var(--line-dark);
}
.decision-steps li span {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.decision-steps li p { font-size: 1rem; }
.section-light .decision-steps li { border-top-color: var(--line-light); }
.section-light .decision-steps li span { color: var(--gold-deep); }

/* ---------- Herramientas (home) ---------- */

.tag {
  justify-self: end;
  padding: 0.36rem 0.72rem;
  border: 1px solid var(--line-light);
  color: var(--on-light);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tools-foot { margin-top: 3rem; }

/* ---------- Legal Tech: dos líneas (home, compacto) ---------- */

.duo {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.duo-card {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border: 1px solid var(--line-light);
  background: rgba(11, 11, 12, 0.015);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
@media (hover: hover) {
  .duo-card:hover { border-color: rgba(126, 95, 62, 0.42); background: rgba(200, 155, 98, 0.045); }
}
.duo-card .idx {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.duo-card h3 {
  margin: 1.6rem 0 0.9rem;
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.06;
}
.duo-card p { font-size: 0.97rem; }
.duo-tags {
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.duo-tags span {
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--line-light);
  color: var(--on-light);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Consultoría (página Legal Tech) ---------- */

.lt-section-mark {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.lt-section-mark span {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--gold-deep);
}
.section-dark .lt-section-mark span,
.section-deep .lt-section-mark span { color: var(--gold-bright); }

.levers {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
.lever {
  padding: 2.4rem 1.9rem 2.6rem 0;
  border-right: 1px solid var(--line-dark);
}
.lever:last-child { border-right: 0; }
.lever + .lever { padding-left: 1.9rem; }
.lever .idx {
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.lever h3 {
  margin: 2.2rem 0 1rem;
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  font-weight: 400;
  line-height: 1.08;
}
.lever p { font-size: 0.95rem; }
.lever ul {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 0.5rem;
}
.lever li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--on-dark-soft);
  font-size: 0.88rem;
}
.lever li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.method {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.method-step {
  padding: 1.9rem 1.5rem 2.1rem;
  background: var(--paper);
}
.method-step span {
  color: var(--gold-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.method-step .method-title {
  margin: 1.2rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.15;
}
.method-step p { font-size: 0.9rem; line-height: 1.6; }

/* ---------- Escenarios ---------- */

.scenarios-grid {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

.scenario {
  padding: 2.6rem 1.9rem 2.8rem 0;
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
}
.scenario:last-child { border-right: 0; }
.scenario + .scenario { padding-left: 1.9rem; }

.scenario .idx {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scenario h3 {
  margin: 2.4rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  font-weight: 400;
  line-height: 1.1;
}
.scenario p { font-size: 0.95rem; }
.scenario .scope {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* ---------- Equipo ---------- */

.team-grid {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.person figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.person figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
@media (hover: hover) {
  .person:hover figure img { transform: scale(1.035); }
}
.person-body { padding-top: 1.8rem; }
.person-role {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.person h3 {
  margin: 0.7rem 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 400;
  line-height: 1;
}
.person-cred {
  color: var(--on-light);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}
.person-body > p { margin-top: 1.1rem; font-size: 0.97rem; max-width: 44ch; }

.person-link {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.person-link:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

.team-note {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

/* Equipo sobre fondo oscuro */
.section-deep .team-note { border-top-color: var(--line-dark); }
.section-deep .person figure { background: var(--ink-3); }
.section-deep .person-role { color: var(--gold-bright); }
.section-deep .person-cred { color: var(--on-dark-soft); }
.section-deep .person-link { border-bottom-color: var(--line-dark); }
.section-deep .person-link:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* ---------- Contacto ---------- */

.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 46vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,155,98,0.06), transparent 66%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.contact-grid .display { font-size: clamp(2.4rem, 5vw, 4.4rem); }

.contact-panel {
  padding: clamp(2rem, 3vw, 2.8rem);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.03);
}
.contact-panel > p { font-size: 1rem; }

.contact-cta {
  margin-top: 1.8rem;
  width: 100%;
  min-height: 60px;
  padding: 1.05rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  background: var(--gold-bright);
  font-size: 0.95rem;
  font-weight: 650;
  transition: background 0.3s var(--ease);
}
.contact-cta:hover { background: #f2d6ad; }

.contact-alt {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-soft);
  font-size: 0.86rem;
}
.contact-details { margin-top: 1rem; display: grid; gap: 0.55rem; }
.contact-details a {
  font-size: 0.98rem;
  color: #fff;
  transition: color 0.25s var(--ease);
}
.contact-details a:hover { color: var(--gold-bright); }
.contact-loc {
  margin-top: 1.6rem;
  display: block;
  color: var(--on-dark-soft);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem;
  color: var(--on-dark);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}
.footer-main {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: start;
}
.footer-main img { width: 180px; height: auto; }
.footer-main p { max-width: 40ch; font-size: 0.92rem; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a {
  font-size: 0.85rem;
  transition: color 0.25s var(--ease);
}
.footer-social a:hover { color: var(--gold-bright); }

.footer-bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  color: var(--on-dark-soft);
  font-size: 0.78rem;
}
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ============================================================
   Página de aplicaciones
   ============================================================ */

.apps-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(5rem, 10vw, 9rem)) 0 clamp(4rem, 7vw, 6.5rem);
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.apps-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,155,98,0.07), transparent 65%);
}
.apps-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.apps-hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
  max-width: 14ch;
}
.apps-hero h1 em { font-style: italic; color: var(--gold-bright); }
.apps-hero-aside p { color: var(--on-dark); font-size: 1.05rem; line-height: 1.7; }
.apps-hero-aside strong {
  display: block;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
}

.app-list { display: grid; }

.app-item {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.app-item:last-child { border-bottom: 1px solid var(--line-light); }

.app-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 0.9;
  color: var(--gold-deep);
}

.app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}
.app-item h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.app-kicker {
  color: var(--gold-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.app-item > div > p { max-width: 62ch; font-size: 1rem; }

.app-cols {
  margin-top: 1.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.app-features { display: grid; gap: 0.75rem; }
.app-features li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--on-light);
  font-size: 0.95rem;
  line-height: 1.55;
}
.app-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.app-side {
  padding: 1.5rem;
  border: 1px solid var(--line-light);
  background: rgba(11,11,12,0.02);
}
.app-side dt {
  color: var(--gold-deep);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.app-side dd {
  margin: 0.35rem 0 1.1rem;
  font-size: 0.92rem;
  color: var(--on-light);
}
.app-side dd:last-of-type { margin-bottom: 0; }

.app-link {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.app-link:hover { color: var(--ink); background: var(--gold-bright); }


.app-note {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid rgba(126, 95, 62, 0.5);
  background: rgba(11, 11, 12, 0.03);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--on-light);
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.09s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.27s; }

.enter {
  opacity: 0;
  transform: translateY(24px);
  animation: enterIn 1s var(--ease) forwards;
}
.e1 { animation-delay: 0.15s; }
.e2 { animation-delay: 0.3s; }
.e3 { animation-delay: 0.45s; }
.e4 { animation-delay: 0.6s; }

@keyframes enterIn { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .method { grid-template-columns: repeat(2, 1fr); }
  .apps-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .app-cols { grid-template-columns: 1fr; }
  .practice-row { grid-template-columns: 60px minmax(0,1fr) 32px; row-gap: 0.8rem; }
  .practice-row p { grid-column: 2; }
  .practice-row .arrow { grid-column: 3; grid-row: 1; opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .desktop-nav, .nav-cta { display: none; }

  .menu-toggle {
    margin-left: auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.24);
  }
  .menu-toggle span {
    width: 20px;
    height: 1px;
    background: #fff;
    transition: transform 0.3s var(--ease);
  }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .mobile-menu {
    min-height: calc(100svh - var(--header-h));
    padding: 2rem var(--gutter) 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10,10,11,0.98);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line-dark);
    color: #fff;
    font-family: var(--serif);
    font-size: 1.9rem;
  }
  .mobile-menu a:last-child {
    margin-top: 1.5rem;
    padding: 1.1rem;
    border: 1px solid rgba(225,188,137,0.5);
    color: var(--gold-bright);
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 650;
    text-align: center;
  }

  .hero-pillars { grid-template-columns: 1fr; }
  .hero-pillars li {
    padding: 1.2rem 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .hero-pillars li:last-child { border-bottom: 0; }

  .principles, .scenarios-grid, .levers { grid-template-columns: 1fr; }
  .principles article, .scenario, .lever {
    padding: 2rem 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }
  .scenario, .lever { border-bottom-color: var(--line-dark); }
  .principles article:last-child, .scenario:last-child, .lever:last-child { border-bottom: 0; }
  .principles h3, .scenario h3, .lever h3 { margin-top: 1.5rem; }

  .duo { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }

  /* Diagrama convergente en vertical */
  .converge-cols { grid-template-columns: 1fr; gap: 0; }
  .converge-col { text-align: left; }
  .converge-col:not(:last-child) { border-bottom: 0; }
  .converge-col::after { display: none; }
  .converge-bar { display: none; }
  .converge-out { margin-top: 1.5rem; width: 100%; }

  .team-grid { grid-template-columns: 1fr; gap: 3rem; }
  .person figure { aspect-ratio: 3 / 2; }

  .decision-steps li { grid-template-columns: 1fr; gap: 0.4rem; }
  .footer-main { grid-template-columns: 1fr; gap: 1.8rem; }
  .app-item { grid-template-columns: 1fr; gap: 1rem; }
  .app-num { font-size: 2rem; }
}

@media (max-width: 560px) {
  .hero { min-height: 92svh; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .manifesto blockquote { max-width: 16ch; }
  .contact-cta { flex-direction: row; font-size: 0.88rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .enter { opacity: 1; transform: none; }
}
