body,
html {
    margin: 0;
    height: 100%;
}

h1 {
    font-size: 22px;
}

h2,
h3 {
    font-size: 16px;
}

.form-control-custom {
    width: 50%;
}

#right {
    height: calc(100vh - 250px);
}

@media (min-width: 768px) {
    body {
        padding-top: 56px !important;
    }

    #right {
        position: relative;
        top: 0;
        bottom: 0;
        right: 0;
        overflow-y: scroll;
        width: 100%;
        background-color: #fff;
    }
}

#buscador {
    width: auto;
    max-width: 300px;
}

#buscarcabecera {
    width: 100%;
}

.site-logo {
    height: 55px;
    max-height: 55px;
}

@media (max-width: 767.98px) {
    body {
        padding-top: 96px !important;
    }

    #buscador {
        width: 100% !important;
        max-width: none;
    }
}

@media (max-width: 400px) {
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
        background-size: 90%;
    }

    .navbar-toggler {
        padding: 0.25rem 0.4rem;
    }

    .navbar-brand img {
        max-height: 45px;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-heading {
    padding-top: 0;
    padding-bottom: 0;
    font-weight: bold;
    font-size: 14px;
    margin: 0;
}

.custom-heading-titulo {
    padding-top: 0;
    padding-bottom: 0;
    font-weight: bold;
    font-size: 14px;
    color: #0056b3;
    margin: 0;
}

.video-card-shell {
    margin-bottom: 5px;
}

.video-container {
    position: relative;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: none;
    text-align: center;
    z-index: 1000;
}

[hidden] {
    display: none;
}

.new-window-icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    margin-left: 0.25rem;
    margin-inline-start: 0.3em;
    vertical-align: middle;
}

.svg-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.form-control:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.fw-bold {
    overflow: visible;
}

.custom-container {
    display: grid;
    grid-template-columns: 30% auto;
    width: 100%;
}

.custom-left,
.custom-right {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-right {
    font-weight: bold;
}

.custom-container .btn {
    display: inline-block;
    cursor: pointer;
}

.custom-left:hover,
.custom-right:hover {
    white-space: normal;
}

input:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

*:focus {
    outline: 1px dashed red;
    outline-offset: 2px;
}

.btn:focus {
    outline: 1px solid #007bff;
    outline-offset: 2px;
}

button.accordion-button:focus,
.custom-controls button:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

@media (max-width: 975px) {
    .custom-controls .btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

.minimalist-accordion__panel[aria-hidden=true] {
    display: none;
    border: 0;
}

.animated-accordion__panel {
    display: block;
    overflow: hidden;
    opacity: 1;
    -webkit-transition: visibility 0s ease, max-height 1s ease, opacity 1s ease;
    transition: visibility 0s ease, max-height 1s ease, opacity 1s ease;
    visibility: visible;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
    margin: 0;
    padding: 0;
    border: 0;
}

[aria-hidden=true].animated-accordion__panel {
    display: block;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    -webkit-transition-delay: 1s, 0s, 0s;
    transition-delay: 1s, 0s, 0s;
    margin: 0;
    padding: 0;
    border: 0;
}

.minimalist-accordion,
.animated-accordion {
    border: 0;
}

.minimalist-accordion__header,
.animated-accordion__header {
    display: block;
    background: none;
    font-family: inherit;
    margin: 0;
    padding: 0.25em 0;
    text-align: left;
    width: 100%;
    font-weight: bold;
    color: #0056b3;
    border: 0;
}

.minimalist-accordion__header[aria-expanded="true"]:before,
.animated-accordion__header[aria-expanded="true"]:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f068";
    font-weight: 900;
    border: 0;
}

.minimalist-accordion__header[aria-expanded="false"]:before,
.animated-accordion__header[aria-expanded="false"]:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f055";
    font-weight: 900;
    border: 0;
}

.minimalist-accordion__header[aria-selected="true"]:after,
.animated-accordion__header[aria-selected="true"]:after {
    content: "";
    position: relative;
    top: 0.1em;
    display: inline-block;
    speak: none;
}

.minimalist-accordion__panel:last-child,
.animated-accordion__panel:last-child {
    padding-bottom: 1em;
    border-bottom: 0;
    margin-bottom: 1em;
}

.minimalist-accordion__title,
.animated-accordion__title {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.text-custom-blue {
    color: #0056b3 !important;
}

.accordion-container {
    transition: background-color 0.8s ease;
}

.highlight-temp {
    background-color: orange !important;
}

.badge-time-start {
    background-color: #0f766e;
    color: #fff;
}

.badge-time-duration {
    background-color: #1d4ed8;
    color: #fff;
}

.video-js .vjs-mosca-watermark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: clamp(32px, 5vw, 60px);
    height: auto;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1000;
}

.video-detail-content {
    padding: 0.75rem 1.25rem;
}

.video-title {
    font-weight: bold;
}

.share-icon-link {
    display: inline-block;
}

.speaker-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.speaker-badge {
    width: 48%;
}

.firma-publica-box {
    border: 1px solid #d9dee3;
    border-radius: 10px;
    background: #f8f9fa;
    padding: 14px;
    margin-top: 10px;
    overflow: hidden;
}

.firma-publica-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0 0 12px 0;
}

.firma-publica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.firma-publica-item {
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    box-sizing: border-box;
}

.firma-publica-linea {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    min-width: 0;
}

.firma-publica-icono {
    color: #198754;
    font-size: 1.1rem;
    flex: 0 0 auto;
    margin-top: 2px;
}

.firma-publica-texto {
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.firma-publica-estado {
    display: inline-block;
    align-self: flex-start;
    background: #198754;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 5px 12px;
    line-height: 1.2;
    max-width: 100%;
}

@media (max-width: 991px) {
    .firma-publica-grid {
        grid-template-columns: 1fr;
    }
}

.audio-adjuntos-box,
.adjuntos-publicos-box {
    margin-top: 12px;
}

.audio-adjuntos-titulo,
.adjuntos-publicos-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0 0 10px 0;
}

.audio-adjunto-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
    width: 100%;
    min-width: 0;
}

.audio-adjunto-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.audio-adjunto-icono {
    color: #0d6efd;
    font-size: 1.2rem;
    flex: 0 0 auto;
    margin-top: 2px;
}

.audio-adjunto-texto {
    min-width: 0;
}

.audio-adjunto-titulo {
    display: block;
    font-weight: 700;
    color: #1f2d3d;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.audio-adjunto-descripcion {
    display: block;
    color: #5f6b76;
    line-height: 1.35;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.audio-adjunto-descarga {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .audio-adjunto-item {
        align-items: stretch;
        flex-direction: column;
    }

    .audio-adjunto-descarga {
        width: 100%;
    }
}
