@font-face {
    font-family: 'Arquitecta';
    src: url('fonts/Arquitecta.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Arquitecta';
    src: url('fonts/Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', sans-serif
}

#viewer {
    width: 100%;
    height: 100%
}

.title-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent);
    padding: 10px 14px 14px;
    z-index: 200;
    color: #fff;
    font-family: 'Arquitecta', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: .3px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-bar span {
    font-size: 1.4rem
}

.marker-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .5);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s;
    position: relative;
}

.marker-icon:hover {
    transform: scale(1.22);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .65)
}

.marker-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(218, 165, 32, .7);
    animation: pulsar 2.2s ease-out infinite;
}

@keyframes pulsar {
    0% {
        transform: scale(1);
        opacity: .65
    }

    100% {
        transform: scale(2.4);
        opacity: 0
    }
}

.psv-markers .psv-marker {
    overflow: visible !important
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto
}

.modal-card {
    background: #1c1c1e;
    color: #f0f0f2;
    border-radius: 14px;
    padding: 28px 30px;
    max-width: 467px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border-top: 3px solid rgba(255, 255, 255, .12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
    animation: entradaModal .35s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes entradaModal {
    from {
        transform: translateY(40px) scale(.92);
        opacity: 0
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1
    }
}

.modal-card h2 {
    font-family: 'Arquitecta', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: .2px;
    color: #fff;
}

.modal-card .badge {
    font-size: .6rem;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .85);
}

.badge-foto {
    background: rgba(99, 102, 241, .5)
}

.badge-texto {
    background: rgba(16, 185, 129, .5)
}

.badge-foto-texto {
    background: rgba(236, 72, 153, .5)
}

.badge-video {
    background: rgba(239, 68, 68, .5)
}

.modal-win-controls {
    position: absolute;
    top: 12px;
    right: 12px
}

.modal-win-btn {
    background: #000000;
    border: 1px solid #000000;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    line-height: 1;
}

.modal-win-btn:hover {
    background: #000000;
    color: #ffffff;
}

.modal-win-btn.close-btn:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.modal-card img.modal-img,
.modal-card img.modal-img-sm {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

.modal-card img.modal-img {
    margin-bottom: 18px;
    max-height: 440px;
}

.modal-card img.modal-img-sm {
    margin-bottom: 14px;
    max-height: 280px;
}

.modal-card video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 14px;
    max-height: 420px;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

.modal-card .text-content {
    font-family: 'Arquitecta', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    font-size: .82rem;
    color: #000000;
    border-top: 1px solid #000000;
    padding-top: 14px;
    margin-top: 4px;
}

.modal-card .video-embed {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

.modal-card .video-embed iframe {
    width: 100%;
    height: 400px;
    border: none
}

.modal-overlay.video-mode .modal-card {
    background: #000;
    border: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .7);
    padding: 0;
    max-width: min(700px, 90vw);
    border-radius: 8px;
    overflow: hidden;
}

.modal-overlay.video-mode .modal-card video {
    display: block;
    border-radius: 0;
    max-height: 85vh;
    max-width: 90vw;
    margin: 0;
    object-fit: contain;
}

.modal-overlay.video-mode .modal-card .video-embed {
    border-radius: 0;
    margin: 0;
    box-shadow: none
}

.modal-overlay.video-mode .modal-card .video-embed iframe {
    height: 75vh;
    max-width: 90vw
}

.modal-overlay.video-mode .modal-win-controls {
    top: 8px;
    right: 8px;
    z-index: 10
}

.modal-overlay.video-mode .modal-win-btn {
    background: rgba(0, 0, 0, .55);
    border-color: rgba(255, 255, 255, .15);
    color: #ddd;
    backdrop-filter: blur(4px);
}

.modal-card::-webkit-scrollbar {
    width: 5px
}

.modal-card::-webkit-scrollbar-track {
    background: transparent
}
.modal-card {
    background: #ffffff !important; 
}

.modal-card h2 {
    color: #000000 !important;
    font-weight: 900 !important;
}

.modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 3px
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding-top: 34px;
    transition: opacity .6s;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none
}

.loading-logo-top {
    width: 260px;
    max-width: 72vw;
    height: auto;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35));
}

.loading-logo-main {
    width: 1120px;
    max-width: 90vw;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .4))
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, .15);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: giro .8s linear infinite;
}

@keyframes giro {
    to {
        transform: rotate(360deg)
    }
}

.loading-text {
    color: #8b93ab;
    font-size: .85rem;
    letter-spacing: .5px
}

.btn-sonido {
    position: fixed;
    bottom: 0;
    right: 48px;
    z-index: 300;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .25s;
}

.btn-sonido.activo {
    background: rgba(129, 140, 248, .35);
    border-color: rgba(129, 140, 248, .6);
    color: #c7d2fe;
    box-shadow: 0 0 14px rgba(129, 140, 248, .4);
}

.logo-superior {
    position: fixed;
    top: 14px;
    right: 14px;
    height: 30px;
    width: auto;
    z-index: 200;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
    opacity: 0.90
}

@media (max-width: 768px) {
    .logo-superior {
        display: none;
    }
}

.psv-caption,
.psv-caption-content {
    font-family: 'Arquitecta', sans-serif;
    font-weight: 900;
    font-size: 1.2em;
}

.psv-navbar {
    background: rgba(60, 185, 138, 0.55) !important;
}

.psv-tooltip {
    background: rgba(60, 185, 138, 0.55) !important;
    box-shadow: none !important;
    border: none !important;
}

.psv-tooltip-arrow {
    display: none !important;
}

.audio-separator {
    width: 100%;
    height: 1px;
    background-color: #000000;
    margin: 14px 0;
}

.modal-audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid #000000;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
    padding: 0;
}

/* Marker label shown instead of tooltip */
.marker-label {
    position: absolute;
    top: -66px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(60, 185, 138, 0.95);
    color: #000000;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Arquitecta', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: none;
}

/* Etiqueta compacta para puntos muy próximos entre sí, ubicada lateralmente a la izquierda */
.marker-label.marker-label-sm {
    top: 50% !important;
    left: auto !important;
    right: 46px !important;
    transform: translateY(-50%) !important;
    font-size: 1.6rem !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
}

.marker-icon {
    position: relative;
}