/* ==========================================================================
   BDML — BIBLIOTECA DIGITAL DE MÚSICA LOJANA
   Estilo académico / cultural heritage
   Tipografía: Tonnelier (principal) + Stapel (secundaria) + Orliet Pro Script (decorativa)
   Paleta: Azul Profundo #002c43 · Verde Atlántico #01696f · Gris Carbón #484848
   ========================================================================== */

/* ============================================
   FUENTES DE MARCA — @font-face
   Coloca los archivos en:
   catalogo_publico/static/catalogo_publico/fonts/
   ============================================ */
/* Tonnelier — OFL (SIL Open Font License) — uso web libre */
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-Thin.765eef6e4c82.woff2") format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-Book.4f96c185d126.woff2") format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-BookItalic.9fb1c9d52374.woff2") format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-Medium.5ba7fc90c0ad.woff2") format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-MediumItalic.1bec8a93d32f.woff2") format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-Semibold.1b60b916183b.woff2") format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-SemiboldItalic.4213851f478f.woff2") format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-Bold.d44d8345f53e.woff2") format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-BoldItalic.23ae0d2c8ea5.woff2") format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-Heavy.de41d6d6bce3.woff2") format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tonnelier';
    src: url("../fonts/Tonnelier-HeavyItalic.aea0212b6f3d.woff2") format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* ============================================
   TOKENS DE DISEÑO
   ============================================ */
:root {
    /* Colores — paleta oficial BDML */
    --pro-primary:       #002c43;      /* Azul Profundo — PANTONE 2965 CP */
    --pro-secondary:     #003a58;      /* Azul Profundo oscurecido (superficies secundarias) */
    --pro-accent:        #01696f;      /* Verde Atlántico — PANTONE 7715 CP */
    --pro-accent-dark:   #015a5f;      /* Verde Atlántico oscurecido (hover) */
    --pro-carbon:        #484848;      /* Gris Carbón — PANTONE P 172-16 C */
    --pro-gold:          #c9a84c;      /* Dorado institucional (acento web) */
    --pro-text:          #002c43;      /* Azul Profundo como texto base */
    --pro-text-secondary:#484848;      /* Gris Carbón */
    --pro-text-muted:    #718096;
    --pro-border:        #e2e8f0;
    --pro-border-light:  #f1f5f9;
    --pro-surface:       #f8fafc;
    --pro-white:         #ffffff;

    /* Sombras */
    --pro-shadow:    0 1px 3px rgba(0,0,0,.08);
    --pro-shadow-md: 0 4px 12px rgba(0,0,0,.1);
    --pro-shadow-lg: 0 8px 32px rgba(0,0,0,.14);

    /* Tipografía — manual de marca BDML
       · Tonnelier OFL: colocar woff2 en catalogo_publico/static/catalogo_publico/fonts/
       · Barlow: Google Fonts (headings, body)
       · Pinyon Script: Google Fonts (decorativa caligráfica) */
    --font-display:  'Tonnelier', 'Barlow', Arial, sans-serif;    /* Labels, nav, overlines — Tonnelier principal */
    --font-heading:  'Tonnelier', 'Barlow', Arial, sans-serif;   /* H1–H3 */
    --font-script:   'Pinyon Script', cursive;                    /* Uso decorativo puntual */
    --font-body:     'Tonnelier', 'Barlow', Arial, sans-serif;   /* Párrafos */
    --font-sans:     'Tonnelier', 'Barlow', Arial, sans-serif;   /* UI pequeña */

    /* Escala tipográfica — tokens de tamaño */
    --fs-display:   clamp(3rem, 6vw, 5.5rem);
    --fs-h2:        clamp(1.6rem, 2.2vw, 2.25rem);
    --fs-h3:        1.25rem;
    --fs-body-lg:   1.125rem;
    --fs-body:      1.0625rem;
    --fs-body-sm:   0.9375rem;
    --fs-meta:      0.75rem;

    /* Line-heights */
    --lh-display:   1.05;
    --lh-title:     1.15;
    --lh-body:      1.65;
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;      /* 17px — Crimson Pro legible */
    line-height: 1.65;
    color: var(--pro-text);
    background: var(--pro-white);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h4, h5, h6, .label-overline {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

p { margin-bottom: 1rem; }
a { color: var(--pro-accent); }
a:hover { color: var(--pro-accent-dark); }

/* ============================================
   LUCIDE ICONS
   ============================================ */
svg.lucide {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* ============================================
   SKIP LINK — ACCESIBILIDAD
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--pro-accent);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.1s;
}
.skip-link:focus { top: 0; }

/* ============================================
   FOCUS VISIBLE — TECLADO
   ============================================ */
:focus-visible {
    outline: 2px solid var(--pro-accent);
    outline-offset: 2px;
}
.form-control:focus-visible,
.form-select:focus-visible,
.navbar-search-input:focus-visible { outline: none; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 0;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,44,67,.12);
    border-bottom: 1px solid rgba(0,44,67,.1);
}

