/* ==========================================================================
   LEGADIGMA — hoja de estilos
   Tipografía: Fraunces (titulares, licencia SIL OFL) / Archivo (texto, licencia SIL OFL)
   Paleta: Pantone 534 CP #2A3863 · Pantone 7753 CP #B9A03C
   Fraunces ejes reales (fvar): opsz 9–144 · wght 100–900 (900 por defecto) · SOFT 0–100 · WONK 0–1 (1 por defecto)
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 60% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta de marca */
  --navy: #2A3863;
  --navy-700: #1E2A4C;
  --navy-900: #141B33;
  --gold: #B9A03C;
  --gold-light: #D6C066;
  --ink: #16181D;
  --gray-75: #404040;
  --gray-50: #656565;
  --gray-25: #C4C4C4;
  --gray-12: #E4E3E0;
  --off-white: #F7F6F3;
  --white: #FFFFFF;

  --font-display: "Fraunces", "Archivo", serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 14px;
  --shadow-soft: 0 20px 50px -25px rgba(20, 27, 51, 0.45);
  --shadow-card: 0 10px 30px -18px rgba(20, 27, 51, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-variation-settings: "wght" 400, "wdth" 100;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-variation-settings: "opsz" 40, "wght" 480, "SOFT" 0, "WONK" 0;
}
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Foco visible (WCAG 2.4.7) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.1s linear;
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.35) 40%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) { .btn::before { display: none; } }

.btn-icon { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }

.btn--sm { padding: 10px 22px; font-size: 0.85rem; }
.btn--lg { padding: 17px 34px; }
.btn--full { width: 100%; }

.btn--gold {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: var(--shadow-card);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgba(185, 160, 60, 0.6); background: var(--gold-light); }
.btn--gold:active { transform: translateY(-1px); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: var(--navy-700); transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(20,27,51,0.55); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-3px); }

/* ---------- Encabezado / navegación ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,27,51,0.55), rgba(20,27,51,0));
  opacity: 1;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.site-header.is-scrolled {
  height: calc(var(--header-h) - 14px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 30px -20px rgba(20,27,51,0.4);
}
.site-header.is-scrolled::before { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand { display: inline-flex; align-items: center; position: relative; }
.brand-mark { height: 34px; width: auto; transition: opacity 0.4s ease, transform 0.4s ease; }
.brand-mark--navy { position: absolute; inset: 0; opacity: 0; transform: scale(0.94); }
.brand-mark--white { opacity: 1; transform: scale(1); }
.site-header.is-scrolled .brand-mark--white { opacity: 0; transform: scale(1.05); }
.site-header.is-scrolled .brand-mark--navy { opacity: 1; transform: scale(1); }

.main-nav { position: relative; }
.main-nav ul { display: flex; gap: 8px; position: relative; z-index: 1; }
.nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: 38px;
  width: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  transform: translateY(-50%);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease), background 0.35s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 0;
}
.site-header.is-scrolled .nav-indicator { background: var(--gray-12); }
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s ease;
}
.site-header.is-scrolled .main-nav a { color: var(--ink); }
.main-nav a.is-active { color: var(--gold); }
.site-header.is-scrolled .main-nav a.is-active { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn--gold { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: linear-gradient(160deg, var(--navy-900), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-nav nav { text-align: center; display: flex; flex-direction: column; gap: 36px; align-items: center; width: 100%; padding-inline: 24px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 22px; }
.mobile-nav ul a {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60, "wght" 440, "SOFT" 0, "WONK" 0;
  font-size: 1.7rem;
  color: var(--white);
}
.mobile-nav ul a:hover { color: var(--gold); }
.mobile-nav .btn { max-width: 320px; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: radial-gradient(120% 120% at 15% 10%, var(--navy-700) 0%, var(--navy-900) 55%, #0d1226 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-pattern {
  width: 112%; height: 112%;
  margin: -6%;
  opacity: 0.35;
  animation: drift 26s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.hero-pattern__diamonds polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  opacity: 0.55;
}
.hero-pattern__diamonds polyline:nth-child(2) { stroke: var(--white); opacity: 0.35; }
.hero-pattern__diamonds polyline:nth-child(3),
.hero-pattern__diamonds polyline:nth-child(4) { stroke: var(--white); opacity: 0.18; }
@keyframes drift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.045) rotate(1.2deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-pattern { animation: none; } }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  padding-block: clamp(60px, 8vw, 90px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--gold); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease) 0.15s;
}
.reveal.is-visible .eyebrow::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .eyebrow::before { transform: scaleX(1); } }

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  max-width: 15ch;
  margin-bottom: 24px;
  font-variation-settings: "opsz" 144, "wght" 420, "SOFT" 0, "WONK" 0;
}
.hero-copy h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  transition-delay: calc(var(--wi, 0) * 55ms);
}
.reveal.is-visible .hero-copy h1 .word { opacity: 1; transform: translateY(0); filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .hero-copy h1 .word { opacity: 1; transform: none; filter: none; }
}
.hero-lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

#contenido .hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.hero-mark img {
  width: min(340px, 80%);
  height: auto;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35)) drop-shadow(0 0 0 rgba(185,160,60,0));
  }
  50% {
    transform: translateY(-16px) rotate(1.5deg);
    filter: drop-shadow(0 42px 70px rgba(0,0,0,0.4)) drop-shadow(0 0 30px rgba(185,160,60,0.55));
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark img { animation: none; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35)); }
  .hero-mark { transform: none !important; }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ---------- Secciones genéricas ---------- */
