/* ==========================================
   MODAL VIDEO PREMIUM
   ========================================== */
.modal-video-premium .modal-dialog {
    max-width: 900px;
    width: 92%;
    margin: 1.75rem auto;
}

.modal-video-premium .modal-content {
    background: #000;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-video-premium .modal-body {
    padding: 0;
    position: relative;
    background: #000;
}

.video-cinematic-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-cinematic-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

video{
    content-visibility: auto;
}

.video-cinematic-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    pointer-events: none;
    z-index: 2;
}

.video-controls-overlay {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 92%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-video-premium:hover .video-controls-overlay,
.modal-video-premium .video-controls-overlay:focus-within {
    opacity: 1;
}

.video-controls-overlay .btn-control {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, background 0.2s ease;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-controls-overlay .btn-control:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
}

.video-controls-overlay .btn-control.play-btn {
    background: #d61047;
    width: 46px;
    height: 46px;
    font-size: 1.5rem;
}

.video-controls-overlay .btn-control.play-btn:hover {
    background: #b30d3b;
    transform: scale(1.1);
}

.video-controls-overlay .progress-bar-custom {
    flex: 1;
    min-width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.video-controls-overlay .progress-bar-custom:hover {
    height: 6px;
}

.video-controls-overlay .progress-bar-custom .progress-fill {
    height: 100%;
    background: #d61047;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.video-controls-overlay .progress-bar-custom .progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-controls-overlay .progress-bar-custom:hover .progress-fill::after {
    opacity: 1;
}

.video-controls-overlay .time-display {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-family: 'Nunito', sans-serif;
    min-width: 80px;
    text-align: center;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.video-controls-overlay .volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.video-controls-overlay .volume-control input[type="range"] {
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.video-controls-overlay .volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.video-controls-overlay .volume-control input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.modal-video-premium .sponsorevento {
    position: absolute;
    top: 14px;
    right: 70px;
    z-index: 20;
    width: 90px;
    height: 90px;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.modal-video-premium .sponsorevento img{
    border-radius: 12px;
    height: 90px; width: 90px; object-fit: scale-down;
}


.modal-video-premium .btn-close-custom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.modal-video-premium .btn-close-custom:hover {
    background: #d61047;
    transform: rotate(90deg);
    border-color: #d61047;
}

.modal-video-premium .video-brand-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-video-premium .video-brand-badge img {
    height: 20px;
    width: auto;
}

.modal-video-premium .video-brand-badge span {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    opacity: 0.9;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: #fff;
    font-size: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .modal-video-premium .modal-dialog {
        max-width: 95%;
        width: 95%;
    }
}

@media (max-width: 820px) {
    .modal-video-premium .modal-dialog {
        max-width: 85%;
        width: 85%;
        margin: 5vh auto;
        height: auto;
        max-height: 80vh;
        display: flex;
        align-items: center;
    }

    .modal-video-premium .modal-content {
        border-radius: 14px;
        height: auto;
        max-height: 80vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .modal-video-premium .modal-body {
        height: auto;
        max-height: calc(80vh - 20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        gap: 8px;
        overflow: hidden;
    }

    .modal-video-premium .video-brand-badge {
        position: static;
        align-self: flex-start;
        top: auto;
        left: auto;
        margin: 0;
        padding: 4px 10px;
    }

    .modal-video-premium .video-brand-badge img { height: 16px; }
    .modal-video-premium .video-brand-badge span { font-size: 0.65rem; }

    .video-cinematic-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 9 / 16;
        max-height: calc(80vh - 90px);
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 1;
    }

    .modal-video-premium .sponsorevento {
        position: absolute;
        top: 50px;
        right: 10px;
        width: 70px;
        height: 70px;
    }

    .modal-video-premium .sponsorevento img{
        height: 100%; width: 100%;
    }

    .modal-video-premium .btn-close-custom {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        z-index: 20;
    }

    .video-controls-overlay {
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 94%;
        padding: 6px 10px;
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: space-between;
        opacity: 1;
        border-radius: 20px;
    }

    .video-controls-overlay .btn-control {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }

    .video-controls-overlay .btn-control.play-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .video-controls-overlay .time-display {
        min-width: 50px;
        font-size: 0.65rem;
    }

    .video-controls-overlay .volume-control input[type="range"] {
        width: 40px;
    }

    .video-controls-overlay .progress-bar-custom {
        position: absolute;
        bottom: 2px;
        left: 6%;
        width: 88%;
        height: 3px;
        order: 0;
        flex-basis: auto;
        min-width: 0;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .modal-video-premium .modal-dialog {
        max-width: 88%;
        width: 88%;
        margin: 5vh auto;
        max-height: 78vh;
    }

    .modal-video-premium .modal-content {
        max-height: 78vh;
    }

    .modal-video-premium .modal-body {
        max-height: calc(78vh - 20px);
        padding: 8px;
    }

    .video-cinematic-wrapper {
        max-height: calc(78vh - 80px);
    }

    .video-controls-overlay {
        padding: 5px 8px;
        gap: 4px;
        width: 96%;
    }

    .video-controls-overlay .btn-control {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .video-controls-overlay .btn-control.play-btn {
        width: 36px;
        height: 36px;
        font-size: 1.15rem;
    }

    .video-controls-overlay .time-display {
        min-width: 44px;
        font-size: 0.6rem;
    }

    .video-controls-overlay .volume-control input[type="range"] {
        width: 32px;
    }
}
/* ==========================================
   BOTÓN PLAY CENTRAL
   ========================================== */
.video-play-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(214, 16, 71, 0.95);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding-left: 6px; /* centra visualmente el triángulo */
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: playPulse 2s infinite;
}

.video-play-center:hover {
    background: rgba(214, 16, 71, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-center.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

@keyframes playPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(214, 16, 71, 0.7);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 20px rgba(214, 16, 71, 0);
    }
}

/* El wrapper clickeable */
.video-cinematic-wrapper {
    cursor: pointer;
}

/* Móvil: botón más chico */
@media (max-width: 820px) {
    .video-play-center {
        width: 64px;
        height: 64px;
        font-size: 2rem;
        padding-left: 4px;
    }
}

@media (max-width: 480px) {
    .video-play-center {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
}