.navbar .container-xl {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    gap: 1rem;
    display: flex;
    align-items: center;
}

/* Logo navbar */
.navbar-brand-bdml {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.bdml-logo-nav {
    height: 56px;
    width: auto;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23002c43' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
}

/* Nav links */
.navbar-nav .nav-item { flex-shrink: 0; }
.navbar-nav .nav-link {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    color: var(--pro-primary) !important;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.navbar-nav .nav-link:hover {
    color: var(--pro-accent) !important;
    background: rgba(0,44,67,.06);
}
.navbar-nav .nav-link.active {
    color: var(--pro-primary) !important;
    background: rgba(0,44,67,.08);
    position: relative;
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--pro-primary);
    border-radius: 1px;
}

/* Búsqueda inline navbar */
.navbar-search-form { flex-shrink: 0; }
.navbar-btn-catalogar {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--pro-primary);
    color: var(--pro-primary);
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.navbar-btn-catalogar:hover {
    background: var(--pro-primary);
    color: white;
}
.navbar-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0,44,67,.06);
    border: 1px solid rgba(0,44,67,.2);
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    transition: background 0.2s, border-color 0.2s;
}
.navbar-search-wrapper:focus-within {
    background: rgba(0,44,67,.1);
    border-color: var(--pro-primary);
}
.navbar-search-wrapper svg.lucide {
    color: var(--pro-primary);
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}
.navbar-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--pro-primary);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    width: 140px;
}
.navbar-search-input::placeholder { color: rgba(0,44,67,.4); }

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--pro-border);
    box-shadow: var(--pro-shadow-md);
    padding: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
}
.dropdown-item {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s;
    border-radius: 4px;
}
.dropdown-item:hover { background: var(--pro-surface); }
.dropdown-divider { border-color: var(--pro-border-light); margin: 0.375rem 0; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #3d4043;
    color: rgba(255,255,255,.65);
    padding: 2.5rem 0 0;
    margin-top: auto;
    border-top: 3px solid rgba(255,255,255,.08);
}

/* Sección superior: 3 cols con separadores verticales */
.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1.2fr 1px 1.4fr;
    column-gap: 2.5rem;
    align-items: center;
    padding-bottom: 2.5rem;
}

.footer-vdivider {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,.25);
    margin: 0;
    justify-self: center;
}

/* Col 1 — Contacto */
.footer-col-contact {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: rgba(255,255,255,.65);
}
.footer-contact-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.75;
}

/* Col 2 — Logo central */
.footer-col-logo {
    display: flex;
    justify-content: center;
    padding: 0 1.5rem;
}
.footer-main-logo {
    max-height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Col 3 — Descripción */
.footer-col-desc {
    padding-left: 2rem;
    overflow: hidden;
}
.footer-desc {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    margin: 0;
}

/* Separador horizontal blanco */
.footer-hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,.3);
    margin: 0;
}

/* Barra inferior: logos institucionales en fila */
.footer-bottom-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}
.footer-inst-logo {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s;
}
.footer-inst-logo:hover { opacity: 1; }

/* ============================================
   HOME — LAYOUT 2 COLUMNAS (main + panel sticky)
   ============================================ */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: start;
}

@media (min-width: 1440px) {
    .home-layout { grid-template-columns: 1fr 330px; }
}
.home-main { min-width: 0; }

/* ============================================
   HERO
   ============================================ */
.hero-split,
.hero-main {
    min-height: 520px;
    background: var(--pro-primary);
}

/* Columna izquierda: imagen + texto */
.hero-left {
    position: relative;
    padding: 4rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.hero-left-bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-url, none);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: sepia(40%);
}
.hero-left-content { position: relative; z-index: 1; }

.hero-musica {
    font-family: var(--font-heading);
    font-size: var(--fs-display);
    font-weight: 700;
    color: white;
    line-height: var(--lh-display);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    max-width: 13ch;
}
.hero-musica .nota-musical {
    color: var(--pro-gold);
    font-style: italic;
}