section { padding-block: clamp(70px, 10vw, 120px); }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--navy-900); }

/* ---------- Nosotros ---------- */
.about { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-frame {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-12);
}
.about-frame img {
  margin-inline: auto;
  width: min(260px, 100%);
  height: auto;
  animation: float-soft 8s ease-in-out infinite;
}
@keyframes float-soft {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(185,160,60,0));
  }
  50% {
    transform: translateY(-10px);
    filter: drop-shadow(0 14px 22px rgba(185,160,60,0.35));
  }
}
@media (prefers-reduced-motion: reduce) { .about-frame img { animation: none; } }
.about-caption { margin-top: 18px; font-size: 0.85rem; color: var(--gray-50); text-align: center; }

.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--navy-900); margin-bottom: 22px; }
.about-copy p { color: var(--gray-75); line-height: 1.75; margin-bottom: 18px; max-width: 58ch; }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 40, "wght" 440, "SOFT" 30, "WONK" 0;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 28px 0;
  max-width: 46ch;
}
.pull-quote em {
  color: var(--gold);
  font-style: italic;
  font-variation-settings: "opsz" 40, "wght" 560, "SOFT" 30, "WONK" 0;
}
.about-points { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.about-points li { color: var(--gray-75); line-height: 1.6; padding-left: 22px; position: relative; }
.about-points li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.about-points strong { color: var(--navy-900); font-variation-settings: "wght" 650; }

/* ---------- Áreas de práctica: índice editorial (no tarjetas) ---------- */
.practice-index {
  border-top: 1px solid var(--gray-12);
}
.practice-row {
  display: grid;
  grid-template-columns: 84px 1fr 48px;
  align-items: center;
  gap: 28px;
  padding-block: 30px;
  border-bottom: 1px solid var(--gray-12);
  transition: background 0.4s ease, padding-inline 0.4s var(--ease);
}
.practice-row:hover { background: var(--off-white); padding-inline: 14px; margin-inline: -14px; }

/* Entrada de la lista: más notoria que el fade genérico — la fila entra
   deslizándose desde la izquierda y el numeral "rebota" al asentarse. */
#contenido .practice-row.reveal {
  opacity: 0;
  transform: translateX(-64px);
  transition: opacity 0.7s var(--ease), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
#contenido .practice-row.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  #contenido .practice-row.reveal { opacity: 1; transform: none; transition: none; }
}

.practice-row__num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60, "wght" 380, "SOFT" 0, "WONK" 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--gray-25);
  line-height: 1;
  display: inline-block;
  transform: scale(0.4);
  opacity: 0;
  transition: color 0.4s ease,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.45s ease;
  transition-delay: 0s, calc(var(--d, 0) * 90ms + 120ms), calc(var(--d, 0) * 90ms + 120ms);
}
.practice-row.reveal.is-visible .practice-row__num { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .practice-row__num { opacity: 1; transform: none; transition: color 0.4s ease; }
}
.practice-row:hover .practice-row__num { color: var(--gold); }
.practice-row__body h3 {
  font-family: var(--font-body);
  font-variation-settings: "wght" 700;
  font-size: 1.12rem;
  color: var(--navy-900);
  margin-bottom: 8px;
  line-height: 1.3;
}
.practice-row__body p { color: var(--gray-50); line-height: 1.65; font-size: 0.95rem; max-width: 62ch; }
.practice-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-12);
  color: var(--navy);
  justify-self: end;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s var(--ease);
}
.practice-row:hover .practice-row__icon { background: var(--gold); border-color: var(--gold); color: var(--navy-900); transform: translateX(4px); }
.practice-row__icon svg { width: 20px; height: 20px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .practice-row { transition: none; } }

