/* OC Hub · cabecera de medio (v3) */
.oc-h3 { --h3-line: rgba(125,158,234,.16); --h3-tx: #F2F5FC; --h3-mu: #8A96B3; --h3-blue: #517BD9; --h3-hi: #9DB8F2; position: fixed; inset: 0 0 auto 0; z-index: 990; background: rgba(5,7,13,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--h3-line); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, Arial, sans-serif; color: var(--h3-tx); transition: background .25s; }
body.admin-bar .oc-h3 { top: 32px; }
@media (max-width: 782px) { body.admin-bar .oc-h3 { top: 46px; } }
.oc-h3 a { color: inherit; text-decoration: none; }
.oc-h3 .h3-in { position: relative; display: flex; align-items: center; max-width: 1680px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 1180px) { .oc-h3 .h3-in { padding: 0 24px; } }

/* fila superior: fecha · logo · redes, Entrar y Únete */
.h3-top { overflow: hidden; max-height: 84px; transition: max-height .35s cubic-bezier(.22,1,.36,1), opacity .25s; }
.h3-top .h3-in { height: 76px; }
.h3-left, .h3-right { flex: 1 1 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.h3-right { justify-content: flex-end; }
.h3-date { font-size: 13px; color: var(--h3-mu); letter-spacing: .01em; white-space: nowrap; }
.h3-date::first-letter { text-transform: uppercase; }
.oc-h3 .h3-brand { flex: none; display: inline-flex; align-items: center; gap: 12px; font: 700 17px/1.08 "OC-Syncopate", "Syncopate", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.h3-brand img { width: 34px; height: auto; display: block; }
.h3-soc { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; }
.oc-h3 .h3-soc a { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--h3-line); background: rgba(20,28,47,.6); transition: border-color .2s, background .2s; }
.oc-h3 .h3-soc a:hover { border-color: rgba(157,184,242,.6); background: rgba(81,123,217,.16); }
.h3-soc img, .h3-soc svg { width: 14px !important; height: 14px !important; display: block; }
.oc-h3 .h3-enter { padding: 9px 16px; border-radius: 12px; border: 1px solid rgba(157,184,242,.32); font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s; }
.oc-h3 .h3-enter:hover { border-color: rgba(157,184,242,.7); background: rgba(81,123,217,.14); }
.oc-h3 .h3-join { padding: 10px 18px; border-radius: 12px; background: linear-gradient(to top, #3b62c2, #5c84e2); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 22px -10px rgba(81,123,217,.95); transition: filter .2s, transform .1s; white-space: nowrap; }
.oc-h3 .h3-join:hover { filter: brightness(1.12); } .oc-h3 .h3-join:active { transform: translateY(1px); }

/* fila de navegación */
.h3-nav { border-top: 1px solid var(--h3-line); }
.h3-nav .h3-in { height: 48px; gap: 12px; }
.h3-links { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.h3-links::-webkit-scrollbar { display: none !important; height: 0 !important; }
.oc-h3 .h3-links a { position: relative; flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #C5CDE0; transition: color .2s, background .2s; white-space: nowrap; }
.oc-h3 .h3-links a:hover { color: #fff; }
.oc-h3 .h3-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--h3-blue); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.22,1,.36,1); }
.oc-h3 .h3-links a:hover::after { transform: scaleX(1); }
.oc-h3 .h3-links a.on { color: #fff; background: rgba(81,123,217,.18); }
.oc-h3 .h3-links a.on::after { display: none; }
.h3-sep { flex: none; width: 1px; height: 18px; margin: 0 8px; background: var(--h3-line); }
.h3-tools { flex: none; display: flex; align-items: center; gap: 10px; }
.oc-h3 .h3-sbtn, .oc-h3 .h3-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--h3-line); background: transparent; color: var(--h3-tx); cursor: pointer; transition: border-color .2s, background .2s; }
.oc-h3 .h3-sbtn:hover, .oc-h3 .h3-close:hover { border-color: rgba(157,184,242,.6); background: rgba(81,123,217,.16); }
.oc-h3 .h3-mini, .oc-h3 .h3-join-mini { display: none; }
.h3-mini img { display: block; width: 22px; height: auto; }

/* buscador: ocupa la fila de navegación */
.oc-h3 .h3-search { position: absolute; inset: 0 56px; display: flex; align-items: center; gap: 12px; background: #070A13; z-index: 2; animation: h3In .22s ease-out; }
.oc-h3 .h3-search[hidden] { display: none; }
.h3-search > svg { flex: none; color: var(--h3-hi); }
.oc-h3 .h3-search input[type=search] { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: #fff; font-size: 16px; -webkit-appearance: none; appearance: none; }
.oc-h3 .h3-search input::placeholder { color: var(--h3-mu); }
.oc-h3 .h3-go { flex: none; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--h3-blue); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
@keyframes h3In { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* al hacer scroll: una sola barra con logo pequeño, secciones y Únete */
.oc-h3.is-scrolled .h3-top { max-height: 0; opacity: 0; }
.oc-h3.is-scrolled .h3-nav { border-top-color: transparent; }
.oc-h3.is-scrolled .h3-mini { display: inline-flex; flex: none; }
.oc-h3.is-scrolled .h3-join-mini { display: inline-flex; padding: 8px 14px; font-size: 13px; }

/* panel móvil */
.oc-h3 .h3-burger { display: none; position: relative; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: #F2F5FA; cursor: pointer; }
.h3-burger i { position: absolute; left: 9px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .2s, top .32s cubic-bezier(.22,1,.36,1); }
.h3-burger i:nth-child(1) { top: 13px; } .h3-burger i:nth-child(2) { top: 19px; } .h3-burger i:nth-child(3) { top: 25px; }
.h3-burger[aria-expanded=true] i:nth-child(1) { top: 19px; transform: rotate(45deg); }
.h3-burger[aria-expanded=true] i:nth-child(2) { opacity: 0; }
.h3-burger[aria-expanded=true] i:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.oc-h3 .h3-panel { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 20px; border-top: 1px solid var(--h3-line); background: #070A13; }
.oc-h3 .h3-panel[hidden] { display: none; }
.oc-h3 .h3-panel > a:not(.h3-enter):not(.h3-join) { padding: 13px 6px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--h3-line); }
.oc-h3 .h3-panel .h3-enter, .oc-h3 .h3-panel .h3-join { margin-top: 8px; padding: 14px; text-align: center; font-size: 16px; border-radius: 13px; }
.oc-h3 .h3-panel .h3-soc { justify-content: center; margin: 14px 0 0; }

/* separación del contenido respecto a la cabecera (126 px en escritorio) */
body.oc-h3-on.oc-news-page .oc-news { padding-top: 132px !important; }
body.oc-h3-on:not(.oc-news-page):not(.page-id-132) { padding-top: 56px; }

@media (max-width: 991px) {
  .oc-h3 .h3-in { padding: 0 16px; }
  .h3-top .h3-in { height: 58px; }
  .oc-h3 .h3-burger { display: block; margin-left: -6px; }
  .h3-date, .h3-top .h3-soc, .h3-top .h3-enter { display: none; }
  .oc-h3 .h3-brand { font-size: 13px; gap: 9px; letter-spacing: .12em; }
  .h3-brand img { width: 26px; }
  .h3-top .h3-join { padding: 8px 13px; font-size: 13px; }
  .h3-nav .h3-in { height: 46px; gap: 6px; padding-right: 10px; }
  .h3-links { justify-content: flex-start; margin: 0 -4px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 22px; }
  .oc-h3 .h3-links a { padding: 7px 11px; }
  .oc-h3 .h3-links a::after { display: none; }
  .oc-h3 .h3-search { inset: 0 10px; }
  .oc-h3 .h3-go { display: none; }
  .oc-h3.is-scrolled .h3-top { max-height: 84px; opacity: 1; }
  .oc-h3.is-scrolled .h3-mini, .oc-h3.is-scrolled .h3-join-mini { display: none; }
  .oc-h3.is-scrolled .h3-nav { border-top-color: var(--h3-line); }
  body.oc-h3-on.oc-news-page .oc-news { padding-top: 112px !important; }
  body.oc-h3-on:not(.oc-news-page):not(.page-id-132) { padding-top: 40px; }
}
@media (min-width: 992px) { .oc-h3 .h3-panel { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .h3-top, .oc-h3 .h3-links a::after, .h3-burger i { transition: none; } .oc-h3 .h3-search { animation: none; } }

/* 0.4.3 (Marc, 30-11): la cinta de precios va pegada a la cabecera y limitada al ancho de los artículos, con los bordes difuminados */
body.oc-h3-on.oc-news-page .oc-news { padding-top: 126px !important; }
@media (min-width: 992px) {
  body.oc-h3-on .oc-news .nw-ticker { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; border-top: 0 !important; background: transparent !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
}
@media (max-width: 991px) { body.oc-h3-on.oc-news-page .oc-news { padding-top: 106px !important; } body.oc-h3-on .oc-news .nw-ticker { border-top: 0 !important; } }

/* 0.4.4 (Marc, 30-11): propuesta A: redes a la izquierda en lugar de la fecha */
.h3-left .h3-soc { margin: 0; }
@media (max-width: 991px) { .h3-left .h3-soc { display: none; } }

/* 0.4.14 (Marc, 30-11): todas las pestañas con el subrayado azul; la activa, blanca y subrayada, sin píldora de fondo */
.oc-h3 .h3-links a.on { background: transparent !important; color: #fff; }
.oc-h3 .h3-links a.on::after { display: block !important; transform: scaleX(1); }
@media (max-width: 991px) { .oc-h3 .h3-links a::after { display: block !important; left: 11px; right: 11px; bottom: 1px; } }
