/*
 * Base Cofrade Core · RC520
 * Capa visual móvil. Se carga después de base-cofrade-public.css para
 * concentrar aquí los ajustes responsive sin reabrir reglas históricas.
 */

@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  html body .bc-shared-header {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 10px !important;
    gap: 7px !important;
    border-bottom: 1px solid rgba(215,173,69,.16) !important;
    background: rgba(7,13,18,.985) !important;
    box-shadow: 0 7px 20px rgba(0,0,0,.24) !important;
    backdrop-filter: blur(12px) !important;
  }

  html body .bc-shared-header .bc-brand {
    order: 1 !important;
    min-width: 0 !important;
    max-width: min(48vw, 220px) !important;
    height: 56px !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  html body .bc-shared-header .bc-brand-logo,
  html body .bc-shared-header .bc-brand-mark {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex: 0 0 34px !important;
  }

  html body .bc-shared-header .bc-brand > span:last-child {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body .bc-shared-header .bc-brand strong {
    display: block !important;
    overflow: hidden !important;
    font-size: 15px !important;
    line-height: 1.05 !important;
    letter-spacing: .08em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .bc-shared-header .bc-brand small {
    display: block !important;
    overflow: hidden !important;
    margin-top: 2px !important;
    color: rgba(255,255,255,.52) !important;
    font-size: 6px !important;
    line-height: 1 !important;
    letter-spacing: .09em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .bc-shared-header .bc-header-actions {
    order: 2 !important;
    height: 56px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    gap: 3px !important;
  }

  html body .bc-shared-header .bc-icon-button,
  html body .bc-shared-header .bc-notification-button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  html body .bc-shared-header .bc-notification-button {
    font-size: 19px !important;
  }

  html body .bc-shared-header .bc-notification-button span {
    right: -2px !important;
    top: -1px !important;
    min-width: 15px !important;
    height: 15px !important;
    font-size: 8px !important;
  }

  html body .bc-shared-header .bc-user-name {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
  }

  html body .bc-shared-header .bc-user-name img {
    width: 32px !important;
    height: 32px !important;
    border-width: 1px !important;
  }

  html body .bc-shared-header .bc-user-identity,
  html body .bc-shared-header .bc-user-name > b {
    display: none !important;
  }

  html body .bc-shared-header .bc-login-link,
  html body .bc-shared-header .bc-register-link {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 9px !important;
    border-radius: 7px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .bc-shared-header .bc-mobile-nav-toggle {
    order: 3 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important;
    margin: 0 !important;
    padding: 8px !important;
    gap: 4px !important;
    border: 1px solid rgba(215,173,69,.22) !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.04) !important;
  }

  html body .bc-shared-header .bc-mobile-nav-toggle span {
    height: 1.5px !important;
  }

  html body .bc-shared-header .bc-main-nav.is-mobile-open {
    top: calc(100% + 1px) !important;
    right: 8px !important;
    left: 8px !important;
    padding: 8px !important;
    border: 1px solid rgba(215,173,69,.22) !important;
    border-radius: 0 0 13px 13px !important;
    background: rgba(6,14,19,.99) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.5) !important;
  }

  html body .bc-shared-header .bc-main-nav.is-mobile-open > ul,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-list {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 6px !important;
  }

  html body .bc-shared-header .bc-main-nav.is-mobile-open a {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 10px !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 8px !important;
    background: #0c171d !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }

  html body .bc-shared-header .bc-user-dropdown {
    right: -40px !important;
    top: calc(100% + 10px) !important;
    width: min(230px,calc(100vw - 20px)) !important;
    min-width: 0 !important;
    border-color: rgba(215,173,69,.24) !important;
    background: #0b151b !important;
    color: #eef2f3 !important;
  }

  /* Inicio: elimina cualquier geometría heredada de escritorio. */
  html body .bc-unified-shell[data-bc-home]:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-guest:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in.bc-sidebar-is-collapsed:has(> .bc-hero) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 56px 0 0 !important;
    background: #071015 !important;
    overflow: visible !important;
  }

  html body .bc-unified-shell[data-bc-home]:has(> .bc-hero) > .bc-global-sidebar,
  html body .bc-unified-shell[data-bc-home]:has(> .bc-hero) > .bc-user-sidebar {
    display: none !important;
  }

  html body .bc-unified-shell[data-bc-home]:has(> .bc-hero) > .bc-shared-header {
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 500px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 46px 16px 150px !important;
    align-items: center !important;
    background-position: center 40% !important;
    border: 0 !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-shade {
    background:
      linear-gradient(180deg,rgba(3,8,12,.32) 0%,rgba(3,8,12,.56) 48%,rgba(3,8,12,.92) 100%),
      linear-gradient(90deg,rgba(3,8,12,.84) 0%,rgba(3,8,12,.45) 70%,rgba(3,8,12,.3) 100%) !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-content {
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 !important;
    transform: translateY(-20px) !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero h1 {
    margin: 0 0 12px !important;
    font-size: clamp(32px,9.2vw,43px) !important;
    line-height: .98 !important;
    letter-spacing: -.025em !important;
    text-wrap: balance !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero p {
    max-width: 440px !important;
    margin: 0 0 18px !important;
    color: rgba(255,255,255,.78) !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-buttons {
    width: 100% !important;
    max-width: 360px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-button {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    justify-content: center !important;
    border-radius: 7px !important;
    font-size: 10px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-button svg {
    width: 15px !important;
    height: 15px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-home-search,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-hero .bc-home-search {
    right: 12px !important;
    bottom: 22px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-home-search .bc-search-input-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-home-search input[type="search"] {
    height: 50px !important;
    padding: 0 54px 0 17px !important;
    border: 1px solid rgba(215,173,69,.28) !important;
    border-radius: 12px !important;
    background: rgba(247,249,249,.98) !important;
    color: #10161a !important;
    font-size: 13px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.28) !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-home-search button[type="submit"] {
    right: 7px !important;
    top: 6px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 9px !important;
    background: #0d171d !important;
    color: var(--bc-gold,#d7ad45) !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-search-types {
    width: 100% !important;
    margin-top: 8px !important;
    padding: 0 1px 2px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-search-types::-webkit-scrollbar {
    display: none !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-search-types label {
    flex: 0 0 auto !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-search-types span {
    min-height: 28px !important;
    padding: 0 9px !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    background: rgba(7,14,18,.78) !important;
    color: #e9eef0 !important;
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-search-types input:checked + span {
    border-color: rgba(215,173,69,.42) !important;
    background: var(--bc-gold,#d7ad45) !important;
    color: #17120b !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-search-suggestions,
  html body .bc-unified-shell[data-bc-home] .bc-search-suggestions.bc-search-floating {
    top: calc(100% + 7px) !important;
    max-height: min(330px,42dvh) !important;
    border-radius: 10px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-stat-strip {
    box-sizing: border-box !important;
    width: calc(100% - 16px) !important;
    max-width: none !important;
    min-height: 72px !important;
    margin: 8px !important;
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    overflow: hidden !important;
    border: 1px solid rgba(215,173,69,.18) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-stat-strip > a,
  html body .bc-unified-shell[data-bc-home] > .bc-stat-strip > a:last-child,
  html body .bc-unified-shell[data-bc-home] > .bc-stat-strip > a:last-child:nth-child(odd) {
    min-width: 0 !important;
    min-height: 72px !important;
    padding: 7px 1px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    text-align: center !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-stat-strip .bc-stat-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-stat-strip strong {
    font-size: 15px !important;
    line-height: 1 !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-stat-strip small {
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: 6.5px !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-home-main,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main {
    box-sizing: border-box !important;
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin: 0 8px !important;
    padding: 0 0 18px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-grid,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main .bc-feature-grid,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main .bc-feature-grid {
    width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 8px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-card,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main .bc-feature-card,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main .bc-feature-card {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 116px !important;
    margin: 0 !important;
    padding: 12px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0,1fr) !important;
    align-items: start !important;
    gap: 9px !important;
    overflow: hidden !important;
    border: 1px solid rgba(215,173,69,.17) !important;
    border-radius: 10px !important;
    background: linear-gradient(145deg,#10191e,#0a1217) !important;
    box-shadow: 0 7px 18px rgba(0,0,0,.12) !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-feature-card .bc-feature-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin: 0 !important;
    border: 1px solid rgba(215,173,69,.24) !important;
    border-radius: 8px !important;
    background: rgba(215,173,69,.07) !important;
    color: var(--bc-gold,#d7ad45) !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-feature-card .bc-feature-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-feature-card h2 {
    margin: 1px 0 5px !important;
    color: #f4f6f7 !important;
    font-size: 11px !important;
    line-height: 1.16 !important;
    text-wrap: balance !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-feature-card p {
    margin: 0 !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #8698a1 !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }

  /* Fichas públicas: más app y menos página de escritorio encogida. */
  html body .bc-march-reference-layout,
  html body .bc-band-reference-layout,
  html body .bc-author-reference-layout,
  html body .bc-brotherhood-reference-layout,
  html body .bc-event-reference-layout {
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  html body .bc-march-reference-tabs,
  html body .bc-band-reference-tabs {
    top: 56px !important;
    min-height: 43px !important;
    padding: 0 7px !important;
    gap: 2px !important;
    scroll-snap-type: x proximity !important;
    scroll-padding-inline: 7px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
  }

  html body .bc-march-reference-tabs a,
  html body .bc-march-reference-tabs button,
  html body .bc-band-reference-tabs a,
  html body .bc-band-reference-tabs button {
    min-height: 43px !important;
    padding: 0 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    scroll-snap-align: start !important;
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  html body .bc-march-tabs-app .bc-march-reference-rail,
  html body .bc-band-reference-shell .bc-march-reference-aside {
    position: static !important;
  }

  html body .bc-ref-card,
  html body .bc-ref-side-card {
    border-radius: 10px !important;
  }

  /* Directorios canónicos: controles táctiles y filas respirables. */
  html body .bc-marches-tabs,
  html body .bc-authors-table-tabs,
  html body .bc-authors-alphabet {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .bc-marches-tabs::-webkit-scrollbar,
  html body .bc-authors-table-tabs::-webkit-scrollbar,
  html body .bc-authors-alphabet::-webkit-scrollbar {
    display: none !important;
  }

  html body .bc-marches-tabs a,
  html body .bc-authors-table-tabs a,
  html body .bc-authors-alphabet a {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-search label,
  html body .bc-authors-directory-hero form label,
  html body .bc-marches-search label {
    min-height: 46px !important;
  }

  /* Modal de acceso usable sin zoom ni recortes. */
  html body .bc-auth-modal {
    padding: 10px !important;
  }

  html body .bc-auth-dialog {
    box-sizing: border-box !important;
    width: min(100%,430px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 28px 18px 22px !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 782px) {
  html body.admin-bar .bc-shared-header {
    top: 46px !important;
  }

  html body .bc-march-reference-layout,
  html body .bc-band-reference-layout,
  html body .bc-author-reference-layout,
  html body .bc-brotherhood-reference-layout,
  html body .bc-event-reference-layout {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  html body .bc-march-reference-shell,
  html body .bc-band-reference-shell,
  html body .bc-event-reference-shell {
    padding: 9px 8px 24px !important;
  }

  html body .bc-march-reference-hero,
  html body .bc-band-reference-hero {
    border-right: 0 !important;
    border-left: 0 !important;
  }

  html body .bc-march-hero-topbar {
    padding: 10px 10px 0 !important;
  }

  html body .bc-march-return,
  html body .bc-march-hero-actions button,
  html body .bc-band-reference-back,
  html body .bc-band-reference-actions button {
    min-height: 36px !important;
  }

  html body .bc-march-reference-hero h1,
  html body .bc-band-reference-heading h1,
  html body .bc-band-reference-heading h1.is-long,
  html body .bc-band-reference-heading h1.is-very-long {
    font-size: clamp(30px,10.5vw,44px) !important;
    line-height: 1 !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-hero {
    width: 100% !important;
    margin: 0 !important;
    padding: 22px 12px 14px !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-intro h1 {
    font-size: 36px !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-intro strong {
    max-width: none !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-intro p {
    max-width: none !important;
    font-size: 11px !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-search {
    margin-top: 15px !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-totals {
    height: 76px !important;
    margin-top: 12px !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-totals b {
    height: 22px !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-totals svg {
    width: 21px !important;
    height: 21px !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-totals strong {
    font-size: 17px !important;
  }

  html body .bc-authors-canonical .bc-authors-canonical-shell {
    width: 100% !important;
    padding: 0 8px 24px !important;
  }

  html body .bc-authors-canonical .bc-authors-table-area {
    overflow: hidden !important;
  }

  html body .bc-authors-canonical .bc-authors-table>article {
    min-height: 66px !important;
    padding: 7px 9px !important;
  }

  html body .bc-authors-canonical .bc-authors-table-person {
    grid-template-columns: 48px minmax(0,1fr) !important;
    gap: 9px !important;
  }

  html body .bc-authors-canonical .bc-authors-table-person img,
  html body .bc-authors-canonical .bc-authors-table-person>b {
    width: 48px !important;
    height: 48px !important;
  }

  html body .bc-authors-canonical .bc-authors-table-person strong {
    font-size: 14px !important;
  }
}

@media (max-width: 520px) {
  html body .bc-shared-header .bc-brand {
    max-width: 42vw !important;
  }

  html body .bc-shared-header .bc-brand strong {
    font-size: 13px !important;
  }

  html body .bc-shared-header .bc-brand small {
    display: none !important;
  }

  html body .bc-shared-header .bc-icon-button {
    display: none !important;
  }

  html body .bc-shared-header .bc-login-link,
  html body .bc-shared-header .bc-register-link {
    padding: 0 7px !important;
    font-size: 8px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero {
    min-height: 480px !important;
    padding: 38px 13px 142px !important;
    background-position: 54% center !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-content {
    transform: translateY(-15px) !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero h1 {
    font-size: clamp(30px,9.5vw,38px) !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-hero p {
    font-size: 12px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-stat-strip {
    width: calc(100% - 12px) !important;
    margin: 6px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-home-main,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main {
    width: calc(100% - 12px) !important;
    margin: 0 6px !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-card,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main .bc-feature-card,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main .bc-feature-card {
    min-height: 108px !important;
    padding: 10px !important;
    grid-template-columns: 31px minmax(0,1fr) !important;
    gap: 7px !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-feature-card .bc-feature-icon {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-feature-card h2 {
    font-size: 10px !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-feature-card p {
    font-size: 8.5px !important;
  }

  html body .bc-home-footer.bc-home-footer-compact {
    padding: 18px 14px 12px !important;
    gap: 12px !important;
  }

  html body .bc-home-footer.bc-home-footer-compact .bc-footer-legal-links {
    grid-template-columns: 1fr 1fr !important;
    gap: 2px 14px !important;
  }
}

@media (max-width: 390px) {
  html body .bc-shared-header {
    padding-right: 7px !important;
    padding-left: 7px !important;
    gap: 5px !important;
  }

  html body .bc-shared-header .bc-brand {
    max-width: 40vw !important;
  }

  html body .bc-shared-header .bc-brand-logo,
  html body .bc-shared-header .bc-brand-mark {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    flex-basis: 31px !important;
  }

  html body .bc-shared-header .bc-main-nav.is-mobile-open > ul,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-list {
    grid-template-columns: 1fr !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-grid,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main .bc-feature-grid,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main .bc-feature-grid {
    grid-template-columns: 1fr !important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-card,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main .bc-feature-card,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main .bc-feature-card {
    min-height: 76px !important;
    grid-template-columns: 34px minmax(0,1fr) !important;
    align-items: center !important;
  }

  html body .bc-unified-shell[data-bc-home] .bc-feature-card p {
    -webkit-line-clamp: 2 !important;
  }
}

/* ==========================================================
 * RC518 · Inicio móvil depurado: sin Explora ni Agenda
 * Solo afecta a <= 900px. Escritorio conserva RC516 intacta.
 * ========================================================== */
.bc-mobile-discovery,
.bc-mobile-bottom-nav{display:none}

@media (max-width:900px){
  /* Hero: menos portada institucional, más acceso al contenido. */
  html body .bc-unified-shell[data-bc-home] > .bc-hero{
    min-height:430px!important;
    padding:32px 16px 132px!important;
    align-items:flex-start!important;
    background-position:center 42%!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-content{
    max-width:480px!important;
    transform:none!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero h1{
    max-width:455px!important;
    margin:0 0 10px!important;
    font-size:clamp(29px,8.25vw,38px)!important;
    line-height:.99!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero p{
    max-width:430px!important;
    margin-bottom:15px!important;
    font-size:12px!important;
    line-height:1.42!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-buttons{
    max-width:100%!important;
    gap:7px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-button{
    min-height:38px!important;
    font-size:9.5px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-home-search,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-hero .bc-home-search{
    bottom:16px!important;
  }

  /* Buscador: 4 accesos visibles en 2 x 2. 'Todo' sigue siendo el valor por defecto. */
  html body .bc-unified-shell[data-bc-home] .bc-search-types{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    overflow:visible!important;
    padding:0!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types label:first-child{
    display:none!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types label{
    width:100%!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types span{
    width:100%!important;
    min-height:30px!important;
    padding:0 8px!important;
    justify-content:center!important;
    border-radius:8px!important;
    font-size:9px!important;
  }

  /* Los contadores bajos se reservan para cuando el catálogo tenga volumen. */
  html body .bc-unified-shell[data-bc-home] > .bc-stat-strip{
    display:none!important;
  }

  html body .bc-unified-shell[data-bc-home] > .bc-home-main,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main{
    width:100%!important;
    margin:0!important;
    padding:0 0 86px!important;
  }

  /* Feed móvil */
  html body .bc-mobile-discovery{
    display:block!important;
    padding:16px 0 8px!important;
    background:
      radial-gradient(circle at 90% 0,rgba(215,173,69,.07),transparent 34%),
      #071015!important;
  }
  html body .bc-mobile-feed-block{
    margin:0 0 22px!important;
  }
  html body .bc-mobile-feed-block > header{
    padding:0 14px 10px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:space-between!important;
    gap:12px!important;
  }
  html body .bc-mobile-feed-block > header div small{
    display:block!important;
    margin-bottom:2px!important;
    color:var(--bc-gold,#d7ad45)!important;
    font-size:7px!important;
    font-weight:800!important;
    letter-spacing:.16em!important;
  }
  html body .bc-mobile-feed-block > header h2{
    margin:0!important;
    color:#f5f2e9!important;
    font-family:var(--bc-font-heading,Georgia,serif)!important;
    font-size:20px!important;
    line-height:1.05!important;
    font-weight:500!important;
  }
  html body .bc-mobile-feed-block > header > a{
    flex:0 0 auto!important;
    color:#d9bd72!important;
    font-size:9px!important;
    text-decoration:none!important;
  }

  html body .bc-mobile-card-rail{
    display:flex!important;
    gap:9px!important;
    padding:0 14px 4px!important;
    overflow-x:auto!important;
    overscroll-behavior-inline:contain!important;
    scroll-snap-type:x proximity!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }
  html body .bc-mobile-card-rail::-webkit-scrollbar{display:none!important}

  html body .bc-mobile-march-card{
    flex:0 0 min(76vw,285px)!important;
    min-height:118px!important;
    display:grid!important;
    grid-template-columns:82px minmax(0,1fr)!important;
    gap:11px!important;
    padding:9px!important;
    overflow:hidden!important;
    scroll-snap-align:start!important;
    border:1px solid rgba(215,173,69,.18)!important;
    border-radius:13px!important;
    background:linear-gradient(145deg,#111d23,#0a1217)!important;
    color:#fff!important;
    text-decoration:none!important;
    box-shadow:0 10px 24px rgba(0,0,0,.18)!important;
  }
  html body .bc-mobile-march-card.is-featured{
    border-color:rgba(215,173,69,.42)!important;
    background:linear-gradient(145deg,#17242a,#0b1419)!important;
  }
  html body .bc-mobile-card-art{
    position:relative!important;
    display:grid!important;
    place-items:center!important;
    overflow:hidden!important;
    border:1px solid rgba(215,173,69,.24)!important;
    border-radius:10px!important;
    background:
      linear-gradient(180deg,rgba(215,173,69,.13),rgba(215,173,69,.03)),
      #0b171d!important;
    color:var(--bc-gold,#d7ad45)!important;
  }
  html body .bc-mobile-card-art svg{width:31px!important;height:31px!important}
  html body .bc-mobile-card-art i{
    position:absolute!important;
    right:6px!important;
    bottom:6px!important;
    padding:2px 5px!important;
    border-radius:5px!important;
    background:rgba(4,10,13,.82)!important;
    color:#e7ca7d!important;
    font-size:7px!important;
    font-style:normal!important;
    font-weight:700!important;
    letter-spacing:.05em!important;
  }
  html body .bc-mobile-card-copy{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
  }
  html body .bc-mobile-card-copy strong{
    display:-webkit-box!important;
    overflow:hidden!important;
    color:#f8f6ef!important;
    font-size:13px!important;
    line-height:1.2!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
  }
  html body .bc-mobile-card-copy small{
    margin-top:5px!important;
    display:-webkit-box!important;
    overflow:hidden!important;
    color:#8fa0a8!important;
    font-size:9px!important;
    line-height:1.25!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
  }
  html body .bc-mobile-card-copy em{
    margin-top:9px!important;
    color:#d8b85e!important;
    font-size:8px!important;
    font-style:normal!important;
    font-weight:700!important;
  }

  /* El índice clásico queda al final como zona de exploración secundaria. */
  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-grid,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main .bc-feature-grid,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main .bc-feature-grid{
    width:calc(100% - 28px)!important;
    margin:4px 14px 0!important;
  }

  /* Navegación tipo app fija. */
  html body .bc-mobile-bottom-nav{
    position:fixed!important;
    z-index:9990!important;
    right:8px!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    left:8px!important;
    height:58px!important;
    padding:5px 4px!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    border:1px solid rgba(215,173,69,.2)!important;
    border-radius:15px!important;
    background:rgba(8,16,21,.95)!important;
    box-shadow:0 12px 34px rgba(0,0,0,.44)!important;
    backdrop-filter:blur(16px)!important;
  }
  html body .bc-mobile-bottom-nav a{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    border-radius:10px!important;
    color:#899aa2!important;
    font-size:7px!important;
    font-weight:600!important;
    text-decoration:none!important;
  }
  html body .bc-mobile-bottom-nav a svg{
    width:19px!important;
    height:19px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.7!important;
  }
  html body .bc-mobile-bottom-nav a.is-active{
    background:rgba(215,173,69,.09)!important;
    color:#d7ad45!important;
  }

  html{scroll-padding-bottom:78px!important}
  #bc-mobile-home-search{scroll-margin-top:70px!important}
}

@media (max-width:420px){
  html body .bc-unified-shell[data-bc-home] > .bc-hero{
    min-height:420px!important;
    padding-top:27px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero h1{
    font-size:clamp(27px,8vw,34px)!important;
  }
  html body .bc-mobile-feed-block > header h2{font-size:19px!important}
}


/* ==========================================================
 * RC519 · refinamiento Inicio móvil
 * - Menú lateral tipo app
 * - Filtros del buscador en una sola fila
 * - Accesos de directorio compactos
 * Solo <= 900 px; escritorio permanece intacto.
 * ========================================================== */
.bc-mobile-menu-head,
.bc-mobile-menu-caption{display:none}

@media (max-width:900px){
  body.bc-mobile-menu-open{overflow:hidden!important}

  /* Menú: panel lateral, sin tapar el hero como un desplegable horizontal. */
  html body .bc-shared-header .bc-main-nav.is-mobile-open{
    position:fixed!important;
    z-index:10050!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    width:min(330px,88vw)!important;
    height:100dvh!important;
    max-height:none!important;
    padding:20px 16px calc(24px + env(safe-area-inset-bottom))!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    overflow-y:auto!important;
    border:0!important;
    border-left:1px solid rgba(215,173,69,.22)!important;
    border-radius:0!important;
    background:
      radial-gradient(circle at 100% 0,rgba(215,173,69,.11),transparent 27%),
      linear-gradient(180deg,#0b151b 0%,#071015 100%)!important;
    box-shadow:-100vw 0 0 100vw rgba(0,0,0,.66),-18px 0 42px rgba(0,0,0,.40)!important;
    backdrop-filter:blur(18px)!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    padding:1px 1px 13px!important;
    border-bottom:1px solid rgba(255,255,255,.08)!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head div{
    display:flex!important;
    flex-direction:column!important;
    gap:2px!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head small{
    color:#d7ad45!important;
    font-size:8px!important;
    font-weight:700!important;
    letter-spacing:.22em!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head strong{
    color:#f6f2e8!important;
    font-family:Georgia,'Times New Roman',serif!important;
    font-size:27px!important;
    font-weight:400!important;
    line-height:1!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head button{
    width:38px!important;
    height:38px!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid rgba(215,173,69,.26)!important;
    border-radius:50%!important;
    background:rgba(215,173,69,.07)!important;
    color:#d7ad45!important;
    font-size:25px!important;
    font-weight:300!important;
    line-height:1!important;
    cursor:pointer!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-caption{
    display:block!important;
    margin:13px 2px 10px!important;
    color:#819199!important;
    font-size:9px!important;
    letter-spacing:.04em!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open > ul,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-list{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:5px!important;
    list-style:none!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open > a,
  html body .bc-shared-header .bc-main-nav.is-mobile-open > ul > li,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-list > li{
    width:100%!important;
    margin:0!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open a{
    position:relative!important;
    width:100%!important;
    min-height:48px!important;
    height:auto!important;
    padding:0 39px 0 14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    border:1px solid rgba(255,255,255,.065)!important;
    border-radius:10px!important;
    background:rgba(255,255,255,.025)!important;
    color:#e7edef!important;
    font-size:11px!important;
    font-weight:650!important;
    letter-spacing:.035em!important;
    text-align:left!important;
    text-decoration:none!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open a:after{
    content:'›'!important;
    position:absolute!important;
    right:14px!important;
    top:50%!important;
    bottom:auto!important;
    left:auto!important;
    width:auto!important;
    height:auto!important;
    transform:translateY(-52%)!important;
    background:none!important;
    color:#7e9098!important;
    font-size:22px!important;
    line-height:1!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open a:hover,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .current-menu-item > a,
  html body .bc-shared-header .bc-main-nav.is-mobile-open a.is-current{
    border-color:rgba(215,173,69,.28)!important;
    background:rgba(215,173,69,.085)!important;
    color:#e4c46e!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .sub-menu,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-submenu{
    position:static!important;
    width:100%!important;
    min-width:0!important;
    margin:5px 0 0!important;
    padding:0 0 0 12px!important;
    display:grid!important;
    gap:4px!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .sub-menu a,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-submenu a{
    min-height:40px!important;
    font-size:10px!important;
  }

  /* Cuatro tipos de búsqueda en una sola fila. */
  html body .bc-unified-shell[data-bc-home] .bc-search-types{
    width:100%!important;
    margin-top:8px!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px!important;
    overflow:visible!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types label:first-child{
    display:none!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types label{
    width:100%!important;
    min-width:0!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types span{
    width:100%!important;
    min-width:0!important;
    min-height:42px!important;
    padding:4px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    border:1px solid rgba(255,255,255,.09)!important;
    border-radius:9px!important;
    background:rgba(7,14,18,.82)!important;
    color:#dce4e7!important;
    font-size:8px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types span svg{
    width:16px!important;
    height:16px!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types input:checked + span{
    border-color:rgba(215,173,69,.46)!important;
    background:linear-gradient(180deg,#dfb94b,#cda43d)!important;
    color:#17120b!important;
    box-shadow:0 5px 15px rgba(215,173,69,.12)!important;
  }

  /* Los accesos de directorio siguen disponibles, pero dejan de ser bloques de texto. */
  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-grid,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main .bc-feature-grid,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main .bc-feature-grid{
    width:calc(100% - 28px)!important;
    margin:12px 14px 0!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-card,
  html body .bc-unified-shell[data-bc-home].bc-guest > .bc-home-main .bc-feature-card,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-home-main .bc-feature-card{
    min-height:70px!important;
    padding:9px 10px!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr)!important;
    align-items:center!important;
    gap:9px!important;
    border:1px solid rgba(215,173,69,.17)!important;
    border-radius:11px!important;
    background:linear-gradient(145deg,#0d181e,#091217)!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-feature-card .bc-feature-icon{
    width:38px!important;
    height:38px!important;
    margin:0!important;
    border:1px solid rgba(215,173,69,.25)!important;
    border-radius:9px!important;
    background:rgba(215,173,69,.055)!important;
    color:#d7ad45!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-feature-card .bc-feature-icon svg{
    width:19px!important;
    height:19px!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-feature-card h2{
    margin:0!important;
    color:#f4f3ef!important;
    font-size:10.5px!important;
    line-height:1.18!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-feature-card p{
    display:none!important;
  }
}

@media (max-width:370px){
  html body .bc-unified-shell[data-bc-home] .bc-search-types{gap:3px!important}
  html body .bc-unified-shell[data-bc-home] .bc-search-types span{font-size:7.2px!important}
}


/* ==========================================================
 * RC520 · cabecera y navegación móvil compactas
 * - Header superior más bajo
 * - Menú hamburguesa compacto, sin panel a pantalla completa
 * - Filtros del buscador en una fila fina de 4 opciones
 * Solo <= 900px. Escritorio no cambia.
 * ========================================================== */
@media (max-width:900px){
  /* Cabecera: gana espacio vertical sin perder zona táctil. */
  html body .bc-shared-header{
    height:48px!important;
    min-height:48px!important;
    padding:0 9px!important;
    gap:5px!important;
  }
  html body .bc-shared-header .bc-brand{
    height:48px!important;
    gap:6px!important;
  }
  html body .bc-shared-header .bc-brand-logo,
  html body .bc-shared-header .bc-brand-mark{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    flex:0 0 30px!important;
    font-size:12px!important;
  }
  html body .bc-shared-header .bc-header-actions{
    height:48px!important;
    gap:2px!important;
  }
  html body .bc-shared-header .bc-user-name,
  html body .bc-shared-header .bc-icon-button,
  html body .bc-shared-header .bc-notification-button{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
  }
  html body .bc-shared-header .bc-user-name img{
    width:28px!important;
    height:28px!important;
  }
  html body .bc-shared-header .bc-login-link,
  html body .bc-shared-header .bc-register-link{
    height:29px!important;
    min-height:29px!important;
    padding:0 8px!important;
    font-size:8.5px!important;
  }
  html body .bc-shared-header .bc-mobile-nav-toggle{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    flex-basis:32px!important;
    padding:7px!important;
    border-radius:8px!important;
  }
  html body .bc-unified-shell[data-bc-home]:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-guest:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in.bc-sidebar-is-collapsed:has(> .bc-hero){
    padding-top:48px!important;
  }

  /* Menú hamburguesa: tarjeta compacta bajo la cabecera. */
  html body .bc-shared-header .bc-main-nav.is-mobile-open{
    position:fixed!important;
    z-index:10050!important;
    top:54px!important;
    right:8px!important;
    bottom:auto!important;
    left:8px!important;
    width:auto!important;
    height:auto!important;
    max-height:min(420px,calc(100dvh - 70px))!important;
    padding:10px!important;
    display:block!important;
    overflow-y:auto!important;
    border:1px solid rgba(215,173,69,.24)!important;
    border-radius:14px!important;
    background:linear-gradient(180deg,rgba(12,23,29,.985),rgba(7,16,21,.99))!important;
    box-shadow:0 100vh 0 100vh rgba(0,0,0,.58),0 18px 42px rgba(0,0,0,.42)!important;
    backdrop-filter:blur(16px)!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head{
    display:flex!important;
    min-height:34px!important;
    padding:0 2px 8px!important;
    align-items:center!important;
    border-bottom:1px solid rgba(255,255,255,.07)!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head div{
    gap:0!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head small{
    font-size:6.5px!important;
    letter-spacing:.18em!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head strong{
    margin-top:1px!important;
    font-size:18px!important;
    line-height:1!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head button{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    border-radius:8px!important;
    font-size:20px!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-caption{
    display:none!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open > ul,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-list{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:9px 0 0!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    align-content:start!important;
    gap:6px!important;
    flex:none!important;
    list-style:none!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open > a,
  html body .bc-shared-header .bc-main-nav.is-mobile-open > ul > li,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-list > li{
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    flex:none!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open > ul > li:first-child,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-list > li:first-child{
    grid-column:1/-1!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open a{
    width:100%!important;
    min-height:40px!important;
    height:40px!important;
    padding:0 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid rgba(255,255,255,.07)!important;
    border-radius:9px!important;
    background:rgba(255,255,255,.025)!important;
    color:#e9eef0!important;
    font-size:9.5px!important;
    font-weight:700!important;
    letter-spacing:.025em!important;
    text-align:center!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open a:after{
    display:none!important;
    content:none!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .sub-menu,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-submenu{
    grid-column:1/-1!important;
    position:static!important;
    width:100%!important;
    margin:5px 0 0!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .sub-menu a,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-submenu a{
    min-height:36px!important;
    height:36px!important;
    font-size:8.5px!important;
  }

  /* Bajo el buscador: cuatro opciones finas, todas visibles en una fila. */
  html body .bc-unified-shell[data-bc-home] .bc-search-types{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:34px!important;
    margin-top:7px!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-flow:column!important;
    gap:4px!important;
    overflow:visible!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types label:first-child{
    display:none!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types label{
    box-sizing:border-box!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    height:34px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    flex:none!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types span{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:34px!important;
    height:34px!important;
    padding:0 3px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    overflow:hidden!important;
    border-radius:8px!important;
    font-size:7.8px!important;
    line-height:1!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types span svg{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
    flex:0 0 13px!important;
  }

  #bc-mobile-home-search{scroll-margin-top:58px!important}
}

@media (max-width:370px){
  html body .bc-unified-shell[data-bc-home] .bc-search-types{gap:3px!important}
  html body .bc-unified-shell[data-bc-home] .bc-search-types span{font-size:7px!important;padding:0 2px!important}
  html body .bc-unified-shell[data-bc-home] .bc-search-types span svg{width:12px!important;height:12px!important;min-width:12px!important;flex-basis:12px!important}
}


/* ==========================================================
 * RC521 · compactación final móvil
 * - cabecera y menú superior más compactos
 * - menos hueco entre botones del hero y buscador
 * - cuatro selectores bajo el buscador a ancho completo
 * - pie de página más corto en móvil
 * ========================================================== */
@media (max-width:900px){
  html body .bc-shared-header{
    height:44px!important;
    min-height:44px!important;
    padding:0 8px!important;
    gap:6px!important;
  }
  html body .bc-shared-header .bc-brand{
    height:44px!important;
    max-width:min(42vw,180px)!important;
    gap:7px!important;
  }
  html body .bc-shared-header .bc-brand-logo,
  html body .bc-shared-header .bc-brand-mark{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    flex-basis:28px!important;
  }
  html body .bc-shared-header .bc-brand strong{font-size:13px!important;}
  html body .bc-shared-header .bc-brand small{font-size:5.6px!important;margin-top:1px!important;}
  html body .bc-shared-header .bc-header-actions{height:44px!important;gap:2px!important;}
  html body .bc-shared-header .bc-user-name,
  html body .bc-shared-header .bc-icon-button,
  html body .bc-shared-header .bc-notification-button{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
  }
  html body .bc-shared-header .bc-user-name img{width:28px!important;height:28px!important;}
  html body .bc-shared-header .bc-login-link,
  html body .bc-shared-header .bc-register-link{
    height:28px!important;
    min-height:28px!important;
    padding:0 8px!important;
    font-size:8.3px!important;
    border-radius:7px!important;
  }
  html body .bc-shared-header .bc-mobile-nav-toggle{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    flex-basis:30px!important;
    padding:6px!important;
    border-radius:8px!important;
  }
  html body .bc-unified-shell[data-bc-home]:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-guest:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in.bc-sidebar-is-collapsed:has(> .bc-hero){
    padding-top:44px!important;
  }

  /* Menú superior: tarjeta pequeña y baja. */
  html body .bc-shared-header .bc-main-nav.is-mobile-open{
    top:48px!important;
    right:8px!important;
    left:8px!important;
    width:auto!important;
    max-height:180px!important;
    padding:8px!important;
    border-radius:12px!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head{
    min-height:24px!important;
    padding:0 0 6px!important;
    gap:8px!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head small{display:none!important;}
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head strong{
    font-size:14px!important;
    line-height:1!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-mobile-menu-head button{
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    border-radius:7px!important;
    font-size:17px!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open > ul,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-list{
    margin-top:6px!important;
    gap:5px!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open a{
    min-height:34px!important;
    height:34px!important;
    padding:0 8px!important;
    border-radius:8px!important;
    font-size:9px!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .sub-menu,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-submenu{
    gap:4px!important;
    margin-top:4px!important;
  }
  html body .bc-shared-header .bc-main-nav.is-mobile-open .sub-menu a,
  html body .bc-shared-header .bc-main-nav.is-mobile-open .bc-main-nav-submenu a{
    min-height:32px!important;
    height:32px!important;
    font-size:8.2px!important;
  }

  /* Hero: menos altura y menos hueco hasta el buscador. */
  html body .bc-unified-shell[data-bc-home] > .bc-hero{
    min-height:450px!important;
    padding:26px 16px 112px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-content{
    transform:translateY(-6px)!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero h1{
    margin:0 0 10px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero p{
    margin:0 0 14px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-buttons{
    gap:8px!important;
    margin-bottom:0!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-home-search,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-hero .bc-home-search{
    right:12px!important;
    left:12px!important;
    bottom:14px!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-home-search input[type="search"]{
    height:46px!important;
    padding:0 50px 0 16px!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-home-search button[type="submit"]{
    top:5px!important;
    right:6px!important;
    width:36px!important;
    height:36px!important;
  }

  /* Cuatro selectores a ancho completo, sin huecos raros. */
  html body .bc-unified-shell[data-bc-home] .bc-search-types{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-top:8px!important;
    padding:0!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    gap:5px!important;
    overflow:visible!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types label:first-child{display:none!important;}
  html body .bc-unified-shell[data-bc-home] .bc-search-types label{
    flex:1 1 0!important;
    width:0!important;
    min-width:0!important;
    max-width:none!important;
    height:36px!important;
    margin:0!important;
    display:block!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types span{
    width:100%!important;
    min-width:0!important;
    min-height:36px!important;
    height:36px!important;
    padding:0 6px!important;
    gap:4px!important;
    border-radius:9px!important;
    font-size:8.2px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types span svg{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
    flex-basis:13px!important;
  }

  /* Tarjetas de acceso: algo más compactas. */
  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-grid{
    gap:10px!important;
    padding:0 12px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-card{
    min-height:96px!important;
    padding:10px!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-feature-card p{
    font-size:8px!important;
    line-height:1.28!important;
  }

  /* Pie de página: mucho más corto. */
  html body .bc-home-footer.bc-home-footer-compact{
    padding:14px 12px calc(8px + env(safe-area-inset-bottom))!important;
    gap:10px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  html body .bc-home-footer.bc-home-footer-compact .bc-footer-brand{
    gap:8px!important;
    align-items:center!important;
  }
  html body .bc-home-footer.bc-home-footer-compact .bc-footer-brand .bc-footer-logo,
  html body .bc-home-footer.bc-home-footer-compact .bc-footer-brand .bc-brand-mark{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
  }
  html body .bc-home-footer.bc-home-footer-compact .bc-footer-brand p{
    display:none!important;
  }
  html body .bc-home-footer.bc-home-footer-compact .bc-footer-explore{
    display:none!important;
  }
  html body .bc-home-footer.bc-home-footer-compact .bc-footer-legal h3{
    margin-bottom:4px!important;
    font-size:10px!important;
  }
  html body .bc-home-footer.bc-home-footer-compact .bc-footer-legal-links{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:2px 10px!important;
  }
  html body .bc-home-footer.bc-home-footer-compact .bc-footer-legal-links a{
    font-size:8.5px!important;
    line-height:1.3!important;
  }
  html body .bc-home-footer.bc-home-footer-compact .bc-footer-copy,
  html body .bc-home-footer.bc-home-footer-compact .bc-development-footer-version{
    margin-top:0!important;
    font-size:8px!important;
    line-height:1.25!important;
  }
}

@media (max-width:420px){
  html body .bc-unified-shell[data-bc-home] > .bc-hero{
    min-height:430px!important;
    padding-top:20px!important;
    padding-bottom:108px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero h1{
    font-size:clamp(26px,8.2vw,34px)!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types span{font-size:7.8px!important;padding:0 4px!important;}
}

@media (max-width:370px){
  html body .bc-shared-header .bc-login-link,
  html body .bc-shared-header .bc-register-link{padding:0 6px!important;font-size:8px!important;}
  html body .bc-unified-shell[data-bc-home] .bc-search-types{gap:4px!important;}
  html body .bc-unified-shell[data-bc-home] .bc-search-types span{font-size:7.1px!important;padding:0 3px!important;}
}


/* ==========================================================
 * RC523 · simplificación móvil
 * - sin hamburguesa en Inicio
 * - navegación inferior ampliada
 * - menos hueco entre CTA y buscador
 * ========================================================== */
@media (max-width:900px){
  /* Inicio: se elimina la hamburguesa por ahora. */
  html body .bc-unified-shell[data-bc-home] > .bc-shared-header .bc-mobile-nav-toggle{
    display:none!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-shared-header .bc-main-nav{
    display:none!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-shared-header .bc-header-actions{
    gap:4px!important;
  }

  /* Cabecera del inicio aún más limpia. */
  html body .bc-unified-shell[data-bc-home] > .bc-shared-header{
    height:42px!important;
    min-height:42px!important;
  }
  html body .bc-unified-shell[data-bc-home]:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-guest:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in:has(> .bc-hero),
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in.bc-sidebar-is-collapsed:has(> .bc-hero){
    padding-top:42px!important;
  }

  /* Hero: compactar fuerte para acercar el buscador. */
  html body .bc-unified-shell[data-bc-home] > .bc-hero{
    min-height:385px!important;
    padding:18px 16px 92px!important;
    background-position:center 36%!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-content{
    transform:translateY(8px)!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero h1{
    margin:0 0 8px!important;
    font-size:clamp(28px,8.6vw,40px)!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero p{
    margin:0 0 12px!important;
    font-size:12.5px!important;
    line-height:1.42!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-buttons{
    max-width:none!important;
    gap:8px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-button{
    min-height:38px!important;
    font-size:9.8px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-home-search,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-hero .bc-home-search{
    right:12px!important;
    left:12px!important;
    bottom:8px!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-home-search input[type="search"]{
    height:44px!important;
    padding:0 48px 0 16px!important;
    border-radius:12px!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-home-search button[type="submit"]{
    top:4px!important;
    right:5px!important;
    width:36px!important;
    height:36px!important;
  }

  /* Los 4 selectores siguen a ancho completo y algo más finos. */
  html body .bc-unified-shell[data-bc-home] .bc-search-types{
    margin-top:7px!important;
    gap:4px!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types label{
    height:34px!important;
  }
  html body .bc-unified-shell[data-bc-home] .bc-search-types span{
    min-height:34px!important;
    height:34px!important;
    font-size:8px!important;
    padding:0 5px!important;
  }

  /* Barra inferior ampliada a 6 accesos. */
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-extended{
    height:60px!important;
    padding:5px 3px!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-extended a{
    gap:2px!important;
    font-size:6px!important;
    letter-spacing:-.01em!important;
  }
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-extended a svg{
    width:17px!important;
    height:17px!important;
  }

  /* Tarjetas principales un poco más compactas para dejar respirar el inicio. */
  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-grid{
    margin-top:6px!important;
    gap:8px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-home-main .bc-feature-card{
    min-height:88px!important;
    padding:9px!important;
    gap:8px!important;
  }
}

@media (max-width:420px){
  html body .bc-unified-shell[data-bc-home] > .bc-hero{
    min-height:368px!important;
    padding-top:14px!important;
    padding-bottom:88px!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-hero-content{
    transform:translateY(4px)!important;
  }
  html body .bc-unified-shell[data-bc-home] > .bc-hero h1{
    font-size:clamp(27px,8.4vw,37px)!important;
  }
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-extended a{font-size:5.8px!important;}
}

@media (max-width:370px){
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-extended a{font-size:5.4px!important;}
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-extended a svg{width:16px!important;height:16px!important;}
  html body .bc-unified-shell[data-bc-home] .bc-search-types span{font-size:7.3px!important;}
}


/* ==========================================================
 * RC523 · navegación móvil global
 * - barra inferior en todas las páginas y fichas
 * - sección actual resaltada automáticamente
 * - hamburguesa móvil oculta globalmente por ahora
 * ========================================================== */
@media (max-width:900px){
  /* La barra inferior sustituye temporalmente a la hamburguesa móvil. */
  html body .bc-shared-header .bc-mobile-nav-toggle{display:none!important;}
  html body .bc-shared-header .bc-main-nav{display:none!important;}

  /* Recupera el espacio de la hamburguesa para que la cabecera respire. */
  html body .bc-shared-header .bc-header-actions{margin-left:auto!important;}

  /* Barra oficial de navegación móvil en todo Base Cofrade. */
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-global{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    height:60px!important;
    padding:5px 3px!important;
  }
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-global a{
    min-width:0!important;
    gap:2px!important;
    overflow:hidden!important;
    font-size:5.9px!important;
    white-space:nowrap!important;
  }
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-global a span{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-global a svg{
    width:17px!important;
    height:17px!important;
    flex:0 0 17px!important;
  }
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-global a.is-active{
    background:rgba(215,173,69,.10)!important;
    color:#d7ad45!important;
  }

  /* Evita que el contenido final quede escondido tras la navegación fija. */
  html body .bc-home-footer.bc-home-footer-compact{
    margin-bottom:70px!important;
  }
  html body .bc-shared-page-main,
  html body .bc-shared-catalog-main,
  html body .bc-march-directory-shell{
    scroll-padding-bottom:80px!important;
  }
  html{scroll-padding-bottom:82px!important;}
}

@media (max-width:370px){
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-global a{font-size:5.3px!important;}
  html body .bc-mobile-bottom-nav.bc-mobile-bottom-nav-global a svg{width:16px!important;height:16px!important;flex-basis:16px!important;}
}


/* ==========================================================
 * RC524 · acceso desplazable en móvil y con zoom
 * ========================================================== */
@media (max-width:900px){
  html body .bc-auth-modal:not([hidden]){
    inset:0!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
  html body .bc-auth-modal:not([hidden]) .bc-auth-dialog{
    width:min(100%,440px)!important;
    max-width:100%!important;
    max-height:none!important;
    min-height:0!important;
    margin:auto 0!important;
    padding:28px 18px 22px!important;
    overflow:visible!important;
    flex:0 0 auto!important;
  }
  html body .bc-auth-modal:not([hidden]) .bc-auth-close{
    position:sticky!important;
    z-index:2!important;
    top:0!important;
    float:right!important;
    margin:-14px -7px -30px 0!important;
  }
}

@media (max-height:620px), (max-width:900px) and (min-resolution:1.5dppx){
  html body .bc-auth-modal:not([hidden]) .bc-auth-dialog{
    margin:0!important;
  }
}


/* ==========================================================
 * RC525 · acceso / recuperación limpio en móvil
 * - nunca muestra los dos formularios a la vez
 * - recuperación sustituye al login
 * - modal desplazable con zoom o poca altura
 * ========================================================== */
.bc-auth-dialog [data-bc-login-form][hidden],
.bc-auth-dialog [data-bc-recovery-form][hidden],
.bc-auth-dialog .bc-auth-message[hidden]{
  display:none!important;
}

@media (max-width:900px){
  html body .bc-auth-modal:not([hidden]){
    box-sizing:border-box!important;
    inset:0!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
  html body .bc-auth-modal:not([hidden]) .bc-auth-backdrop{
    position:fixed!important;
  }
  html body .bc-auth-modal:not([hidden]) .bc-auth-dialog{
    box-sizing:border-box!important;
    width:min(100%,440px)!important;
    max-width:100%!important;
    max-height:none!important;
    min-height:0!important;
    margin:auto 0!important;
    padding:26px 18px 20px!important;
    overflow:visible!important;
    flex:0 0 auto!important;
  }
  html body .bc-auth-modal:not([hidden]) .bc-auth-dialog form{
    width:100%!important;
  }
  html body .bc-auth-modal:not([hidden]) .bc-auth-logo{
    margin-bottom:11px!important;
  }
  html body .bc-auth-modal:not([hidden]) .bc-auth-dialog h2{
    margin:4px 0 4px!important;
    font-size:clamp(23px,7vw,34px)!important;
  }
  html body .bc-auth-modal:not([hidden]) .bc-auth-subtitle{
    margin:0 0 19px!important;
  }
  html body .bc-auth-modal:not([hidden]) .bc-auth-close{
    position:absolute!important;
    top:8px!important;
    right:10px!important;
    z-index:3!important;
    margin:0!important;
  }
  html body .bc-auth-modal.is-recovery-mode .bc-auth-register{
    display:none!important;
  }
  html body .bc-auth-modal.is-recovery-mode .bc-auth-dialog{
    padding-top:30px!important;
  }
  html body .bc-auth-modal.is-recovery-mode [data-bc-recovery-form]{
    gap:14px!important;
  }
  html body .bc-auth-modal.is-recovery-mode [data-bc-recovery-form] > p{
    margin:0!important;
    color:#c7c0cd!important;
    line-height:1.5!important;
  }
  html body .bc-auth-modal.is-recovery-mode .bc-back-login{
    margin-top:2px!important;
  }
}

@media (max-height:620px), (max-width:900px) and (min-resolution:1.5dppx){
  html body .bc-auth-modal:not([hidden]) .bc-auth-dialog{
    margin:0!important;
  }
}


/* ==========================================================
 * RC527 · ajuste puntual Inicio móvil
 * Sube únicamente el buscador y sus cuatro selectores.
 * No modifica hero, CTA, tarjetas ni navegación inferior.
 * ========================================================== */
@media (max-width:900px){
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-home-search,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-hero .bc-home-search{
    bottom:34px!important;
  }
}

@media (max-width:420px){
  html body .bc-unified-shell[data-bc-home] > .bc-hero .bc-home-search,
  html body .bc-unified-shell[data-bc-home].bc-user-logged-in > .bc-hero .bc-home-search{
    bottom:32px!important;
  }
}


/* ==========================================================
 * RC528 · Legal móvil rediseñado
 * - estilo profesional negro/dorado
 * - menos tamaño, menos morado, mejor compactación
 * ========================================================== */
@media (max-width:900px){
  html body .bc-legal-main{
    background:linear-gradient(180deg,#05080d 0%,#071019 42%,#05080d 100%)!important;
    color:#f4efe5!important;
    padding:14px 0 88px!important;
    margin-left:0!important;
  }
  html body .bc-legal-inner{
    width:100%!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:0 12px!important;
  }

  /* Navegación legal: chips horizontales compactos */
  html body .bc-legal-tabs{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    margin:0 0 12px!important;
    padding:0 0 4px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }
  html body .bc-legal-tabs::-webkit-scrollbar{display:none!important;}
  html body .bc-legal-tabs a{
    flex:0 0 auto!important;
    min-height:38px!important;
    padding:0 14px!important;
    display:inline-flex!important;
    align-items:center!important;
    border-radius:999px!important;
    background:#101924!important;
    color:#d9d2c4!important;
    border:1px solid rgba(217,174,65,.18)!important;
    font-size:12.3px!important;
    font-weight:700!important;
    line-height:1!important;
    box-shadow:none!important;
  }
  html body .bc-legal-tabs a.is-current{
    background:#d6ad4f!important;
    color:#15100b!important;
    border-color:#d6ad4f!important;
  }

  /* Documento legal */
  html body .bc-legal-document{
    background:#0b131c!important;
    border:1px solid rgba(217,174,65,.18)!important;
    border-radius:16px!important;
    box-shadow:0 10px 26px rgba(0,0,0,.28)!important;
    overflow:hidden!important;
  }
  html body .bc-legal-document > header{
    padding:18px 18px 16px!important;
    background:linear-gradient(180deg,#0d1620 0%,#0a1017 100%)!important;
    border-bottom:1px solid rgba(217,174,65,.16)!important;
  }
  html body .bc-legal-document > header small{
    display:block!important;
    color:#c89e3d!important;
    font-size:10px!important;
    letter-spacing:.20em!important;
    font-weight:800!important;
    margin-bottom:8px!important;
  }
  html body .bc-legal-document h1{
    margin:0 0 8px!important;
    color:#fff9ef!important;
    font-size:clamp(28px,8vw,38px)!important;
    line-height:1.05!important;
  }
  html body .bc-legal-document > header p{
    margin:0!important;
    color:#b9c2cc!important;
    font-size:14.5px!important;
    line-height:1.45!important;
  }
  html body .bc-legal-meta{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    padding:10px 18px!important;
    background:#0a1017!important;
    border-bottom:1px solid rgba(217,174,65,.10)!important;
    color:#8f9aa6!important;
    font-size:11.2px!important;
    line-height:1.35!important;
  }
  html body .bc-legal-content{
    padding:18px!important;
    color:#e8e2d8!important;
    font-size:14.8px!important;
    line-height:1.72!important;
  }
  html body .bc-legal-content h2{
    margin:26px 0 10px!important;
    color:#f4f0e8!important;
    font-size:24px!important;
    line-height:1.18!important;
  }
  html body .bc-legal-content h3{
    margin:18px 0 8px!important;
    color:#d9ae41!important;
    font-size:17px!important;
    line-height:1.25!important;
  }
  html body .bc-legal-content p,
  html body .bc-legal-content li{
    color:#d4dce5!important;
  }
  html body .bc-legal-content ul,
  html body .bc-legal-content ol{
    padding-left:20px!important;
  }
  html body .bc-legal-content li{
    margin:7px 0!important;
  }
  html body .bc-legal-content a{
    color:#d9ae41!important;
  }
  html body .bc-legal-editor{
    margin-top:0!important;
    padding:16px 18px 18px!important;
    background:#0a1017!important;
    border-top:1px solid rgba(217,174,65,.12)!important;
  }
  html body .bc-legal-editor summary{
    color:#d9ae41!important;
    font-size:13px!important;
  }
  html body .bc-legal-editor textarea{
    border-radius:12px!important;
  }

  /* Centro legal */
  html body .bc-legal-center .bc-legal-card-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    padding:16px!important;
    margin-top:0!important;
  }
  html body .bc-legal-center .bc-legal-card-grid > a{
    display:grid!important;
    grid-template-columns:30px 1fr!important;
    column-gap:10px!important;
    row-gap:2px!important;
    align-items:start!important;
    padding:13px 14px!important;
    min-height:auto!important;
    background:#0c151e!important;
    border:1px solid rgba(217,174,65,.16)!important;
    border-radius:12px!important;
  }
  html body .bc-legal-center .bc-legal-card-grid > a b{
    grid-column:1!important;
    grid-row:1 / span 2!important;
    color:#d8ac45!important;
    font-size:22px!important;
    line-height:1!important;
    margin-top:2px!important;
  }
  html body .bc-legal-center .bc-legal-card-grid > a strong{
    grid-column:2!important;
    color:#f6f1e8!important;
    font-size:16px!important;
    line-height:1.2!important;
  }
  html body .bc-legal-center .bc-legal-card-grid > a small{
    grid-column:2!important;
    color:#aeb7c1!important;
    font-size:12px!important;
    line-height:1.35!important;
  }
  html body .bc-legal-center-note{
    margin:0 16px 16px!important;
    padding:12px 14px!important;
    border-radius:12px!important;
    border:1px solid rgba(217,174,65,.16)!important;
    background:#0a1017!important;
    color:#bec7d1!important;
    font-size:12.8px!important;
    line-height:1.45!important;
  }
  html body .bc-legal-center-note a{color:#d9ae41!important;}
}

@media (max-width:520px){
  html body .bc-legal-main{padding-top:12px!important;}
  html body .bc-legal-inner{padding:0 10px!important;}
  html body .bc-legal-tabs{gap:7px!important;margin-bottom:10px!important;}
  html body .bc-legal-tabs a{min-height:36px!important;padding:0 13px!important;font-size:11.8px!important;}
  html body .bc-legal-document{border-radius:14px!important;}
  html body .bc-legal-document > header{padding:16px 16px 14px!important;}
  html body .bc-legal-document h1{font-size:clamp(26px,9vw,34px)!important;}
  html body .bc-legal-document > header p{font-size:13.8px!important;}
  html body .bc-legal-meta{padding:9px 16px!important;font-size:10.8px!important;}
  html body .bc-legal-content{padding:16px!important;font-size:14.2px!important;line-height:1.68!important;}
  html body .bc-legal-content h2{font-size:20px!important;margin-top:22px!important;}
  html body .bc-legal-content h3{font-size:15.5px!important;}
  html body .bc-legal-center .bc-legal-card-grid{padding:14px!important;gap:9px!important;}
  html body .bc-legal-center .bc-legal-card-grid > a{padding:12px 13px!important;grid-template-columns:28px 1fr!important;}
  html body .bc-legal-center .bc-legal-card-grid > a strong{font-size:15px!important;}
  html body .bc-legal-center .bc-legal-card-grid > a small{font-size:11.5px!important;}
}

/* RC876 · Ficha Marcha > Repertorios · móvil compacto */
@media (max-width:760px){
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-head>strong{display:none!important}
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(120px,.48fr)!important;
    gap:8px!important;
    align-items:center!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools>label:nth-child(3){display:none!important}
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools input,
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools select{
    min-width:0!important;
    width:100%!important;
    height:40px!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr)!important;
    gap:10px!important;
    padding:8px 10px!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head>span:nth-child(n+3){display:none!important}
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head){
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:center!important;
    min-height:52px!important;
    padding:8px 10px!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head)>span{
    display:block!important;
    min-width:0!important;
    padding:0!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head)>span:before{display:none!important;content:none!important}
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head)>span:nth-child(n+3){display:none!important}
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row [data-label="Año"] strong{font-size:14px!important;color:#d8aa35!important;white-space:nowrap!important}
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row [data-label="Banda"] strong{font-size:14px!important;color:#fff!important;white-space:normal!important}
  .bc-repertoire-mobile-prefix{display:inline!important;color:#d8aa35!important;font-weight:800!important}
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-footer{display:none!important}
}
@media (min-width:761px){.bc-repertoire-mobile-prefix{display:none!important}}

/* RC877 · Ficha Marcha > Repertorios · alinear Año/Banda y prefijo neutro */
@media (max-width:760px){
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head,
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head){
    grid-template-columns:108px minmax(0,1fr)!important;
    column-gap:16px!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head>span:nth-child(1),
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head)>span:nth-child(1){
    grid-column:1!important;
    justify-self:start!important;
    text-align:left!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head>span:nth-child(2),
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head)>span:nth-child(2){
    grid-column:2!important;
    justify-self:start!important;
    text-align:left!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head{
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head){
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row [data-label="Año"] strong,
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row [data-label="Banda"] strong,
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-mobile-prefix{
    color:#fff!important;
  }
}

/* RC878 · Ficha Marcha > Repertorios · cabeceras exactamente sobre sus datos */
@media (max-width:760px){
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head,
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head){
    display:grid!important;
    grid-template-columns:108px minmax(0,1fr)!important;
    column-gap:16px!important;
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head>span,
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head)>span{
    display:block!important;
    grid-template-columns:none!important;
    padding:0!important;
    margin:0!important;
    min-width:0!important;
    width:auto!important;
    justify-self:start!important;
    text-align:left!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head>span:before,
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head)>span:before{
    display:none!important;
    content:none!important;
  }
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head>span:nth-child(n+3),
  .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head)>span:nth-child(n+3){
    display:none!important;
  }
}

/* ==========================================================
 * RC879 · Ficha Marcha móvil · Discografía/Galería/Vídeos/Audio
 * Limpieza de controles y cuadrículas de 3 elementos por fila.
 * Información: cabecera "Ficha documental" en tono oscuro.
 * Solo móvil; escritorio queda intacto.
 * ========================================================== */
@media (max-width: 760px){
  /* Discografía: sin buscador ni filtros/orden en móvil. */
  .bc-march-profile-shell [data-bc-march-panel="discografia"] .bc-discography-tools{
    display:none!important;
  }

  /* Galería: sin buscador/filtros y 3 imágenes por fila. */
  .bc-march-profile-shell [data-bc-march-panel="galeria"] .bc-gallery-tools{
    display:none!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="galeria"] .bc-gallery-masonry{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    columns:auto!important;
    column-gap:0!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="galeria"] .bc-gallery-item{
    width:100%!important;
    margin:0!important;
    aspect-ratio:1/1!important;
    border-radius:8px!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="galeria"] .bc-gallery-item img{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:cover!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="galeria"] .bc-gallery-overlay{
    padding:24px 6px 6px!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="galeria"] .bc-gallery-overlay strong{
    font-size:9px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="galeria"] .bc-gallery-overlay small{
    font-size:7px!important;
  }

  /* Vídeos: sin buscador/filtros y 3 vídeos por fila. */
  .bc-march-profile-shell [data-bc-march-panel="videos"] .bc-video-filters{
    display:none!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="videos"] .bc-video-library-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="videos"] .bc-video-library-card{
    min-width:0!important;
    border-radius:8px!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="videos"] .bc-video-library-thumb{
    aspect-ratio:16/10!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="videos"] .bc-video-library-copy{
    padding:7px!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="videos"] .bc-video-library-copy h3{
    font-size:9px!important;
    line-height:1.2!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="videos"] .bc-video-library-copy p{
    font-size:7px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="videos"] .bc-video-library-copy>div{
    gap:3px!important;
    flex-wrap:wrap!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="videos"] .bc-video-library-copy span,
  .bc-march-profile-shell [data-bc-march-panel="videos"] .bc-video-library-copy em{
    font-size:7px!important;
  }

  /* Audio: sin buscador/filtros y 3 audios por fila. */
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-filters{
    display:none!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track-list{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:6px!important;
    min-width:0!important;
    min-height:128px!important;
    padding:9px!important;
    border:1px solid rgba(255,255,255,.08)!important;
    border-radius:9px!important;
    background:rgba(255,255,255,.016)!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track:first-child{
    border-top:1px solid rgba(255,255,255,.08)!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track-play{
    width:31px!important;
    height:31px!important;
    flex:0 0 31px!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track-main{
    width:100%!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track-main h3{
    margin:0 0 3px!important;
    font-size:9px!important;
    line-height:1.2!important;
    white-space:normal!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track-main p{
    font-size:7px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track-meta{
    grid-column:auto!important;
    width:100%!important;
    margin-top:auto!important;
    justify-content:flex-start!important;
    gap:3px!important;
    flex-wrap:wrap!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track-meta span,
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track-meta em,
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-track-meta small{
    font-size:7px!important;
  }
  .bc-march-profile-shell [data-bc-march-panel="audio"] .bc-audio-featured-badge{
    grid-column:auto!important;
    justify-self:auto!important;
    font-size:6px!important;
    padding:3px 5px!important;
  }

  /* Información: bloque superior "Ficha documental" oscuro. */
  .bc-march-profile-shell [data-bc-march-panel="informacion"] .bc-march-information-head{
    background:#081116!important;
    border-color:rgba(255,255,255,.07)!important;
    box-shadow:none!important;
  }
}

/* RC881 · Marcha > Repertorios móvil · mismo lenguaje visual que Bandas */
@media (max-width:760px){
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab{
    background:#0b1115!important;
    border:1px solid #202c32!important;
    border-radius:12px!important;
    box-shadow:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-head{
    margin:0 -20px 14px!important;
    padding:0 20px 14px!important;
    border-bottom:1px solid #1c2a31!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-head h2{
    color:#d8aa35!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools{
    margin:0 0 14px!important;
    padding:0!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools input,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools select{
    height:44px!important;
    border:1px solid #26353d!important;
    border-radius:9px!important;
    background:#071218!important;
    color:#edf1f2!important;
    box-shadow:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools input::placeholder{
    color:#75858c!important;
    opacity:1!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-table{
    border-top:1px solid #1c2a31!important;
    padding-top:8px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head{
    min-height:42px!important;
    margin:0 0 7px!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
    border:0!important;
    background:transparent!important;
    color:#d8aa35!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head){
    min-height:62px!important;
    margin:0 0 7px!important;
    border:1px solid #213139!important;
    border-radius:9px!important;
    background:linear-gradient(180deg,#07161d 0%,#071319 100%)!important;
    box-shadow:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head):last-child{
    margin-bottom:0!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row [data-label="Año"] strong,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row [data-label="Banda"] strong,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-mobile-prefix{
    color:#f1f3f4!important;
  }
}

/* RC883 · Marcha > Repertorios móvil · filas con la misma tipografía y altura que Bandas */
@media (max-width:760px){
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #29323b!important;
    border-radius:5px!important;
    background:linear-gradient(180deg,#11171c,#0c1216)!important;
    box-shadow:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-head{
    min-height:72px!important;
    margin:0!important;
    padding:16px 24px 12px!important;
    display:flex!important;
    align-items:flex-start!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.05)!important;
    background:transparent!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-head h2{
    margin:0!important;
    color:#e5aa22!important;
    font-size:13px!important;
    line-height:1.2!important;
    font-weight:800!important;
    letter-spacing:.01em!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-head>strong{
    display:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(156px,.82fr)!important;
    gap:14px!important;
    margin:0!important;
    padding:18px 22px!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.05)!important;
    background:transparent!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools label{
    min-width:0!important;
    margin:0!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools input,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools select{
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    padding:0 14px!important;
    border:1px solid rgba(255,255,255,.08)!important;
    border-radius:5px!important;
    background:#121a20!important;
    color:#edf3f5!important;
    box-shadow:none!important;
    font-size:13px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools input::placeholder{
    color:#7f8e95!important;
    opacity:1!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-table{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row{
    display:grid!important;
    grid-template-columns:86px minmax(0,1fr)!important;
    gap:8px!important;
    width:100%!important;
    margin:0!important;
    padding-left:7px!important;
    padding-right:7px!important;
    box-sizing:border-box!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head{
    min-height:42px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    align-items:center!important;
    border:0!important;
    background:transparent!important;
    color:#c7ccd0!important;
    font-size:9px!important;
    font-weight:850!important;
    text-transform:uppercase!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head>span{
    color:#c7ccd0!important;
    font-size:9px!important;
    font-weight:850!important;
    letter-spacing:.04em!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head){
    min-height:54px!important;
    height:auto!important;
    padding-top:3px!important;
    padding-bottom:3px!important;
    align-items:center!important;
    border:0!important;
    border-top:1px solid rgba(255,255,255,.07)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head):hover{
    background:#151c22!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head)>span{
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row [data-label="Año"] strong{
    display:block!important;
    margin:0!important;
    padding:0 2px!important;
    color:#f0f3f4!important;
    font:700 13.5px/1.12 Georgia,serif!important;
    white-space:nowrap!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row [data-label="Banda"] strong{
    display:block!important;
    margin:0!important;
    color:#f0f3f4!important;
    font:700 13.5px/1.12 Georgia,serif!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-mobile-prefix{
    display:inline!important;
    margin:0 4px 0 0!important;
    color:#f0f3f4!important;
    font-size:inherit!important;
    line-height:inherit!important;
    font-weight:inherit!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-footer{
    display:none!important;
  }
}
@media (max-width:430px){
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row{
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:7px!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head){
    min-height:50px!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row [data-label="Año"] strong,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row [data-label="Banda"] strong{
    font-size:12.5px!important;
  }
}

/* RC894 · menú de cuenta completo también en móvil */
@media (max-width:760px){
 html body .bc-shared-header .bc-user-account-dropdown{min-width:220px!important;width:auto!important}
}

/* ==========================================================
 * RC935 · Ficha Marcha > Repertorios móvil · alturas compactas.
 * Reduce espacios verticales del título, filtros y cabecera Año/Banda.
 * ========================================================== */
@media (max-width:760px){
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-head{
    min-height:0!important;
    padding:11px 16px 9px!important;
    align-items:center!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-head h2{
    margin:0!important;
    font-size:13px!important;
    line-height:1.15!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools{
    gap:8px!important;
    padding:10px 12px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools input,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools select{
    height:40px!important;
    min-height:40px!important;
    padding-left:12px!important;
    padding-right:12px!important;
    font-size:12.5px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head{
    min-height:32px!important;
    height:32px!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head){
    min-height:48px!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
  }
}
@media (max-width:430px){
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-head{
    padding:10px 14px 8px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools{
    padding:9px 10px!important;
    gap:7px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools input,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tools select{
    height:38px!important;
    min-height:38px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row.is-head{
    min-height:30px!important;
    height:30px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-row:not(.is-head){
    min-height:46px!important;
  }
}


/* ==========================================================
 * RC936 · Marcha > Repertorios móvil · compactación efectiva.
 * Sobrescribe las reglas históricas RC881/RC883 que mantenían
 * alturas grandes en título, filtros y cabecera Año/Banda.
 * ========================================================== */
@media (max-width:760px){
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab{
    min-height:0!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-head{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    width:100%!important;
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    margin:0!important;
    padding:0 16px!important;
    box-sizing:border-box!important;
    border-bottom:1px solid rgba(255,255,255,.05)!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-head h2{
    margin:0!important;
    padding:0!important;
    font-size:13px!important;
    line-height:1!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-head > strong{
    display:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-tools{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(132px,.9fr)!important;
    align-items:center!important;
    width:100%!important;
    min-height:54px!important;
    margin:0!important;
    padding:7px 10px!important;
    gap:8px!important;
    box-sizing:border-box!important;
    border-bottom:1px solid rgba(255,255,255,.05)!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-tools label{
    min-width:0!important;
    height:38px!important;
    margin:0!important;
    padding:0!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-tools input,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-tools select{
    display:block!important;
    width:100%!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0 12px!important;
    box-sizing:border-box!important;
    font-size:12px!important;
    line-height:38px!important;
  }
  /* En móvil se mantienen solo búsqueda y año: el orden queda por fecha reciente. */
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-tools label:nth-child(3){
    display:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-table{
    margin:0!important;
    padding:0!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-table > .bc-repertoire-row.is-head{
    display:grid!important;
    grid-template-columns:86px minmax(0,1fr)!important;
    align-items:center!important;
    width:100%!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    margin:0!important;
    padding:0 7px!important;
    box-sizing:border-box!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-table > .bc-repertoire-row.is-head > span{
    display:flex!important;
    align-items:center!important;
    height:34px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    line-height:1!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-table > .bc-repertoire-row.is-head > span:nth-child(n+3){
    display:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] [data-rep-rows] > .bc-repertoire-row:not(.is-head){
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    margin:0!important;
    padding:0 7px!important;
    align-items:center!important;
    box-sizing:border-box!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] [data-rep-rows] > .bc-repertoire-row:not(.is-head) > span{
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    line-height:1.15!important;
  }
}
@media (max-width:430px){
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-head{
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    padding:0 14px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-tools{
    min-height:50px!important;
    padding:6px 8px!important;
    gap:7px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-tools label,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-tools input,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-tab > .bc-repertoire-tools select{
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-table > .bc-repertoire-row.is-head{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    grid-template-columns:78px minmax(0,1fr)!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-table > .bc-repertoire-row.is-head > span{
    height:32px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] [data-rep-rows] > .bc-repertoire-row:not(.is-head){
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    grid-template-columns:78px minmax(0,1fr)!important;
  }
}

/* ==========================================================
 * RC938 · Marcha > Repertorios · compactación móvil definitiva.
 * Este archivo se carga después de base-cofrade-public.css, por lo que
 * estas reglas son la autoridad final para la vista móvil.
 * ========================================================== */
@media (max-width:900px){
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab{
    display:block!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-head{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
    padding:0 12px!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-head > div,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-head h2{
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    line-height:1.1!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-head h2{
    font-size:12px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-head > strong{
    display:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-tools{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(128px,.82fr)!important;
    align-items:center!important;
    height:54px!important;
    min-height:54px!important;
    max-height:54px!important;
    padding:6px 8px!important;
    margin:0!important;
    gap:7px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-tools > label{
    display:block!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    margin:0!important;
    padding:0!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-tools > label:nth-child(3){
    display:none!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-tools input,
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-tools select{
    display:block!important;
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    margin:0!important;
    padding:0 11px!important;
    box-sizing:border-box!important;
    font-size:12px!important;
    line-height:40px!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-table{
    margin:0!important;
    padding:0!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-table > .bc-repertoire-row.is-head{
    display:grid!important;
    grid-template-columns:82px minmax(0,1fr)!important;
    align-items:center!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    margin:0!important;
    padding:0 8px!important;
    gap:10px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-table > .bc-repertoire-row.is-head > span{
    display:flex!important;
    align-items:center!important;
    height:34px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    font-size:9px!important;
    line-height:1!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] > .bc-repertoire-tab > .bc-repertoire-table > .bc-repertoire-row.is-head > span:nth-child(n+3){display:none!important;}
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] [data-rep-rows] > .bc-repertoire-row:not(.is-head){
    display:grid!important;
    grid-template-columns:82px minmax(0,1fr)!important;
    align-items:center!important;
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    margin:0!important;
    padding:0 8px!important;
    gap:10px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] [data-rep-rows] > .bc-repertoire-row:not(.is-head) > span{
    display:block!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    font-size:12px!important;
    line-height:1.15!important;
  }
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] [data-rep-rows] > .bc-repertoire-row:not(.is-head) > span:nth-child(n+3){display:none!important;}
  html body .bc-march-reference-layout [data-bc-march-panel="repertorios"] .bc-repertoire-footer{display:none!important;}
}