/* ---------- Diferenciadores: manifiesto asimétrico (no tarjetas iguales) ---------- */
.edge { background: var(--navy-900); color: var(--white); }
.edge-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.edge-heading h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--white); }
.edge-heading .eyebrow { margin-bottom: 18px; }

.edge-list { border-top: 1px solid rgba(255,255,255,0.14); }
.edge-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-block: 26px;
  padding-inline: 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  cursor: default;
  transition: background 0.4s var(--ease), padding-inline 0.4s var(--ease);
}
.edge-item:hover {
  background: rgba(255,255,255,0.045);
  padding-inline: 14px;
  margin-inline: -14px;
}
.edge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--gold-light);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease,
    transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.edge-item:hover .edge-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
  transform: translateX(8px) scale(1.06);
  box-shadow: 0 6px 18px -6px rgba(185,160,60,0.6);
}
.edge-icon svg { width: 20px; height: 20px; fill: currentColor; }
.edge-item h3 {
  font-family: var(--font-body);
  font-variation-settings: "wght" 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  transition: transform 0.4s var(--ease), color 0.4s ease;
}
.edge-item:hover h3 { transform: translateX(4px); color: var(--gold-light); }
.edge-item p { color: rgba(255,255,255,0.68); line-height: 1.6; font-size: 0.92rem; max-width: 52ch; }
@media (prefers-reduced-motion: reduce) {
  .edge-item, .edge-icon, .edge-item h3 { transition: none; }
}

/* ---------- Metodología ---------- */
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.method-step { position: relative; padding-top: 8px; }
.method-step::before {
  content: "";
  position: absolute;
  top: 34px; left: -12px;
  width: calc(100% + 24px);
  height: 2px;
  background: var(--gray-12);
  z-index: 0;
}
.method-step::after {
  content: "";
  position: absolute;
  top: 34px; left: -12px;
  width: calc(100% + 24px);
  height: 2px;
  background: var(--gold);
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease) 0.3s;
}
.method-step:first-child::before,
.method-step:first-child::after { left: 50%; width: calc(50% + 12px); }
.method-step:last-child::before,
.method-step:last-child::after { width: calc(50% + 12px); }
.method-step.reveal.is-visible::after { transform: scaleX(1); }
.method-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--navy);
  margin-bottom: 22px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.35s ease, color 0.35s ease;
}
.method-index svg { width: 24px; height: 24px; fill: currentColor; }
.method-step:hover .method-index { transform: scale(1.1); background: var(--gold); color: var(--navy-900); box-shadow: 0 0 0 8px rgba(185,160,60,0.15); }
.method-step h3 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: 10px; }
.method-step p { color: var(--gray-50); line-height: 1.6; font-size: 0.94rem; max-width: 28ch; }
@media (prefers-reduced-motion: reduce) { .method-step::after { transform: scaleX(1); transition: none; } }

