.bm-header-section {
    background: #fff;
    padding: 18px 0;
    border-bottom: 4px solid var(--bs-primary);
}
.bm-header-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.bm-header-section .breadcrumb-item a { color: #666; text-decoration: none; transition: color 0.3s; }
.bm-header-section .breadcrumb-item a:hover { color: var(--bs-primary); }
.bm-header-section .breadcrumb-item.active { color: #333; }
.bm-titulo {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.bm-tipo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--bs-primary) 0%, rgba(var(--bs-primary-rgb), 0.82) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.bm-tipo-badge i { margin-right: 6px; }
.bm-ubicacion { font-size: 1.05rem; color: #666; margin: 6px 0 0; overflow-wrap: anywhere; }
.bm-ubicacion i { color: var(--bs-primary); margin-right: 8px; }

.bm-contenido-section { padding: 40px 0 50px; }

.bm-imagen-principal {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 100%;
}
.bm-imagen-principal img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bm-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}
.bm-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.bm-card-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, rgba(var(--bs-primary-rgb), 0.82) 100%);
    color: #fff;
    padding: 15px 20px;
}
.bm-card-header h3, .bm-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.bm-card-header i { margin-right: 10px; font-size: 1.1rem; }
.bm-card-body { padding: 25px; line-height: 1.7; color: #444; }
.bm-vacio { color: #999; font-style: italic; margin: 0; }

.rich-content { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.rich-content img { max-width: 100%; height: auto; }
.rich-content iframe, .rich-content video, .rich-content embed { max-width: 100%; }
.rich-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
.rich-content pre { white-space: pre-wrap; word-break: break-word; }
.rich-content a { word-break: break-all; }
.rich-content > *:last-child { margin-bottom: 0; }

.galeria-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    aspect-ratio: 1;
}
.galeria-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.galeria-thumbnail:hover img { transform: scale(1.1); }
.galeria-overlay {
    position: absolute; inset: 0;
    background: rgba(var(--bs-primary-rgb), 0.85);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.galeria-thumbnail:hover .galeria-overlay { opacity: 1; }
.galeria-overlay i { color: #fff; font-size: 2rem; }

.bm-lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.95); z-index: 9999;
    justify-content: center; align-items: center; flex-direction: column; padding: 20px;
}
.bm-lightbox-img { max-width: 90%; max-height: 85vh; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.bm-lightbox-close {
    position: absolute; top: 20px; right: 40px;
    color: #fff; font-size: 40px; font-weight: 300; cursor: pointer;
    transition: all 0.3s ease; z-index: 10001;
}
.bm-lightbox-close:hover { color: var(--bs-primary); transform: scale(1.1); }
.bm-lightbox-caption { color: #fff; font-size: 1rem; margin-top: 15px; text-align: center; max-width: 600px; }
.bm-lightbox-nav {
    display: none;
    position: absolute; top: 0; bottom: 0;
    width: 20%; min-width: 80px; max-width: 200px;
    background: transparent; border: none; cursor: pointer;
    color: #fff; font-size: 4rem; line-height: 1;
    align-items: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    transition: background 0.25s ease; z-index: 10000;
}
.bm-lightbox-nav:hover { background: rgba(0, 0, 0, 0.22); }
.bm-lightbox-prev { left: 0; justify-content: flex-start; padding-left: 24px; }
.bm-lightbox-next { right: 0; justify-content: flex-end; padding-right: 24px; }
@media (max-width: 768px) {
    .bm-lightbox-nav { font-size: 2.6rem; min-width: 56px; }
    .bm-lightbox-prev { padding-left: 14px; }
    .bm-lightbox-next { padding-right: 14px; }
}

.bm-btn-volver {
    display: inline-block;
    background: #fff; color: var(--bs-primary); border: 2px solid var(--bs-primary);
    padding: 13px 36px; font-size: 1rem; font-weight: 600;
    border-radius: 6px; text-decoration: none; transition: all 0.3s ease;
}
.bm-btn-volver:hover { background: var(--bs-primary); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3); }
.bm-btn-volver i { margin-right: 8px; }

.bm-mapa-section { padding: 10px 0 50px; }

@media (max-width: 768px) {
    .bm-header-section { margin-top: 60px; padding: 18px 0 14px; }
    .bm-titulo { font-size: 1.7rem; }
    .bm-ubicacion { font-size: 0.95rem; }
    .bm-card-body { padding: 20px; }
    .bm-card-header h3, .bm-card-header h4 { font-size: 1.1rem; }
    .bm-btn-volver { padding: 12px 28px; font-size: 0.95rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .bm-header-section { margin-top: 70px; }
    .bm-titulo { font-size: 2.1rem; }
}