/* ==========================================================================
   MEDIA CARDS (Video 1, Video 2, Mapa)
   ========================================================================== */

.vxm-media-cards {
    padding: var(--vxm-space-xl) 0;
}

.vxm-media-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--vxm-space-lg);
}

@media (max-width: 768px) {
    .vxm-media-cards__grid {
        grid-template-columns: 1fr;
    }
}

.vxm-media-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 300px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.vxm-media-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    filter: saturate(1.1) contrast(1.05) brightness(0.95);
}

.vxm-media-card:hover .vxm-media-card__img {
    transform: scale(1.08);
    filter: saturate(1.2) contrast(1.1) brightness(0.9);
}

.vxm-media-card__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to top,
        rgba(27, 61, 90, 0.75) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(27, 61, 90, 0.1) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.4s ease;
}

.vxm-media-card:hover .vxm-media-card__overlay {
    background: linear-gradient(
        to top,
        rgba(27, 61, 90, 0.85) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(27, 61, 90, 0.15) 100%
    );
}

.vxm-media-card__play {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.vxm-media-card:hover .vxm-media-card__play {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--vxm-white);
    transform: scale(1.1);
}

.vxm-media-card__play svg {
    margin-left: 3px;
}

.vxm-media-card__label {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--vxm-white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
/* ==========================================================================
   DETALLES DEL TOUR (título + tabs)
   ========================================================================== */

.vxm-tour-details {
    padding: var(--vxm-space-xl) 0 var(--vxm-space-2xl);
}

.vxm-tour-details__title {
    text-align: center;
    font-family: var(--vxm-font-heading);
    font-size: 1.8rem;
    color: var(--vxm-primary);
    margin-bottom: var(--vxm-space-sm);
    position: relative;
    padding-bottom: var(--vxm-space-md);
}

.vxm-tour-details__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--vxm-secondary);
}

/* ==========================================================================
   VIDEO / MAPA MODAL (Popup)
   ========================================================================== */

.vxm-video-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vxm-video-modal.is-open {
    display: flex;
}

.vxm-video-modal__backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.vxm-video-modal__content {
    position: relative;
    width: 100%;
    max-width: 900px;
    z-index: 1;
}

.vxm-video-modal__content--map {
    max-width: 800px;
    text-align: center;
}

.vxm-video-modal__content--map img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.vxm-video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--vxm-white);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s;
}

.vxm-video-modal__close:hover {
    opacity: 0.7;
}

.vxm-video-modal__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.vxm-video-modal__wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}