/* ========================================================
   SECCIÓN DE MEJORES PUNTUADOS Y ESTUDIANTES CON CUPOS
   (Diseño Llamativo, Fotos Izquierda, TikToks Derecha, Tamaño Pequeño)
   ======================================================== */

.premiados-tiktok-section {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0;
    background: radial-gradient(circle at top right, #f0f7ff 0%, #ffffff 45%, #f6f9fc 100%);
}

.premiados-tiktok-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1967d2, #3b82f6, #f59e0b, #10b981);
}

/* Caja de cada Slider (Fotos y TikToks con exactamente el MISMO tamaño pequeño) */
.premiados-slider-box {
    position: relative;
    width: 100%;
    height: 380px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.premiados-slider-box:hover {
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
}

/* Badges flotantes en la parte superior */
.slider-badge-pill {
    position: absolute;
    top: 12px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    color: #1e293b;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    pointer-events: none;
}

.slider-badge-pill.start {
    left: 14px;
}

.slider-badge-pill.end {
    right: 14px;
}

/* Contenedor de la Foto (Izquierda) */
.photo-single-holder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    position: relative;
    overflow: hidden;
    padding: 2.2rem 1.2rem 1.2rem;
}

.photo-stage-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent !important;
    user-select: none;
    cursor: zoom-in;
    border-radius: 12px;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.photo-stage-img:hover {
    transform: scale(1.02);
}

/* Contenedor del Video de TikTok (Derecha) */
.tiktok-single-holder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.tiktok-single-holder iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Botones circulares con flecha (< y >) según screenshot media_1790034029800.png */
.photo-stage-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
    color: #1e293b !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 25;
    outline: none;
}

.photo-stage-control:hover {
    background: #1967d2 !important;
    color: #ffffff !important;
    border-color: #1967d2 !important;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(25, 103, 210, 0.3) !important;
}

.photo-stage-control.prev {
    left: 12px;
}

.photo-stage-control.next {
    right: 12px;
}

/* Botón flotante para pantalla completa en la foto */
.photo-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    color: #1e293b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 25;
}

.photo-fullscreen-btn:hover {
    background: #1967d2;
    color: #ffffff;
    border-color: #1967d2;
    transform: scale(1.08);
}

/* Botón flotante enlace externo a TikTok */
.tiktok-external-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    color: #1e293b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 25;
}

.tiktok-external-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: scale(1.08);
}

/* Lightbox Modal para fotos */
.premiados-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.premiados-lightbox-overlay.active {
    display: flex;
}

.premiados-lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premiados-lightbox-content img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.premiados-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.premiados-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
}

/* Adaptación responsive */
@media (max-width: 991.98px) {
    .premiados-slider-box {
        height: 350px;
    }
}

@media (max-width: 575.98px) {
    .premiados-slider-box {
        height: 330px;
        border-radius: 16px;
    }
    .photo-stage-control {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .photo-stage-control.prev {
        left: 8px;
    }
    .photo-stage-control.next {
        right: 8px;
    }
    .slider-badge-pill {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}