/* =====================================================
   VISOR DE PROFESORES
===================================================== */

/* =====================================================
   ZOOM
===================================================== */

.visor-imagen {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 4px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.7);

    transform-origin: center center;

    transition: transform 0.15s ease;

    user-select: none;

    -webkit-user-drag: none;

    touch-action: none;

    cursor: zoom-in;
}


/* Cuando está ampliada */

.visor-imagen.zoom-activo {
    cursor: grab;
}


/* =====================================================
   CONTROLES DE ZOOM
===================================================== */

.visor-zoom-controles {

    position: fixed;

    bottom: 55px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    gap: 4px;

    padding: 5px;

    background: rgba(0, 0, 0, 0.70);

    border: 1px solid rgba(255,255,255,0.20);

    border-radius: 25px;

    z-index: 1000000;
}


.visor-zoom-controles button {

    width: 40px;
    height: 34px;

    border: none;

    background: transparent;

    color: #fff;

    font-size: 20px;

    cursor: pointer;

    border-radius: 18px;

    transition:
        background 0.2s ease;

}


.visor-zoom-controles button:hover {

    background: rgba(255,255,255,0.20);

}


#zoomReset {

    width: 60px;

    font-size: 12px;

    letter-spacing: 0.5px;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .visor-zoom-controles {

        bottom: 35px;

    }

    .visor-zoom-controles button {

        width: 44px;
        height: 38px;

        font-size: 22px;

    }

    #zoomReset {

        width: 65px;

    }

}



.visor-profesores {
    display: none;

    position: fixed;
    z-index: 999999;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.94);

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}


/* Modal visible */

.visor-profesores.activo {
    display: flex;
}


/* Contenedor */

.visor-profesores-contenido {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    max-width: 95vw;
    max-height: 95vh;

    animation: visorEntrada 0.25s ease;
}


/* Imagen */

.visor-imagen {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 4px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.7);
}


/* =====================================================
   BOTÓN CERRAR
===================================================== */

.visor-cerrar {

    position: fixed;

    top: 25px;
    right: 30px;

    z-index: 1000000;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255,255,255,0.5);

    border-radius: 50%;

    background: rgba(0,0,0,0.55);

    color: #fff;

    font-size: 34px;
    font-weight: 300;

    line-height: 42px;

    padding: 0;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.visor-cerrar:hover {

    background: #fff;

    color: #0b3c5d;

    transform: rotate(90deg);
}


/* =====================================================
   FLECHAS
===================================================== */

.visor-flecha {

    position: fixed;

    top: 50%;

    transform: translateY(-50%);

    z-index: 1000000;

    width: 65px;
    height: 100px;

    border: none;

    background: rgba(0,0,0,0.45);

    color: #fff;

    font-size: 38px;

    cursor: pointer;

    opacity: 0.75;

    transition:
        background 0.25s ease,
        opacity 0.25s ease;
}


.visor-flecha:hover {

    opacity: 1;

    background: rgba(11,60,93,0.9);
}


.visor-anterior {

    left: 20px;

    border-radius: 0 8px 8px 0;
}


.visor-siguiente {

    right: 20px;

    border-radius: 8px 0 0 8px;
}


/* =====================================================
   CONTADOR
===================================================== */

.visor-contador {

    position: fixed;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    padding: 8px 16px;

    border-radius: 20px;

    background: rgba(0,0,0,0.65);

    color: #fff;

    font-size: 13px;

    letter-spacing: 1px;
}


/* =====================================================
   ANIMACIÓN
===================================================== */

@keyframes visorEntrada {

    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =====================================================
   MÓVILES
===================================================== */

@media (max-width: 768px) {

    .visor-profesores {
        padding: 10px;
    }


    .visor-imagen {

        max-width: 94vw;
        max-height: 84vh;

    }


    .visor-flecha {

        width: 45px;
        height: 70px;

        font-size: 28px;

    }


    .visor-anterior {
        left: 5px;
    }


    .visor-siguiente {
        right: 5px;
    }


    .visor-cerrar {

        top: 12px;
        right: 12px;

        width: 40px;
        height: 40px;

        font-size: 28px;

    }

}


