/* ================================================================
   CABECERA DE MARCA — compartida por Cursos y Mentores
   Misma receta que la portada de Miembros (members.css: .mbr-cover,
   .mbr-hero, .mbr-totals, .mbr-tools). Si se ajusta allí, ajustar aquí.
   ================================================================ */

/* Cover marino full-bleed con la R como marca de agua */
.bcov {
    position: relative; height: 440px; margin: 0; overflow: hidden;
    background:
        radial-gradient(70% 90% at 85% 0%, rgba(72,0,255,0.55), transparent 60%),
        radial-gradient(50% 60% at 0% 100%, rgba(224,99,213,0.16), transparent 60%),
        radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(160deg, #1F2148 0%, #14132E 60%, #0F0E24 100%);
}
.bcov-mark { position: absolute; right: 4%; top: -40px; height: 520px; opacity: 0.08; }
.bcov-mark svg { height: 100%; width: auto; color: #fff; }

/* Contenedor del texto: mismo ancho que Miembros */
.bcov-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; }

/* Héroe montado sobre el cover (390 de 440: las píldoras quedan siempre dentro del marino) */
.bcov-hero { position: relative; margin-top: -390px; padding: 56px 0 34px; min-height: 390px; box-sizing: border-box; color: #fff; }
.bcov-title { margin: 0; font: 850 clamp(40px, 6vw, 68px)/0.92 var(--font-display); font-stretch: 86%; letter-spacing: -0.03em; text-transform: uppercase; color: #fff; }
.bcov-title em {
    font-style: normal; display: inline-block; margin-top: 0.08em;
    background: var(--color-lime); color: var(--color-navy);
    padding: 0.02em 0.16em 0.06em; border-radius: 6px; transform: rotate(-1.4deg);
    box-shadow: 0 12px 40px -12px color-mix(in srgb, var(--color-lime) 55%, transparent);
}
.bcov-sub { margin: 18px 0 0; max-width: 560px; font: 400 15px/1.55 var(--font-display); color: rgba(255,255,255,0.78); }

/* Barra de herramientas apoyada sobre el borde del cover */
.bcov-tools {
    display: flex; align-items: center; gap: 12px; margin: 34px 0 26px; padding: 8px; border-radius: 16px;
    background: var(--bg-surface); border: 1px solid var(--border-default);
    box-shadow: 0 24px 50px -30px rgba(20,19,46,0.5), var(--shadow-card-rest);
    position: relative; z-index: 2;
}
html[data-theme="light"] .bcov-tools, html.light .bcov-tools { background: #fff; border-color: #E6E6E2; }
@media (prefers-color-scheme: light) { html[data-theme="auto"] .bcov-tools { background: #fff; border-color: #E6E6E2; } }

/* Pestañas Cursos | Mentores dentro de la barra (mismo aspecto que el orden de Miembros) */
.bcov-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-surface-sunken); flex-shrink: 0; }
.bcov-tab { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 9px; font: 600 13px var(--font-display); color: var(--text-secondary); text-decoration: none; transition: color 0.15s, background 0.15s; }
.bcov-tab:hover { color: var(--text-primary); }

/* Buscador dentro de la barra */
.bcov-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 11px; background: var(--bg-surface-sunken); border: 1px solid transparent; color: var(--text-tertiary); min-width: 0; }
.bcov-search:focus-within { border-color: var(--border-focus); box-shadow: var(--accent-focus-ring); background: var(--bg-surface); }
.bcov-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.bcov-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: 400 14px var(--font-display); color: var(--text-primary); }
.bcov-search input::placeholder { color: var(--text-placeholder); }

@media (max-width: 767px) {
    /* Variante compacta: kicker + título + píldoras (el subtítulo se omite) */
    .bcov { height: 268px; }
    .bcov-mark { height: 330px; top: -22px; right: -6%; }
    .bcov-wrap { padding: 0 20px; }
    .bcov-hero { margin-top: -248px; min-height: 248px; padding: 28px 0 20px; }
    .bcov-title { font-size: clamp(30px, 9.2vw, 38px); }
    .bcov-sub { display: none; }
    .bcov-hero .tot::-webkit-scrollbar { display: none; }
    .bcov-tools { flex-wrap: wrap; margin-top: 22px; }
    .bcov-tabs { width: 100%; }
    .bcov-tab { flex: 1; justify-content: center; }
    .bcov-search { width: 100%; flex-basis: 100%; }
}
.bcov-hero .tot { margin-top: 18px; }