.hero-desc {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: rgba(255,255,255,.8);
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* Accesos rápidos */
.hero-accesos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.acceso-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5625rem 1.125rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    color: rgba(255,255,255,.9);
    font-family: var(--font-display);
    font-size: 0.75rem;       /* 12px — mínimo visible con uppercase */
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    min-height: 44px;         /* touch target mínimo */
}
.acceso-btn:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.4);
    color: white;
}
.acceso-btn svg.lucide { width: 0.875rem; height: 0.875rem; color: var(--pro-gold); }

/* Panel lateral sticky de obras */
.hero-obras-panel,
.obras-panel-sticky {
    background: rgba(0, 44, 67, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.obras-panel-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: hidden;
}
.obras-panel-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.obras-panel-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pro-gold);
    margin: 0;
}
.obras-panel-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.obras-panel-list > li {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.obras-panel-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background 0.15s;
    text-decoration: none;
    overflow: hidden;
}
.obras-panel-item:hover { background: rgba(255,255,255,.04); }
.obras-panel-cover {
    width: 100%;
    flex: 0 0 58%;
    min-height: 0;
    background: rgba(255,255,255,.06);
    padding: 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
}
.obras-panel-cover img { width: 100%; height: 100%; object-fit: contain; object-position: center top; display: block; }
.obras-panel-cover svg.lucide { color: rgba(255,255,255,.25); width: 2rem; height: 2rem; margin: 2rem auto; display: block; }
.obras-panel-info { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.5rem 1rem; box-sizing: border-box; overflow: hidden; }

/* Campos label/valor en el panel */
.obras-panel-field {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.3;
}
.obras-panel-label {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pro-gold);
    opacity: 0.85;
}
.obras-panel-value {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.obras-panel-titulo-fuente {
    font-weight: 600;
    color: rgba(255,255,255,.95);
}

.obras-panel-titulo {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}
.obras-panel-compositor {
    font-family: var(--font-sans);
    font-size: 0.75rem;       /* 12px — mínimo legible */
    color: rgba(255,255,255,.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.obras-panel-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.obras-panel-ver-todo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 0.6875rem;     /* 11px — mínimo para overline uppercase */
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pro-gold);
    text-decoration: none;
    transition: opacity 0.15s;
}
.obras-panel-ver-todo:hover { opacity: 0.75; color: var(--pro-gold); }

/* ============================================
   SECCIONES — FORMAS / STATS
   ============================================ */
.home-stats-bar {
    background: var(--pro-surface);
    border-bottom: 1px solid var(--pro-border);
    padding: 1.25rem 0;
}
.stats-bar-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--pro-text);
    line-height: 1;
}
.stat-label {
    font-family: var(--font-display);
    font-size: 0.6875rem;     /* 11px — mínimo para label uppercase */
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pro-text-muted);
    font-weight: 500;
}
.stats-divider {
    width: 1px;
    height: 2rem;
    background: var(--pro-border);
    flex-shrink: 0;
}

/* Formas musicales chips */
.formas-section {
    padding: 2.5rem 0;
    background: var(--pro-white);
    border-bottom: 1px solid var(--pro-border-light);
}
.section-overline {
    font-family: var(--font-display);
    font-size: 0.6875rem;     /* 11px — mínimo para overline uppercase */
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pro-gold);
    font-weight: 500;
    margin-bottom: 0.375rem;
    display: block;
}
.formas-titulo {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    line-height: var(--lh-title);
    font-weight: 500;
    color: rgba(255, 255, 255, .85);;
    margin-bottom: 1.25rem;
}
.formas-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.forma-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 1rem;
    background: var(--pro-white);
    border: 1.5px solid var(--pro-border);
    border-radius: 999px;
    color: var(--pro-text);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    cursor: pointer;
}
.forma-chip:hover {
    border-color: var(--pro-accent);
    color: var(--pro-accent);
    background: rgba(0,102,204,.04);
}
.forma-chip-all {
    border-style: dashed;
    color: var(--pro-text-muted);
}

/* ============================================
   SECCIÓN SPLIT (imagen + texto alternados)
   ============================================ */
.split-section {
    padding: 5rem 0;
    background: var(--pro-white);
}
.split-section.split-surface { background: var(--pro-surface); }
.split-section.split-dark {
    background: var(--pro-primary);
    color: rgba(255,255,255,.85);
}
.split-section.split-dark h2,
.split-section.split-dark h3 { color: white; }
.split-section.split-dark .section-title { color: white; }
.split-section.split-dark .section-link { color: rgba(255,255,255,.75); }
.split-section.split-dark .section-link:hover { color: white; }
.split-section.split-dark p { color: rgba(255,255,255,.7); }

