/* =========================================================
   LEGACY TRADERS GROUP — Encabezado, menú, secciones, pie de página
   ========================================================= */
/* ---------- Encabezado ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(8, 8, 8, .92); backdrop-filter: blur(10px); border-color: var(--linea); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; flex: none; }
.brand img { height: 46px; width: auto; }
.brand__name { font-family: var(--marca); font-size: 1.15rem; font-weight: 700; line-height: 1; letter-spacing: .02em; text-transform: uppercase; background: var(--degradado-oro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__name em { display: block; font-family: var(--sans); font-style: normal; font-size: .58rem; font-weight: 600; color: var(--texto-suave); -webkit-text-fill-color: var(--texto-suave); letter-spacing: .14em; margin-top: 5px; white-space: nowrap; }
.footer__logo { width: 220px; height: auto; margin-bottom: .5rem; }

.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; min-width: 0; }
.nav .btn { flex: none; }
.nav ul { display: flex; gap: 1.3rem; white-space: nowrap; }
.nav ul a { color: var(--texto-suave); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav ul a:hover, .nav ul a.is-current { color: #fff; }
.nav ul a.is-current { box-shadow: 0 2px 0 var(--oro); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }
.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); }

/* ---------- Ticker ---------- */
.ticker { background: var(--tinta-3); border-block: 1px solid var(--linea); min-height: 46px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--light { background: var(--papel); color: var(--papel-texto); }
.section--light h2, .section--light h3 { color: var(--tinta); }
.section--light .section__lead { color: #55524A; }
.section--deep { background: var(--tinta-3); }
.section__lead { color: var(--texto-suave); max-width: 60ch; font-size: 1.1rem; margin-bottom: 2.5rem; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.section__head .section__lead { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.split__text p { color: var(--texto-suave); max-width: 55ch; }

/* ---------- Pie ---------- */
.footer { background: var(--tinta-3); border-top: 1px solid var(--linea); padding: 4rem 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer__grid p { color: var(--texto-suave); margin-top: 1rem; }
.footer h3 { font-family: var(--sans); font-size: .9rem; color: var(--texto); font-weight: 600; }
.footer ul { display: grid; gap: .5rem; }
.footer ul a { color: var(--texto-suave); text-decoration: none; }
.footer ul a:hover { color: #fff; }
.footer__risk { border-top: 1px solid var(--linea); padding-top: 1.5rem; font-size: .82rem; color: var(--texto-suave); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* El encabezado usa un ancho un poco mayor para que el menú respire */
.header .wrap { width: min(100% - 2.5rem, 1360px); }
@media (min-width: 1401px) and (max-width: 1599px) {
  .nav { gap: 1.1rem; }
  .nav ul { gap: 1rem; }
  .nav ul a { font-size: .9rem; }
}

/* ---------- Menú de 7 enlaces ---------- */
.nav ul a { letter-spacing: .02em; }

/* ---------- Acciones del encabezado (Ingresar + Únete) ---------- */
.nav__actions { display: flex; gap: .6rem; align-items: center; flex: none; }
.btn--login svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
/* En pantallas medianas, "Ingresar" se muestra solo con el ícono */
@media (min-width: 1401px) and (max-width: 1799px) {
  .btn--login { padding-inline: .7rem; }
  .btn--login__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
