/* =====================================================================
   SYNORIS — Landing pública
   ===================================================================== */

/* ------------------------------------------------------------ cabecera */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: var(--sp-4);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(247, 245, 241, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.site-header.is-stuck::before { opacity: 1; }
.site-header.is-stuck { padding-block: var(--sp-3); }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

/* Logo tipográfico: reproduce el lockup del manual */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1;
}
.logo:hover { color: var(--navy); }
.logo__mark { width: 2rem; height: 2rem; flex: none; }
.logo__text {
  font-size: 1.32rem;
  letter-spacing: .34em;
  text-indent: .34em;
  font-weight: 500;
}
.logo--light { color: var(--white); }
.logo--light:hover { color: var(--white); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__link {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--graphite);
  position: relative;
  padding-block: .35rem;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav__link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
  width: 2.5rem; height: 2.5rem;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 1.35rem; height: 1.5px;
  background: var(--navy);
  margin: 4px auto;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ivory);
    padding: 5.5rem var(--sp-5) var(--sp-6);
    border-bottom: 1px solid var(--border);
    transform: translateY(-102%);
    transition: transform .4s var(--ease);
    box-shadow: var(--shadow-lg);
    max-height: 100dvh;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__link {
    padding-block: var(--sp-4);
    border-bottom: 1px solid var(--border);
    font-size: var(--step-1);
    font-family: var(--font-display);
    letter-spacing: 0;
  }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: var(--sp-5); }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(100svh, 54rem);
  display: flex;
  align-items: center;
  background: var(--navy);
  color: rgba(255,255,255,.8);
  overflow: hidden;
  padding-block: 8rem 5rem;
}
/* Trama sutil: evoca la diagonal del monograma sin competir con el texto */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 70% 55% at 72% 18%, rgba(205,183,141,.16), transparent 62%),
    radial-gradient(ellipse 60% 50% at 12% 88%, rgba(205,183,141,.07), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -18%; right: -8%;
  width: 62%; height: 136%;
  background: linear-gradient(101deg, transparent 49.4%, rgba(205,183,141,.42) 49.7%, rgba(205,183,141,.42) 50.1%, transparent 50.4%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 56rem; }

.hero__mark {
  width: clamp(3.5rem, 7vw, 5rem);
  margin-bottom: var(--sp-6);
}
.hero__title {
  font-size: var(--step-5);
  color: var(--white);
  margin-bottom: var(--sp-5);
  line-height: 1.04;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}
.hero__descriptor {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-5);
  font-weight: 500;
}
.hero__lead {
  font-size: var(--step-1);
  color: rgba(255,255,255,.74);
  max-width: 44rem;
  margin-bottom: var(--sp-6);
}
.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.hero__pillars span { display: flex; align-items: center; gap: var(--sp-3); }
.hero__pillars span:not(:last-child)::after {
  content: '';
  width: 4px; height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  z-index: 1;
}
.hero__scroll::after {
  content: '';
  width: 1px; height: 2.5rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
  50%      { opacity: 1;  transform: scaleY(1);   transform-origin: top; }
}
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* ------------------------------------------------------------- pilares */
.pillar {
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--border);
}
.pillar__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.pillar__num {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.pillar__title {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}

/* --------------------------------------------------------- métricas */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.metric {
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metric:last-child { border-right: 0; }
.metric__value {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--navy);
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.metric__label {
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}
.section--dark .metrics { background: transparent; border-color: rgba(255,255,255,.12); }
.section--dark .metric  { border-color: rgba(255,255,255,.12); }
.section--dark .metric__value { color: var(--gold); }
.section--dark .metric__label { color: rgba(255,255,255,.5); }

/* ------------------------------------------------- Strategy Access cards */
.strategies {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
}
.strategy {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.strategy:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.strategy--featured {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}
.strategy__flag {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--navy);
  color: var(--gold);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .38em 1em;
  border-radius: 999px;
  white-space: nowrap;
}
.strategy__code {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-3);
}
.strategy__amount {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.strategy__unit {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-left: .35em;
}
.strategy__tagline {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin: var(--sp-3) 0 var(--sp-4);
  min-height: 2.6em;
}
.strategy__list {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: var(--sp-4) 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--step--1);
  flex: 1;
}
.strategy__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--graphite);
}
.strategy__list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
  margin-top: .55em;
}