.method-cta {
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: clamp(32px, 5vw, 44px);
  border-top: 1px solid var(--gray-12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.method-cta p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40, "wght" 440, "SOFT" 0, "WONK" 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--navy-900);
  max-width: 34ch;
}

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-900) 100%); color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
}
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.contact-lede { color: rgba(255,255,255,0.78); line-height: 1.65; max-width: 42ch; margin-bottom: 32px; }
.contact-address { font-style: normal; display: block; }
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 34px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--gold);
  transition: background 0.3s ease, transform 0.3s var(--ease);
}
.contact-icon svg { width: 18px; height: 18px; fill: currentColor; }
.contact-list li:hover .contact-icon { background: var(--gold); color: var(--navy-900); transform: scale(1.08); }
.contact-text { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.contact-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); }
.contact-list a { font-size: 1.15rem; font-variation-settings: "wght" 600; transition: color 0.2s ease; }
.contact-list a:hover { color: var(--gold); }
.contact-list span { font-size: 1.05rem; color: rgba(255,255,255,0.85); }

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  backdrop-filter: blur(6px);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-row label { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.form-row input, .form-row textarea {
  background: rgba(255,255,255,0.94);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--ink);
  resize: vertical;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(185,160,60,0.25);
}
.contact-form.was-validated input:invalid,
.contact-form.was-validated textarea:invalid { border-color: #d9736c; }
.form-hint { margin-top: 14px; font-size: 0.8rem; color: rgba(255,255,255,0.6); text-align: center; }
.form-hint a { color: var(--gold-light); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding-top: 60px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-symbol { width: 40px; height: auto; }
.footer-name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 30, "wght" 500, "SOFT" 0, "WONK" 0;
  color: var(--white);
  font-size: 1.25rem;
}
.footer-tag { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; align-items: flex-end; }
.footer-contact a:hover { color: var(--gold); }

.footer-social { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-social__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-social__list { display: flex; gap: 10px; }
.footer-social__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease,
    transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.footer-social__list a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
  transform: translateY(-4px);
  box-shadow: 0 8px 18px -8px rgba(185,160,60,0.65);
}
.footer-social__list svg { width: 18px; height: 18px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .footer-social__list a { transition: none; } }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s var(--ease), border-color 0.25s ease;
}
.back-to-top svg { width: 16px; height: 16px; fill: currentColor; }
.back-to-top:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); transform: translateY(-4px); }

.footer-symbol { transition: transform 0.5s var(--ease); }
.footer-brand:hover .footer-symbol { transform: rotate(90deg); }
.footer-symbol-wrap {
  display: inline-flex;
  animation: float-soft-dark 9s ease-in-out infinite;
}
@keyframes float-soft-dark {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(185,160,60,0));
  }
  50% {
    transform: translateY(-6px);
    filter: drop-shadow(0 0 12px rgba(185,160,60,0.5));
  }
}
@media (prefers-reduced-motion: reduce) { .footer-symbol-wrap { animation: none; } }

/* ---------- Animaciones de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.975);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.reveal[data-reveal-delay="1"] { --d: 1; }
.reveal[data-reveal-delay="2"] { --d: 2; }
.reveal[data-reveal-delay="3"] { --d: 3; }
.reveal[data-reveal-delay="4"] { --d: 4; }
.reveal[data-reveal-delay="5"] { --d: 5; }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1000px) {
  .header-actions .btn--gold { display: inline-flex; }
  .nav-toggle { display: none; }
}

@media (max-width: 999px) {
  .main-nav { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-mark { order: -1; max-width: 220px; margin-inline: auto; }
  .hero-mark img { width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-frame { max-width: 340px; margin-inline: auto; }
  .practice-row { grid-template-columns: 56px 1fr 40px; gap: 18px; }
  .practice-row__num { font-size: 1.7rem; }
  .edge-layout { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .method-step::before, .method-step::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .practice-row { grid-template-columns: 40px 1fr; gap: 14px; padding-block: 22px; }
  .practice-row__num { font-size: 1.25rem; align-self: start; }
  .practice-row__icon { display: none; }
  .method-steps { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .footer-contact { align-items: flex-start; }
  .footer-social { align-items: flex-start; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- Utilidades y enlace "Boletín" ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nav-badge::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
  transform: translateY(-1px);
}

/* ---------- Teaser del boletín en la portada ---------- */
.bulletin-teaser { background: var(--off-white); padding-block: clamp(56px, 7vw, 84px); }
.bulletin-teaser__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--gray-12);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.bulletin-teaser__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
}
.bulletin-teaser__icon svg { width: 30px; height: 30px; fill: currentColor; }
.bulletin-teaser h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: var(--navy-900); margin-bottom: 10px; max-width: 30ch; }
.bulletin-teaser__text > p:last-child { color: var(--gray-75); line-height: 1.6; max-width: 56ch; }
.bulletin-teaser .eyebrow { color: var(--gray-50); }
@media (max-width: 900px) {
  .bulletin-teaser__inner { grid-template-columns: 1fr; text-align: left; }
  .bulletin-teaser__inner .btn { justify-self: start; }
}
