/* =========================================================
   OPOSIPLUS · HEADER GLOBAL DEFINITIVO
   Este archivo debe cargar DESPUÉS de cualquier CSS antiguo.
   ========================================================= */

html,
body{
  margin:0;
}

body.opxUnifiedBody,
body.opxPremiumBody{
  background:
    radial-gradient(circle at 74% 6%, rgba(212,168,67,.15), transparent 27%),
    radial-gradient(circle at 16% 26%, rgba(126,184,224,.13), transparent 30%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(180deg,#020810 0%,#071324 48%,#030B17 100%) !important;
  background-size:auto,auto,42px 42px,42px 42px,auto !important;
  color:#edf4ff !important;
  overflow-x:hidden !important;
  padding-top:0 !important;
}

/* Ocultamos el drawer antiguo para que no ensucie ni duplique cabecera */
.opxDrawer,
.opxDrawerOverlay,
[data-opx-drawer],
[data-opx-overlay]{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* CABECERA ÚNICA */
.opxUnifiedHeader{
  position:sticky !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  z-index:99999 !important;

  min-height:76px !important;
  width:100% !important;
  box-sizing:border-box !important;

  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:22px !important;

  padding:12px 30px !important;
  margin:0 !important;

  background:rgba(7,14,28,.94) !important;
  border-bottom:1px solid rgba(126,184,224,.13) !important;
  backdrop-filter:blur(18px) !important;
  box-shadow:0 12px 36px rgba(0,0,0,.34) !important;
}

/* MARCA */
.opxUnifiedBrand{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  min-width:max-content !important;

  text-decoration:none !important;
  color:#fff !important;
  line-height:1 !important;
  font-weight:1000 !important;
  letter-spacing:3.5px !important;
  white-space:nowrap !important;
}

.opxUnifiedBrand strong{
  color:#edf4ff !important;
  font-size:16px !important;
  font-weight:1000 !important;
  letter-spacing:3.5px !important;
}

.opxUnifiedLogo{
  width:34px !important;
  height:34px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:999px !important;
  background:rgba(245,197,24,.12) !important;
  border:1px solid rgba(126,184,224,.22) !important;
  box-shadow:0 0 28px rgba(126,184,224,.18) !important;
}

/* NAV CENTRAL */
.opxUnifiedNav{
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  padding:0 !important;
  margin:0 !important;
}

.opxUnifiedNav > a,
.opxUnifiedMore > summary{
  height:42px !important;
  box-sizing:border-box !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding:0 12px !important;
  margin:0 !important;
  border-radius:999px !important;

  color:#b0c2d6 !important;
  background:transparent !important;
  border:1px solid transparent !important;

  text-decoration:none !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:950 !important;
  letter-spacing:1.15px !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  cursor:pointer !important;
}

.opxUnifiedNav > a:hover,
.opxUnifiedMore > summary:hover{
  color:#edf4ff !important;
  background:rgba(126,184,224,.09) !important;
  border-color:rgba(126,184,224,.18) !important;
}

.opxUnifiedNav > a[href="/blog/"]{
  color:#f0c96a !important;
  background:rgba(212,168,67,.10) !important;
  border-color:rgba(212,168,67,.22) !important;
}

/* DROPDOWN MÁS */
.opxUnifiedMore{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  margin:0 !important;
  padding:0 !important;
}

.opxUnifiedMore summary{
  list-style:none !important;
}

.opxUnifiedMore summary::-webkit-details-marker{
  display:none !important;
}

.opxUnifiedMore summary::after{
  content:"▾";
  margin-left:7px;
  color:#f5c518;
  font-size:11px;
}

.opxUnifiedMore div{
  position:absolute !important;
  top:50px !important;
  right:0 !important;

  min-width:220px !important;
  padding:10px !important;
  border-radius:20px !important;

  background:rgba(7,14,28,.98) !important;
  border:1px solid rgba(126,184,224,.18) !important;
  box-shadow:0 22px 70px rgba(0,0,0,.46) !important;

  display:none !important;
}

.opxUnifiedMore[open] div{
  display:grid !important;
  gap:6px !important;
}

.opxUnifiedMore div a{
  display:flex !important;
  align-items:center !important;
  min-height:40px !important;

  padding:0 12px !important;
  border-radius:14px !important;

  color:#b0c2d6 !important;
  text-decoration:none !important;
  font-size:12px !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.8px !important;
}

.opxUnifiedMore div a:hover{
  background:rgba(245,197,24,.10) !important;
  color:#f5c518 !important;
}

/* ACCIONES DERECHA */
.opxUnifiedActions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  min-width:max-content !important;
  margin:0 !important;
  padding:0 !important;
}

.opxUnifiedRegister,
.opxUnifiedLogin{
  position:static !important;
  transform:none !important;

  box-sizing:border-box !important;
  height:48px !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding:0 20px !important;
  margin:0 !important;
  border-radius:999px !important;

  text-decoration:none !important;
  white-space:nowrap !important;
  font-size:13px !important;
  line-height:1 !important;
  font-weight:1000 !important;
  letter-spacing:1.15px !important;
  text-transform:uppercase !important;
}

.opxUnifiedRegister{
  background:#f5c518 !important;
  color:#020810 !important;
  border:1px solid rgba(245,197,24,.55) !important;
  box-shadow:0 14px 42px rgba(245,197,24,.20) !important;
}

.opxUnifiedLogin{
  background:rgba(126,184,224,.07) !important;
  color:#edf4ff !important;
  border:1px solid rgba(126,184,224,.20) !important;
}

.opxUnifiedLogin:hover{
  background:rgba(126,184,224,.11) !important;
  color:#7eb8e0 !important;
}

/* CTA FLOTANTE */
.opxUnifiedFloating{
  position:fixed !important;
  left:50% !important;
  bottom:18px !important;
  transform:translateX(-50%) !important;
  z-index:99998 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;

  padding:8px !important;
  border-radius:999px !important;

  background:rgba(0,0,0,.78) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  backdrop-filter:blur(14px) !important;
  box-shadow:0 18px 60px rgba(0,0,0,.45) !important;
}

.opxUnifiedFloating .opxUnifiedRegister,
.opxUnifiedFloating .opxUnifiedLogin{
  height:46px !important;
  padding:0 18px !important;
  font-size:12px !important;
}

/* Botones antiguos de contenido: coherencia mínima */
.opxUnifiedBody .opxBtn,
.opxUnifiedBody .btn,
.opxUnifiedBody a.button,
.opxUnifiedBody button{
  border-radius:999px !important;
}

.opxUnifiedBody a[href*="auth=register"]{
  background:#d4a843 !important;
  color:#020810 !important;
  border-color:rgba(245,197,24,.40) !important;
}

.opxUnifiedBody a[href="/app/"]{
  color:#fff !important;
}

/* Evitar solapes antiguos */
.opxSticky,
.sticky-cta,
.opxFloatingCta,
.opxStickyGroup{
  display:none !important;
}

/* RESPONSIVE */
@media(max-width:1180px){
  .opxUnifiedHeader{
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:14px 18px !important;
  }

  .opxUnifiedBrand{
    justify-content:center !important;
  }

  .opxUnifiedNav{
    justify-content:center !important;
    flex-wrap:wrap !important;
  }

  .opxUnifiedActions{
    justify-content:center !important;
  }
}

@media(max-width:680px){
  .opxUnifiedHeader{
    padding:12px !important;
  }

  .opxUnifiedBrand{
    font-size:14px !important;
  }

  .opxUnifiedNav{
    width:100% !important;
    justify-content:flex-start !important;
    overflow-x:auto !important;
    flex-wrap:nowrap !important;
    padding-bottom:4px !important;
    scrollbar-width:none !important;
  }

  .opxUnifiedNav::-webkit-scrollbar{
    display:none !important;
  }

  .opxUnifiedNav > a,
  .opxUnifiedMore > summary{
    height:38px !important;
    font-size:11px !important;
    padding:0 10px !important;
  }

  .opxUnifiedActions{
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  .opxUnifiedRegister,
  .opxUnifiedLogin{
    width:100% !important;
    height:44px !important;
    padding:0 10px !important;
    font-size:11px !important;
  }

  .opxUnifiedFloating{
    width:calc(100% - 22px) !important;
    border-radius:22px !important;
  }

  .opxUnifiedFloating .opxUnifiedRegister,
  .opxUnifiedFloating .opxUnifiedLogin{
    flex:1 !important;
    padding:0 8px !important;
    font-size:11px !important;
  }
}