/* --------------------------------------------------------- ciclo semanal */
.timeline {
  position: relative;
  padding-left: var(--sp-6);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: .6rem; bottom: .6rem;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--border));
}
.timeline__item {
  position: relative;
  padding-bottom: var(--sp-6);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-6) + 1px);
  top: .55rem;
  width: 9px; height: 9px;
  background: var(--ivory);
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.timeline__time {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-2);
}
.timeline__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--navy);
  margin: 0 0 var(--sp-2);
}
.section--dark .timeline__item::before { background: var(--navy); }
.section--dark .timeline__title { color: var(--white); }
.section--dark .timeline__time { color: var(--gold); }

/* ------------------------------------------------------- journey / pasos */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-family: var(--font-ui);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
  margin: 0 0 var(--sp-2);
}

/* --------------------------------------------------------- flujo de fees */
.flow {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  align-items: stretch;
}
.flow__node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: center;
  position: relative;
}
.flow__node--accent { border-color: var(--gold); background: var(--gold-100); }
.flow__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.flow__label {
  font-size: var(--step--1);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------- HWM */
.hwm-chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(.5rem, 2vw, 1.25rem);
  height: 13rem;
  padding-top: var(--sp-5);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hwm-chart__ref {
  position: absolute;
  left: 0; right: 0;
  bottom: 52%;
  border-top: 1px dashed var(--gold);
  pointer-events: none;
}
.hwm-chart__ref span {
  position: absolute;
  right: 0; top: -1.55rem;
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: var(--sand);
  padding: 0 .5rem;
}
.hwm-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: var(--sp-2);
  position: relative;
}
.hwm-bar__fill {
  width: 100%;
  background: var(--navy);
  border-radius: 2px 2px 0 0;
  transition: height 1.1s var(--ease);
  height: 0;
}
.hwm-bar--loss  .hwm-bar__fill { background: #b0776f; }
.hwm-bar--gain  .hwm-bar__fill { background: var(--gold); }
.hwm-bar__label {
  position: absolute;
  bottom: -3.4rem;
  font-size: var(--step--1);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  width: 100%;
}
.hwm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: 4.5rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}
.hwm-legend span { display: flex; align-items: center; gap: var(--sp-2); }
.hwm-legend i { width: 12px; height: 12px; border-radius: 2px; display: block; }

/* ---------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  padding: var(--sp-5) 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--navy);
  line-height: 1.35;
}
.faq__q:hover { color: var(--gold-600); }
.faq__icon {
  flex: none;
  width: 1.1rem; height: 1.1rem;
  position: relative;
  margin-top: .35em;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform .3s var(--ease);
}
.faq__icon::before { inset: 50% 0 auto 0; height: 1.5px; transform: translateY(-50%); }
.faq__icon::after  { inset: 0 50% 0 auto; width: 1.5px; transform: translateX(50%); }
.faq__item.is-open .faq__icon::after { transform: translateX(50%) rotate(90deg); opacity: 0; }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), opacity .35s var(--ease), padding .35s var(--ease);
  opacity: 0;
  color: var(--text-muted);
}
.faq__item.is-open .faq__a { opacity: 1; padding-bottom: var(--sp-5); }

/* ------------------------------------------------------------- footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.62);
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--step--1);
}
.site-footer a { color: rgba(255,255,255,.62); }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer__title {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-4);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.site-footer__bottom {
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.42);
}
.site-footer__tagline {
  font-family: var(--font-display);
  font-size: var(--step-0);
  letter-spacing: .12em;
  color: var(--gold);
}

/* Aviso de riesgo: obligatorio y visible, nunca escondido */
.risk-disclaimer {
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
  color: rgba(255,255,255,.66);
  font-size: var(--step--1);
  line-height: 1.7;
}
.risk-disclaimer strong { color: var(--gold); font-weight: 600; }
