/* =========================================================
   WINNER TRADING — Cabecera global (todas las páginas)
   Estilos aislados bajo .hd / .hd-menu para no chocar
   con los estilos propios de cada página.
   ========================================================= */
.hd, .hd-menu {
  --hd-violet: #2b1470;
  --hd-orange: #f7941d;
  --hd-ink: #1f1550;
  --hd-muted: #6b6787;
  --hd-lav: #f4f0ff;
  --hd-line: rgba(43, 20, 112, .1);
  --hd-ease: cubic-bezier(.22, 1, .36, 1);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.hd { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--hd-line); color: var(--hd-ink); }
.hd .hd-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: 18px; height: 78px; }
.hd a { color: inherit; text-decoration: none; }

/* Logo */
.hd .hd-logo { display: inline-flex; flex-direction: column; line-height: .86; color: var(--hd-violet); flex: none; }
.hd .hd-logo b { font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.01em; text-transform: uppercase; }
.hd .hd-logo small { font-size: 6.5px; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; margin-top: 5px; padding-top: 4px; border-top: 2px solid var(--hd-orange); width: max-content; }

/* Navegación */
.hd .hd-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hd .hd-nav > a, .hd .dd-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--hd-ink); cursor: pointer; white-space: nowrap; transition: color .3s, background .3s; }
.hd .hd-nav > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--hd-orange); transform: scaleX(0); transition: transform .35s var(--hd-ease); }
.hd .hd-nav > a:hover, .hd .hd-nav > a.is-active { color: var(--hd-violet); }
.hd .hd-nav > a:hover::after, .hd .hd-nav > a.is-active::after { transform: scaleX(1); }
.hd .hd-nav > a.is-active { font-weight: 600; }

/* Desplegables */
.hd .dd { position: relative; }
.hd .dd-btn .chev { transition: transform .35s var(--hd-ease); }
.hd .dd:hover .dd-btn, .hd .dd.open .dd-btn, .hd .dd:focus-within .dd-btn, .hd .dd.is-current .dd-btn { color: var(--hd-violet); background: var(--hd-lav); }
.hd .dd.is-current .dd-btn { font-weight: 600; }
.hd .dd:hover .chev, .hd .dd.open .chev { transform: rotate(180deg); }
.hd .dd-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 290px; padding: 10px;
  background: #fff; border: 1px solid var(--hd-line); border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(43, 20, 112, .4);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .3s var(--hd-ease), visibility 0s .3s;
}
.hd .dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.hd .dd:hover .dd-panel, .hd .dd.open .dd-panel, .hd .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .3s var(--hd-ease); }
.hd .dd--wide .dd-panel { min-width: 520px; grid-template-columns: 1fr 1fr; }
.hd .dd-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; transition: background .25s; }
.hd .dd-panel a:hover, .hd .dd-panel a.is-current { background: var(--hd-lav); }
.hd .dd-panel b { display: block; font-size: 13.5px; font-weight: 600; color: var(--hd-violet); line-height: 1.25; }
.hd .dd-panel small { display: block; font-size: 11.5px; color: var(--hd-muted); line-height: 1.3; margin-top: 2px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.hd .dd-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.hd .dd-logo.oval { width: 48px; height: 40px; }
.hd .dd-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--hd-lav); color: var(--hd-violet); display: grid; place-items: center; flex: none; }
.hd .dd-panel a:hover .dd-ic { background: var(--hd-orange); color: #fff; }

/* Acciones */
.hd .hd-actions { display: flex; align-items: center; gap: 10px; }
.hd .hd-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: 13px; white-space: nowrap; transition: transform .35s var(--hd-ease), background .3s, color .3s; }
.hd .hd-btn:hover { transform: translateY(-2px); }
.hd .hd-btn--vi { background: var(--hd-violet); color: #fff; box-shadow: 0 14px 28px -16px rgba(43, 20, 112, .8); }
.hd .hd-btn--ol { border-color: var(--hd-violet); color: var(--hd-violet); background: #fff; }
.hd .hd-btn--ol:hover { background: var(--hd-violet); color: #fff; }
.hd .hd-btn svg, .hd .dd-btn svg { display: block; flex: none; }
.hd .hd-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hd-line); background: #fff; place-content: center; gap: 4px; color: var(--hd-violet); cursor: pointer; padding: 0; }
.hd .hd-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--hd-ease), opacity .3s; }
.menu-open .hd .hd-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .hd .hd-burger span:nth-child(2) { opacity: 0; }
.menu-open .hd .hd-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil */
.hd-menu { display: none; }
@media (max-width: 1180px) {
  .hd .hd-nav, .hd .hd-actions .hd-btn--ol { display: none; }
  .hd .hd-actions { margin-left: auto; }
  .hd .hd-burger { display: grid; }
  .hd-menu { display: block; position: fixed; inset: 78px 0 0 0; z-index: 59; background: #fff; padding: 24px clamp(16px, 4vw, 40px) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s, transform .35s var(--hd-ease), visibility 0s .35s; }
  .menu-open .hd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s var(--hd-ease); }
  .hd-menu a { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; font-size: 17px; font-weight: 600; color: var(--hd-violet); border-bottom: 1px solid var(--hd-line); text-decoration: none; }
  .hd-menu a.is-current { color: var(--hd-orange); }
  .hd-menu .mo-h { margin: 22px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--hd-orange); }
  .hd-menu .mo-h:first-child { margin-top: 0; }
}
@media (min-width: 1181px) and (max-width: 1300px) { .hd .hd-nav > a, .hd .dd-btn { padding: 8px 9px; font-size: 13px; } }
@media (max-width: 560px) { .hd .hd-actions .hd-btn--vi span { display: none; } .hd .hd-actions .hd-btn--vi { width: 44px; height: 44px; padding: 0; justify-content: center; } }