.split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-inner.reverse { direction: rtl; }
.split-inner.reverse > * { direction: ltr; }

.split-img-wrap {
    overflow: hidden;
    border-radius: 2px;
    box-shadow: var(--pro-shadow-lg);
    align-self: stretch;
}
.split-img-wrap img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.split-img-wrap:hover img { transform: scale(1.03); }
.split-img-placeholder {
    width: 100%;
    height: 360px;
    background: linear-gradient(135deg, var(--pro-secondary) 0%, var(--pro-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.split-img-placeholder svg.lucide { color: rgba(255,255,255,.2); width: 4rem; height: 4rem; }

.split-text h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    line-height: var(--lh-title);
    font-weight: 500;
    margin-bottom: 1rem;
}
.split-text p {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--pro-text-secondary);
}
.split-text .btn-split {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border: 1.5px solid var(--pro-accent);
    color: var(--pro-accent);
    background: transparent;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-top: 1.5rem;
    cursor: pointer;
}
.split-text .btn-split:hover {
    background: var(--pro-accent);
    color: white;
}
.split-dark .split-text .btn-split {
    border-color: var(--pro-gold);
    color: var(--pro-gold);
}
.split-dark .split-text .btn-split:hover {
    background: var(--pro-gold);
    color: var(--pro-primary);
}

/* ============================================
   SECCIÓN QUOTE / CITA DESTACADA
   ============================================ */
.quote-section {
    background: var(--pro-secondary);
    padding: 4rem 0;
}
.quote-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}
.quote-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--pro-gold);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.quote-avatar svg.lucide { color: rgba(255,255,255,.3); width: 2rem; height: 2rem; }
.quote-body { flex: 1; }
.quote-mark {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--pro-gold);
    line-height: 0.5;
    margin-bottom: 0.5rem;
    display: block;
}
.quote-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,.9);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.quote-author {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pro-gold);
    font-weight: 500;
}

/* ============================================
   SECCIÓN ÚLTIMAS OBRAS (home)
   ============================================ */
.ultimas-obras-section { padding: 3.5rem 0; }
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    line-height: var(--lh-title);
    font-weight: 500;
    color: var(--pro-text);
    margin: 0;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pro-accent);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.section-link:hover { text-decoration: underline; color: var(--pro-accent-dark); }
.section-link svg.lucide { width: 0.75rem; height: 0.75rem; }

.obras-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--pro-border);
    overflow: hidden;
}
.obra-fila {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    background: var(--pro-white);
    border-bottom: 1px solid var(--pro-border-light);
    transition: background 0.1s;
    cursor: pointer;
}
.obra-fila:last-child { border-bottom: none; }
.obra-fila:hover { background: var(--pro-surface); }
.obra-tipo-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pip-ms  { background: #7c6fcd; }
.pip-imp { background: var(--pro-accent); }
.obra-fila-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.obra-fila-titulo {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pro-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.obra-fila-titulo:hover { color: var(--pro-accent); }
.obra-fila-compositor {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--pro-text-muted);
}
.obra-fila-badge {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.badge-ms  { background: rgba(124,111,205,.1); color: #5a50a0; border: 1px solid rgba(124,111,205,.25); }
.badge-imp { background: rgba(0,102,204,.08);  color: var(--pro-accent); border: 1px solid rgba(0,102,204,.2); }
.obra-fila-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--pro-text-muted);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.15s;
    cursor: pointer;
}
.obra-fila-link:hover { color: var(--pro-accent); }
.obra-fila-link svg.lucide { width: 0.75rem; height: 0.75rem; }

/* ============================================
   PÁGINA INTERIOR — HERO COMPACTO
   ============================================ */
.page-hero {
    background: var(--pro-primary);
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero-overline {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pro-gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 500;
    color: white;
    margin: 0 0 0.75rem;
}
.page-hero p {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: rgba(255,255,255,.65);
    max-width: 600px;
    margin: 0;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.bdml-breadcrumb {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--pro-border-light);
    background: var(--pro-surface);
}
.bdml-breadcrumb .breadcrumb {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
}
.breadcrumb-item a { color: var(--pro-accent); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }

/* ============================================
   CARDS GENÉRICAS (fondos, noticias, equipo)
   ============================================ */
.bdml-card {
    background: var(--pro-white);
    border: 1px solid var(--pro-border);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}
.bdml-card:hover {
    box-shadow: var(--pro-shadow-md);
    border-color: var(--pro-text-muted);
}
.bdml-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.bdml-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--pro-surface) 0%, var(--pro-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bdml-card-img-placeholder svg.lucide { color: var(--pro-text-muted); width: 2.5rem; height: 2.5rem; }
.bdml-card-body { padding: 1.25rem 1.5rem; }
.bdml-card-overline {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pro-gold);
    font-weight: 500;
    margin-bottom: 0.375rem;
    display: block;
}
.bdml-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--pro-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.bdml-card-text {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--pro-text-secondary);
    line-height: 1.6;
}
.bdml-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pro-accent);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
}
.bdml-card-link:hover { text-decoration: underline; }
.bdml-card-link svg.lucide { width: 0.75rem; height: 0.75rem; }

/* Badge categoría noticia */
.noticia-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-display);
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
}
.noticia-badge-noticia  { background: rgba(0,102,204,.08); color: var(--pro-accent); border: 1px solid rgba(0,102,204,.2); }
.noticia-badge-video    { background: rgba(239,68,68,.08);  color: #dc2626; border: 1px solid rgba(239,68,68,.2); }
.noticia-badge-conferencia { background: rgba(16,185,129,.08); color: #047857; border: 1px solid rgba(16,185,129,.2); }
.noticia-badge-concierto { background: rgba(201,168,76,.1); color: #92400e; border: 1px solid rgba(201,168,76,.3); }

/* ============================================
   FORMULARIOS
   ============================================ */
.form-control,
.form-select {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--pro-border);
    border-radius: 4px;
    transition: border-color 0.2s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--pro-accent);
    box-shadow: 0 0 0 3px rgba(0,102,204,.1);
    outline: none;
}
.form-label {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pro-text-muted);
    font-weight: 500;
    margin-bottom: 0.375rem;
    display: block;
}
.form-error {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 0.25rem;
}
.form-control.is-invalid { border-color: #dc2626; }

/* ============================================
   BOTONES
   ============================================ */
.btn {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
}
.btn svg.lucide { width: 0.875rem; height: 0.875rem; }
.btn-primary {
    background: var(--pro-accent);
    border-color: var(--pro-accent);
    color: white;
}
.btn-primary:hover { background: var(--pro-accent-dark); border-color: var(--pro-accent-dark); color: white; }
.btn-outline-primary { color: var(--pro-accent); border-color: var(--pro-accent); background: transparent; }
.btn-outline-primary:hover { background: var(--pro-accent); color: white; }
.btn-dark { background: var(--pro-primary); border-color: var(--pro-primary); color: white; }
.btn-dark:hover { background: var(--pro-secondary); color: white; }
.btn-gold { background: var(--pro-gold); border-color: var(--pro-gold); color: var(--pro-primary); }
.btn-gold:hover { opacity: 0.85; }

/* ============================================
   ALERTAS
   ============================================ */
.alert {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border: 1px solid var(--pro-border);
    padding: 0.875rem 1rem;
    border-left-width: 3px;
    box-shadow: var(--pro-shadow);
}
.alert-success { background:#f0fdf4; border-left-color:#10b981; color:#065f46; }
.alert-danger,
.alert-error   { background:#fef2f2; border-left-color:#ef4444; color:#991b1b; }
.alert-warning { background:#fffbeb; border-left-color:#f59e0b; color:#92400e; }
.alert-info    { background:#eff6ff; border-left-color:#3b82f6; color:#1e40af; }

/* ============================================
   PAGINACIÓN
   ============================================ */
.pagination { margin-top: 2rem; gap: 0.375rem; }
.page-link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--pro-text);
    border: 1px solid var(--pro-border);
    padding: 0.5rem 0.875rem;
    background: var(--pro-white);
    transition: all 0.15s;
    cursor: pointer;
}
.page-link:hover { background: var(--pro-surface); border-color: var(--pro-text-secondary); }
.page-item.active .page-link { background: var(--pro-accent); border-color: var(--pro-accent); color: white; }
.page-item.disabled .page-link { background: var(--pro-surface); color: var(--pro-text-muted); }

/* ============================================
   ESTADO VACÍO
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--pro-surface);
    border: 1px solid var(--pro-border);
}
.empty-state svg.lucide { width: 3rem; height: 3rem; color: var(--pro-text-muted); opacity: 0.5; margin-bottom: 1rem; }
.empty-state h3 { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 500; }
.empty-state p { font-family: var(--font-sans); font-size: 0.9375rem; color: var(--pro-text-secondary); }

/* ============================================
   PREFERS-REDUCED-MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .home-layout { grid-template-columns: 1fr 280px; }
    .footer-top-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-vdivider { width: 100%; height: 1px; align-self: auto; margin: 0; }
}

/* ============================================
   SECTION HERO — Gradiente azul académico reutilizable
   Usado en: Difusión, Explorar, Buscar, Fondos, Colecciones, etc.
   ============================================ */
.section-hero {
    background: linear-gradient(135deg, #002c43 0%, #003a58 60%, #004d70 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.section-hero > * {
    position: relative;
    z-index: 1;
}

.section-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-hero h1,
.section-hero h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.section-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

.section-hero .accent-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #c8973a, #e6b84a);
    border-radius: 2px;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .home-layout { grid-template-columns: 1fr; }
    .obras-panel-sticky { display: none; }    /* se oculta en móvil */
    .split-inner { grid-template-columns: 1fr; gap: 2rem; }
    .split-inner.reverse { direction: ltr; }
    .split-img-wrap img,
    .split-img-placeholder { height: 260px; }
    .navbar-search-input { width: 100px; }
    .footer-bottom-logos { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .hero-left { padding: 2.5rem 1.5rem; }
    .hero-musica { font-size: 3rem; }
    .footer-top-grid { gap: 1rem; }
    .footer-inst-logo { height: 30px; }
    .stats-bar-inner { gap: 1.25rem; }
    .stats-divider { display: none; }
    .quote-inner { flex-direction: column; }
    .obra-fila-badge { display: none; }
}

@media (max-width: 576px) {
    .hero-left { padding: 2rem 1rem; }
    .hero-accesos { flex-direction: column; }
    .acceso-btn { width: 100%; justify-content: center; }
}

/* ============================================
   SECCIÓN NOTICIAS HOME (fuera del panel sticky)
   ============================================ */
.home-noticias-section {
    padding: 3rem 0;
    background: var(--pro-secondary);
}
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.noticia-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: background 0.15s;
}
.noticia-card:hover { background: rgba(255,255,255,.08); }
.noticia-card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.noticia-card-img img { width: 100%; height: 100%; object-fit: cover; }
.noticia-card-img svg { width: 2rem; height: 2rem; color: rgba(255,255,255,.2); }
.noticia-card-body { padding: 1rem; }
.noticia-card-fecha {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--pro-gold);
    margin: 0 0 0.4rem;
}
.noticia-card-titulo {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255,255,255,.85);
    line-height: 1.4;
    margin: 0;
}
.noticia-ver-mas {
    margin-top: 1.5rem;
    text-align: center;
}
@media (max-width: 768px) {
    .noticias-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SIDEBAR MEJORADO — NOTICIAS
   ============================================ */
.obras-panel-noticia-item {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: opacity 0.2s;
}

.obras-panel-noticia-item:last-child {
    border-bottom: none;
}

.obras-panel-noticia-item:hover {
    opacity: 0.85;
}

.obras-panel-noticia-cover {
    width: 50px;
    min-width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .08);
    border-radius: 0.375rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obras-panel-noticia-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.obras-panel-noticia-cover i {
    color: rgba(200, 151, 58, .4);
    width: 1.5rem;
    height: 1.5rem;
}

.obras-panel-noticia-info {
    flex: 1;
    min-width: 0;
}

.obras-panel-noticia-titulo {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, .85);
    margin: 0;
    line-height: 1.3;
}

.obras-panel-noticia-fecha {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, .4);
    margin: 0.25rem 0 0;
}

/* ============================================
   SECCIÓN CÁPSULAS INFORMATIVAS
   ============================================ */
.capsulas-section {
    background: rgba(255, 255, 255, .85);;
    padding: 4rem 0;
    margin: 3rem 0;
}

.carousel-item {
    padding: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    height: auto;
    background: none;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-next:focus {
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 100%;
}

.carousel-indicators {
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .3);
    border: none;
    transition: background-color 0.2s;
}

.carousel-indicators .active {
    background-color: #c8973a;
}

/* ============================================
   GRID NOTICIAS 2×2
   ============================================ */
.noticia-card {
    position: relative;
}

.noticia-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .2) 100%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .capsulas-section {
        padding: 2rem 0;
        margin: 2rem 0;
    }

    .carousel-item [class*="col-"] {
        margin-bottom: 2rem;
    }
}
